/* ============================================================================
   KORVIQ — Neural Marketing site
   A dark, gallery-quiet adaptation of the Vitrine design system.
   Same tokens (Action Blue accent, near-black surfaces, tight display type),
   inverted so the near-black canvas dominates and the blue glow does the work.
   ============================================================================ */

/* Google Fonts removed — SF Pro (Apple) + system-ui covers all modern devices */

:root {
  /* Fonts — Vitrine stack (SF Pro on Apple, Inter elsewhere) */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-text:    "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  /* Accent — the single interactive color, in its on-dark register */
  --primary:        #0066cc;
  --link:           #2997ff;   /* sky link blue — links/accents on dark */
  --glow:           #38bdf8;   /* bright cyan-blue for the hero glow + bright CTA */
  --glow-deep:      #1e6fff;
  --on-primary:     #ffffff;

  /* Surfaces — near-black void family */
  --void:    #05060a;          /* page base */
  --void-2:  #080a10;          /* alt section */
  --tile:    #0c0f17;          /* raised tile */
  --card:    rgba(255,255,255,0.035);
  --card-2:  rgba(255,255,255,0.05);
  --card-hi: rgba(255,255,255,0.07);

  /* Ink on dark */
  --ink:        #f4f6fb;       /* headline white */
  --ink-soft:   #c3c9d6;       /* body */
  --ink-mute:   #8a92a6;       /* secondary */
  --ink-faint:  #5b6577;       /* legal / fine */

  /* Hairlines */
  --line:    rgba(255,255,255,0.09);
  --line-2:  rgba(255,255,255,0.14);
  --line-blue: rgba(56,189,248,0.35);

  /* Radii — Vitrine ladder */
  --r-sm:  8px;
  --r-md:  11px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 9999px;

  /* Motion */
  --press-scale: 0.96;
  --press-ease:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --press-dur:   180ms;

  /* Layout */
  --maxw: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

/* ── Animated gradient background ─────────────────────────────────────── */
#grad-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grad-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .grad-orb { animation: none !important; } }

/* Orb 1 — cyan-blue, top-left drift */
.grad-orb--1 {
  width: 70vw; height: 70vw;
  top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, rgba(56,189,248,0.04) 55%, transparent 80%);
  animation: orb1 20s ease-in-out infinite alternate;
}
/* Orb 2 — indigo, bottom-right drift */
.grad-orb--2 {
  width: 55vw; height: 55vw;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, rgba(99,102,241,0.03) 55%, transparent 80%);
  animation: orb2 26s ease-in-out infinite alternate;
}
/* Orb 3 — teal, centre pulse */
.grad-orb--3 {
  width: 45vw; height: 45vw;
  top: 30%; left: 30%;
  background: radial-gradient(circle, rgba(34,211,238,0.09) 0%, rgba(34,211,238,0.02) 55%, transparent 80%);
  animation: orb3 18s ease-in-out infinite alternate;
}
@keyframes orb1 {
  from { transform: translate(0,    0)    scale(1);    }
  to   { transform: translate(8vw,  6vh)  scale(1.12); }
}
@keyframes orb2 {
  from { transform: translate(0,    0)    scale(1);    }
  to   { transform: translate(-7vw, -5vh) scale(1.08); }
}
@keyframes orb3 {
  from { transform: translate(0,    0)    scale(1);    }
  to   { transform: translate(4vw,  -4vh) scale(0.90); }
}


body {
  font-family: var(--font-text);
  color: var(--ink-soft);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(56,189,248,0.28); color: #fff; }
a { color: var(--link); text-decoration: none; }
button { font-family: inherit; }
a, button, input[type="submit"], input[type="button"], label, .upload-zone, .tab-btn, .btn, [role="button"], .faq__q {
  cursor: pointer;
}
img, svg, video { display: block; max-width: 100%; }

/* ============================================================ TYPE ====== */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.display .it { font-style: italic; font-weight: 600; letter-spacing: -0.02em; }
.h-hero  { font-size: clamp(44px, 7.2vw, 88px); }
.h-1     { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.05; color: var(--ink); font-family: var(--font-display); text-wrap: balance; }
.h-2     { font-size: clamp(27px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; color: var(--ink); font-family: var(--font-display); text-wrap: balance; }
.h-3     { font-size: clamp(21px, 2.1vw, 26px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.18; color: var(--ink); font-family: var(--font-display); }
.lead    { font-size: clamp(18px, 1.9vw, 22px); font-weight: 400; line-height: 1.5; color: var(--ink-soft); letter-spacing: -0.01em; }
.body    { font-size: 17px; line-height: 1.6; color: var(--ink-soft); letter-spacing: -0.01em; }
.body-mute { color: var(--ink-mute); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--link);
}
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-faint); letter-spacing: -0.01em; }
.accent { color: var(--link); }
.glowtext { color: var(--glow); }

/* gradient accent text — animated flowing shift */
.grad {
  background: linear-gradient(100deg, var(--glow) 0%, #a8d8ff 28%, #7cc6ff 52%, #5a8bff 78%, var(--glow) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-flow 5s linear infinite;
}
@keyframes grad-flow {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}
@media (prefers-reduced-motion: reduce) { .grad { animation: none; } }

/* underline-accent like the reference "Marketing" word */
.uline { position: relative; color: var(--glow); white-space: nowrap; }
.uline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 3px;
  background: linear-gradient(90deg, transparent, var(--glow) 12%, var(--glow) 88%, transparent);
  border-radius: 2px; opacity: 0.85;
}

/* ============================================================ LAYOUT ==== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 11vh, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vh, 80px) 0; }
.section--alt { background: var(--void-2); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--space, 20px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================ NAV ======= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  transition: background 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,8,14,0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { height: 30px; width: auto; max-width: 130px; flex: 0 0 auto; object-fit: contain; }
.nav__links { display: flex; gap: 30px; margin: 0 auto; }
.nav__links a {
  color: var(--ink-soft); font-size: 15px; font-weight: 450; letter-spacing: -0.01em;
  opacity: 0.86; transition: opacity 140ms, color 140ms;
}
.nav__links a:hover { opacity: 1; color: var(--ink); }
.nav__links a.active { opacity: 1; color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; }

/* ============================================================ BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: var(--r-pill); white-space: nowrap;
  transition: transform var(--press-dur) var(--press-ease), filter 200ms ease, background 200ms ease, box-shadow 240ms ease;
  font-family: var(--font-text); cursor: pointer; text-decoration: none;
}
.btn:active { transform: scale(var(--press-scale)); }
.btn:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.btn--glow {
  background: linear-gradient(180deg, #5ecbff 0%, var(--glow) 55%, #1aa3ee 100%);
  color: #04243a; font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
  padding: 14px 26px;
  box-shadow: 0 0 0 1px rgba(120,210,255,0.5) inset, 0 8px 30px -6px rgba(56,189,248,0.6);
  animation: btn-breathe 3s ease-in-out infinite;
}
@keyframes btn-breathe {
  0%,100% { box-shadow: 0 0 0 1px rgba(56,189,248,0.5) inset, 0 8px 28px -4px rgba(56,189,248,0.35); }
  50%      { box-shadow: 0 0 0 1px rgba(150,220,255,0.8) inset, 0 12px 44px -4px rgba(56,189,248,0.65); }
}
@media (prefers-reduced-motion: reduce) { .btn--glow { animation: none; } }
.btn--glow:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(150,220,255,0.7) inset, 0 12px 40px -6px rgba(56,189,248,0.8); }

.btn--white { background: #fff; color: #06121f; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; padding: 11px 20px; }
.btn--white:hover { filter: brightness(0.95); }

.btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 13px 24px; border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-blue); }

.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--sm { padding: 9px 17px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.sparkle { width: 1em; height: 1em; }

/* text link with arrow */
.tlink { color: var(--link); font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; letter-spacing: -0.01em; }
.tlink:hover { color: #5fb4ff; }
.tlink .arr { transition: transform 200ms ease; }
.tlink:hover .arr { transform: translateX(3px); }

/* ============================================================ CHIP/PILL = */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(56,189,248,0.10); border: 1px solid var(--line-blue);
  color: #bfe3ff; font-size: 13px; font-weight: 550; letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.chip--live .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity:.4; transform: scale(0.7);} }

/* ============================================================ HERO GLOW = */
.glowfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glowfield::before, .glowfield::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); }

.starfield { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.7), transparent),
                    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.5), transparent),
                    radial-gradient(1.5px 1.5px at 80% 50%, rgba(180,220,255,0.6), transparent),
                    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.4), transparent),
                    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.5), transparent),
                    radial-gradient(1.2px 1.2px at 12% 85%, rgba(180,220,255,0.5), transparent);
  background-repeat: no-repeat; }

/* ============================================================ PAGE HERO = */
.page-hero { position: relative; overflow: hidden; padding: 132px 0 84px; }
.page-hero--home { padding: 116px 0 0; overflow: visible; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* big soft blue light sweeping from the right, like the reference */
.page-hero__bg::before {
  content: ""; position: absolute; top: -20%; right: -8%; width: 70vw; height: 78vh;
  background: radial-gradient(closest-side, rgba(56,140,255,0.55), rgba(40,90,210,0.22) 48%, transparent 72%);
  filter: blur(30px);
}
.page-hero__bg::after {
  content: ""; position: absolute; bottom: -30%; left: -10%; width: 60vw; height: 60vh;
  background: radial-gradient(closest-side, rgba(20,90,200,0.30), transparent 70%);
  filter: blur(40px);
}
.page-hero__inner { position: relative; z-index: 2; }
/* faint engineering grid behind heroes */
.gridlines { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(120,170,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120,170,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(closest-side at 60% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side at 60% 35%, #000 30%, transparent 80%); }

/* Hero video, framed in a glow */
.hero-video { position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-2); background: #04060c;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.12), 0 40px 120px -30px rgba(30,110,255,0.6), 0 0 60px -10px rgba(56,189,248,0.25);
}
.hero-video::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px -20px rgba(0,0,0,0.7); border-radius: inherit; }
.hero-video video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.hero-video__tag { position: absolute; top: 16px; left: 16px; z-index: 3; }

/* science stat strip */
.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.statstrip__c { background: var(--void); padding: 26px 24px; }
.statstrip__n { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1; }
.statstrip__l { font-size: 13.5px; color: var(--ink-mute); margin-top: 10px; line-height: 1.4; }
@media (max-width: 760px){ .statstrip { grid-template-columns: 1fr 1fr; } }

/* ============================================================ FOMO BAR == */
.fomo {
  position: relative; z-index: 90;
  background: linear-gradient(90deg, rgba(8,12,22,0.9), rgba(14,40,72,0.9));
  border-bottom: 1px solid var(--line-blue);
  font-size: 14px; color: var(--ink-soft); letter-spacing: -0.01em;
}
.fomo__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.fomo b { color: var(--ink); font-weight: 650; }
.fomo .count { color: var(--glow); font-weight: 700; }
.fomo a { font-weight: 600; }

/* ============================================================ CARDS ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.card--hover:hover { border-color: var(--line-blue); background: var(--card-2); transform: translateY(-3px); }
.card__k { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); margin: 0 0 14px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* numbered step */
.step__n {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--glow); border: 1px solid var(--line-blue); background: rgba(56,189,248,0.08); margin-bottom: 18px;
}

/* feature/icon tile */
.feat__ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.10); border: 1px solid var(--line-blue); color: var(--glow); margin-bottom: 18px; }
.feat__ic svg { width: 22px; height: 22px; }

/* ============================================================ TABLE ===== */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
table.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
table.kv th, table.kv td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv thead th { background: rgba(255,255,255,0.03); color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
table.kv tbody tr:last-child td { border-bottom: none; }
table.kv td:first-child, table.kv th:first-child { color: var(--ink); font-weight: 550; }
table.kv td { color: var(--ink-soft); }
table.kv tbody tr:hover td { background: rgba(56,189,248,0.04); }
.cell-yes { color: var(--glow); font-weight: 600; }
.cell-no { color: var(--ink-faint); }
td.num, th.num { text-align: center; }

/* ============================================================ FAQ ======= */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; text-align: left; padding: 24px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); font-family: var(--font-display);
  font-size: 19px; font-weight: 550; letter-spacing: -0.015em; }
.faq__q .pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform 240ms ease; color: var(--link); }
.faq__item.open .faq__q .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq__a p { margin: 0 0 24px; color: var(--ink-mute); font-size: 16px; line-height: 1.6; max-width: 760px; }

/* ============================================================ STATES BAR  */
.states { display: flex; flex-wrap: wrap; gap: 10px; }
.state-pill { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-soft); }
.state-pill[data-lvl="5"]{ color:#7ff0c4; border-color: rgba(127,240,196,0.4); background: rgba(127,240,196,0.08); }
.state-pill[data-lvl="4"]{ color:#9fe6ff; border-color: rgba(159,230,255,0.4); background: rgba(159,230,255,0.07); }
.state-pill[data-lvl="3"]{ color:#bcd3ff; border-color: rgba(188,211,255,0.35); }
.state-pill[data-lvl="2"]{ color:#cdb4ff; border-color: rgba(205,180,255,0.32); }
.state-pill[data-lvl="1"]{ color:#ff9fb0; border-color: rgba(255,159,176,0.32); }
.state-pill[data-lvl="0"]{ color:#ff7d7d; border-color: rgba(255,125,125,0.3); }

/* ============================================================ STAT ====== */
.statbig { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.statbig .grad { display: inline; }

/* ============================================================ FOOTER ==== */
.footer { background: var(--void-2); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__h { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; }
.footer__col a { display: block; color: var(--ink-soft); font-size: 15px; line-height: 2.1; opacity: 0.9; }
.footer__col a:hover { color: var(--ink); }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================ REVEAL ==== */
/* visible by default; JS adds .js-reveal to opt into the entrance animation */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: 80ms; }
.reveal[data-d="2"]{ transition-delay: 160ms; }
.reveal[data-d="3"]{ transition-delay: 240ms; }
.reveal[data-d="4"]{ transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================ UTIL ====== */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}.mt-6{margin-top:64px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}.mb-5{margin-bottom:48px}
.maxw-720{max-width:720px}.maxw-640{max-width:640px}.maxw-560{max-width:560px}
.mx-auto{margin-left:auto;margin-right:auto}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-row.center { justify-content: center; }

/* ============================================================ RESPONSIVE  */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8,10,16,0.97); backdrop-filter: blur(18px); margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 15px var(--gutter); font-size: 17px; opacity: 1; }
  .nav__toggle { display: inline-flex; }
  .nav__right .btn--white { display: none; }
  .nav__right { margin-left: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  table.kv { font-size: 13.5px; }
  table.kv th, table.kv td { padding: 12px 14px; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-wrap table.kv { min-width: 500px; }
}

/* Scroll pinning wrapper (desktop only, above 820px) */
@media (min-width: 821px) {
  .sim-pin-wrapper {
    position: relative;
    width: 100%;
    height: 220vh; 
    margin-top: 64px;
    margin-bottom: 64px;
  }
  
  .hero-sim-container {
    position: sticky;
    top: 100px; /* Sticks 100px below top of viewport, below the nav bar */
    z-index: 5;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* For mobile/tablet (below 820px), normal scroll flow is preferred because the columns stack vertically and exceed viewport height. */
@media (max-width: 820px) {
  .sim-pin-wrapper {
    position: relative;
    width: 100%;
    margin-top: 48px;
    margin-bottom: 48px;
  }
}

/* ============================================================ SIMULATOR == */
.hero-sim-container {
  max-width: 960px;
  background: rgba(12, 15, 23, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-align: left;
  box-shadow: 
    0 0 0 1px rgba(56, 189, 248, 0.08) inset,
    0 24px 80px -20px rgba(8, 10, 16, 0.8),
    0 0 50px -10px rgba(30, 110, 255, 0.2);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.sim-header__meta {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: monospace;
}

.sim-header__meta .sep {
  margin: 0 8px;
  color: var(--line);
}

.sim-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 32px;
  align-items: center;
}

@media (max-width: 820px) {
  .sim-body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
  .sim-player-col {
    display: flex;
    justify-content: center;
  }
}

/* Borderless Frame Card (No iPhone mockup) */
.sim-frame-card {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9/16;
  background: #000;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 
    0 12px 40px -15px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(56, 189, 248, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sim-frame-wrapper {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.sim-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Huge Hook Missed overlay style (no small alert box) */
.hook-missed-alert-huge {
  position: absolute;
  inset: 0;
  background: rgba(22, 3, 4, 0.72);
  border-radius: inherit;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  padding: 16px;
  text-align: center;
}

.hook-missed-alert-huge.active {
  opacity: 1;
  pointer-events: auto;
}

.huge-hook-missed-text {
  color: #ff3b30;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 0 15px rgba(255, 59, 48, 0.75);
  text-transform: uppercase;
  animation: alert-blink 1s ease-in-out infinite alternate;
}

.hook-missed-sub {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: -0.01em;
}

@keyframes alert-blink {
  0% { transform: scale(0.96); opacity: 0.88; }
  100% { transform: scale(1.02); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.8)); }
}

/* Analytics Column */
.sim-analytics-col {
  flex: 1;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.analytics-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.badge--blue {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--glow);
}

.badge--red {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.35);
  color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255,77,77,0.15);
}

/* Graph Styling */
.attention-graph-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 16px 12px;
  margin-bottom: 20px;
}

.attention-graph-box .y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-faint);
  font-family: monospace;
  height: 120px;
  text-align: right;
  padding-bottom: 18px;
}

.graph-svg-wrapper {
  position: relative;
  height: 120px;
}

.graph-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.attention-graph-box .x-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-faint);
  font-family: monospace;
}

.attention-graph-box .x-labels .hook-label {
  color: var(--ink-mute);
}

/* Scan lines */
#graph-scan-line {
  transition: x1 140ms ease, x2 140ms ease;
}

#graph-scan-dot {
  transition: cx 140ms ease, cy 140ms ease;
}

/* Metrics Grid */
.sim-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-lbl {
  font-size: 12px;
  color: var(--ink-mute);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.text--glow {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Diagnostic Box */
.diagnostic-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  min-height: 110px;
  transition: border-color 300ms ease, background-color 300ms ease;
}

.diagnostic-box--alert {
  background: rgba(255, 77, 77, 0.02);
  border-color: rgba(255, 77, 77, 0.25);
}

.diag-status {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--ink);
}

.diagnostic-box--alert .diag-status {
  color: #ff4d4d;
}

.diag-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.diag-action {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 77, 77, 0.25);
}

.diag-action-title {
  display: block;
  font-size: 11.5px;
  font-weight: 750;
  color: var(--glow);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.diag-action-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.pulse-text {
  animation: pulse-red-txt 1.5s ease-in-out infinite;
}

@keyframes pulse-red-txt {
  0%, 100% { text-shadow: 0 0 4px rgba(255, 77, 77, 0.2); }
  50% { text-shadow: 0 0 10px rgba(255, 77, 77, 0.6); }
}

/* ============================================================ SCANNING == */
.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 15px #38bdf8;
  animation: laser-sweep 4s linear infinite;
  z-index: 2;
}

.scan-overlay-grid {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

@keyframes laser-sweep {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================================ MODAL ==== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,6,12,0.88); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; background: #06101f;
  border: 1px solid rgba(56,189,248,0.45); border-radius: 20px;
  padding: 40px 40px 36px; width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 0 80px rgba(56,189,248,0.12), 0 40px 80px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 7px; color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 150ms, color 150ms; line-height: 1;
}
.modal__close:hover { background: rgba(255,255,255,0.12); color: var(--ink); }
.modal__badge { margin-bottom: 18px; }
.modal__title {
  font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px);
  font-weight: 700; letter-spacing: -0.028em; line-height: 1.1;
  color: var(--ink); margin: 0 0 10px;
}
.modal__sub { color: var(--ink-mute); font-size: 15px; line-height: 1.55; margin: 0 0 26px; }
.modal__form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: -0.01em; }
.form__input {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 13px 14px; font-size: 15px; color: var(--ink);
  width: 100%; box-sizing: border-box; font-family: inherit;
  transition: border-color 180ms, background 180ms;
}
.form__input:focus { outline: none; border-color: var(--line-blue); background: rgba(56,189,248,0.05); }
.form__input::placeholder { color: var(--ink-faint); }
.form__select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238a92a6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.form__error {
  color: #ff6b6b; font-size: 13px; margin: 0;
  background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.25);
  border-radius: 8px; padding: 10px 14px; line-height: 1.4;
}
.btn--full { width: 100%; justify-content: center; }
.modal__success { text-align: center; padding: 20px 0 8px; }
.modal__success-icon { margin-bottom: 18px; display: flex; justify-content: center; }
.modal__success-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--ink); margin: 0 0 10px; letter-spacing: -0.02em;
}
.modal__success-text { color: var(--ink-mute); font-size: 16px; line-height: 1.6; margin: 0; }
.grecaptcha-badge { visibility: hidden; }
@media (max-width: 540px) {
  .modal { padding: 28px 20px 24px; }
  .form__row { grid-template-columns: 1fr; }
}

/* ============================================================ MOBILE 640 */
@media (max-width: 640px) {
  /* FOMO bar — allow wrapping, center on tiny screens */
  .fomo__inner { flex-wrap: wrap; gap: 4px 12px; }

  /* Hero */
  .page-hero { padding-top: 104px; padding-bottom: 56px; }
  .page-hero--home { padding-top: 96px; }
  .h-hero { font-size: clamp(36px, 10vw, 54px); }

  /* CTA rows — stack buttons full-width */
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .cta-row.center { align-items: center; }
  .cta-row.center .btn { width: auto; min-width: min(260px, 85vw); }

  /* Reduce stacked grid gap (inline style override) */
  .grid-2 { gap: 28px !important; }
  .grid-3 { gap: 16px; }

  /* Stat strip — tighter cells */
  .statstrip__c { padding: 18px 14px; }
  .statstrip__n { font-size: clamp(20px, 5.5vw, 28px); }
  .statstrip__l { font-size: 12px; margin-top: 6px; }

  /* Section */
  .section { padding: clamp(48px, 10vw, 80px) 0; }

  /* Cards */
  .card { padding: 20px 18px; }
  .feat__ic { width: 36px; height: 36px; }

  /* Footer — single column */
  .footer { padding: 48px 0 32px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__legal { flex-direction: column; gap: 8px; margin-top: 36px; }
  .footer__legal .fine:last-child { text-align: left; max-width: none; }

  /* Tables — scrollable on mobile */
  .tbl-wrap { border-radius: var(--r-md); }
  table.kv th, table.kv td { padding: 10px 12px; font-size: 13px; }
}

/* ============================================================ MOBILE 480 */
@media (max-width: 480px) {
  :root { --gutter: 16px; }

  /* FOMO — stack vertically */
  .fomo__inner { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px var(--gutter); }

  /* Nav — tighter */
  .nav__inner { gap: 0; }

  /* Buttons */
  .btn--lg { padding: 15px 22px; font-size: 16px; }
  .btn--glow { padding: 13px 22px; }

  /* Stat strip — 1 column on very small */
  .statstrip { grid-template-columns: 1fr; }
  .statstrip__c { padding: 14px 16px; border-bottom: 1px solid var(--line); }

  /* Hero fine text — wrap nicely */
  .page-hero .fine { font-size: 12px; }

  /* Section cards grid gap */
  .grid-4 { gap: 12px; }

  /* Footer cols */
  .footer__col { border-top: 1px solid var(--line); padding-top: 16px; }
  .footer__h { margin-bottom: 10px; }

  /* Modal — bottom sheet on very small screens */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
}

/* ============================================================ MOTION ENHANCEMENTS ====== */

/* Typewriter cursor */
.tw-cursor {
  display: inline-block;
  width: 3px; height: 0.82em;
  background: var(--glow);
  border-radius: 2px;
  margin-left: 2px;
  vertical-align: middle;
  animation: tw-blink 0.85s step-end infinite;
  box-shadow: 0 0 8px rgba(56,189,248,0.7);
}
@keyframes tw-blink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }
@media (prefers-reduced-motion: reduce) { .tw-cursor { animation: none; opacity: 1; } }

/* Scan line on hero */
.scan-line {
  position: absolute; top: 36%; left: 0; right: 0;
  height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.55) 50%, transparent 100%);
  animation: scan-sweep 7s ease-in-out 1.5s infinite;
}
@keyframes scan-sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .scan-line { display: none; } }

/* Marquee strip */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  background: var(--void);
  position: relative; z-index: 2;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee-strip::before { left: 0; background: linear-gradient(to right, var(--void), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(to left, var(--void), transparent); }
.marquee-track {
  display: flex; width: max-content; white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 0 32px;
}
.marquee-dot {
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: var(--glow); opacity: 0.45; flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Stat strip cascade reveal */
.statstrip__c {
  opacity: 0; transform: translateY(14px);
  transition: opacity 550ms cubic-bezier(0.16,1,0.3,1), transform 550ms cubic-bezier(0.16,1,0.3,1);
}
.statstrip__c.in { opacity: 1; transform: none; }
.statstrip__c:nth-child(1) { transition-delay: 0ms; }
.statstrip__c:nth-child(2) { transition-delay: 70ms; }
.statstrip__c:nth-child(3) { transition-delay: 140ms; }
.statstrip__c:nth-child(4) { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  .statstrip__c { opacity: 1; transform: none; transition: none; }
}

/* ============================================================ INTERACTIVE ENHANCEMENTS ====== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 201; pointer-events: none;
  width: 0%;
  background: linear-gradient(90deg, var(--glow) 0%, #818cf8 50%, var(--glow) 100%);
  background-size: 200% auto;
  box-shadow: 0 0 10px rgba(56,189,248,0.75), 0 0 4px rgba(56,189,248,0.5);
  animation: prog-shimmer 2.5s linear infinite;
}
@keyframes prog-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { animation: none; } }

/* Cards with hover — add box-shadow to transition and enhance glow on hover */
.card--hover {
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 260ms ease;
}
.card--hover:hover {
  border-color: var(--line-blue);
  background: var(--card-2);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px -12px rgba(56,189,248,0.18), 0 0 0 1px rgba(56,189,248,0.07);
}

/* Feature icon — scale + rotate on card hover */
.feat__ic {
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.34,1.56,0.64,1);
}
.card--hover:hover .feat__ic {
  background: rgba(56,189,248,0.16);
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 0 22px rgba(56,189,248,0.22);
  transform: scale(1.1) rotate(-6deg);
}

/* Step numbers — scale + glow on card hover */
.step__n {
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.34,1.56,0.64,1);
}
.card--hover:hover .step__n {
  background: rgba(56,189,248,0.18);
  box-shadow: 0 0 18px rgba(56,189,248,0.4);
  transform: scale(1.12);
}

/* Ghost button — improved hover with glow */
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--line-blue);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.15) inset, 0 6px 28px -8px rgba(56,189,248,0.28);
}

/* Nav links — animated underline reveal */
.nav__links a {
  background-image: linear-gradient(var(--glow), var(--glow));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: opacity 140ms, color 140ms, background-size 240ms cubic-bezier(0.16,1,0.3,1);
}
.nav__links a:hover,
.nav__links a.active {
  background-size: 100% 1px;
}

/* Footer links — slide right on hover */
.footer__col a {
  transition: color 200ms ease, transform 200ms ease;
}
.footer__col a:hover {
  color: var(--glow) !important;
  transform: translateX(5px);
}

/* FAQ — open question gets accent color */
.faq__q {
  transition: color 220ms ease;
}
.faq__item.open .faq__q {
  color: var(--glow);
}

/* Table — stronger row highlight + first-cell glow */
table.kv tbody tr:hover td {
  background: rgba(56,189,248,0.07);
}
table.kv tbody tr:hover td:first-child {
  color: var(--glow);
}

/* Chip — subtle hover glow */
.chip {
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.chip:hover {
  border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
}

/* Stat strip cells — hover accent tint */
.statstrip__c.in:hover {
  background: rgba(56,189,248,0.04);
  cursor: default;
}

/* ============================================================ LIQUID GLASS ====== */

/* Base class — position:relative + CSS vars for mouse-tracked light */
.glass {
  --mx: 50%;
  --my: 35%;
  position: relative;
  isolation: isolate;
}

/* Top specular rim — simulates light catching the glass edge */
.glass::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.10) 12%,
    rgba(180,228,255,0.62) 36%,
    rgba(255,255,255,0.82) 50%,
    rgba(180,228,255,0.62) 64%,
    rgba(255,255,255,0.10) 88%,
    transparent
  );
  z-index: 10;
  pointer-events: none;
}

/* Mouse-tracked refraction blob — updates via JS custom properties */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at var(--mx) var(--my),
    rgba(56,189,248,0.10) 0%,
    rgba(56,189,248,0.03) 38%,
    transparent 62%
  );
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  transition: background 160ms ease;
}
@media (prefers-reduced-motion: reduce) { .glass::after { transition: none; } }

/* Restore sticky on desktop — .glass { position: relative } would override it otherwise */
@media (min-width: 821px) {
  .hero-sim-container.glass {
    position: sticky;
  }
}

/* Hero simulator — deeper glass: more blur, richer inner glow */
.hero-sim-container.glass {
  background: rgba(8, 11, 22, 0.38);
  backdrop-filter: blur(32px) saturate(210%) brightness(1.06);
  -webkit-backdrop-filter: blur(32px) saturate(210%) brightness(1.06);
  border-color: rgba(255,255,255,0.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    inset 0 0 80px rgba(56,189,248,0.025),
    0 24px 80px -20px rgba(4,6,14,0.90),
    0 0 60px -10px rgba(30,110,255,0.28);
}

/* Analytics card inside sim — lighter nested glass (no backdrop-filter, parent already blurs) */
.analytics-card.glass {
  background: rgba(255,255,255,0.020);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 8px 28px rgba(0,0,0,0.28);
}

/* Glass chip — iridescent pill */
.chip.glass {
  background: rgba(56,189,248,0.06);
  border-color: rgba(56,189,248,0.26);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 18px rgba(56,189,248,0.10);
}

/* Modal — glass overlay (no extra class needed, applied directly) */
.modal {
  background: rgba(5,10,22,0.70);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 80px rgba(56,189,248,0.10),
    0 40px 80px rgba(0,0,0,0.55);
}

/* Nav scrolled — enhanced glass bar */
.nav.scrolled {
  background: rgba(4,6,14,0.50);
  backdrop-filter: saturate(200%) blur(28px) brightness(1.07);
  -webkit-backdrop-filter: saturate(200%) blur(28px) brightness(1.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 32px -8px rgba(0,0,0,0.45);
}

/* Diagnostic box glass variant */
.diagnostic-box.glass {
  background: rgba(255,255,255,0.015);
  border-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

