/* =====================================================================
   SHADraw — Marketing site stylesheet
   A ceremonial, trustworthy aesthetic for cryptographically verifiable
   draws. Dark "ink" canvas, gold for commitment & reveal, ember for
   transition, parchment for body. Palette sourced from the app's
   visual system (visual-system.jsx / Theme.swift).
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  /* Palette */
  --ink:        #0B0A08;
  --surface-1:  #15130E;
  --surface-2:  #1E1B14;
  --surface-3:  #26221A;
  --parchment:  #EDE3CE;
  --gold:       #E0B341;
  --gold-hi:    #F2C969;
  --gold-lo:    #7A6228;
  --gold-deep:  #B68A26;
  --ember:      #D9622B;
  --ember-hi:   #E97A40;
  --ember-lo:   #7A3618;
  --bronze:     #8B7B5C;
  --bronze-lo:  #4D442F;
  --rust:       #6B3A2A;
  --on-gold:    #1A1308;

  /* Hairline borders */
  --line:       rgba(237, 227, 206, 0.07);
  --line-soft:  rgba(237, 227, 206, 0.04);
  --line-gold:  rgba(224, 179, 65, 0.22);

  /* Radii */
  --r-chip: 10px;
  --r-card: 14px;
  --r-sheet: 18px;
  --r-modal: 26px;

  /* Spacing scale (4 / 8 / 12 / 16 / 24 / 32) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* Type */
  --font-display: "SF Pro Rounded", ui-rounded, "SF Pro Display", -apple-system,
                  BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
                  system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
                  monospace;

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 780px;
  --header-h: 68px;

  /* Effects */
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  --ember-grad: linear-gradient(180deg, var(--ember-hi) 0%, var(--ember) 60%, #A2451C 100%);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.45);
  --glow-gold: 0 0 40px rgba(224, 179, 65, 0.18);
}

/* ----------------------------- Reset ------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--parchment);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: var(--gold-hi); }

button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------- Ambient bg ---------------------------- */
/* A subtle cryptographic/mathematical starfield behind everything. */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(224, 179, 65, 0.12), transparent 60%),
    radial-gradient(900px 600px at 8% 8%, rgba(217, 98, 43, 0.08), transparent 55%),
    var(--ink);
}
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/background.png");
  background-size: 860px;
  background-repeat: repeat;
  opacity: 0.20;
  mix-blend-mode: screen;
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 68%, rgba(0, 0, 0, 0.45) 100%);
}

/* --------------------------- Containers ---------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--s-20); position: relative; }
.section--tight { padding-block: var(--s-16); }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--parchment);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--parchment); }
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(224, 179, 65, 0.18);
}
.brand__name b { color: var(--gold); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--parchment);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0.82;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}
.nav a:hover { opacity: 1; background: rgba(237, 227, 206, 0.06); }
.nav a.is-active {
  opacity: 1;
  color: var(--gold);
}
.nav__cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: rgba(237, 227, 206, 0.06);
  border: 1px solid var(--line);
  color: var(--parchment);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: var(--r-card);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 160ms cubic-bezier(.2,.7,.2,1), box-shadow 160ms ease,
              background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 1px 0 rgba(255, 235, 180, 0.5) inset,
              0 -1px 0 rgba(0, 0, 0, 0.25) inset,
              0 8px 24px rgba(224, 179, 65, 0.22);
}
.btn--gold:hover {
  color: var(--on-gold);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 235, 180, 0.55) inset,
              0 -1px 0 rgba(0, 0, 0, 0.25) inset,
              0 12px 32px rgba(224, 179, 65, 0.30);
}

.btn--ember {
  background: var(--ember-grad);
  color: var(--on-gold);
  box-shadow: 0 1px 0 rgba(255, 200, 170, 0.45) inset,
              0 -1px 0 rgba(0, 0, 0, 0.3) inset,
              0 8px 24px rgba(217, 98, 43, 0.22);
}
.btn--ember:hover { color: var(--on-gold); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--bronze-lo);
}
.btn--ghost:hover {
  color: var(--parchment);
  border-color: var(--bronze);
  background: rgba(237, 227, 206, 0.04);
}

.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* App Store badge button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--r-card);
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 1px 0 rgba(255, 235, 180, 0.5) inset,
              0 -1px 0 rgba(0, 0, 0, 0.25) inset,
              0 10px 28px rgba(224, 179, 65, 0.26);
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 180ms ease;
}
.btn-appstore:hover {
  color: var(--on-gold);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 235, 180, 0.55) inset,
              0 -1px 0 rgba(0, 0, 0, 0.25) inset,
              0 16px 36px rgba(224, 179, 65, 0.34);
}
.btn-appstore svg { width: 30px; height: 30px; flex-shrink: 0; }
.btn-appstore__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-appstore__text small { font-size: 11px; font-weight: 600; opacity: 0.75; letter-spacing: 0.02em; }
.btn-appstore__text strong { font-size: 19px; font-weight: 700; font-family: var(--font-display); }

/* ---------------------------- Eyebrow ------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--center { justify-content: center; }
.eyebrow--gold { color: var(--gold); }

/* --------------------------- Section head -------------------------- */
.section-head { max-width: 680px; margin-bottom: var(--s-12); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.section-head p {
  color: var(--bronze);
  font-size: 18px;
  margin-top: 8px;
}
.section-head--center .eyebrow { justify-content: center; }

/* ------------------------------ Hero ------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px) var(--s-20);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: -200px;
  background: radial-gradient(circle, rgba(224, 179, 65, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02;
  margin-bottom: 20px;
}
.hero__title .grad-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--parchment);
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--bronze);
  font-size: 14px;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--gold); }

/* Hero visual / phone */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --------------------------- Phone mockup -------------------------- */
.phone {
  position: relative;
  width: 300px;
  max-width: 82vw;
  aspect-ratio: 300 / 620;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2620, #100f0c);
  padding: 11px;
  box-shadow:
    0 0 0 2px rgba(237, 227, 206, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.6),
    var(--glow-gold);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}

/* Draw-room mock contents (recreated from draw-room.jsx) */
.dr {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 14px 16px;
  font-size: 12px;
}
.dr__eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}
.dr__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 2px 0 2px;
  letter-spacing: -0.02em;
}
.dr__sub { color: var(--bronze); font-size: 11px; margin-bottom: 12px; }
.dr__sub b { color: var(--parchment); }

.dr__seal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sheet);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(224,179,65,0.08), rgba(224,179,65,0.03));
  margin-bottom: 12px;
}
.dr__seal-card .wax { width: 52px; height: 52px; flex-shrink: 0; }
.dr__seal-meta { min-width: 0; }
.dr__seal-meta .lbl { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze); }
.dr__seal-meta .hash { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.04em; }
.dr__seal-meta .note { font-size: 9.5px; color: var(--bronze); }

.dr__meter { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dr__meter-track { flex: 1; height: 4px; border-radius: 999px; background: rgba(237,227,206,0.08); overflow: hidden; }
.dr__meter-fill { height: 100%; width: 42%; border-radius: 999px; background: linear-gradient(90deg, var(--ember), var(--gold)); }
.dr__meter-count { font-family: var(--font-mono); font-size: 10px; color: var(--bronze); }

.dr__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dr-card {
  position: relative;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
}
.dr-card .idx { position: absolute; top: 6px; left: 8px; font-family: var(--font-mono); font-size: 8px; color: var(--bronze); }
.dr-card .lock { width: 30px; height: 39px; }
.dr-card .h { font-family: var(--font-mono); font-size: 8px; color: var(--bronze); letter-spacing: 0.04em; }
.dr-card.is-claimed { opacity: 0.5; }
.dr-card.is-pending {
  border: 1.5px solid var(--ember);
  background: linear-gradient(180deg, rgba(217,98,43,0.14), rgba(224,179,65,0.06));
  transform: translateY(-2px);
}
.dr-card.is-pending .h { color: var(--parchment); }
.dr__cta {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r-card);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 1px 0 rgba(255,235,180,0.5) inset, 0 6px 18px rgba(224,179,65,0.22);
}

/* --------------------------- Brand block --------------------------- */
.brand-block {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21,19,14,0.6), rgba(11,10,8,0));
}
.brand-block__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding-block: var(--s-12);
}
.brand-block__emblem {
  width: 168px;
  height: 168px;
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,0.5), var(--glow-gold);
}
.brand-block__copy { max-width: 460px; text-align: left; }
.brand-block__copy h2 { font-size: 28px; margin-bottom: 10px; }
.brand-block__copy p { color: var(--bronze); }
.brand-wordmark { height: 54px; width: auto; margin-bottom: 16px; }

/* ------------------------- Screenshot strip ------------------------ */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.shot .phone { width: 250px; }
.shot__label h3 { font-size: 19px; margin-bottom: 4px; }
.shot__label p { color: var(--bronze); font-size: 14.5px; max-width: 280px; }

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

.card {
  background: linear-gradient(180deg, var(--surface-1), rgba(21, 19, 14, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  padding: 26px;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(224,179,65,0.16), rgba(224,179,65,0.05));
  border: 1px solid var(--line-gold);
  color: var(--gold);
}
.card__icon svg { width: 24px; height: 24px; }
.card--ember .card__icon {
  background: linear-gradient(180deg, rgba(217,98,43,0.16), rgba(217,98,43,0.05));
  border-color: rgba(217, 98, 43, 0.3);
  color: var(--ember);
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--bronze); font-size: 15.5px; margin: 0; }

/* ----------------------- How it works steps ----------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.step__num::before {
  content: "";
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-gold);
  background: radial-gradient(circle at 35% 30%, rgba(224,179,65,0.18), transparent 70%);
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--bronze); font-size: 15px; margin: 0; }
.step__connect {
  position: absolute;
  top: 30px;
  left: 56px;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-lo), transparent);
}

/* ---------------------------- Benefits ----------------------------- */
.benefit {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.benefit:last-child { border-bottom: 0; }
.benefit__check {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(224,179,65,0.16), rgba(224,179,65,0.05));
  border: 1px solid var(--line-gold);
  color: var(--gold);
}
.benefit__check svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 18px; margin-bottom: 4px; }
.benefit p { color: var(--bronze); margin: 0; font-size: 15.5px; }

.benefits-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.benefits-aside {
  position: relative;
  border-radius: var(--r-modal);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-1), rgba(11,10,8,0.2));
  padding: 36px;
  overflow: hidden;
}
.benefits-aside .wax-xl { width: 120px; height: 120px; margin-bottom: 20px; }
.benefits-aside h3 { font-size: 24px; }
.benefits-aside p { color: var(--bronze); }
.benefits-aside__hash {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  word-break: break-all;
  padding: 12px 14px;
  border-radius: var(--r-chip);
  background: rgba(224,179,65,0.06);
  border: 1px solid var(--line-gold);
  letter-spacing: 0.04em;
}

/* ----------------------- Use cases / pills ------------------------- */
.usecases { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--parchment);
  font-size: 15px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.pill:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.pill svg { width: 16px; height: 16px; color: var(--gold); }

/* ------------------------------ CTA -------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-modal);
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(224,179,65,0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-band p { color: var(--bronze); font-size: 18px; max-width: 560px; margin-inline: auto; }
.cta-band__actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------- Stats ------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--r-sheet);
  border: 1px solid var(--line);
  background: var(--surface-1);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { color: var(--bronze); font-size: 14px; margin-top: 4px; }

/* ---------------------------- Footer ------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,10,8,0), rgba(21,19,14,0.5));
  padding-block: var(--s-12) var(--s-6);
  margin-top: var(--s-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: var(--s-8);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--bronze); font-size: 14.5px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--parchment); opacity: 0.8; font-size: 15px; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--bronze);
  font-size: 13.5px;
}
.footer-bottom__legal a { color: var(--bronze); margin-left: 18px; }
.footer-bottom__legal a:hover { color: var(--gold); }

/* ----------------------------- Forms ------------------------------- */
.form-shell {
  background: linear-gradient(180deg, var(--surface-1), rgba(11,10,8,0.3));
  border: 1px solid var(--line);
  border-radius: var(--r-modal);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--parchment);
}
.field .req { color: var(--ember); }
.field .hint { font-size: 12.5px; color: var(--bronze); font-weight: 400; }

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--parchment);
  background: var(--ink);
  border: 1px solid var(--bronze-lo);
  border-radius: var(--r-card);
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.input::placeholder, .textarea::placeholder { color: rgba(139, 123, 92, 0.7); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 179, 65, 0.18);
}
.textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E0B341' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.select option { background: var(--surface-1); color: var(--parchment); }

.field-error {
  display: none;
  font-size: 13px;
  color: var(--ember);
}
.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select { border-color: var(--ember); }
.field.has-error .field-error { display: block; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--bronze);
  margin-bottom: 24px;
}
.form-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.form-consent a { text-decoration: underline; }

.form-aside-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.form-aside-list li { display: flex; gap: 14px; align-items: flex-start; }
.form-aside-list .ic {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(224,179,65,0.14), rgba(224,179,65,0.04));
  border: 1px solid var(--line-gold); color: var(--gold);
}
.form-aside-list .ic svg { width: 18px; height: 18px; }
.form-aside-list h4 { font-size: 16px; margin-bottom: 2px; }
.form-aside-list p { color: var(--bronze); font-size: 14px; margin: 0; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }

/* --------------------------- Legal / prose ------------------------- */
.prose { max-width: var(--maxw-narrow); }
.prose h2 {
  font-size: 26px;
  margin-top: 44px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 28px; color: var(--gold); }
.prose p, .prose li { color: var(--parchment); opacity: 0.88; font-size: 16.5px; }
.prose ul { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--parchment); opacity: 1; }
.legal-meta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--bronze);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal-meta b { color: var(--parchment); font-weight: 600; }

/* Table of contents for legal pages */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  background: var(--surface-1);
  padding: 22px;
}
.toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.toc a { color: var(--parchment); opacity: 0.78; font-size: 14.5px; }
.toc a:hover { opacity: 1; color: var(--gold); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

/* ----------------------------- Roadmap ----------------------------- */
.roadmap-intro { max-width: 760px; }
.phase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--s-12);
}
.phase-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--parchment);
  opacity: 0.85;
}
.phase-nav a:hover { border-color: var(--line-gold); color: var(--gold); opacity: 1; }

.timeline { position: relative; }
.phase {
  position: relative;
  padding-left: 40px;
  padding-bottom: var(--s-12);
  border-left: 1px solid var(--line);
  margin-left: 8px;
}
.phase:last-child { border-left-color: transparent; padding-bottom: 0; }
.phase__marker {
  position: absolute;
  left: -10px;
  top: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(224,179,65,0.10);
}
.phase__head { margin-bottom: 8px; }
.phase__ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.phase__theme { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.phase__lead { color: var(--bronze); max-width: 720px; margin-bottom: 20px; }

.release-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.release {
  background: linear-gradient(180deg, var(--surface-1), rgba(11,10,8,0.25));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.release:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.release__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(224,179,65,0.10);
  border: 1px solid var(--line-gold);
}
.release h4 { font-size: 16.5px; margin-bottom: 5px; font-family: var(--font-body); font-weight: 600; }
.release p { color: var(--bronze); font-size: 14px; margin: 0; }
.phase--future .phase__marker { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(139,123,92,0.08); }

.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ember);
  border: 1px solid rgba(217,98,43,0.3);
  background: rgba(217,98,43,0.08);
  padding: 3px 10px;
  border-radius: 999px;
}
.roadmap-status--ship { color: var(--gold); border-color: var(--line-gold); background: rgba(224,179,65,0.08); }
.roadmap-status--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --------------------------- Thank you ----------------------------- */
.thankyou {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding-block: clamp(40px, 8vw, 90px);
}
.thankyou__seal { width: 132px; height: 132px; margin: 0 auto 28px; }
.thankyou h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 14px; }
.thankyou p { color: var(--bronze); font-size: 18px; margin-bottom: 12px; }
.thankyou__actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.thankyou__links {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.thankyou__links a {
  color: var(--parchment);
  opacity: 0.8;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.thankyou__links a:hover { opacity: 1; color: var(--gold); border-color: var(--line-gold); }

/* ------------------------- Under construction ---------------------- */
.constr-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 40px rgba(224, 179, 65, 0.22);
  animation: constr-float 4s ease-in-out infinite;
}
@keyframes constr-float {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 1px var(--line), 0 14px 40px rgba(224, 179, 65, 0.20);
  }
  50% {
    transform: translateY(-7px);
    box-shadow: 0 0 0 1px var(--line), 0 22px 56px rgba(224, 179, 65, 0.42);
  }
}

/* Gold gradient ring spinner */
.constr-spinner {
  display: block;
  width: 58px;
  height: 58px;
  margin: 34px auto 0;
  animation: constr-rotate 2.1s linear infinite;
  filter: drop-shadow(0 0 8px rgba(224, 179, 65, 0.45));
}
.constr-spinner .track {
  stroke: rgba(237, 227, 206, 0.08);
}
.constr-spinner .arc {
  stroke: url(#constr-spin-grad);
  stroke-linecap: round;
  transform-origin: center;
  animation: constr-dash 2.1s ease-in-out infinite;
}
@keyframes constr-rotate {
  to { transform: rotate(360deg); }
}
/* r=20 → circumference ≈ 125.6 */
@keyframes constr-dash {
  0%   { stroke-dasharray: 1 125; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90 125; stroke-dashoffset: -32; }
  100% { stroke-dasharray: 90 125; stroke-dashoffset: -123; }
}

/* Pulsing ellipsis after "Coming soon" eyebrow */
.constr-dots span {
  display: inline-block;
  animation: constr-blink 1.4s ease-in-out infinite;
}
.constr-dots span:nth-child(2) { animation-delay: 0.2s; }
.constr-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes constr-blink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* --------------------------- Page hero ----------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) var(--s-12);
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero__glow {
  position: absolute;
  width: 600px; height: 400px;
  left: 50%; top: -120px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224,179,65,0.12), transparent 65%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); position: relative; }
.page-hero p { color: var(--bronze); font-size: 19px; max-width: 600px; margin: 12px auto 0; position: relative; }

/* --------------------------- Animations ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------- Utilities ----------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-12); }
.hash-inline { font-family: var(--font-mono); color: var(--gold); letter-spacing: 0.04em; }
.nowrap { white-space: nowrap; }

/* --------------------------- Responsive ---------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: -1; }
  .benefits-wrap { grid-template-columns: 1fr; gap: 36px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 10, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .nav a:hover { background: rgba(237,227,206,0.06); }
  .nav__cta { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: inline-flex; }

  .grid--3, .grid--2, .stats, .steps, .shots { grid-template-columns: 1fr; }
  .step__connect { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .release-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--s-16); }
  .shots { gap: 40px; }
  .shot .phone { width: 270px; }
}

@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn-appstore, .hero__actions .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}
