/* ═══════════════════════════════════════════════
   WebDD — landing styles
   Dark theme is default; light theme follows the
   device preference (or the manual nav toggle).
   ═══════════════════════════════════════════════ */

:root {
  --bg0: #07080c;
  --bg1: #0d0e14;
  --card: #10121a;
  --card-2: #141622;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f7;
  --muted: #9da3b4;
  --accent: #3b82f6;
  --accent-strong: #60a5fa;
  --accent-dim: rgba(59, 130, 246, .14);
  --accent-border: rgba(59, 130, 246, .45);
  --on-accent: #ffffff;
  --nav-bg: rgba(7, 8, 12, .72);
  --grain-filter: none;
  --grain-opacity: .5;
  --glow-color: rgba(59, 130, 246, .14);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --radius: 18px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

:root[data-theme="light"] {
  --bg0: #fafafa;
  --bg1: #ffffff;
  --card: #ffffff;
  --card-2: #f2f3f6;
  --line: rgba(15, 23, 42, .10);
  --line-strong: rgba(15, 23, 42, .20);
  --text: #0e1116;
  --muted: #5b6272;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-dim: rgba(37, 99, 235, .10);
  --accent-border: rgba(37, 99, 235, .35);
  --on-accent: #ffffff;
  --nav-bg: rgba(250, 250, 250, .78);
  --grain-filter: invert(1);
  --grain-opacity: .3;
  --glow-color: rgba(37, 99, 235, .07);
}

/* no-JS fallback: follow the device */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg0: #fafafa;
    --bg1: #ffffff;
    --card: #ffffff;
    --card-2: #f2f3f6;
    --line: rgba(15, 23, 42, .10);
    --line-strong: rgba(15, 23, 42, .20);
    --text: #0e1116;
    --muted: #5b6272;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-dim: rgba(37, 99, 235, .10);
    --accent-border: rgba(37, 99, 235, .35);
    --nav-bg: rgba(250, 250, 250, .78);
    --grain-filter: invert(1);
    --grain-opacity: .3;
    --glow-color: rgba(37, 99, 235, .07);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -.02em; }

img { max-width: 100%; }
a { color: inherit; }

/* ── ambience ─────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain-opacity);
  filter: var(--grain-filter);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.glow-a {
  width: 640px; height: 640px; top: -220px; right: -160px;
  background: radial-gradient(circle, var(--glow-color), transparent 65%);
}
.glow-b {
  width: 560px; height: 560px; top: 45vh; left: -240px;
  background: radial-gradient(circle, var(--glow-color), transparent 65%);
}

/* ── shared ───────────────────────────────── */
.container { width: min(1160px, 92vw); margin: 0 auto; }
.container-narrow { width: min(820px, 92vw); }

.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin: 14px 0 20px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.e-dot, .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.pulse-dot { animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .45); }
  50% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); }
}

.accent-text { color: var(--accent); }

/* ── buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s;
  will-change: transform;
}
.btn-sm { padding: 10px 22px; font-size: .9rem; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 40px -8px rgba(59, 130, 246, .55);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── nav ──────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1240px, 94vw); margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -.03em; text-decoration: none; color: var(--text);
}
.logo span { color: var(--accent); }
.logo em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .95em; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.tt-sun { display: none; }
.tt-moon { display: block; }
:root[data-theme="light"] .tt-sun { display: block; }
:root[data-theme="light"] .tt-moon { display: none; }

.nav-burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--text); display: block;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 4vw 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-menu a {
  text-decoration: none; color: var(--text); font-weight: 500;
  padding: 12px 4px;
}
.nav-menu .btn { margin-top: 10px; }
.nav-menu.open { display: flex; }

/* ── hero ─────────────────────────────────── */
.hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 0; overflow: hidden; }
.hero-inner {
  width: min(1240px, 94vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 700; margin: 22px 0 24px;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-sub {
  color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  max-width: 34rem; margin-bottom: 34px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: .85rem; letter-spacing: .04em; }

/* hero stage (animated demo) */
.hero-stage-wrap { position: relative; }
.stage {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 2.2vw, 28px);
  overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .45);
}

.stage-brief {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stage[data-phase] .stage-brief { opacity: 1; transform: none; }

.sb-head { display: flex; align-items: center; gap: 12px; }
.sb-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--on-accent);
}
.sb-head strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.sb-head small { color: var(--muted); font-size: .75rem; }
.sb-tag {
  margin-left: auto; font-size: .7rem; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
}
.sb-text { margin: 12px 0; font-size: .92rem; color: var(--text); }
.sb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: .74rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.chip-accent { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }

.stage-samples {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1;
}
.sample {
  position: relative;
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px;
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease),
              border-color .4s, box-shadow .5s, filter .5s;
  display: flex; flex-direction: column; gap: 10px;
}
.stage[data-phase="1"] .sample,
.stage[data-phase="2"] .sample,
.stage[data-phase="3"] .sample { opacity: 1; transform: none; }
.stage[data-phase="1"] .s1 { transition-delay: 0s; }
.stage[data-phase="1"] .s2 { transition-delay: .14s; }
.stage[data-phase="1"] .s3 { transition-delay: .28s; }

.stage[data-phase="2"] .winner,
.stage[data-phase="3"] .winner {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 44px -14px rgba(59, 130, 246, .45);
}
.stage[data-phase="2"] .s1, .stage[data-phase="2"] .s3,
.stage[data-phase="3"] .s1, .stage[data-phase="3"] .s3 {
  filter: saturate(.4) opacity(.55);
}

.thumb {
  aspect-ratio: 16 / 11; border-radius: 9px; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px; padding: 7px;
}
.thumb i { display: block; border-radius: 3px; }
.t-nav { height: 6px; width: 100%; }
.t-hero { flex: 1; }
.t-row { height: 5px; }
.t-row.w70 { width: 70%; }
.t-row.w45 { width: 45%; }

/* three distinct sample styles — light, blue (winner), slate */
.thumb-a { background: #eef0f4; }
.thumb-a .t-nav, .thumb-a .t-row { background: rgba(15, 23, 42, .18); }
.thumb-a .t-hero { background: #d7dce6; }

.thumb-b { background: #0a1220; }
.thumb-b .t-nav, .thumb-b .t-row { background: rgba(255, 255, 255, .22); }
.thumb-b .t-hero { background: #2563eb; }

.thumb-c { background: #1a2233; }
.thumb-c .t-nav, .thumb-c .t-row { background: rgba(255, 255, 255, .16); }
.thumb-c .t-hero { background: #64748b; }

.sample-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.s-name { font-size: .72rem; color: var(--muted); font-weight: 500; }
.s-price {
  font-size: .72rem; font-weight: 700; color: var(--text);
  font-family: var(--font-display); white-space: nowrap;
}

.offer-chip {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--text); color: var(--bg1);
  font-size: .72rem; font-weight: 700; font-family: var(--font-display);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease);
  z-index: 2;
}
.stage[data-phase="2"] .offer-chip,
.stage[data-phase="3"] .offer-chip { opacity: 1; transform: translateX(-50%) translateY(0); }

.stage-deal {
  display: flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 14px; padding: 13px 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.stage[data-phase="3"] .stage-deal { opacity: 1; transform: none; }
.deal-check {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--on-accent); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
.stage-deal strong { font-family: var(--font-display); display: block; font-size: .92rem; line-height: 1.2; }
.stage-deal small { font-size: .76rem; opacity: .85; }

.stage-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px; padding: 0 6px;
}
.stage-caption p { color: var(--muted); font-size: .88rem; min-height: 1.4em; }
.stage-dots { display: flex; gap: 6px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong); transition: background .3s, transform .3s;
}
.dot.active { background: var(--accent); transform: scale(1.25); }

/* marquee */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; white-space: nowrap;
  background: rgba(125, 125, 125, .04);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── problem ──────────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
}
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .4s var(--ease), border-color .3s;
}
.p-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.p-num {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  color: var(--accent); letter-spacing: .1em;
}
.p-card h3 { margin: 14px 0 10px; font-size: 1.25rem; }
.p-card p { color: var(--muted); font-size: .95rem; }
.p-card em { color: var(--text); font-style: normal; font-weight: 600; }

.problem-flip {
  margin: clamp(40px, 5vw, 64px) 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: -.02em; line-height: 1.15;
}

/* before / after slider */
@property --pos {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 50%;
}
.ba {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8.2;
  min-height: 300px;
  user-select: none; touch-action: none;
  cursor: ew-resize;
  container-type: inline-size; /* the mocks size their type in cqi */
  --pos: 50%;
}
.ba-site { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }

.ba-label {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0, 0, 0, .55); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ba-label-r { left: auto; right: 14px; background: var(--accent); color: var(--on-accent); }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4;
  width: 2px; background: #fff; transform: translateX(-1px);
  cursor: ew-resize; outline-offset: 4px;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #0a0a0a;
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.ba-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .45); padding: 5px 14px; border-radius: 999px;
  pointer-events: none;
}

/* old-site mock */
.mock-old {
  position: absolute; inset: 0;
  background: #e8e0cd; color: #333;
  font-family: "Times New Roman", serif;
  display: flex; flex-direction: column;
}
.mo-banner {
  background: linear-gradient(#28457c, #16294e); color: #ffe14d;
  text-align: center; font-weight: 700;
  font-size: clamp(.9rem, 2vw, 1.5rem);
  padding: clamp(10px, 2vw, 22px) 8px;
  letter-spacing: .06em; text-shadow: 1px 1px 0 #000;
}
.mo-nav {
  display: flex; justify-content: center; gap: clamp(8px, 2vw, 26px);
  background: #c9bfa4; border-bottom: 2px solid #8f855f;
  padding: 8px; font-size: clamp(.6rem, 1.3vw, .85rem); font-weight: 700;
  color: #1f3b73; text-decoration: underline;
}
.mo-body { display: flex; flex: 1; gap: 14px; padding: clamp(10px, 2vw, 22px); }
.mo-col { flex: 2; display: flex; flex-direction: column; gap: 10px; }
.mo-line { height: 9px; background: #b3a888; }
.mo-line.w60 { width: 60%; }
.mo-line.w80 { width: 80%; }
.mo-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mo-widget {
  border: 2px ridge #8f855f; background: #f5eeda;
  text-align: center; font-weight: 700; font-size: clamp(.6rem, 1.2vw, .8rem);
  padding: clamp(8px, 1.6vw, 16px) 6px; color: #7a1010;
}
.mo-widget.blink { animation: blink 1s steps(2) infinite; color: #c40000; }
@keyframes blink { 50% { opacity: .25; } }
.mo-footer {
  margin-top: auto;
  background: #c9bfa4; border-top: 2px solid #8f855f;
  text-align: center; font-size: clamp(.55rem, 1.1vw, .75rem);
  padding: 7px 6px; color: #4a4433; font-style: italic;
}

/* new-site mock — a miniature award-style studio site */
.mock-new {
  position: absolute; inset: 0;
  background: #0a0c10;
  color: #fff;
  font-family: var(--font-display);
  display: flex; flex-direction: column;
  padding: 3.4cqi 4.2cqi 4cqi;
  gap: 2.6cqi;
}
.nw-nav {
  display: flex; align-items: center; gap: 3cqi;
  font-size: 1.9cqi;
}
.nw-brand { font-weight: 700; font-size: 2.3cqi; letter-spacing: -.02em; }
.nw-brand i { font-style: normal; color: #3b82f6; font-size: .7em; vertical-align: super; }
.nw-menu { display: flex; gap: 2.6cqi; margin-left: auto; color: rgba(255, 255, 255, .55); }
.nw-menu b { font-weight: 500; }
.nw-btn {
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  padding: .8cqi 2.2cqi; font-size: 1.7cqi; font-weight: 500;
}
.nw-hero { margin-top: 1cqi; }
.nw-kicker {
  display: block; font-size: 1.8cqi; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #3b82f6; margin-bottom: 1.6cqi;
}
.nw-line {
  display: block; font-size: 7.4cqi; font-weight: 700;
  line-height: 1.0; letter-spacing: -.03em;
}
.nw-line em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 400; color: #3b82f6;
}
.nw-marquee {
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  padding: 1.3cqi 0; overflow: hidden; white-space: nowrap;
  font-size: 1.9cqi; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.nw-marquee span { display: inline-block; animation: marquee 16s linear infinite; }
.nw-work {
  display: flex; gap: 2cqi; flex: 1; min-height: 0; margin-top: auto;
}
.nw-card {
  flex: 1; border-radius: 1.7cqi;
  padding: 1.6cqi;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1cqi;
  font-size: 1.7cqi; font-weight: 600;
  min-height: 7cqi;
}
.nw-card i {
  font-style: normal; flex: none;
  width: 3.2cqi; height: 3.2cqi; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: 1.7cqi; font-weight: 400;
}
.nw-card.c1 { background: #161b24; border: 1px solid rgba(255, 255, 255, .1); }
.nw-card.c2 { background: #2563eb; }
.nw-card.c3 { background: #e9ebf0; color: #0a0c10; }

/* ── how it works ─────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.how-head { position: sticky; top: clamp(96px, 14vh, 140px); }
.how .steps { position: relative; margin-top: 0; }
.steps-line {
  position: absolute; top: 8px; bottom: 8px; left: 27px; width: 2px;
  background: var(--line);
}
.steps-line i {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--accent);
}
.step {
  position: relative; display: flex; gap: clamp(22px, 3.5vw, 44px);
  padding: clamp(20px, 3vw, 34px) 0 clamp(20px, 3vw, 34px) 0;
}
.step-num {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg0); border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  z-index: 1;
}
.step-body { max-width: 560px; padding-top: 8px; }
.step-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 10px; }
.step-body p { color: var(--muted); }
.step-body strong { color: var(--text); font-weight: 600; }

/* ── split panels ─────────────────────────── */
/* company panel is always light, dev panel always dark —
   each side of the marketplace sees "their" theme */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.split-panel {
  border-radius: 26px; padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start;
}
.split-panel h2 { margin: 16px 0 26px; }
.panel-company {
  --text: #0e1116;
  --muted: #5b6272;
  --line: rgba(15, 23, 42, .12);
  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, .10);
  background: #ffffff;
  color: var(--text);
  border-color: rgba(15, 23, 42, .12);
}
.panel-dev {
  --text: #f4f4f7;
  --muted: #9da3b4;
  --line: rgba(255, 255, 255, .12);
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, .16);
  background: #0a0f1a;
  color: var(--text);
  border-color: rgba(255, 255, 255, .12);
}
.ticklist { list-style: none; margin-bottom: 34px; display: grid; gap: 16px; }
.ticklist li {
  position: relative; padding-left: 32px; color: var(--muted); font-size: .98rem;
}
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-dim); color: var(--accent);
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.ticklist strong { color: var(--text); }
.ticklist em { font-style: normal; color: var(--text); }
.split-panel .btn { margin-top: auto; }
.panel-dev .btn-acid { background: #ffffff; color: #0a0f1a; }
.panel-dev .btn-acid:hover { background: var(--accent); color: #ffffff; }

/* ── rules ────────────────────────────────── */
.rules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: clamp(36px, 4vw, 56px);
}
.r-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.r-card:hover { transform: translateY(-6px); border-color: var(--accent-border); }
.r-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg1); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.25rem;
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  margin-bottom: 18px;
}
.r-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.r-card p { color: var(--muted); font-size: .92rem; }

/* ── pricing ──────────────────────────────── */
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: clamp(36px, 4vw, 56px);
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px 26px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border-color: var(--accent-border);
  box-shadow: 0 16px 60px -24px rgba(59, 130, 246, .35);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 22px; }
.amount { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -.02em; }
.per { color: var(--muted); font-size: .85rem; }
.price-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; }
.price-card li {
  position: relative; padding-left: 24px; color: var(--muted); font-size: .9rem;
}
.price-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ── faq ──────────────────────────────────── */
.faq-list { margin-top: clamp(28px, 3vw, 44px); display: grid; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: border-color .3s;
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-x {
  position: relative; width: 16px; height: 16px; flex: none;
  transition: transform .35s var(--ease);
}
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
}
.faq-x::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq-x::after { top: 0; bottom: 0; left: 7px; width: 2px; }
details[open] .faq-x { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 26px 24px; color: var(--muted); font-size: .95rem; max-width: 60rem;
}
.faq-list details em { color: var(--text); font-style: italic; }

/* ── waitlist cta ─────────────────────────── */
.cta-card {
  position: relative; text-align: center;
  border-radius: 30px; padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border: 1px solid var(--line-strong);
  background: var(--card);
  overflow: hidden;
}
.cta-card h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.cta-card > p { color: var(--muted); margin: 18px 0 34px; }

.wl-form { max-width: 560px; margin: 0 auto; }
.wl-roles {
  display: inline-flex; gap: 6px; margin-bottom: 20px;
  background: var(--bg1); border: 1px solid var(--line);
  padding: 5px; border-radius: 999px;
}
.wl-roles label { cursor: pointer; }
.wl-roles input { position: absolute; opacity: 0; pointer-events: none; }
.wl-roles span {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  transition: background .25s, color .25s;
}
.wl-roles input:checked + span { background: var(--accent); color: var(--on-accent); }
.wl-roles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.wl-row { display: flex; gap: 10px; }
.wl-row input {
  flex: 1; min-width: 0;
  background: var(--bg1); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 15px 24px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .25s;
}
.wl-row input:focus { outline: none; border-color: var(--accent); }
.wl-row input::placeholder { color: var(--muted); }
.wl-msg { margin-top: 16px; font-size: .9rem; color: var(--accent); min-height: 1.4em; }
.wl-msg.error { color: #e5484d; }
.cta-alt { margin-top: 22px; font-size: .88rem; color: var(--muted); }
.cta-alt a { color: var(--text); }

/* ── footer ───────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 110px) 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer-brand .logo { font-size: 1.7rem; }
.footer-tag {
  color: var(--muted); margin: 18px 0 26px;
  font-size: 1rem; max-width: 26rem;
}
.footer-mail {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  text-decoration: none; color: var(--text);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color .25s, border-color .25s;
}
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-col h4 {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.footer-col a {
  display: block; text-decoration: none; color: var(--text);
  padding: 8px 0; font-size: 1rem; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px; padding-bottom: 10px;
  color: var(--muted); font-size: .85rem;
}
.footer-top {
  color: var(--text); text-decoration: none; font-weight: 500;
  transition: color .2s;
}
.footer-top:hover { color: var(--accent); }
/* the wordmark is a canvas flow-field — see app.js */
.footer-word {
  position: relative;
  margin-top: clamp(20px, 4vw, 44px);
}
#wordCanvas {
  display: block; width: 100%;
  cursor: crosshair;
}

/* ── reveal animation ─────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────── */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage-wrap { max-width: 620px; }
  .problem-grid, .rules-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn { display: none; }
  .problem-grid, .rules-grid, .price-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .stage-samples { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .s-name { display: none; }
  .sample-meta { justify-content: center; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .how-grid { grid-template-columns: 1fr; gap: clamp(24px, 5vw, 40px); }
  .how-head { position: static; }
  .steps-line { left: 21px; }
  .step-num { width: 44px; height: 44px; font-size: .85rem; }
  .ba { aspect-ratio: 4 / 3.4; min-height: 0; }
  .offer-chip { font-size: .62rem; padding: 5px 9px; }
  .nw-menu { display: none; }
  .nw-line { font-size: 9.4cqi; }
  .nw-card { font-size: 2.4cqi; min-height: 11cqi; }
}

/* ── reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .nw-marquee span { animation: none; }
  .pulse-dot { animation: none; }
  .mo-widget.blink { animation: none; }
  .stage-brief, .sample, .offer-chip, .stage-deal { transition: none; }
}
