/* =========================================================
   Talaiot — site styles
   ========================================================= */
:root {
  --bg: #F6F5F1;
  --paper: #EEECE6;
  --card: #FFFFFF;
  --ink: #0A0F1C;
  --ink-2: #333B4C;
  --muted: #6A7180;
  --line: rgba(10, 15, 28, .10);
  --line-2: rgba(10, 15, 28, .16);

  --blue: #2563EB;
  --cyan: #22B8F0;
  --amber: #FF9F1C;
  --coral: #FF3D6E;

  --screen: #0A0F1E;
  --tile: #141C31;

  --grad-cool: linear-gradient(100deg, #22B8F0 0%, #2563EB 55%, #4338CA 100%);
  --grad-warm: linear-gradient(100deg, #FFB020 0%, #FF6A3D 50%, #FF3D6E 100%);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --f-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.wordmark b { font-weight: 800; }
.wm-a { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-i { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark--sm { font-size: 20px; }

/* ---------- Gradient text helpers ---------- */
.grad { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -12px rgba(10,15,28,.6); }
.btn--ink:hover { box-shadow: 0 16px 40px -14px rgba(37,99,235,.7); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.kicker--light { color: #7CC8FF; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(37,99,235,.6);
  animation: pulse 2s infinite;
  flex: none;
}
.live-dot--red { background: #FF4D5E; box-shadow: 0 0 0 0 rgba(255,77,94,.6); animation-name: pulseRed; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.55); } 70% { box-shadow: 0 0 0 10px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }

/* ---------- Type ---------- */
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
.h2--light { color: #fff; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.lead--light { color: rgba(255,255,255,.72); }

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

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 0; transition: padding .3s; }
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav.is-scrolled .nav__inner {
  max-width: 1160px;
  background: rgba(246,245,241,.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 10px 30px -18px rgba(10,15,28,.35);
}
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--grad-cool); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: rgba(10,15,28,.06); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 6px 9px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav__inner { padding: 0 16px; gap: 10px; }
  .nav.is-scrolled .nav__inner { padding: 6px 6px 6px 14px; }
  .nav .btn--sm { padding: 0 12px; font-size: 13px; }
  .wordmark { font-size: 21px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 140px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(34,184,240,.18), rgba(37,99,235,.08) 50%, transparent 72%);
  pointer-events: none; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: .5;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); margin-top: 26px; max-width: 31em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.hero__pills li {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.6);
}
.hero__pills li::before { content: "✓"; color: var(--blue); margin-right: 6px; font-weight: 700; }
.hero__stage { position: relative; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.hero__stage.reveal { transition-delay: .2s; }

@media (max-width: 980px) {
  .hero { padding-top: 116px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Audience strip ---------- */
.audience-strip {
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  font-size: 15px; color: var(--muted);
}
.audience-strip span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.audience-strip b { font-family: var(--f-head); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.audience-strip i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-warm); }

/* =========================================================
   DEVICE (custom tablet mockup)
   ========================================================= */
.device {
  --glow: 0;
  position: relative;
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(145deg, #232a3b, #0d111b 60%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 1px 0 rgba(255,255,255,.12) inset,
    0 50px 100px -30px rgba(10,15,28,.55),
    0 20px 40px -20px rgba(10,15,28,.4);
  transition: box-shadow .5s var(--ease);
}
.device::after { /* camera dot */
  content: ""; position: absolute; top: 50%; left: 6px; width: 4px; height: 4px; border-radius: 50%;
  background: #2a3346; transform: translateY(-50%);
}
.device__glow {
  position: absolute; inset: -2px; border-radius: 36px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #FFB020, #FF3D6E, #FF6A3D, #FFB020);
  opacity: var(--glow);
  filter: blur(14px);
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.device.is-alert { --glow: .9; }
.device.is-alert .device__screen { box-shadow: 0 0 0 2px rgba(255,140,40,.85) inset, 0 0 40px rgba(255,100,60,.25) inset; }
.device__screen {
  position: relative;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #121a30 0%, var(--screen) 60%);
  overflow: hidden;
  padding: 12px;
  transition: box-shadow .4s var(--ease);
}

/* HUD */
.hud {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  color: rgba(255,255,255,.75);
  padding: 2px 4px 10px;
}
.hud--bottom { padding: 10px 4px 2px; justify-content: space-between; color: rgba(255,255,255,.5); }
.hud__rec { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.hud__exam { color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud__time { margin-left: auto; font-variant-numeric: tabular-nums; }
.hud__nostore, .hud__ai { display: inline-flex; align-items: center; gap: 6px; }
.ai-spark { width: 8px; height: 8px; border-radius: 2px; background: var(--grad-cool); transform: rotate(45deg); animation: spark 2.4s ease-in-out infinite; }
@keyframes spark { 50% { transform: rotate(225deg) scale(.7); } }

/* Toast */
.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 999px;
  background: rgba(20,14,10,.82);
  border: 1px solid rgba(255,159,28,.6);
  color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(255,90,40,.6);
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  z-index: 5;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast__icon {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-warm); font-weight: 800; font-size: 13px;
}

/* =========================================================
   WALL of student tiles
   ========================================================= */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tile {
  --hue: 215;
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--tile);
  outline: 1.5px solid transparent; outline-offset: -1.5px;
  transition: outline-color .35s, box-shadow .35s, opacity .5s, filter .5s;
  will-change: transform;
}
.tile svg { width: 100%; height: 100%; }
.t-bg { fill: #1A2440; }
.t-floor { fill: #141C33; }
.t-body { fill: hsl(var(--hue) 34% 46%); }
.t-skin { fill: hsl(var(--skin, 28) 38% 70%); }
.t-hair { fill: hsl(var(--hair, 25) 30% 18%); }
.t-desk { fill: #2B3654; }
.t-paper { fill: #DCE3F0; }
.t-arm { stroke: hsl(var(--hue) 34% 46%); stroke-width: 7; stroke-linecap: round; fill: none; }
.t-head { transform-origin: 60px 44px; transform-box: view-box; animation: headBob var(--hd, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.t-hand { transform-box: view-box; animation: write var(--wd, 1.1s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.tile.is-flip svg .t-person, .tile.is-flip svg .t-hand, .tile.is-flip svg .t-paper { transform: scaleX(-1); transform-origin: 60px 0; transform-box: view-box; }
.tile.is-flip .t-hand { animation-name: writeFlip; }
@keyframes headBob { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-4deg) translateY(1px); } 60% { transform: rotate(3deg); } }
@keyframes write { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3px,1px); } 50% { transform: translate(-6px,0); } 75% { transform: translate(-3px,-1px); } }
@keyframes writeFlip { 0%,100% { transform: scaleX(-1) translate(0,0); } 50% { transform: scaleX(-1) translate(-6px,0); } }

/* scanline sheen to evoke a live feed */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(120,180,255,.07) 48%, transparent 52%);
  background-size: 100% 220%;
  animation: scan 5s linear infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes scan { from { background-position: 0 -100%; } to { background-position: 0 200%; } }

.tile__id {
  position: absolute; left: 6px; top: 5px; z-index: 2;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600; color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 4px;
}
.tile__live { position: absolute; right: 7px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #3CE08A; z-index: 2; box-shadow: 0 0 6px #3CE08A; }
.tile__chip {
  position: absolute; left: 50%; bottom: 7px; z-index: 3;
  transform: translate(-50%, 8px); opacity: 0;
  font-size: 10px; font-weight: 700; color: #1a0f00;
  background: var(--grad-warm); padding: 3px 9px; border-radius: 999px;
  transition: opacity .3s, transform .35s var(--ease);
  white-space: nowrap;
}

/* AI states */
.tile.is-watch { outline-color: rgba(255,170,60,.55); box-shadow: 0 0 22px -4px rgba(255,150,40,.5); }
.tile.is-alert { outline-color: #FF9F1C; box-shadow: 0 0 0 3px rgba(255,120,40,.25), 0 0 30px rgba(255,100,50,.55); animation: tileAlert 1.1s ease-in-out infinite; }
.tile.is-alert .tile__chip, .tile.is-watch.show-chip .tile__chip { opacity: 1; transform: translate(-50%, 0); }
.tile.is-dim { opacity: .38; filter: saturate(.4); }
@keyframes tileAlert { 50% { box-shadow: 0 0 0 6px rgba(255,120,40,.12), 0 0 40px rgba(255,100,50,.75); } }
.tile.is-hidden { opacity: 0; transform: scale(.85); }

/* Hardware wall: one big focus tile */
.wall--hw { grid-template-columns: repeat(3, 1fr); }
.wall--hw .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Timeline */
.timeline { position: relative; height: 26px; margin: 12px 4px 2px; }
.timeline__track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.timeline__fill { height: 100%; width: 0; background: var(--grad-cool); border-radius: 4px; transition: width 1.4s var(--ease); }
.timeline__mark {
  position: absolute; top: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: #2a3550; border: 2px solid rgba(255,255,255,.2);
  transform: scale(.6); opacity: 0; transition: all .5s var(--ease);
}
[data-step="3"] .timeline__fill { width: 74%; }
[data-step="2"] .timeline__fill { width: 50%; }
[data-step="1"] .timeline__fill { width: 26%; }
[data-step="3"] .timeline__mark { opacity: 1; transform: scale(1); background: #FF9F1C; border-color: rgba(255,255,255,.7); }
[data-step="3"] .timeline__mark--now { animation: markPulse 1.2s infinite; }
@keyframes markPulse { 0% { box-shadow: 0 0 0 0 rgba(255,159,28,.7); } 100% { box-shadow: 0 0 0 12px rgba(255,159,28,0); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 130px 0; position: relative; }
.section--tight { padding-bottom: 60px; }
.section--paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .section { padding: 88px 0; } .section-head { margin-bottom: 44px; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split--rev { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 980px) {
  .split, .split--rev { grid-template-columns: 1fr; gap: 48px; }
  .split--rev .split__visual { order: 2; }
}

/* ---------- Problem: segmented toggle + room ---------- */
.seg {
  position: relative; display: inline-flex; margin-top: 34px; padding: 4px;
  background: rgba(10,15,28,.06); border-radius: 999px;
}
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted);
  transition: color .3s;
}
.seg button.is-on { color: var(--ink); }
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 8px rgba(10,15,28,.12);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.room-caption { margin-top: 16px; font-size: 14px; color: var(--muted); min-height: 1.6em; font-family: var(--f-mono); }

.room-card {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  padding: 18px; box-shadow: 0 30px 60px -40px rgba(10,15,28,.35);
}
#room { width: 100%; height: auto; }
#room .desk { fill: #E9ECF2; transition: fill .5s; }
#room .stu { fill: #C5CBD6; transition: fill .45s, r .45s; }
#room .desk.lit { fill: #DCEBFF; }
#room .stu.lit { fill: var(--blue); }
#room .ring { fill: none; stroke: #FF8A2A; stroke-width: 2.5; opacity: 0; transition: opacity .4s; }
#room .ring.on { opacity: 1; animation: ringPulse 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
#room .link { stroke: rgba(37,99,235,.22); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; transition: opacity .6s; }
#room.is-on .link { opacity: 1; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

/* ---------- Scrolly ---------- */
.scrolly { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; }
.scrolly__stage { position: sticky; top: 110px; height: fit-content; align-self: start; }
.scrolly__steps { padding: 6vh 0 18vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step__num { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.step p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 28em; }
.step--note { min-height: 40vh; }
.step--note p { border-left: 3px solid; border-image: var(--grad-warm) 1; padding-left: 18px; font-size: 1.15rem; }
.step--note strong { color: var(--ink); }
#storyToast { bottom: 50px; }
#storyDevice { transition: transform .6s var(--ease), box-shadow .5s; }

@media (max-width: 980px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly__stage { top: 70px; z-index: 2; padding: 10px 0 14px; background: linear-gradient(var(--bg) 85%, transparent); }
  .scrolly__stage .device { max-width: 520px; margin: 0 auto; border-radius: 26px; padding: 10px; }
  .scrolly__stage .device__screen { border-radius: 17px; padding: 9px; }
  .scrolly__stage .timeline { display: none; }
  #storyToast { bottom: 14px; }
  .scrolly__steps { padding: 0 0 10vh; }
  .step { min-height: 62vh; justify-content: flex-start; padding-top: 6vh; }
  .step--note { min-height: 30vh; }
}

/* ---------- Hardware ---------- */
.hw-stage { perspective: 1200px; padding: 30px 10px 60px; position: relative; }
.device--hw {
  max-width: 520px; margin: 0 auto;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.hw-shadow { position: absolute; left: 15%; right: 15%; bottom: 18px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,15,28,.35), transparent); filter: blur(6px); }

.feature-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 18px; align-items: flex-start; }
.feature-list h4 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.feature-list p { color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.fi { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--ink); position: relative; overflow: hidden; }
.fi--glow::after { content: ""; position: absolute; inset: 8px; border-radius: 6px; border: 2px solid #FF9F1C; box-shadow: 0 0 12px #FF6A3D; animation: fiGlow 2.2s ease-in-out infinite; }
@keyframes fiGlow { 50% { opacity: .25; box-shadow: none; } }
.fi--quiet::before, .fi--quiet::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); transform: translate(-50%,-50%); }
.fi--quiet::before { width: 10px; height: 10px; background: #fff; border: 0; }
.fi--quiet::after { width: 10px; height: 10px; animation: fiRipple 2.4s ease-out infinite; }
@keyframes fiRipple { to { width: 34px; height: 34px; opacity: 0; } }
.fi--grid { background-image: linear-gradient(#0A0F1C, #0A0F1C); }
.fi--grid::after {
  content: ""; position: absolute; inset: 10px;
  background:
    linear-gradient(#5BA8FF,#5BA8FF) 0 0/10px 10px no-repeat,
    linear-gradient(#5BA8FF,#5BA8FF) 100% 0/10px 10px no-repeat,
    linear-gradient(#5BA8FF,#5BA8FF) 0 100%/10px 10px no-repeat,
    linear-gradient(#FF9F1C,#FF9F1C) 100% 100%/10px 10px no-repeat;
  animation: fiGrid 3s steps(1) infinite;
}
@keyframes fiGrid { 50% { filter: hue-rotate(180deg); } }

/* ---------- Privacy flow ---------- */
.flow { position: relative; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); padding: 10px 10px 18px; overflow: hidden; }
#flow { width: 100%; height: 220px; }
.flow__labels { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.flow__labels b { color: var(--coral); }
@media (max-width: 640px) { #flow { height: 150px; } .flow__labels { font-size: 10.5px; } }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(10,15,28,.35); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(37,99,235,.08); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 22px; height: 22px; }
.card h4 { font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--ink-2); font-size: .97rem; margin-top: 6px; }
.cards3 .card:nth-child(2) { transition-delay: .06s; }
.cards3 .card:nth-child(3) { transition-delay: .12s; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- Results band ---------- */
.results { position: relative; background: var(--ink); color: #fff; padding: 150px 0; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.results::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 25% 50%, rgba(10,15,28,.9), rgba(10,15,28,.2) 70%, transparent); pointer-events: none; }
.results__inner { position: relative; z-index: 1; }
.results .h2 { max-width: 14em; font-size: clamp(2.2rem, 5vw, 4rem); }
.results .btn { margin-top: 36px; }
@media (max-width: 640px) { .results { padding: 100px 0; } .results::after { background: rgba(10,15,28,.6); } }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s;
}
.aud__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(37,99,235,.5); }
.aud__card:nth-child(2) { transition-delay: .07s; }
.aud__card:nth-child(3) { transition-delay: .14s; }
.aud__art { height: 150px; border-radius: var(--r-md); background: linear-gradient(160deg, #F1F4FA, #E7ECF5); display: grid; place-items: center; margin-bottom: 24px; }
.art { width: 70%; height: auto; overflow: visible; }
.a-line { fill: none; stroke: #9AA6BC; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-fill { fill: #9AA6BC; }
.a-acc { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.a-accfill { fill: var(--blue); }
.a-blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.a-spin { stroke-dasharray: 46 17; transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-draw { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 3s var(--ease) infinite; }
@keyframes draw { 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.a-sway { transform-box: view-box; transform-origin: 100px 28px; animation: sway 3s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(8deg); } 50% { transform: rotate(-8deg); } }
.aud__tag { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.aud__card h3 { font-size: 1.55rem; font-weight: 700; margin-top: 8px; }
.aud__card p { color: var(--ink-2); margin-top: 10px; font-size: .98rem; }
@media (max-width: 860px) { .aud { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 120px; }
.cta__box {
  position: relative; text-align: center; overflow: hidden;
  border-radius: 36px; padding: 90px 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(34,184,240,.14), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, rgba(255,106,61,.12), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
}
.cta__box .h2 { max-width: 13em; margin: 0 auto; }
.cta__box .lead { margin: 22px auto 0; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta__email { display: inline-block; margin-top: 22px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.cta__email:hover { color: var(--ink); }
.cta__eye {
  width: 64px; height: 64px; margin: 0 auto 28px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 34%, transparent 35%), var(--grad-cool);
  position: relative; box-shadow: 0 10px 30px -10px rgba(37,99,235,.6);
}
.cta__eye span {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ink);
  left: 50%; top: 50%; transform: translate(calc(-50% + var(--ex, 0px)), calc(-50% + var(--ey, 0px)));
  transition: transform .15s linear;
}
@media (max-width: 640px) { .cta__box { padding: 64px 20px; border-radius: 26px; } .cta { padding-bottom: 80px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer a:hover { color: var(--ink); }

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