/* ============================================================
   home.css  ·  cinematic homepage
   ============================================================ */

/* ---------------- Intro: logo emerging from light + glass + particles ---------------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; overflow: hidden;
  /* opens in light, then dissolves into the dark hero beneath */
  background: radial-gradient(130% 120% at 50% 42%, #FEFEFC 0%, #F1F0EC 38%, #D9DCE3 78%, #C3C8D2 100%);
  transition: opacity 1.5s var(--ease-cine), visibility 1.5s;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__stage { position: relative; display: grid; place-items: center; }

/* soft light bloom the mark emerges from */
.intro__bloom {
  position: absolute; width: 68vmin; height: 68vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(120,170,255,0.30) 38%, rgba(87,224,214,0.14) 55%, transparent 72%);
  filter: blur(14px);
  opacity: 0; transform: scale(0.6);
  animation: introBloom 3.6s var(--ease-cine) forwards;
}
/* glass slab that materialises around the logo */
.intro__glass {
  position: relative; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(2.2rem, 5vw, 3.6rem);
  border-radius: 26px;
  background: rgba(255,255,255,0.42);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 40px 90px -40px rgba(60,80,120,0.5), inset 0 1px 0 rgba(255,255,255,0.9);
  opacity: 0; transform: scale(1.08) translateY(6px); filter: blur(10px);
  animation: introGlass 1.7s var(--ease-cine) 0.45s forwards;
}
.intro__mark {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 7vw, 4rem); color: #0B1120;
}
.intro__mark .m {
  width: clamp(44px, 8vw, 62px); height: clamp(44px, 8vw, 62px); border-radius: 16px;
  background: var(--grad-brand); display: grid; place-items: center;
  box-shadow: 0 14px 44px -10px rgba(47,107,255,0.6), inset 0 1px 0 rgba(255,255,255,0.6);
  opacity: 0; transform: scale(0.6) rotate(-12deg);
  animation: introMark 1.5s var(--ease-cine) 0.7s forwards;
}
.intro__mark .m svg { width: 54%; height: 54%; }
.intro__mark .word { opacity: 0; transform: translateX(-8px); animation: introWord 1.4s var(--ease-cine) 1s forwards; }
.intro__mark b { font-weight: 800; }
.intro__mark span { font-weight: 500; opacity: 0.5; }

/* rising light particles */
.intro__spark { position: absolute; inset: 0; pointer-events: none; }
.intro__spark i {
  position: absolute; bottom: -6%; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(120,170,255,0.6));
  box-shadow: 0 0 10px rgba(150,190,255,0.8);
  opacity: 0; animation: introRise linear infinite;
}

@keyframes introBloom {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.55; transform: scale(1.12); }
}
@keyframes introGlass { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes introMark { 0%{opacity:0} to { opacity: 1; transform: none; } }
@keyframes introWord { to { opacity: 1; transform: none; } }
@keyframes introRise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-42vmin); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .intro__glass, .intro__mark .m, .intro__mark .word, .intro__bloom { opacity: 1; transform: none; filter: none; animation: none; }
}

/* ---------------- Film stage (fixed video canvas) ---------------- */
.film {
  position: fixed; inset: 0; z-index: 0;
  background: var(--grad-ink);
  overflow: hidden;
  /* opacity is scrubbed by JS as the story ends */
}
.film__layer {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.1s linear;
  will-change: opacity;
}
.film__layer video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* atmosphere, not subject: desaturate, dim, soften — also veils the corner mark */
  filter: saturate(0.5) brightness(0.5) contrast(1.05) blur(1.5px);
  /* zoom + nudge pushes the bottom-right watermark into the dark vignette / off-frame */
  transform: scale(1.09) translate(1.4%, 2.2%);
}
.film__layer--1 { opacity: 1; }
/* 65–75% dark cinematic grade so the video reads as atmosphere behind the UI */
.film__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* heavy bottom-right corner mask — hides the Gemini/Veo sparkle */
    radial-gradient(42% 50% at 100% 100%, rgba(5,7,13,0.98) 0%, rgba(5,7,13,0.86) 26%, rgba(5,7,13,0.4) 52%, transparent 66%),
    /* edge vignette */
    radial-gradient(125% 100% at 50% 32%, transparent 34%, rgba(6,8,15,0.72) 100%),
    /* top/bottom cinematic bars */
    linear-gradient(180deg, rgba(6,8,15,0.78) 0%, rgba(6,8,15,0.30) 20%, rgba(6,8,15,0.30) 55%, rgba(6,8,15,0.9) 100%);
}
/* flat dark veil ~68% keeps the interface dominant everywhere */
.film__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(7,10,18,0.4);
}
.film__tint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color;
  background: linear-gradient(180deg, rgba(11,17,32,0.6), rgba(6,8,15,0.6));
  opacity: 0.5;
}
.film__grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 100%{transform:translate(-8%,6%)} }
.noscript-film { position: absolute; inset: 0; background: var(--grad-ink); }

/* soft ambient particles */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(190,215,255,0.5); box-shadow: 0 0 8px rgba(120,170,255,0.6);
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateY(10vh) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  to { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); }
.hero__inner { width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__eyebrow { color: var(--teal-300); margin-bottom: 1.6rem; }
.hero__eyebrow::before { background: linear-gradient(90deg, var(--teal-300), transparent); }
.hero h1 {
  font-size: var(--fs-hero); color: #fff; font-weight: 700;
  letter-spacing: -0.035em; line-height: 0.98;
}
.hero h1 .soft { display: block; color: rgba(255,255,255,0.55); font-weight: 500; font-size: 0.44em; letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.3rem; }
.hero h1 .soft em { font-style: normal; color: #fff; }
.hero__body { margin-top: 1.9rem; max-width: 46ch; font-size: var(--fs-lead); color: rgba(226,232,240,0.78); }
.hero__cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__pills { margin-top: 2.6rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* single elegant hero panel (replaces the four competing cards) */
.hero__cards { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.rate-card__ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.rate-card__ic svg { width: 20px; height: 20px; }
.star { color: #FFD26A; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

.hero__panel {
  width: min(380px, 100%);
  padding: 1.5rem 1.6rem 1.4rem; border-radius: 24px;
  background: var(--glass-dark-2);
  backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(150%);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-glass);
  will-change: transform;
}
.hp__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.hp__rec { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 500; color: rgba(226,232,240,0.86); }
.hp__rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF5B6E; box-shadow: 0 0 10px #FF5B6E; animation: recpulse 1.8s ease infinite; }
@keyframes recpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hp__lang { font-size: 0.72rem; color: rgba(203,213,225,0.7); padding: 0.3em 0.7em; border-radius: 100px; background: rgba(255,255,255,0.06); }
.hp__wave { display: flex; align-items: center; gap: 4px; height: 40px; margin-bottom: 1.2rem; }
.hp__wave span { flex: 1; border-radius: 3px; background: var(--grad-brand-soft); opacity: 0.85; height: 30%; animation: wave 1.3s ease-in-out infinite; }
.hp__wave span:nth-child(odd) { animation-delay: 0.15s; }
.hp__wave span:nth-child(3n) { animation-delay: 0.3s; }
.hp__wave span:nth-child(3n+1) { animation-delay: 0.45s; }
@keyframes wave { 0%,100%{height:18%} 50%{height:90%} }
.hp__line { font-size: 0.92rem; line-height: 1.5; color: rgba(226,232,240,0.92); background: rgba(255,255,255,0.05); padding: 0.75em 0.9em; border-radius: 12px; }
.hp__line b { display: block; font-size: 0.7rem; color: var(--teal-300); margin-bottom: 0.25rem; font-weight: 600; }
.hp__tag { display: inline-block; margin-top: 0.7rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.3em 0.75em; border-radius: 100px; background: rgba(16,185,129,0.16); color: #6EE7B7; }
.hp__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.hp__foot span { font-size: 0.8rem; color: rgba(203,213,225,0.7); }
.hp__foot b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; letter-spacing: -0.02em; }
.hp__foot b small { font-size: 0.9rem; color: var(--slate-400); font-weight: 600; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.5); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:6px; border-radius:2px; background:#fff; animation: mouse 1.6s var(--ease-cine) infinite; }
@keyframes mouse { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,10px)} }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cards { min-height: 0; margin-top: 1.5rem; justify-content: flex-start; }
  .hero__panel { width: min(380px, 100%); }
}

/* slow, cinematic hero entrance (~30% slower, restrained stagger) */
.hero [data-reveal] { transition-duration: 1.5s; }
.hero__eyebrow.is-in { transition-delay: 0.1s; }
.hero [data-reveal-delay="1"] { transition-delay: 0.32s; }
.hero [data-reveal-delay="2"] { transition-delay: 0.56s; }
.hero [data-reveal-delay="3"] { transition-delay: 0.80s; }
.hero [data-reveal-delay="4"] { transition-delay: 1.02s; }
.hero__cards .hero__panel { animation: panelIn 1.6s var(--ease-cine) 0.7s both; }
@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Signal strip (relocated supporting content) ---------------- */
.signal { position: relative; z-index: 2; padding: 0.5rem 0 3.5rem; }
.signal__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.signal__card {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.15rem; border-radius: 18px;
  background: var(--glass-dark); border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(var(--blur)) saturate(150%); -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: 0 20px 44px -26px rgba(0,0,0,0.7);
  transition: transform 0.6s var(--ease-cine), border-color 0.5s;
}
.signal__card:hover { transform: translateY(-4px); border-color: rgba(87,224,214,0.3); }
.signal__ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.signal__ic svg { width: 19px; height: 19px; }
.signal__card b { display: block; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em; }
.signal__card small { display: block; color: rgba(203,213,225,0.62); font-size: 0.72rem; margin-top: 1px; }
.signal__card .star { margin-left: auto; font-size: 0.85rem; }
.signal__trust { margin-top: 2.4rem; text-align: center; }
.signal__trust-label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(226,232,240,0.42); }
.signal__logos { display: flex; flex-wrap: wrap; gap: 2.4rem; justify-content: center; margin-top: 1.2rem; opacity: 0.6; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: #fff; }
@media (max-width: 860px) { .signal__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .signal__cards { grid-template-columns: 1fr; } }

/* ---------------- Story (pinned scroll chapters) ---------------- */
.story { position: relative; z-index: 2; }
.story__pin { position: relative; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.story__chapter {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 0 var(--gutter); opacity: 0; will-change: opacity, transform;
}
.story__chapter .k { max-width: 22ch; }
.story__stat {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(5rem, 20vw, 15rem); line-height: 0.9; color: #fff;
  background: var(--grad-brand-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.story__stat sup { font-size: 0.34em; vertical-align: super; -webkit-text-fill-color: #fff; margin-left: 0.1em; }
.story h2 { font-size: var(--fs-h2); color: #fff; margin-top: 0.4rem; }
.story p { color: rgba(226,232,240,0.8); font-size: var(--fs-lead); max-width: 54ch; margin: 1.2rem auto 0; }
.story p b { color: #fff; }
.story .grad-text { background: var(--grad-brand-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* chaos chips — the "brain filling up" */
.chaos { position: absolute; inset: 0; pointer-events: none; }
.chaos i {
  position: absolute; white-space: nowrap;
  padding: 0.5em 0.95em; border-radius: 100px; font-size: clamp(0.7rem, 1.1vw, 0.92rem); font-weight: 500;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  opacity: 0; will-change: transform, opacity;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.6);
}
.chaos i.hot { border-color: rgba(87,224,214,0.4); color: #fff; }

/* ---------------- Compare (10% vs 90%) ---------------- */
.compare { position: relative; z-index: 2; }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.compare__card { padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius); position: relative; overflow: hidden; }
.compare__card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.compare__card .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.6rem); letter-spacing:-0.03em; line-height:1; margin-bottom: 0.8rem; }
.compare__card p { font-size: 0.98rem; }
.compare__card--dim { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); color: rgba(203,213,225,0.7); }
.compare__card--dim .big { color: rgba(148,163,184,0.7); }
.compare__card--dim h3 { color: rgba(226,232,240,0.85); }
.compare__card--zap {
  background: linear-gradient(135deg, rgba(47,107,255,0.16), rgba(22,198,192,0.12));
  border: 1px solid rgba(87,224,214,0.28); color: rgba(226,232,240,0.9);
  box-shadow: 0 30px 80px -40px rgba(22,198,192,0.5);
}
.compare__card--zap .big { color: #fff; background: var(--grad-brand-soft); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.compare__card--zap h3 { color: #fff; }
@media (max-width: 720px) { .compare__grid { grid-template-columns: 1fr; } }

/* ---------------- Steps (closed loop) — glass cards assembling ---------------- */
.loop__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3.5rem; }
.loop__card { padding: 1.8rem 1.6rem 2rem; }
.loop__num { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--accent); letter-spacing: 0.1em; }
.loop__ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin: 1.1rem 0 1.3rem; background: var(--grad-brand); color:#fff; box-shadow: 0 12px 30px -12px rgba(47,107,255,0.6); }
.loop__ic svg { width: 25px; height: 25px; }
.loop__card h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }
.loop__card p { font-size: 0.95rem; color: var(--slate-600); }
.loop__line { position: absolute; top: 92px; right: -0.6rem; width: 1.2rem; height: 2px; background: linear-gradient(90deg, var(--accent-400), transparent); display: none; }
@media (max-width: 980px) { .loop__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loop__grid { grid-template-columns: 1fr; } }

/* ---------------- Interactive demo (pick a step) ---------------- */
.demo__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.4rem; align-items: start; margin-top: 3rem; }
.demo__steps { display: flex; flex-direction: column; gap: 0.7rem; }
.demo__step {
  text-align: left; padding: 1.15rem 1.3rem; border-radius: 18px; width: 100%;
  border: 1px solid var(--slate-200); background: #fff; transition: all 0.4s var(--ease-cine);
  display: flex; gap: 1rem; align-items: flex-start;
}
.demo__step:hover { border-color: var(--slate-300); }
.demo__step.is-active { border-color: transparent; background: var(--graphite-900); box-shadow: var(--shadow-lift); }
.demo__step .n { width: 28px; height: 28px; border-radius: 9px; flex:none; display:grid; place-items:center; font-size:0.82rem; font-weight:700; background: var(--paper-2); color: var(--slate-600); transition: 0.4s; }
.demo__step.is-active .n { background: var(--grad-brand); color:#fff; }
.demo__step b { font-size: 1.02rem; font-family: var(--font-display); letter-spacing:-0.01em; color: var(--slate-900); transition: 0.4s; }
.demo__step.is-active b { color: #fff; }
.demo__step p { font-size: 0.88rem; color: var(--slate-500); margin-top: 0.25rem; transition: 0.4s; max-height: 0; opacity: 0; overflow: hidden; }
.demo__step.is-active p { max-height: 80px; opacity: 1; margin-top: 0.4rem; color: rgba(203,213,225,0.75); }

.demo__stage { position: relative; border-radius: var(--radius); min-height: 440px; }
.demo__panel { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease-cine), transform 0.5s var(--ease-cine); pointer-events: none; }
.demo__panel.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.mock {
  background: #0C1322; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-lift); color: #fff; height: 100%;
}
.mock__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mock__title { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.mock__badges { display: flex; gap: 0.4rem; }
.mock__badge { font-size: 0.68rem; padding: 0.3em 0.7em; border-radius: 100px; background: rgba(255,255,255,0.08); color: rgba(203,213,225,0.85); }
.mock__badge.live { background: rgba(16,185,129,0.16); color: #6EE7B7; }
.turn { margin-bottom: 1rem; }
.turn__who { font-size: 0.72rem; color: var(--slate-400); margin-bottom: 0.3rem; }
.turn__who.agent { color: var(--teal-300); }
.turn__bubble { font-size: 0.92rem; line-height: 1.5; color: rgba(226,232,240,0.92); background: rgba(255,255,255,0.05); padding: 0.7em 0.9em; border-radius: 12px; display: inline-block; }
.turn__tag { display:inline-block; margin-top: 0.45rem; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.28em 0.7em; border-radius: 100px; }
.turn__tag.value { background: rgba(47,107,255,0.18); color: #93B4FF; }
.turn__tag.prod { background: rgba(16,185,129,0.16); color: #6EE7B7; }
.turn__tag.obj { background: rgba(251,146,60,0.16); color: #FDBA74; }
.mock__score { display:flex; align-items:flex-end; justify-content:space-between; }
.mock__score .val { font-size: 3rem; font-family: var(--font-display); font-weight: 800; letter-spacing:-0.03em; }
.mock__score .val small { font-size: 1.1rem; color: var(--slate-400); font-weight:600; }
.mock__score .avg { font-size: 0.78rem; color: var(--slate-400); }
.mock__score .delta { font-size: 0.82rem; font-weight: 700; color: #6EE7B7; background: rgba(16,185,129,0.14); padding: 0.4em 0.8em; border-radius: 100px; }
.mock__bar { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.08); margin-top: 1.2rem; overflow: hidden; }
.mock__bar i { display:block; height:100%; width: 72%; border-radius: 100px; background: var(--grad-brand); }
.mock__list { margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.mock__row { display:flex; align-items:center; gap:0.8rem; font-size:0.88rem; color: rgba(226,232,240,0.9); padding: 0.7em 0.9em; background: rgba(255,255,255,0.04); border-radius: 12px; }
.mock__row .chk { width:20px; height:20px; border-radius:6px; background: rgba(16,185,129,0.18); color:#6EE7B7; display:grid; place-items:center; flex:none; }
.mock__row .chk svg { width:12px; height:12px; }
.mock__metrics { display:grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; margin-top: 0.4rem; }
.mock__metric { background: rgba(255,255,255,0.04); border-radius: 14px; padding: 1rem; text-align:center; }
.mock__metric b { display:block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color:#fff; letter-spacing:-0.02em; }
.mock__metric span { font-size: 0.72rem; color: var(--slate-400); }
@media (max-width: 860px) { .demo__grid { grid-template-columns: 1fr; } }

/* ---------------- Timeline (three steps) ---------------- */
.timeline { position: relative; margin-top: 3.5rem; display: grid; gap: 2.5rem; }
.timeline::before { content:""; position:absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--teal)); opacity: 0.35; }
.tl { display: grid; grid-template-columns: 56px 1fr; gap: 1.6rem; align-items: start; position: relative; }
.tl__dot { width: 56px; height: 56px; border-radius: 50%; display:grid; place-items:center; font-family: var(--font-display); font-weight:800; color:#fff; background: var(--graphite-900); border: 2px solid rgba(47,107,255,0.5); font-size: 1.1rem; box-shadow: 0 0 0 6px var(--paper); z-index:1; }
.tl__body h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.tl__body p { font-size: 1rem; color: var(--slate-600); max-width: 52ch; }

/* ---------------- Who it's for ---------------- */
.who__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 3.2rem; }
.who__card { overflow: hidden; }
.who__card .k { display:flex; align-items:center; gap: 0.8rem; margin-bottom: 1.1rem; }
.who__ic { width: 46px; height: 46px; border-radius: 13px; display:grid; place-items:center; flex:none; color:#fff; box-shadow: 0 12px 26px -12px rgba(15,23,42,0.4); }
.who__ic svg { width: 22px; height: 22px; }
.who__card:nth-child(1) .who__ic { background: linear-gradient(135deg,#3B82F6,#6366F1); }
.who__card:nth-child(2) .who__ic { background: linear-gradient(135deg,#16C6C0,#10B981); }
.who__card:nth-child(3) .who__ic { background: linear-gradient(135deg,#F59E0B,#F43F5E); }
.who__card:nth-child(4) .who__ic { background: linear-gradient(135deg,#8B5CF6,#EC4899); }
.who__card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.who__card p { font-size: 0.98rem; color: var(--slate-600); }
@media (max-width: 760px) { .who__grid { grid-template-columns: 1fr; } }

/* ---------------- Stats + testimonial (dark) ---------------- */
.proof__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; text-align: center; }
.proof__stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); letter-spacing:-0.03em; background: var(--grad-brand-soft); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1; }
.proof__stat p { font-size: 0.9rem; color: var(--slate-400); margin-top: 0.7rem; }
.proof__quote { margin-top: 4.5rem; max-width: 60ch; margin-inline: auto; text-align: center; }
.proof__quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; letter-spacing:-0.02em; color:#fff; }
.proof__quote blockquote .grad-text { background: var(--grad-brand-soft); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.proof__quote cite { display:block; margin-top: 1.6rem; font-style: normal; font-size: 0.92rem; color: var(--slate-400); }
.proof__quote cite b { color:#fff; font-weight:600; }
@media (max-width: 720px) { .proof__stats { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.4rem; } }

/* ---------------- FAQ ---------------- */
.faq__list { max-width: 820px; margin: 3rem auto 0; }
.faq__item { border-bottom: 1px solid var(--slate-200); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.55rem 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; color: var(--slate-900); letter-spacing:-0.01em; }
.faq__ic { flex:none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--slate-300); display:grid; place-items:center; transition: 0.4s var(--ease-cine); position: relative; }
.faq__ic::before, .faq__ic::after { content:""; position:absolute; background: var(--slate-600); border-radius:2px; transition: 0.4s var(--ease-cine); }
.faq__ic::before { width: 13px; height: 2px; } .faq__ic::after { width: 2px; height: 13px; }
.faq__item.is-open .faq__ic { background: var(--graphite-900); border-color: var(--graphite-900); transform: rotate(180deg); }
.faq__item.is-open .faq__ic::before, .faq__item.is-open .faq__ic::after { background:#fff; }
.faq__item.is-open .faq__ic::after { transform: scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height 0.5s var(--ease-cine); }
.faq__a p { padding: 0 0 1.7rem; max-width: 68ch; font-size: 1.02rem; color: var(--slate-600); }

/* ---------------- Final CTA ---------------- */
.final { position: relative; z-index: 2; text-align: center; }
.final__card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  background: linear-gradient(135deg, #0B1120 0%, #12203C 60%, #0C2E3A 100%);
  border: 1px solid rgba(87,224,214,0.18);
  box-shadow: var(--shadow-lift);
}
.final__card::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(60% 90% at 50% 0%, rgba(47,107,255,0.28), transparent 60%);
}
.final__card h2 { position: relative; font-size: var(--fs-h1); color:#fff; }
.final__card p { position: relative; margin: 1.4rem auto 0; max-width: 52ch; color: rgba(226,232,240,0.8); font-size: var(--fs-lead); }
.final__cta { position: relative; margin-top: 2.4rem; display:flex; gap: 1rem; justify-content:center; flex-wrap: wrap; }

/* section that sits above the fixed film needs solid bg */
.on-film { position: relative; z-index: 2; }
.veil-paper { background: var(--paper); }

/* ============================================================
   REFINEMENT · immersive editorial sections + seamless motion
   ============================================================ */

/* — continuous scroll thread (shared connective motion) — */
.spine { position: fixed; top: 0; left: 26px; width: 2px; height: 100vh; z-index: 60; pointer-events: none; }
.spine__track { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(148,163,184,0.14) 12%, rgba(148,163,184,0.14) 88%, transparent); }
.spine__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--accent), var(--teal)); box-shadow: 0 0 12px rgba(47,107,255,0.5); border-radius: 2px; }
.spine__node { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; margin-top: -4px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 12px var(--teal-300); opacity: 0; transition: opacity 0.4s; }
.spine.is-active .spine__node { opacity: 1; }
@media (max-width: 1100px) { .spine { display: none; } }

/* — section seams: blend dark ↔ light instead of hard cuts — */
.seam-from-ink { position: relative; }
.seam-from-ink::before { content:""; position: absolute; left:0; right:0; top:0; height: 90px; background: linear-gradient(180deg, var(--graphite-900), transparent); pointer-events: none; z-index: 0; }
.seam-from-ink > * { position: relative; z-index: 1; }
.seam-to-ink::after { content:""; position: absolute; left:0; right:0; bottom:0; height: 180px; background: linear-gradient(180deg, transparent, var(--graphite-900)); pointer-events: none; }

/* — Closed loop: assembling glass cards + flowing connection rail — */
.loop { position: relative; }
.loop__rail { position: absolute; left: 6%; right: 6%; top: 118px; height: 2px; z-index: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,0.28) 8%, rgba(22,198,192,0.28) 92%, transparent);
  overflow: visible; }
.loop__rail i { position: absolute; top: 50%; left: 0; width: 90px; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--teal-300), transparent);
  filter: blur(0.4px); animation: railPulse 4.5s var(--ease-soft) infinite; }
@keyframes railPulse { 0%{left:-6%;opacity:0} 8%{opacity:1} 92%{opacity:1} 100%{left:100%;opacity:0} }
.loop__grid { position: relative; z-index: 1; }
.loop__card { transform-origin: center bottom; }
/* assemble-in easing handled by data-reveal; add a gentle rotate on entry */
.loop__card[data-reveal] { transform: translateY(34px) scale(0.96) rotate(-0.6deg); }
.loop__card[data-reveal].is-in { transform: none; }
.loop__node { position: absolute; top: -35px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--graphite-900); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--paper); z-index: 2;
  opacity: 0; transform: scale(0); transition: opacity 0.5s var(--ease-cine), transform 0.5s var(--ease-cine); }
.loop__card.is-in .loop__node { opacity: 1; transform: scale(1); transition-delay: 0.35s; }
@media (max-width: 980px) { .loop__rail { display: none; } .loop__node { display: none; } }

/* — Who it's for: floating 3D feature tiles — */
.who__grid { perspective: 1400px; }
.who__card { overflow: visible; transform-style: preserve-3d; transition: transform 0.4s var(--ease-soft), box-shadow 0.5s, border-color 0.5s; will-change: transform; }
.who__card .who__ic, .who__card h3, .who__card p { transform: translateZ(28px); }
.who__card .k { transform-style: preserve-3d; }
.who__glow { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(47,107,255,0.14), transparent 55%); }
.who__card:hover .who__glow { opacity: 1; }

/* — Particle-driven statistics — */
.proof { position: relative; overflow: hidden; }
.proof__particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7; }
.proof .wrap { position: relative; z-index: 1; }

/* — Cinematic testimonial panel — */
.proof__quote {
  position: relative; margin-top: 5rem; padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg); overflow: hidden; max-width: 900px;
  background: linear-gradient(135deg, rgba(19,28,46,0.6), rgba(11,17,32,0.4));
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-lift);
}
.proof__quote::before { content:"\201C"; position: absolute; top: -0.35em; left: 0.2em; font-family: var(--font-display); font-size: 12rem; line-height: 1; color: rgba(87,224,214,0.12); pointer-events: none; }
.proof__spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 30% 0%, rgba(47,107,255,0.2), transparent 60%); }
.proof__quote blockquote { position: relative; }

/* — reveal upgrade: cinematic clip wipe for section heads — */
.head[data-reveal] .grad-wipe { }
