/* ============================================================
   Counter AI — Landing page
   Dark / techy system
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #07080a;
  --bg-1:      #0c0e12;
  --bg-2:      #11141a;
  --bg-3:      #171b22;

  /* lines */
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --line-3:    rgba(255,255,255,0.20);

  /* text */
  --text:      #f3f5f8;
  --text-dim:  #9aa4b0;
  --text-faint:#5d6772;

  /* accent — luminous cyan; violet companion for glows only */
  --accent:        oklch(0.82 0.13 207);
  --accent-soft:   oklch(0.82 0.13 207 / 0.14);
  --accent-line:   oklch(0.82 0.13 207 / 0.40);
  --accent-2:      oklch(0.70 0.16 277);
  --accent-ink:    #03252b; /* text on accent fills */

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page-wide subtle grid + radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -5%, oklch(0.82 0.13 207 / 0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 8%, oklch(0.70 0.16 277 / 0.07), transparent 55%);
}
.grid-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 1;
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px 1px var(--accent);
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-dim);
  font-size: clamp(16px, 1.5vw, 19px);
  margin-top: 18px;
  max-width: 56ch;
  text-wrap: pretty;
}

section { padding-block: clamp(72px, 10vw, 132px); position: relative; }

.num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-soft);
}
.btn-primary:hover {
  box-shadow: 0 10px 34px -10px var(--accent), 0 0 0 4px var(--accent-soft);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,0.03); transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translate(3px, 0); }

/* =========================================================
   NAV
   ========================================================= */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: oklch(0.04 0.005 250 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; white-space: nowrap; flex: none; }
.brand .mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex: none;
}
.brand .mark svg { display: block; }
.mark-sm { display: inline-grid; place-items: center; }
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; }
.brand small { color: var(--text-faint); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.05em; }
.nav-links { display: flex; align-items: center; gap: 26px; flex: none; }
.nav-links a.link {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a.link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 9px; width: 42px; height: 42px; color: var(--text); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(120px, 16vw, 168px); padding-bottom: clamp(60px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  color: var(--text-dim);
  font-size: clamp(17px, 1.7vw, 20px);
  margin-top: 24px;
  max-width: 50ch;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta {
  margin-top: 34px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta .m-val { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.hero-meta .m-val span { color: var(--accent); }
.hero-meta .m-lab { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* channel chips */
.channels { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.chip.is-primary { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip.is-primary .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chip .soon { color: var(--text-faint); font-size: 10px; }

/* ---------- KIOSK (video inside drawn frame) ---------- */
.kiosk-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.kiosk-stage::before { /* glow */
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.82 0.13 207 / 0.20), transparent 65%);
  filter: blur(12px);
  z-index: 0;
}
.kiosk {
  position: relative;
  z-index: 1;
  width: 232px;
  filter: drop-shadow(0 36px 56px rgba(0,0,0,0.55));
}
/* screen body — holds the video (matches the video's 9:16 ratio so it shows in full) */
.kiosk .screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 720 / 1280;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.kiosk-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 50%;
  z-index: 0; display: block;
}
/* overlaid UI + legibility scrim */
.kiosk .screen-ui {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 13px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 20%, transparent 58%, rgba(0,0,0,0.74));
}
.kiosk .screen::after { /* glass sheen */
  content: "";
  position: absolute; inset: 0; z-index: 2;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,255,255,0.05), transparent 38%);
  pointer-events: none;
}
.screen-bottom { display: flex; flex-direction: column; }
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
}
.live { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.live .ld { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

/* waveform + caption */
.caption {
  font-family: var(--mono); font-size: 9.5px; color: #fff;
  text-align: center; letter-spacing: 0.01em; min-height: 26px;
  line-height: 1.45; text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  transition: opacity .25s;
}
.wave { display: flex; align-items: flex-end; justify-content: center; gap: 2.5px; height: 20px; margin-bottom: 7px; }
.wave i { width: 2.5px; border-radius: 2px; background: var(--accent); opacity: .9; animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(1){height:30%;animation-delay:0s}
.wave i:nth-child(2){height:70%;animation-delay:.1s}
.wave i:nth-child(3){height:45%;animation-delay:.2s}
.wave i:nth-child(4){height:90%;animation-delay:.3s}
.wave i:nth-child(5){height:55%;animation-delay:.4s}
.wave i:nth-child(6){height:80%;animation-delay:.5s}
.wave i:nth-child(7){height:35%;animation-delay:.6s}
.wave i:nth-child(8){height:60%;animation-delay:.7s}
@keyframes eq { 0%,100%{transform:scaleY(.4)} 50%{transform:scaleY(1)} }
/* pedestal */
.kiosk .stem { width: 20px; height: 40px; margin: -1px auto 0; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border-inline: 1px solid var(--line-2); position: relative; z-index: 0; }
.kiosk .base { width: 112px; height: 14px; margin: 0 auto; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, var(--bg-2), #060708); border: 1px solid var(--line-2); border-top: none; position: relative; z-index: 0; }
.kiosk .base::after { content:""; display:block; width: 70px; height: 22px; margin: 12px auto 0; border-radius: 50%; background: radial-gradient(ellipse, oklch(0.82 0.13 207 / 0.18), transparent 70%); filter: blur(6px); }

/* =========================================================
   LOGO / PROOF STRIP
   ========================================================= */
.proofstrip { padding-block: 0; }
.proofstrip .wrap { border-block: 1px solid var(--line); padding-block: 26px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.proofstrip .ps-lab { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.proofstrip .ps-logos { display: flex; gap: clamp(20px,3vw,44px); flex-wrap: wrap; align-items: center; }
.proofstrip .ps-logos span { font-size: 16px; font-weight: 500; color: var(--text-dim); letter-spacing: -0.01em; transition: color .2s; }
.proofstrip .ps-logos span:hover { color: var(--text); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-1), transparent);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step .step-n {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 8px;
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--accent-soft);
}
.step h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.step p { color: var(--text-dim); margin-top: 11px; font-size: 15.5px; text-wrap: pretty; }
.step .line {
  position: absolute; top: 49px; right: -10px; width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}
.step:last-child .line { display: none; }
.moat {
  margin-top: 22px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  font-size: 15.5px;
  color: var(--text);
}
.moat b { color: var(--accent); font-weight: 600; }
.moat .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; }

/* =========================================================
   FEATURES
   ========================================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  transition: border-color .25s, transform .25s, background .25s;
}
.feat:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--bg-2); }
.feat .ficon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
  color: var(--accent);
}
.feat h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.feat p { color: var(--text-dim); margin-top: 9px; font-size: 14.5px; text-wrap: pretty; }
.feat.wide { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: linear-gradient(120deg, var(--bg-2), var(--bg-1)); padding: 36px; }
.feat.wide:hover { transform: none; }
.feat.wide .platform-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.feat.wide h3 { font-size: clamp(22px, 2.4vw, 30px); }
.feat.wide p { font-size: 16px; max-width: 44ch; }
.plat-chip {
  border: 1px solid var(--line-2); border-radius: 11px;
  padding: 14px 16px; min-width: 132px;
  background: var(--bg-1);
}
.plat-chip .pc-top { display: flex; align-items: center; justify-content: space-between; }
.plat-chip .pc-name { font-weight: 500; font-size: 15px; }
.plat-chip .pc-price { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.plat-chip.flag { border-color: var(--accent-line); background: var(--accent-soft); }
.plat-chip.flag .pc-price { color: var(--accent); }
.tag-flag { font-family: var(--mono); font-size: 9px; color: var(--accent-ink); background: var(--accent); padding: 2px 6px; border-radius: 5px; letter-spacing: .05em; }
.tag-soon { font-family: var(--mono); font-size: 9px; color: var(--text-faint); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 5px; }

/* =========================================================
   TRACTION
   ========================================================= */
.traction { background: linear-gradient(180deg, transparent, var(--bg-1) 40%, transparent); }
.tr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 46px; }
.tr-stat { border-left: 2px solid var(--accent-line); padding-left: 20px; }
.tr-stat .v { font-size: clamp(30px, 3.8vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-feature-settings: "tnum"; }
.tr-stat .l { color: var(--text-dim); font-size: 14px; margin-top: 12px; text-wrap: pretty; }
.deploys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deploy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-1);
  transition: border-color .25s, transform .25s;
}
.deploy:hover { border-color: var(--line-2); transform: translateY(-3px); }
.deploy .d-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.deploy .d-name { font-size: 20px; font-weight: 500; margin-top: 14px; letter-spacing: -0.01em; }
.deploy .d-desc { color: var(--text-dim); font-size: 14px; margin-top: 8px; text-wrap: pretty; }
.deploy .d-status { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.deploy .d-status .sd { width: 6px; height: 6px; border-radius: 50%; }
.deploy .d-status.live { color: var(--accent); } .deploy .d-status.live .sd { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.deploy .d-status.done { color: var(--text-dim); } .deploy .d-status.done .sd { background: var(--text-dim); }
.deploy .d-status.signed { color: var(--accent-2); } .deploy .d-status.signed .sd { background: var(--accent-2); }
.tr-quote {
  margin-top: 40px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 24ch;
  text-wrap: balance;
}
.tr-quote span { color: var(--accent); }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  background: var(--bg-1);
  transition: border-color .25s, transform .25s;
}
.member:hover { border-color: var(--line-2); transform: translateY(-3px); }
.member .ava {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 20px; font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  margin-bottom: 22px;
}
.member .m-name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.member .m-role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.member .m-bio { color: var(--text-dim); font-size: 13.5px; margin-top: 14px; line-height: 1.55; text-wrap: pretty; }
.team-foot { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.03em; }
.team-foot b { color: var(--text-dim); font-weight: 400; }

/* =========================================================
   CTA / EMAIL CAPTURE
   ========================================================= */
.cta { padding-bottom: clamp(90px, 12vw, 150px); }
.cta-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(600px 320px at 80% 0%, oklch(0.82 0.13 207 / 0.13), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  text-align: center;
}
.cta-card h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.cta-card p { color: var(--text-dim); font-size: clamp(16px,1.6vw,19px); margin: 18px auto 0; max-width: 50ch; text-wrap: pretty; }
.email-form { display: flex; gap: 10px; max-width: 480px; margin: 34px auto 0; flex-wrap: wrap; justify-content: center; }
.email-form .field { flex: 1; min-width: 220px; position: relative; }
.email-form input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.email-form input::placeholder { color: var(--text-faint); }
.email-form input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.email-form input.invalid { border-color: oklch(0.65 0.2 25); box-shadow: 0 0 0 4px oklch(0.65 0.2 25 / 0.15); }
.email-note { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 16px; min-height: 18px; transition: color .2s; }
.email-note.err { color: oklch(0.72 0.18 25); }
.email-note.ok { color: var(--accent); }
.cta-or { margin-top: 22px; font-size: 14px; color: var(--text-faint); }
.cta-or button { background: none; border: none; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer.foot { border-top: 1px solid var(--line); padding-block: 44px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-inner .f-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.foot-meta { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-meta a:hover { color: var(--text-dim); }

/* =========================================================
   DEMO MODAL
   ========================================================= */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: oklch(0.02 0 0 / 0.7);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 34px;
  transform: translateY(16px) scale(.98);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.modal-scrim.open .modal { transform: none; }
.modal .m-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text-dim); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.modal .m-close:hover { color: var(--text); border-color: var(--line-3); }
.modal .m-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.modal h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-top: 12px; }
.modal .m-sub { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; }
.modal .m-steps { display: flex; gap: 6px; margin-top: 22px; }
.modal .m-steps .sdot { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.modal .m-steps .sdot.active { background: var(--accent); }
.field-group { margin-top: 20px; }
.field-group label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 8px; }
.field-group input, .field-group select {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,0.35);
  color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field-group input:focus, .field-group select:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-group input.invalid { border-color: oklch(0.65 0.2 25); }
.field-err { color: oklch(0.72 0.18 25); font-family: var(--mono); font-size: 11px; margin-top: 7px; min-height: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 26px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-success { text-align: center; padding: 12px 0; }
.modal-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; margin: 8px auto 22px; color: var(--accent); }
.modal-success h3 { font-size: 24px; }
.modal-success p { color: var(--text-dim); font-size: 15px; margin-top: 10px; }

/* =========================================================
   reveal animations
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .06s; }
  .reveal.d2 { transition-delay: .12s; }
  .reveal.d3 { transition-delay: .18s; }
  .reveal.d4 { transition-delay: .24s; }
}
/* hard failsafe — forces visible with no transition (works even when the
   tab/iframe is inactive and CSS transitions are paused) */
html.reveal-force .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .kiosk-stage { min-height: 420px; order: -1; }
  .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .feat.wide { grid-column: span 2; grid-template-columns: 1fr; }
  .tr-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .deploys { grid-template-columns: repeat(2, 1fr); }
  .step .line { display: none; }
  /* collapse nav to hamburger here so the CTA never overflows */
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  header.nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 16px;
  }
  header.nav.menu-open .nav-links a.link { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
}
@media (max-width: 620px) {
  .features-grid, .steps, .team-grid, .deploys { grid-template-columns: 1fr; }
  .feat.wide { grid-column: span 1; }
  .tr-stats { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 22px; }
}
