/* Small polish layer on top of Tailwind CDN. */

html {
  scroll-behavior: smooth;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bg-orb {
    animation: none !important;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section backgrounds — drifting gradient orbs. */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-bg--hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

/* Full-viewport hero (svh with vh fallback). */
.hero-full {
  min-height: 100vh;
  min-height: 100svh;
}

/* Taller hero so affiliation sits below the fold on first paint. */
.hero-tall {
  min-height: 120vh;
  min-height: 120svh;
}

.section-bg--modules {
  background: #0b1220;
}

.section-bg--contact {
  background: #ffffff;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

/* Light sections (hero, contact). */
.bg-orb--teal {
  width: min(55vw, 28rem);
  height: min(55vw, 28rem);
  background: rgba(20, 184, 166, 0.22);
}
.bg-orb--teal-soft {
  width: min(40vw, 20rem);
  height: min(40vw, 20rem);
  background: rgba(45, 212, 191, 0.14);
}
.bg-orb--blue {
  width: min(50vw, 26rem);
  height: min(50vw, 26rem);
  background: rgba(14, 165, 233, 0.18);
}

/* Dark modules section. */
.bg-orb--teal-dark {
  width: min(60vw, 32rem);
  height: min(60vw, 32rem);
  background: rgba(20, 184, 166, 0.12);
}
.bg-orb--blue-dark {
  width: min(45vw, 24rem);
  height: min(45vw, 24rem);
  background: rgba(14, 165, 233, 0.1);
}

/* Starting positions per section. */
.section-bg--hero .bg-orb:nth-child(1) {
  top: -8%;
  left: -6%;
}
.section-bg--hero .bg-orb:nth-child(2) {
  top: 5%;
  right: -10%;
}
.section-bg--hero .bg-orb:nth-child(3) {
  bottom: 10%;
  left: 35%;
}

.section-bg--modules .bg-orb:nth-child(1) {
  top: 8%;
  left: -12%;
}
.section-bg--modules .bg-orb:nth-child(2) {
  top: 40%;
  right: -8%;
}
.section-bg--modules .bg-orb:nth-child(3) {
  bottom: 5%;
  left: 25%;
}

.section-bg--contact .bg-orb:nth-child(1) {
  top: 15%;
  left: -8%;
}
.section-bg--contact .bg-orb:nth-child(2) {
  bottom: 10%;
  right: -6%;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 6%) scale(1.04);
  }
  66% {
    transform: translate(-3%, 4%) scale(0.98);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5%, -4%) scale(1.06);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(6%, -3%) scale(1.03);
  }
  80% {
    transform: translate(-4%, 5%) scale(0.97);
  }
}

.bg-orb--drift-a {
  animation: drift-a 38s ease-in-out infinite;
}
.bg-orb--drift-b {
  animation: drift-b 32s ease-in-out infinite;
}
.bg-orb--drift-c {
  animation: drift-c 42s ease-in-out infinite;
}
.bg-orb--delay {
  animation-delay: -14s;
}

.text-gradient {
  background-image: linear-gradient(90deg, #0d9488, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll-reveal sections. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product feature cards (dark section). */
.feature {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.75rem;
  transition: background 120ms ease, border-color 120ms ease;
}
.feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.feature-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #ffffff;
}
.feature-body {
  margin-top: 0.5rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Differentiator callouts. */
.edge {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.75rem;
}
.edge-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0b1220;
}
.edge-body {
  margin-top: 0.5rem;
  color: #475569;
  line-height: 1.6;
}

/* Anchor offset so sticky navbar doesn't cover section headings. */
section[id] {
  scroll-margin-top: 5rem;
}

/* Focus styles for accessibility. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 9999px;
}
