/* ============ AI ADVANTAGE — cinematic landing ============ */
:root {
  --ink: #07060b;
  --ink-2: #100e1a;
  --paper: #ffffff;
  --paper-2: #f6f5fa;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --violet-glow: rgba(124, 58, 237, 0.45);
  --text-dark: #17141f;
  --text-mut: #6b6580;
  --text-light: #eeeaf7;
  --text-light-mut: rgba(238, 234, 247, 0.62);
  --radius: 20px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* NOTE: no CSS scroll-behavior:smooth — it corrupts ScrollTrigger measurements; anchor smoothing is done in JS */
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; }
img, svg { display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 30px var(--violet-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 14px 44px var(--violet-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost {
  color: var(--text-light);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }
.btn-ghost-dark {
  color: var(--text-dark);
  border-color: rgba(23,20,31,.18);
  background: rgba(255,255,255,.6);
}
.btn-ghost-dark:hover { border-color: var(--violet); color: var(--violet); }
.btn-large { padding: 18px 40px; font-size: 18px; }
.btn-small { padding: 10px 22px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(7,6,11,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  color: var(--text-light); display: inline-flex; align-items: center; gap: 10px;
}
.logo.dark { color: var(--text-dark); }
.logo-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  box-shadow: 0 0 14px var(--violet-glow);
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  color: var(--text-light-mut); font-size: 15px; font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { height: 340vh; position: relative; background: var(--ink); }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  max-width: 1000px;
}
.hero-eyebrow {
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--violet-soft); font-weight: 600; margin-bottom: 26px;
}
.hero-h1 {
  font-size: clamp(52px, 8.6vw, 118px);
  line-height: 0.98; color: #fff; font-weight: 700;
  text-shadow: 0 0 80px rgba(124,58,237,.35);
}
.hero-h1 .accent {
  background: linear-gradient(100deg, #c4b5fd, #7c3aed 60%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 28px auto 0; max-width: 560px;
  color: var(--text-light-mut); font-size: 19px; line-height: 1.6;
}
.hero-ctas { margin-top: 42px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-light-mut); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-hint span {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--violet-soft));
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- logos ---------- */
.logos { background: var(--ink); padding: 40px 0 110px; position: relative; }
.logos-label {
  text-align: center; color: var(--text-light-mut);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 38px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 84px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 600; font-size: 21px;
  color: rgba(238,234,247,.34); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- signal ---------- */
.signal { height: 400vh; position: relative; background: var(--ink); }
.signal-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#signal-canvas, .signal-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signal-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,6,11,.88) 0%, rgba(7,6,11,.55) 45%, rgba(7,6,11,.15) 100%);
}
.signal-copy {
  position: relative; z-index: 2; height: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.section-eyebrow {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--violet); font-weight: 600; margin-bottom: 18px; text-align: center;
}
.section-eyebrow.light { text-align: left; color: var(--violet-soft); }
.signal-steps { position: relative; height: 340px; max-width: 560px; }
.signal-step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(40px);
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
.signal-step h2 {
  font-size: clamp(44px, 6vw, 84px); color: #fff; font-weight: 700; margin-bottom: 22px;
  display: flex; align-items: baseline; gap: 20px;
}
.step-num { font-size: 18px; color: var(--violet-soft); font-weight: 500; letter-spacing: .1em; }
.signal-step p { color: var(--text-light-mut); font-size: 20px; line-height: 1.65; max-width: 480px; }
.signal-progress { display: flex; gap: 10px; margin-top: 26px; }
.signal-progress i {
  width: 44px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.15); overflow: hidden; position: relative;
}
.signal-progress i::after {
  content: ""; position: absolute; inset: 0; background: var(--violet);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.signal-progress i.on::after { transform: scaleX(1); }

/* ---------- focus (dark → light transition) ---------- */
.focus {
  background: linear-gradient(to bottom, var(--ink) 0%, #ece9f4 26%, var(--paper-2) 45%, var(--paper-2) 100%);
  padding: 220px 32px 150px; text-align: center;
}
.section-h2 {
  font-size: clamp(36px, 4.6vw, 62px); font-weight: 700;
  color: var(--text-dark); line-height: 1.06; margin-bottom: 26px;
}
.focus .section-h2, .focus .section-eyebrow { position: relative; z-index: 1; }
.focus-sub {
  max-width: 640px; margin: 0 auto;
  color: var(--text-mut); font-size: 19px; line-height: 1.7;
}
.glass-card {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(124,58,237,.14);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(23,14,50,.08), inset 0 1px 0 rgba(255,255,255,.8);
}
.focus-grid {
  max-width: 1140px; margin: 70px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.focus-card {
  padding: 46px 34px; text-align: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(23,14,50,.13), inset 0 1px 0 rgba(255,255,255,.8); }
.focus-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,.1); color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.18);
}
.focus-icon svg { width: 26px; height: 26px; }
.focus-card h3 {
  font-size: 21px; color: var(--text-dark); margin: 22px 0 10px;
}
.focus-card p { color: var(--text-mut); font-size: 15.5px; line-height: 1.65; }
.focus-cta { margin-top: 60px; }

/* ---------- faq ---------- */
.faq { background: var(--paper-2); padding: 20px 32px 150px; text-align: center; }
.faq-list { max-width: 760px; margin: 50px auto 0; text-align: left; }
.faq-item {
  background: rgba(255,255,255,.75); border: 1px solid rgba(23,20,31,.07);
  border-radius: 16px; margin-bottom: 14px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(124,58,237,.35); box-shadow: 0 16px 40px rgba(43,22,88,.08); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--violet); border-radius: 2px;
  transition: transform .3s;
}
.faq-icon::before { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-icon::after { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-item[open] .faq-icon::before { transform: rotate(90deg); }
.faq-body { padding: 0 28px; overflow: hidden; }
.faq-body p { color: var(--text-mut); font-size: 16px; line-height: 1.7; padding-bottom: 26px; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(to bottom, var(--paper-2), #fff 40%);
  padding: 170px 32px 190px;
}
.cta-glow {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.28), rgba(255,222,173,.18) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; line-height: 1.05; margin-bottom: 22px; }
.cta-sub { color: var(--text-mut); font-size: 16px; margin-bottom: 44px; letter-spacing: .02em; }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid rgba(23,20,31,.07); padding: 44px 32px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer nav { display: flex; gap: 28px; }
.footer nav a { color: var(--text-mut); font-size: 14.5px; transition: color .25s; }
.footer nav a:hover { color: var(--violet); }
.footer p { color: #a39cb8; font-size: 13.5px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(60px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .focus-grid { grid-template-columns: 1fr; max-width: 480px; }
  .signal-steps { height: 380px; }
  .signal-scrim { background: rgba(7,6,11,.72); }
}
