/* =========================================================
   CogniFactory — story-driven services website
   Plain CSS, no build step. Colours live in :root below.
   ========================================================= */

:root {
  --bg: #06070b;
  --bg-2: #0b0d14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #9ba3b5;
  --dim: #6b7286;

  /* chapter colours */
  --c1: #38bdf8; --c1-soft: rgba(56, 189, 248, 0.14);
  --c2: #fb923c; --c2-soft: rgba(251, 146, 60, 0.14);
  --c3: #a78bfa; --c3-soft: rgba(167, 139, 250, 0.16);
  --c4: #a3e635; --c4-soft: rgba(163, 230, 53, 0.13);
  --grad: linear-gradient(110deg, #38bdf8 0%, #a78bfa 45%, #f472b6 75%, #fb923c 100%);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-style: normal; }
::selection { background: #a78bfa; color: #06070b; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(96px, 14vw, 160px) 0; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 em, h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; padding-right: .06em; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- typography blocks ---------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.eyebrow { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c4); box-shadow: 0 0 0 0 rgba(163, 230, 53, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); } }
.display { font-size: clamp(36px, 5.6vw, 72px); margin-top: 20px; max-width: 16ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  --pad: 16px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 99px; border: 1px solid transparent;
  font: 600 16px/1 var(--f-body); cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn--sm { --pad: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--light { background: var(--text); color: #0a0b10; }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); background: var(--surface); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .35); background: var(--surface-2); }
.btn--grad { background: var(--grad); background-size: 200% 100%; color: #08090d; box-shadow: 0 10px 40px -10px rgba(167, 139, 250, .6); }
.btn--grad:hover { background-position: 100% 0; box-shadow: 0 16px 50px -10px rgba(244, 114, 182, .6); }
.btn--wa { background: #25d366; color: #052e14; margin-top: 28px; }
.btn--wa svg { width: 20px; height: 20px; }
.btn--wa:hover { background: #3be27a; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(6, 7, 11, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--f-display); letter-spacing: -0.03em; }
.logo__mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.logo__mark svg { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 99px; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__mobile { position: fixed; inset: var(--nav-h) 0 0; background: rgba(6, 7, 11, .97); backdrop-filter: blur(20px); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.nav__mobile a:not(.btn) { padding: 16px 4px; font: 500 24px/1.2 var(--f-display); border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 24px; }

/* ---------- chapter rail ---------- */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 18px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; letter-spacing: .04em; }
.rail i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .35s var(--ease); }
.rail span { opacity: 0; transform: translateX(-6px); transition: all .35s var(--ease); white-space: nowrap; }
.rail:hover span { opacity: 1; transform: none; }
.rail:hover { background: rgba(6, 7, 11, .85); padding: 12px 14px 12px 0; margin-left: -2px; border-radius: 0 14px 14px 0; }
.rail a.is-active { color: var(--text); }
.rail a.is-active i { background: var(--c); border-color: var(--c); box-shadow: 0 0 16px var(--c); transform: scale(1.3); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 78% 35%, rgba(167, 139, 250, .22), transparent 70%),
    radial-gradient(35% 35% at 20% 20%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(30% 30% at 60% 85%, rgba(244, 114, 182, .12), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 4%, 0) scale(1.06); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(40px, 5.4vw, 76px); margin: 26px 0 0; letter-spacing: -0.035em; }
.hero__title em { display: block; }
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chips span { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 99px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--text); animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* hero phone */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: min(330px, 80vw); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #23263a, #0d0f18); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 80px -20px rgba(167, 139, 250, .35); transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-14px); } }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 99px; background: #000; z-index: 2; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f5f9; color: #0f1222; padding: 56px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 99px; background: #fff; box-shadow: 0 4px 14px rgba(15, 18, 34, .08); font-size: 14px; font-weight: 500; min-height: 42px; }
.search svg { width: 16px; height: 16px; color: #6b7286; flex: none; }
.search__caret { width: 2px; height: 16px; background: #4f46e5; animation: blink 1s steps(1) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.map { position: relative; height: 26%; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%), linear-gradient(0deg, transparent 58%, #fff 58% 62%, transparent 62%), linear-gradient(35deg, transparent 30%, #fff 30% 33%, transparent 33%), #dfe7da; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: #ef4444; transform: rotate(-45deg) scale(0); transition: transform .5s var(--ease); }
.pin--you { background: #9ca3af; opacity: .5; }
.hero__visual.is-searching .pin:not(.pin--you) { transform: rotate(-45deg) scale(1); }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.results li { display: flex; gap: 10px; align-items: center; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(15, 18, 34, .06); opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); }
.results li.is-in { opacity: 1; transform: none; }
.results i { width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--bgc); }
.results b { display: block; font-size: 13.5px; line-height: 1.2; }
.results small { font-size: 11.5px; color: #6b7286; }
.results small em { color: #f59e0b; }
.ghost { margin-top: auto; padding: 12px; border: 1.5px dashed #c7cbd8; border-radius: 14px; text-align: center; opacity: 0; transition: opacity .6s; }
.ghost strong { display: block; font-size: 13.5px; color: #6b7286; }
.ghost span { font-size: 11.5px; color: #ef4444; font-weight: 600; }
.hero__visual.is-done .ghost { opacity: 1; animation: shake .6s .1s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.float-card { position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px; background: rgba(17, 19, 30, .78); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.float-card b { font: 600 20px/1.1 var(--f-display); }
.float-card span { font-size: 12.5px; color: var(--muted); }
.float-card--a { left: -4%; top: 18%; animation: float2 6s ease-in-out infinite; }
.float-card--b { right: -2%; bottom: 16%; animation: float2 7s ease-in-out -2s infinite; }
.float-card--b b { color: #fbbf24; }
@keyframes float2 { 50% { transform: translateY(-10px); } }

/* ---------- prologue / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.stat { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.stat__num { font: 600 clamp(48px, 5vw, 68px)/1 var(--f-display); letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.stat__label strong { color: var(--text); font-weight: 600; }
.stat__src { margin-top: 18px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.bridge { margin-top: 72px; font: 500 clamp(22px, 2.6vw, 32px)/1.3 var(--f-display); letter-spacing: -0.02em; max-width: 30ch; }

/* tilt glow (shared) */
.tilt { transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease); transform-style: preserve-3d; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .09), transparent 60%); }
.tilt:hover::after { opacity: 1; }
.tilt:hover { border-color: var(--line-2); }

/* ---------- journey ---------- */
.journey__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.journey__line { position: absolute; left: 0; right: 0; top: -36px; width: 100%; height: 40px; overflow: visible; }
.journey__line path { fill: none; stroke: url(#lg); stroke: #a78bfa; stroke-width: 1.5; stroke-dasharray: 6 8; opacity: .5; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.jcard { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), transparent 70%); overflow: hidden; }
.jcard::before { content: ""; position: absolute; inset: auto -30% -50% -30%; height: 70%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .16; transition: opacity .4s, transform .6s var(--ease); }
.jcard:hover::before { opacity: .32; transform: translateY(-14%); }
.jcard:hover { transform: translateY(-6px); }
.jcard__n { font: 500 14px/1 var(--f-display); color: var(--c); letter-spacing: .1em; }
.jcard h3 { font-size: 28px; margin-top: auto; }
.jcard p { color: var(--muted); font-size: 15px; }
.jcard__tag { align-self: flex-start; font-size: 12px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- chapters ---------- */
.chapter { position: relative; padding: clamp(110px, 14vw, 170px) 0 80px; }
.chapter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; pointer-events: none;
  background: radial-gradient(50% 60% at 15% 0%, var(--c-soft), transparent 70%); }
.chapter__head { position: relative; max-width: 900px; }
.chapter__label { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.chapter__label span { padding: 7px 12px; border-radius: 99px; background: var(--c-soft); color: var(--c); font: 600 12.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.chapter__title { font-size: clamp(64px, 12vw, 168px); letter-spacing: -0.055em; line-height: .92; margin-top: 22px; color: var(--c);
  background: linear-gradient(180deg, #fff 10%, var(--c) 110%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quotes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.quotes p { padding: 10px 16px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; color: #cfd3df; font-style: italic; }

/* scrollytelling */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 80px; align-items: start; }
.story__stage { order: 2; position: sticky; top: calc(var(--nav-h) + 6vh); height: calc(100vh - var(--nav-h) - 12vh); min-height: 460px; max-height: 720px; }
.story__steps { order: 1; padding-bottom: 10vh; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 0; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step__n { font: 500 14px/1 var(--f-display); color: var(--c); letter-spacing: .1em; }
.step h3 { font-size: clamp(28px, 3vw, 40px); }
.step p { color: var(--muted); font-size: 17.5px; max-width: 48ch; }
.fact { margin-top: 8px; padding: 16px 18px; border-left: 2px solid var(--c); background: linear-gradient(90deg, var(--c-soft), transparent); border-radius: 0 12px 12px 0; font-size: 15.5px !important; color: #d6d9e4 !important; }
.fact b { color: var(--c); font-weight: 600; }
.fact small { display: block; margin-top: 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.deliver { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.deliver li { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.deliver li::before { content: "✓"; color: var(--c); margin-right: 6px; }

/* stage base */
.stage { position: relative; width: 100%; height: 100%; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; container-type: size;
  background: radial-gradient(70% 60% at 50% 40%, var(--c-soft), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stage::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%); }
.stage > * { position: absolute; transition: transform .8s var(--ease), opacity .6s var(--ease), filter .6s; }
.stage__note { right: 16px; bottom: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* --- presence stage --- */
.browser { left: 7%; top: 14%; width: 78%; height: 62%; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 9%; min-height: 22px; padding: 0 3%; background: #eceef4; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; }
.browser__bar i:nth-child(1) { background: #f87171; } .browser__bar i:nth-child(2) { background: #fbbf24; } .browser__bar i:nth-child(3) { background: #34d399; }
.browser__url { margin-left: 3%; flex: 1; font-size: max(10px, 2.2cqw); color: #6b7286; background: #fff; padding: 3px 10px; border-radius: 99px; white-space: nowrap; overflow: hidden; }
.browser__url b { color: #0f172a; font-weight: 600; }
.browser__body { position: relative; height: 91%; padding: 4% 5%; display: flex; flex-direction: column; gap: 6%; }
.site-nav { display: flex; align-items: center; gap: 5%; }
.site-logo { width: 9%; aspect-ratio: 3/1; border-radius: 4px; background: #d1d5db; transition: background .6s; }
.site-nav .ln { width: 8%; height: 5px; border-radius: 4px; background: #e5e7eb; }
.site-nav .ln:first-of-type { margin-left: auto; }
.site-btn { width: 12%; height: 14px; border-radius: 99px; background: #d1d5db; transition: background .6s; }
.site-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; flex: 1; }
.site-hero__txt { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.site-hero__txt .h { height: 14px; width: 92%; border-radius: 5px; background: #d1d5db; transition: background .6s; }
.site-hero__txt .h--s { width: 64%; }
.site-hero__txt .p { height: 6px; width: 86%; border-radius: 4px; background: #e5e7eb; }
.site-hero__txt .p--s { width: 60%; }
.site-cta { margin-top: 6px; align-self: flex-start; font-size: max(9px, 1.9cqw); font-weight: 700; padding: 5px 12px; border-radius: 99px; color: transparent; background: #d1d5db; transition: all .6s; }
.site-hero__img { border-radius: 10px; background: repeating-linear-gradient(45deg, #e5e7eb 0 8px, #eef0f4 8px 16px); transition: background .6s; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 22%; }
.site-cards span { border-radius: 8px; background: #eef0f4; border: 1px dashed #d1d5db; transition: all .6s; }
.brandkit { left: 52%; top: 8%; width: 42%; padding: 4%; border-radius: 16px; background: rgba(17, 19, 30, .9); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px #000; display: grid; gap: 10px; backdrop-filter: blur(10px); }
.brandkit__logo { width: 22%; aspect-ratio: 1; color: var(--c1); }
.brandkit__sw { display: flex; gap: 6px; }
.brandkit__sw i { flex: 1; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); }
.brandkit__type { font: 600 max(18px, 5cqw)/1 var(--f-display); }
.brandkit__type small { font: 400 11px/1 var(--f-body); color: var(--muted); margin-left: 6px; }
.mini-phone { right: 6%; bottom: 8%; width: 22%; aspect-ratio: 9/18; border-radius: 18px; background: #fff; border: 5px solid #1d2031; box-shadow: 0 30px 60px -10px #000; padding: 22px 9px 9px; display: flex; flex-direction: column; gap: 7%; opacity: 0; transform: translateY(30%); }
.mini-phone span { border-radius: 4px; background: #e5e7eb; }
.mp-h { height: 7%; width: 80%; background: #0f172a !important; }
.mp-img { flex: 1; background: linear-gradient(135deg, #38bdf8, #6366f1) !important; border-radius: 8px !important; }
.mp-p { height: 4%; }
.mp-btn { height: 9%; background: #fbbf24 !important; border-radius: 99px !important; }
.gbp { left: 4%; bottom: 6%; width: 52%; padding: 3.5%; border-radius: 16px; background: #fff; color: #0f172a; box-shadow: 0 30px 60px -10px #000; opacity: 0; transform: translateY(30%); }
.gbp__top { display: flex; gap: 10px; align-items: center; }
.gbp__pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ef4444; flex: none; }
.gbp b { display: block; font-size: max(12px, 2.6cqw); }
.gbp small { font-size: max(10px, 2cqw); color: #b45309; }
.gbp__acts { display: flex; gap: 6px; margin-top: 10px; }
.gbp__acts span { flex: 1; text-align: center; font-size: max(9px, 1.8cqw); font-weight: 600; padding: 6px 0; border-radius: 99px; background: #e0f2fe; color: #0369a1; }
.socials { right: 5%; top: 8%; display: flex; gap: 8px; opacity: 0; transform: translateY(-20%); }
.socials span { width: max(30px, 7.5cqw); aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font: 700 12px/1 var(--f-display); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--c1); box-shadow: 0 10px 30px -10px #000; }
/* presence states */
.stage--presence[data-state="0"] .browser { filter: grayscale(1); opacity: .55; transform: scale(.94); }
.stage--presence[data-state="1"] .brandkit, .stage--presence[data-state="2"] .brandkit { opacity: 0; transform: translate(10%, -20%) scale(.8); pointer-events: none; }
.stage--presence:not([data-state="0"]) .site-logo { background: #0ea5e9; }
.stage--presence:not([data-state="0"]) .site-btn, .stage--presence:not([data-state="0"]) .site-cta { background: #fbbf24; color: #0f172a; }
.stage--presence:not([data-state="0"]) .site-hero__txt .h { background: #0f172a; }
.stage--presence:not([data-state="0"]) .site-hero__img { background: linear-gradient(135deg, #38bdf8, #6366f1 60%, #a78bfa); }
.stage--presence:not([data-state="0"]) .site-cards span { background: #f1f5f9; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(15, 23, 42, .06); }
.stage--presence[data-state="1"] .mini-phone { opacity: 1; transform: none; }
.stage--presence[data-state="2"] .browser { transform: scale(.9) translate(-4%, -10%); opacity: .5; }
.stage--presence[data-state="2"] .mini-phone { opacity: 1; transform: translateY(-6%); }
.stage--presence[data-state="2"] .gbp, .stage--presence[data-state="2"] .socials { opacity: 1; transform: none; }
.stage--presence[data-state="2"] .socials span { animation: bob 3s ease-in-out infinite; }
.socials span:nth-child(2) { animation-delay: -.5s !important; } .socials span:nth-child(3) { animation-delay: -1s !important; } .socials span:nth-child(4) { animation-delay: -1.5s !important; } .socials span:nth-child(5) { animation-delay: -2s !important; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* --- marketing stage --- */
.serp { left: 6%; top: 7%; width: 58%; padding: 4%; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 30px 70px -20px #000; }
.serp__q { display: flex; align-items: center; gap: 8px; font-size: max(11px, 2.3cqw); font-weight: 500; padding: 8px 12px; border-radius: 99px; background: #f1f5f9; }
.serp__q svg { width: 14px; color: #64748b; }
.serp__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: r; }
.serp__list li { counter-increment: r; position: relative; padding: 7px 10px 7px 34px; border-radius: 10px; background: #f8fafc; }
.serp__list li::before { content: counter(r); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 700 12px/1 var(--f-display); color: #94a3b8; }
.serp__list b { display: block; font-size: max(11px, 2.2cqw); }
.serp__list small { font-size: max(9.5px, 1.8cqw); color: #64748b; }
.serp__you { background: #fff7ed !important; outline: 2px solid #fb923c; }
.serp__you::before { color: #ea580c !important; }
.stage--marketing[data-state="0"] .serp__you { animation: climb 1.4s var(--ease) both; }
.stage--marketing[data-state="0"] .serp__list li:not(.serp__you) { animation: sink 1.4s var(--ease) both; }
@keyframes climb { from { transform: translateY(300%); } }
@keyframes sink { from { transform: translateY(-100%); } }
.chart { right: 5%; top: 30%; width: 56%; padding: 4%; border-radius: 18px; background: rgba(17, 19, 30, .92); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px #000; }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-size: max(11px, 2.2cqw); color: var(--muted); }
.chart__badge { font-size: max(10px, 1.9cqw); color: var(--c2); background: var(--c2-soft); padding: 4px 8px; border-radius: 99px; }
.chart svg { width: 100%; height: 22cqh; margin-top: 10px; }
.chart__line { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s var(--ease); }
.chart__area { opacity: 0; transition: opacity 1s .6s; }
.chart__ch { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chart__ch span { font-size: max(9.5px, 1.8cqw); padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.kpis { left: 8%; bottom: 7%; width: 84%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.kpis div { padding: 10% 10%; border-radius: 14px; background: rgba(17, 19, 30, .92); border: 1px solid var(--line-2); position: relative; }
.kpis small { display: block; font-size: max(10px, 1.9cqw); color: var(--muted); }
.kpis b { font: 600 max(18px, 4.6cqw)/1.1 var(--f-display); }
.kpis i { position: absolute; right: 10%; top: 12%; font-style: normal; color: #4ade80; font-size: 12px; }
.stage--marketing > .serp, .stage--marketing > .chart, .stage--marketing > .kpis { opacity: .35; filter: blur(1px); }
.stage--marketing[data-state="0"] .serp, .stage--marketing[data-state="1"] .chart, .stage--marketing[data-state="2"] .kpis { opacity: 1; filter: none; z-index: 2; transform: scale(1.03); }
.stage--marketing:not([data-state="0"]) .chart__line { stroke-dashoffset: 0; }
.stage--marketing:not([data-state="0"]) .chart__area { opacity: 1; }
.stage--marketing[data-state="2"] .chart { opacity: .55; filter: none; }

/* --- AI stage --- */
.flow { left: 50%; top: 6%; width: min(82%, 420px); height: 74%; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-between; }
.flow__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__wires path { fill: none; stroke: var(--line-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow__wires .pulse { stroke: var(--c3); stroke-dasharray: 8 120; stroke-width: 3; animation: pulse 1.6s linear infinite; }
.flow__wires .pulse:nth-of-type(5) { animation-delay: .5s; } .flow__wires .pulse:nth-of-type(6) { animation-delay: 1s; }
@keyframes pulse { from { stroke-dashoffset: 128; } to { stroke-dashoffset: 0; } }
.node { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(17, 19, 30, .94); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px #000; transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.node__ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--surface-2); color: var(--text); }
.node small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.node b { font: 500 max(13px, 2.8cqw)/1.25 var(--f-body); display: block; transition: opacity .3s; }
.node--ai { border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 0 4px rgba(167, 139, 250, .12), 0 20px 50px -20px rgba(167, 139, 250, .6); }
.node--ai .node__ic { background: linear-gradient(135deg, #a78bfa, #f472b6); color: #fff; animation: spin-glow 3s ease-in-out infinite; }
@keyframes spin-glow { 50% { box-shadow: 0 0 20px rgba(167, 139, 250, .8); } }
.node--out .node__ic { background: rgba(74, 222, 128, .15); color: #4ade80; }
.flow.is-swapping b { opacity: 0; }
.timer { left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; }
.timer small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.timer b { font: 600 max(14px, 3cqw)/1 var(--f-display); text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, .7); color: var(--muted); }
.timer .timer__after { text-decoration: none; color: var(--c3); }
.timer span { color: var(--dim); }

/* departments */
.depts { margin-top: 100px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--c3-soft), transparent 60%); }
.depts__title { font-size: clamp(26px, 3vw, 38px); }
.depts__title span { color: var(--muted); font-weight: 400; }
.depts__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.depts__tabs button { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--muted); font-size: 15px; transition: all .25s; }
.depts__tabs button:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.depts__tabs button[aria-selected="true"] { background: var(--c3); border-color: var(--c3); color: #120a24; font-weight: 600; }
.depts__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.depts__list li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.depts__list b { display: block; font: 600 18px/1.3 var(--f-display); margin-bottom: 8px; }
.depts__list p { font-size: 15px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

/* --- software stage --- */
.laptop { left: 6%; top: 16%; width: 74%; }
.laptop__screen { aspect-ratio: 16/10; border-radius: 12px 12px 0 0; border: 8px solid #1d2031; border-bottom-width: 12px; background: #0f1220; overflow: hidden; box-shadow: 0 30px 80px -20px #000; }
.laptop__base { height: 12px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#2a2e44, #14172a); }
.dash { display: flex; height: 100%; }
.dash aside { width: 14%; background: #161a2c; display: flex; flex-direction: column; gap: 10%; padding: 12% 0; align-items: center; }
.dash aside i { width: 40%; aspect-ratio: 1; border-radius: 6px; background: #262b45; }
.dash aside i:first-child { background: var(--c4); }
.dash__main { flex: 1; padding: 5%; display: flex; flex-direction: column; gap: 6%; }
.dash__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; height: 20%; }
.dash__row span { border-radius: 8px; background: #1b2036; border: 1px solid #252b46; }
.dash__row span:first-child { background: linear-gradient(135deg, rgba(163, 230, 53, .3), #1b2036); }
.dash__bars { flex: 1; display: flex; align-items: flex-end; gap: 4%; padding: 3%; border-radius: 8px; background: #1b2036; }
.dash__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--c4), rgba(163, 230, 53, .25)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.dash__bars i:nth-child(2) { animation-delay: .1s; } .dash__bars i:nth-child(3) { animation-delay: .2s; } .dash__bars i:nth-child(4) { animation-delay: .3s; } .dash__bars i:nth-child(5) { animation-delay: .4s; } .dash__bars i:nth-child(6) { animation-delay: .5s; } .dash__bars i:nth-child(7) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(0); } }
.dash__tbl { height: 22%; display: grid; gap: 12%; }
.dash__tbl span { border-radius: 4px; background: #1b2036; }
.app-phone { right: 7%; bottom: 7%; width: 27%; aspect-ratio: 9/18.5; border-radius: 24px; padding: 4px; background: #1d2031; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -10px #000; opacity: 0; transform: translateX(40%) rotate(8deg); }
.app-phone__screen { height: 100%; border-radius: 20px; background: linear-gradient(180deg, #f7fee7, #fff); color: #0f172a; padding: 18% 9% 9%; display: flex; flex-direction: column; gap: 6%; overflow: hidden; }
.ap-head { font: 600 max(10px, 2.2cqw)/1.2 var(--f-display); }
.ap-card { padding: 8%; border-radius: 10px; background: #0f172a; color: #fff; }
.ap-card b { display: block; font-size: max(9px, 1.8cqw); }
.ap-card small { font-size: max(8px, 1.5cqw); color: var(--c4); }
.ap-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.ap-grid i { border-radius: 8px; background: #ecfccb; border: 1px solid #d9f99d; }
.ap-btn { text-align: center; padding: 7% 0; border-radius: 99px; background: #65a30d; color: #fff; font-size: max(8.5px, 1.7cqw); font-weight: 700; }
.integrations { left: 50%; top: 50%; width: 1px; height: 1px; opacity: 0; }
.integrations span { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: max(11px, 2.2cqw); font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(17, 19, 30, .94); border: 1px solid rgba(163, 230, 53, .45); color: var(--c4); box-shadow: 0 10px 30px -10px #000;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * min(38cqh, 36cqw))) rotate(calc(-1 * var(--a))); }
.stage--software[data-state="1"] .laptop, .stage--software[data-state="2"] .laptop { transform: translateX(-6%) scale(.92); opacity: .6; }
.stage--software[data-state="1"] .app-phone, .stage--software[data-state="2"] .app-phone { opacity: 1; transform: none; }
.stage--software[data-state="2"] .laptop { opacity: .3; transform: scale(.7) translate(-2%, 6%); }
.stage--software[data-state="2"] .app-phone { transform: translate(-82%, -10%) scale(.92); }
.stage--software[data-state="2"] .integrations { opacity: 1; animation: orbit 40s linear infinite; }
.stage--software[data-state="2"] .integrations span { animation: counter 40s linear infinite; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes counter { to { rotate: -360deg; } }

/* ---------- picker ---------- */
.picker { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.picker__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 56px; align-items: start; }
.picker__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15.5px; color: #d6d9e4; transition: all .25s var(--ease); text-align: left; }
.chip::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; border: 1.5px solid var(--c); transition: background .2s, box-shadow .2s; }
.chip:hover { border-color: var(--c); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: #fff; }
.chip[aria-pressed="true"]::before { background: var(--c); box-shadow: 0 0 10px var(--c); }
.picker__result { position: sticky; top: calc(var(--nav-h) + 24px); min-height: 360px; padding: 32px; border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(167, 139, 250, .12), rgba(56, 189, 248, .05) 50%, transparent), var(--bg); overflow: hidden; }
.picker__empty { height: 100%; min-height: 296px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; color: var(--muted); }
.picker__orb { width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(from 0deg, var(--c1), var(--c3), var(--c2), var(--c4), var(--c1)); filter: blur(18px); opacity: .7; animation: orbit 8s linear infinite; }
.picker__k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.picker__steps { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.picker__steps li { padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--c); animation: pop .45s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.picker__steps .ps-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.picker__steps b { display: block; font: 600 21px/1.25 var(--f-display); margin: 4px 0 6px; }
.picker__steps p { font-size: 15px; color: var(--muted); }

/* ---------- process ---------- */
.process__list { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.process__list::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: linear-gradient(90deg, var(--c1), var(--c3), var(--c2), var(--c4)); opacity: .5; }
.process__list li { position: relative; }
.process__list li span { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 600 15px/1 var(--f-display); margin-bottom: 24px; }
.process__list li:nth-child(1) span { color: var(--c1); } .process__list li:nth-child(2) span { color: var(--c3); } .process__list li:nth-child(3) span { color: #f472b6; } .process__list li:nth-child(4) span { color: var(--c2); } .process__list li:nth-child(5) span { color: var(--c4); }
.process__list h3 { font-size: 24px; margin-bottom: 10px; }
.process__list p { color: var(--muted); font-size: 15.5px; }

/* ---------- why ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.why__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__card { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why__card h3 { font-size: 21px; margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; position: relative; font: 500 18px/1.4 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 400 18px/1 var(--f-body); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact__glow { position: absolute; left: 50%; top: 10%; width: 1100px; height: 800px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(167, 139, 250, .18), transparent), radial-gradient(40% 40% at 30% 60%, rgba(56, 189, 248, .12), transparent); }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__ways { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact__ways li { display: flex; flex-direction: column; gap: 2px; }
.contact__ways span { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact__ways a { font: 500 20px/1.3 var(--f-display); }
.contact__ways a:hover { color: var(--c1); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: rgba(17, 19, 30, .75); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 40px 100px -40px #000; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; transition: border-color .2s, background .2s; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239ba3b5' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form select option { background: #11131e; }
.form input::placeholder, .form textarea::placeholder { color: #5b6276; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c3); background: rgba(167, 139, 250, .06); }
.form textarea { resize: vertical; min-height: 110px; }
.form .is-invalid { border-color: #f87171; }
.form__status { min-height: 1.4em; font-size: 14.5px; text-align: center; color: var(--muted); }
.form__status.ok { color: #4ade80; } .form__status.err { color: #f87171; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; }
.footer__big { font: 600 clamp(30px, 6vw, 84px)/1 var(--f-display); letter-spacing: -0.045em; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .03)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 64px; max-width: 18ch; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__grid h4 { font: 500 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer__grid nav, .footer__grid > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a:not(.logo) { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer__grid a:not(.logo):hover { color: var(--text); }
.footer__tag { margin-top: 16px; color: var(--muted); max-width: 32ch; font-size: 15px; }
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.sources summary { cursor: pointer; }
.sources ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; word-break: break-word; }
.footer__copy { margin-top: 28px; font-size: 13px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1360px) { .rail { display: none; } }
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .process__list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process__list::before { display: none; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .journey__track { grid-template-columns: 1fr 1fr; }
  .journey__line { display: none; }
  .story { grid-template-columns: 1fr; gap: 0; margin-top: 56px; }
  .story__stage { order: 0; top: calc(var(--nav-h) + 8px); height: 46vh; height: 46svh; min-height: 300px; max-height: 440px; z-index: 2; }
  .stage { border-radius: 22px; box-shadow: 0 24px 50px -20px #000; }
  .story__steps { padding-top: 12px; }
  .step { min-height: 58vh; justify-content: flex-start; padding-top: 32px; }
  .depts__list { grid-template-columns: 1fr 1fr; }
  .flow { top: 5%; height: 68%; }
  .node { padding: 8px 12px; gap: 10px; border-radius: 12px; }
  .node__ic { width: 28px; height: 28px; font-size: 14px; }
  .node small { font-size: 10px; }
  .timer { bottom: 5%; padding: 9px 16px; }
  .stage--ai .stage__note { display: none; }
  .picker__bar { display: flex; }
  .picker__grid, .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .picker__result { position: relative; top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .float-card--a { left: -2%; top: 6%; } .float-card--b { right: -2%; bottom: 8%; }
  .stats { grid-template-columns: 1fr; }
  .journey__track { grid-template-columns: 1fr; }
  .jcard { min-height: 0; }
  .jcard h3 { margin-top: 20px; }
  .quotes p { font-size: 14px; }
  .step p { font-size: 16px; }
  .depts__list { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .why__cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .picker__result { padding: 22px; }
  .chip { font-size: 14.5px; padding: 11px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* mobile "see your plan" bar */
.picker__bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 99px; background: rgba(17, 19, 30, .92); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -10px #000; font-size: 15px; transform: translateY(140%); transition: transform .4s var(--ease); }
.picker__bar.is-shown { transform: none; }
.picker__bar .btn { --pad: 10px 16px; font-size: 14px; }
@media (min-width: 961px) { .picker__bar { display: none !important; } }
