
  :root {
    --ink: #101c30;
    --ink-panel: #16263f;
    --ink-line: #2b3c58;
    --parchment: #f5f0e3;
    --parchment-dim: #eae3d0;
    --gold: #b8863f;
    --gold-bright: #d1a25e;
    --emerald: #1f5c4e;
    --emerald-bright: #2c7d6b;
    --text-on-ink: #e9e4d4;
    --text-on-ink-dim: #a9b3c4;
    --text-on-parchment: #1c2534;
    --text-on-parchment-dim: #5c5748;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'IBM Plex Sans', -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --max: 1120px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  body {
    margin: 0;
    font-family: var(--sans);
    background: var(--ink);
    color: var(--text-on-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
  }

  h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }

  /* ---------- NAV ---------- */
  nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(16, 28, 48, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ink-line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: var(--max);
    margin: 0 auto;
  }
  .brand {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .brand span { color: var(--gold-bright); }
  .nav-links { display: flex; gap: 28px; font-size: 0.94rem; }
  .nav-links a { text-decoration: none; color: var(--text-on-ink-dim); transition: color 0.2s; }
  .nav-links a:hover { color: var(--text-on-ink); }
  .nav-cta {
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-cta:hover { background: var(--gold); color: var(--ink); }
  .menu-btn { display: none; background: none; border: none; color: var(--text-on-ink); font-size: 1.5rem; cursor: pointer; }

  /* ---------- HERO ---------- */
  .hero {
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
  }
  .kicker {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--emerald-bright);
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: var(--parchment);
  }
  .hero h1 em {
    font-style: italic;
    color: var(--gold-bright);
  }
  .hero p.lede {
    font-size: 1.15rem;
    color: var(--text-on-ink-dim);
    max-width: 46ch;
    margin-top: 24px;
  }
  .hero-cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
    flex-wrap: wrap;
  }
  .btn-primary {
    background: var(--gold);
    color: var(--ink);
    border: none;
    padding: 14px 26px;
    border-radius: 3px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--gold-bright); }
  .btn-ghost {
    color: var(--text-on-ink-dim);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.95rem;
  }
  .hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--ink-line);
  }
  .stat-num { font-family: var(--mono); font-size: 1.5rem; color: var(--parchment); }
  .stat-label { font-size: 0.82rem; color: var(--text-on-ink-dim); margin-top: 4px; }

  /* Ledger visual */
  .ledger-card {
    background: var(--parchment);
    color: var(--text-on-parchment);
    border-radius: 4px;
    padding: 32px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
    transform: rotate(1.2deg);
    position: relative;
  }
  .ledger-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(28,37,52,0.15);
    border-radius: 2px;
    pointer-events: none;
  }
  .ledger-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--text-on-parchment);
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .ledger-head span:first-child { font-family: var(--serif); font-size: 1.05rem; }
  .ledger-head span:last-child { font-family: var(--mono); font-size: 0.78rem; color: var(--text-on-parchment-dim); }
  .ledger-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dotted rgba(28,37,52,0.25);
    font-size: 0.92rem;
  }
  .ledger-row:last-child { border-bottom: none; }
  .ledger-row .name { color: var(--text-on-parchment); }
  .ledger-row .val { font-family: var(--mono); color: var(--emerald); }
  .ledger-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 2px solid var(--text-on-parchment);
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.85rem;
  }

  /* ---------- SECTIONS shared ---------- */
  section { padding: 88px 0; }
  .section-parchment { background: var(--parchment); color: var(--text-on-parchment); }
  .section-parchment .eyebrow { color: var(--emerald); }
  .eyebrow { font-family: var(--mono); font-size: 0.8rem; color: var(--gold-bright); margin-bottom: 14px; }
  .section-head { max-width: 640px; }
  .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
  .section-head p { margin-top: 16px; color: var(--text-on-ink-dim); font-size: 1.05rem; }
  .section-parchment .section-head p { color: var(--text-on-parchment-dim); }

  /* ---------- PROMISE ---------- */
  .promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
  }
  .promise-item h3 { font-size: 1.15rem; color: var(--text-on-parchment); margin-bottom: 10px; }
  .promise-item p { color: var(--text-on-parchment-dim); font-size: 0.96rem; margin: 0; }
  .promise-mark { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: 14px; }

  /* ---------- ROUTE (8 worlds) ---------- */
  .route-wrap { margin-top: 64px; position: relative; }
  .route-line {
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--gold), var(--emerald-bright));
    opacity: 0.5;
  }
  .world {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    padding: 22px 0;
  }
  .world-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink-panel);
    border: 1px solid var(--ink-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--gold-bright);
    z-index: 1;
  }
  .world h3 { font-size: 1.1rem; color: var(--parchment); margin-bottom: 6px; }
  .world p { margin: 0; color: var(--text-on-ink-dim); font-size: 0.94rem; max-width: 62ch; }
  .world .tag {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--emerald-bright);
  }

  /* ---------- FEATURES ---------- */
  .feature-list { margin-top: 56px; display: flex; flex-direction: column; gap: 0; }
  .feature-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    padding: 36px 0;
    border-top: 1px solid var(--ink-line);
    align-items: start;
  }
  .feature-row:last-child { border-bottom: 1px solid var(--ink-line); }
  .feature-row h3 { font-size: 1.3rem; color: var(--parchment); }
  .feature-row .num { font-family: var(--mono); color: var(--text-on-ink-dim); font-size: 0.85rem; display: block; margin-bottom: 10px; }
  .feature-row p { margin: 0; color: var(--text-on-ink-dim); font-size: 1rem; max-width: 58ch; }

  /* ---------- PRICING ---------- */
  .pricing-sheet {
    margin-top: 56px;
    border: 1px solid rgba(28,37,52,0.2);
    border-radius: 4px;
    overflow: hidden;
  }
  .pricing-head, .pricing-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
  }
  .pricing-head {
    background: var(--text-on-parchment);
    color: var(--parchment);
  }
  .pricing-head div { padding: 16px 22px; font-family: var(--mono); font-size: 0.82rem; }
  .pricing-row div { padding: 14px 22px; font-size: 0.94rem; border-top: 1px solid rgba(28,37,52,0.15); }
  .pricing-row div:first-child { color: var(--text-on-parchment); }
  .pricing-row div:not(:first-child) { text-align: center; font-family: var(--mono); }
  .yes { color: var(--emerald); }
  .no { color: rgba(28,37,52,0.35); }
  .pricing-note { margin-top: 20px; font-size: 0.88rem; color: var(--text-on-parchment-dim); }

  /* ---------- WAITLIST ---------- */
  .waitlist {
    text-align: left;
    max-width: 560px;
  }
  .waitlist form {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
  }
  .waitlist input[type="email"] {
    flex: 1;
    min-width: 220px;
    background: var(--ink-panel);
    border: 1px solid var(--ink-line);
    border-radius: 3px;
    padding: 13px 16px;
    color: var(--text-on-ink);
    font-family: var(--sans);
    font-size: 0.95rem;
  }
  .waitlist input[type="email"]::placeholder { color: var(--text-on-ink-dim); }
  .waitlist-msg { margin-top: 14px; font-size: 0.88rem; color: var(--emerald-bright); min-height: 1.2em; }

  /* ---------- FOOTER ---------- */
  footer {
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    padding: 48px 0 32px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ink-line);
  }
  .footer-brand { font-family: var(--serif); font-size: 1.1rem; color: var(--parchment); }
  .footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.88rem; }
  .footer-links a { color: var(--text-on-ink-dim); text-decoration: none; }
  .footer-links a:hover { color: var(--text-on-ink); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--text-on-ink-dim);
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .ledger-card { transform: none; margin-top: 40px; }
    .promise-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-row { grid-template-columns: 1fr; gap: 14px; }
    .nav-links { display: none; }
    .pricing-head div, .pricing-row div { padding: 12px 14px; font-size: 0.86rem; }
  }

/* ---------- LEGAL PAGES ---------- */
.legal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--ink-line);
}
.legal-hero .eyebrow { color: var(--gold-bright); }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--parchment); }
.legal-hero .updated { margin-top: 12px; color: var(--text-on-ink-dim); font-size: 0.9rem; }
.legal-body {
  background: var(--parchment);
  color: var(--text-on-parchment);
  padding: 56px 0 80px;
}
.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--text-on-parchment);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  font-size: 0.98rem;
  color: var(--text-on-parchment-dim);
  line-height: 1.65;
}
.legal-content strong { color: var(--text-on-parchment); }
.legal-content ul { padding-left: 22px; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
}
.legal-content th, .legal-content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid rgba(28,37,52,0.2);
}
.legal-content th { background: rgba(28,37,52,0.06); font-family: var(--mono); font-size: 0.78rem; }
.legal-content a { color: var(--emerald); }
.placeholder { background: rgba(184,134,63,0.18); padding: 1px 6px; border-radius: 2px; font-family: var(--mono); font-size: 0.85em; }

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.lang-switch a {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.4;
  text-decoration: none;
  filter: grayscale(60%);
  transition: opacity 0.2s, filter 0.2s;
}
.lang-switch a:hover { opacity: 0.75; filter: grayscale(20%); }
.lang-switch a.active { opacity: 1; filter: grayscale(0%); }
.footer-lang { display: flex; gap: 8px; align-items: center; font-size: 1.1rem; }
.footer-lang a { text-decoration: none; opacity: 0.5; filter: grayscale(60%); }
.footer-lang a.active { opacity: 1; filter: grayscale(0%); }

/* ---------- APP STORE BADGE (placeholder / soon) ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink-line);
  background: var(--ink-panel);
  color: var(--text-on-ink-dim);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: default;
  user-select: none;
}
.store-badge svg { width: 20px; height: 20px; opacity: 0.6; flex-shrink: 0; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .store-text small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.8; }
.store-badge .store-text strong { font-size: 0.92rem; color: var(--text-on-ink); font-weight: 500; }
