/* Tokens lifted from the product front (SMC-Front src/assets/main.css) so the
   teaser and the launch page read as one surface. */
:root {
    --surface-950: #000000; --surface-900: #08090b; --surface-850: #0f1114; --surface-800: #191c21; --surface-600: #333941;
    --text-1: #eef1f5; --text-2: #a2abb6; --text-muted: #6b7480; --text-faint: #454d58;
    --light: #2ee88a; --light-rgb: 46 232 138; --success: #5ee6a0; --danger: #ff7d7d;
    --sign-ink: #07110b;
    --glass-fill: rgb(255 255 255 / .04); --glass-fill-strong: rgb(255 255 255 / .08);
    --glass-border: rgb(255 255 255 / .09); --glass-blur: blur(14px) saturate(140%);
    --metal-cta: linear-gradient(180deg,#ffffff 0%,#e2e9f1 45%,#bcc8d6 100%);
    --metal-cta-hover: linear-gradient(180deg,#ffffff 0%,#eef3f8 45%,#d2dce7 100%);
    --metal-edge: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -1px 0 rgb(0 0 0 / .35);
    --metal-edge-dark: inset 0 1px 0 rgb(255 255 255 / .10);
    --font-sans: "Space Grotesk", system-ui, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-brand: "Bricolage Grotesque", var(--font-sans);
    --tracking-brand: 0.22em; --tracking-wide: 0.06em;
    --radius-pill: 999px; --radius-md: 12px;
    --dur: 160ms; --ease: cubic-bezier(.2,.7,.2,1);
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; min-height: 100%; background: var(--surface-950); color: var(--text-1);
    font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  .mono { font-family: var(--font-mono); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---- cinematic street background ---- */
  .hero-stage { position: relative; isolation: isolate; overflow: clip; }
  .hero-stage > .top, .hero-stage > .hero { position: relative; z-index: 2; }
  .street-background { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #171a17 url('/media/stonk-market-v5-poster.jpg') center / cover no-repeat; }
  #street-video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
  #street-video[hidden] { display: none; }
  .street-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgb(3 9 7 / .89) 0%, rgb(3 9 7 / .76) 31%, rgb(3 9 7 / .28) 62%, rgb(3 9 7 / .08) 100%),
      linear-gradient(180deg, rgb(0 0 0 / .3), transparent 24%, transparent 70%, rgb(0 0 0 / .55)); }
  .top-actions { display: flex; align-items: center; gap: 12px; }
  .motion-toggle { padding: 7px 12px; border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radius-pill); background: rgb(3 9 7 / .55); color: var(--text-1); font-size: 11px; cursor: pointer; backdrop-filter: blur(10px); }
  .motion-toggle:hover { background: rgb(3 9 7 / .85); }
  .motion-toggle:focus-visible { outline: 2px solid var(--light); outline-offset: 4px; }
  .motion-toggle[hidden] { display: none; }

  /* ---- page ---- */
  .page { position: relative; z-index: 2; }
  .wrap { max-width: 1160px; margin: 0 auto; padding-inline: 28px; }
  .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
  .wordmark {
    font-family: var(--font-brand); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-brand); font-size: 13px; white-space: nowrap;
    background: linear-gradient(180deg, #f6f8fb 0%, #c8d1dc 52%, #8b95a2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .chip {
    font-size: 11px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-2);
    padding: 6px 12px; border-radius: var(--radius-pill); background: var(--glass-fill); border: 1px solid var(--glass-border);
    box-shadow: var(--metal-edge-dark); backdrop-filter: var(--glass-blur); display: inline-flex; align-items: center; gap: 8px;
  }
  .chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--light); box-shadow: 0 0 8px rgb(var(--light-rgb) / .9); }

  .hero { min-height: calc(100svh - 64px); display: grid; align-content: center; padding-block: 48px 72px; }
  .hero-copy { max-width: 560px; }
  .eyebrow { font-size: 12px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--success); margin: 0 0 20px; }
  .headline {
    font-family: var(--font-brand); font-weight: 600; font-size: clamp(40px, 6.4vw, 74px); line-height: .98; letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 0%, #d9e0e8 60%, #a9b4c1 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .headline em { font-style: normal; color: var(--light); -webkit-text-fill-color: var(--light); }
  .lede { font-size: 18px; color: #c4ccc8; margin: 0 0 32px; max-width: 50ch; text-wrap: pretty; }
  .notify { max-width: 520px; }
  .field {
    display: flex; gap: 6px; padding: 6px; border-radius: var(--radius-pill); background: rgb(8 9 11 / .55); border: 1px solid var(--glass-border);
    box-shadow: var(--metal-edge-dark); backdrop-filter: var(--glass-blur); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .field:focus-within { border-color: rgb(var(--light-rgb) / .45); background: rgb(8 9 11 / .75); }
  .field input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; background: none; border: none; outline: none; color: var(--text-1); font-family: var(--font-sans); font-size: 16px; }
  .field input::placeholder { color: var(--text-muted); }
  .cta {
    height: 44px; padding: 0 22px; border: none; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: #0b0e12;
    background: var(--metal-cta); box-shadow: var(--metal-edge); white-space: nowrap; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .cta:hover { background: var(--metal-cta-hover); }
  .cta:active { transform: translateY(1px); }
  .cta:disabled { opacity: .6; cursor: default; }
  .field input:focus, .field input:focus-visible { outline: none; box-shadow: none; }
  .cta:focus-visible { outline: 2px solid rgb(var(--light-rgb) / .6); outline-offset: 3px; }
  .status { min-height: 20px; margin: 12px 4px 0; font-size: 12px; letter-spacing: var(--tracking-wide); color: var(--text-2); }
  .status.ok { color: var(--success); }
  .status.err { color: var(--danger); }
  .fine { margin: 6px 4px 0; font-size: 13px; color: #a8b4ad; }
  .scroll-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 56px; font-size: 11px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); text-decoration: none; }
  .scroll-hint:hover { color: var(--text-2); }
  .scroll-hint svg { width: 14px; height: 14px; animation: nudge 1.8s var(--ease) infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

  /* ---- how it works ---- */
  .how { position: relative; padding-block: 96px 72px; background: var(--surface-950); }
  .how-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
  .how-head h2 { font-family: var(--font-brand); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
  .how-head p { margin: 0; color: var(--text-muted); font-size: 12px; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--surface-800); border: 1px solid var(--surface-800); border-radius: 16px; overflow: hidden; }
  .step { background: var(--surface-900); padding: 28px 24px 30px; display: grid; gap: 14px; align-content: start; grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px; }
  .step > * { align-self: start; }
  @supports not (grid-template-rows: subgrid) { .step { grid-row: auto; } .step .kicker { margin-top: auto; } }
  .step-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--light); }
  .step-label b { font-weight: 500; color: var(--text-faint); }
  .step h3 { margin: 0; font-family: var(--font-brand); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
  .step p { margin: 0; color: var(--text-2); font-size: 15px; }
  .step .kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding-top: 6px; border-top: 1px solid var(--surface-800); margin-top: 6px; }


  .foot { display: grid; gap: 14px; padding: 36px 0 32px; font-size: 11px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); }
  .foot .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
  .foot .legal { color: var(--text-faint); text-transform: none; letter-spacing: 0; font-size: 12px; max-width: 78ch; line-height: 1.55; }

  @media (max-width: 1080px) { .steps { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
  @media (max-width: 720px) {
    .hero-stage { --street-height: clamp(220px, 68vw, 360px); }
    .wrap { padding-inline: 20px; }
    .hero { min-height: 0; align-content: start; padding-block: calc(var(--street-height) - 64px + 20px) 56px; }
    .headline { font-size: clamp(36px, 10.5vw, 48px); }
    .lede { font-size: 16px; }
    .field { flex-direction: column; border-radius: 22px; }
    .field input { flex: none; width: 100%; }
    .cta { width: 100%; }
    .scroll-hint { margin-top: 32px; }
    .street-background { height: var(--street-height); background-position: 85% center; }
    .street-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #000 100%); }
    #street-video { object-position: 85% center; }
    .street-shade { height: var(--street-height); background: linear-gradient(180deg, rgb(3 9 7 / .35), transparent 45%); }
    .top-actions { gap: 6px; }
    .top-actions .chip { display: none; }
    .wordmark { font-size: 11px; letter-spacing: .12em; }
    .motion-toggle { font-size: 10px; padding: 7px 9px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-hint svg { animation: none; }
  }
