/* Exchange Alley — the house art-deco reskin (v2), matching the app chassis.
   Ground midnight #0B0F14 · Surface #181F2A · Ivory ink #ECE7DA
   Suite gold #C8A04E (hi #E6CC79) — primary accent, replaces the old neon-green.
   Per-game heroes: Bull Run emerald · Book Builder burgundy · Rally teal · CB crimson.
   Money stays semantic: gains emerald, losses rose.
   Display / wordmarks: Cinzel (art-deco serif) · Body / UI: Inter */

:root {
  --bg: #0B0F14;
  --surface: #181F2A;
  --surface-2: #10151D;
  --gold: #C8A04E;
  --gold-hi: #E6CC79;
  --gold-deep: #7E6224;
  --ivory: #ECE7DA;
  --text: #DDE3EC;
  --muted: #8C97A6;
  --line: rgba(147, 160, 180, 0.14);
  --line-gold: rgba(200, 160, 78, 0.38);
  --line-gold-soft: rgba(200, 160, 78, 0.18);
  /* semantic money + per-game heroes */
  --up: #16B981;
  --down: #E5484D;
  --emerald: #16B981;
  --burgundy: #B4405E;
  --teal: #45B2C6;
  --crimson: #E5484D;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.04em;
  line-height: 1.16;
}

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

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* A thin-gold rule with a centre diamond — the app's masthead ornament. */
.deco-rule {
  display: flex; align-items: center; gap: 16px;
  color: var(--gold);
}
.deco-rule::before, .deco-rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}
.deco-rule .diamond { width: 8px; height: 8px; background: var(--gold);
  transform: rotate(45deg); flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-gold-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 70px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Cinzel", Georgia, serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.16em; color: var(--ivory);
  white-space: nowrap;
}
.brand:hover { color: var(--ivory); }
.brand img { height: 30px; width: auto; }
footer .brand img { height: 24px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #1A1206 !important;
  font-weight: 700; padding: 9px 18px; border-radius: 8px;
  font-size: 13.5px; letter-spacing: 0.04em;
}
.nav-cta:hover { filter: brightness(1.08); color: #1A1206 !important; }

/* ---------- ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line-gold-soft);
  background: var(--surface-2);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.tk {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 22px;
  font-size: 13px; letter-spacing: 0.03em;
}
.tk .dot { align-self: center; width: 6px; height: 6px; border-radius: 50%; }
.tk .sym { font-weight: 700; color: var(--ivory); font-variant-numeric: tabular-nums; }
.tk .co { color: var(--muted); font-size: 12.5px; }
.tk .px { color: var(--text); font-variant-numeric: tabular-nums; }
.tk .up { color: var(--up); }
.tk .dn { color: var(--down); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
}
/* A warm gold vignette + a faint deco lattice, replacing the neon grid. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(200, 160, 78, 0.10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(200, 160, 78, 0.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(200, 160, 78, 0.035) 0 1px, transparent 1px 22px);
  mask-image: radial-gradient(ellipse 92% 82% at 50% 0%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 0%, black 25%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid; grid-template-columns: 120px minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 40px; align-items: center;
}
/* The gilded gas lamp of Exchange Alley, standing down the left of the copy —
   opposite the lobby screenshot. It lives in its own grid column, so it can
   never overlap the text however narrow the window gets. The art is a
   background-free cut-out, so it sits cleanly over the page's deco texture. */
.hero-lamp {
  align-self: stretch;
  pointer-events: none;
}
.hero-lamp img {
  width: 100%; height: 100%; max-width: none;
  object-fit: contain; object-position: center;
}
.kicker {
  font-family: "Cinzel", Georgia, serif;
  color: var(--gold); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 62px);
  font-weight: 800; text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.hero p.lead {
  color: var(--muted); font-size: 19px; max-width: 34em;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.coming-soon {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-gold-soft); border-radius: 999px;
  padding: 6px 14px; letter-spacing: 0.04em;
}
.store-badge { display: inline-block; transition: filter 0.15s; }
.store-badge:hover { filter: brightness(1.2); }

/* ---------- phone frames ---------- */
.phone {
  position: relative;
  border-radius: 38px;
  border: 1px solid rgba(200, 160, 78, 0.3);
  background: #05080C;
  padding: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(200, 160, 78, 0.08);
}
.phone img { border-radius: 28px; }
.hero .phone { max-width: 300px; margin: 0 auto; transform: rotate(2deg); }

/* ---------- sections ---------- */
section { padding: 78px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px); font-weight: 800;
  text-transform: uppercase; color: var(--ivory); margin-bottom: 14px;
}
.section-head p { color: var(--muted); }

/* suite pillars */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.pillar {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-gold-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
}
/* stepped gold corner ticks — the deco frame cue */
.pillar::before, .pillar::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border-color: var(--line-gold); border-style: solid;
}
.pillar::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.pillar::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.pillar .ic { margin-bottom: 14px; color: var(--gold); }
.pillar h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: 0.08em; color: var(--ivory); }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.55;
  font-family: "Inter", sans-serif; letter-spacing: 0; text-transform: none; }

/* ---------- game blocks ---------- */
.game {
  padding: 72px 0 66px;
  border-top: 1px solid var(--line-gold-soft);
  --glow: rgba(200, 160, 78, 0.22);
}
.game.g-bull { --glow: rgba(22, 185, 129, 0.22); }
.game.g-book { --glow: rgba(200, 160, 78, 0.22); }
.game.g-rally { --glow: rgba(69, 178, 198, 0.24); }
.game.g-cb { --glow: rgba(229, 72, 77, 0.22); }
.game:first-of-type { border-top: none; }

/* the centred lockup: emblem + gold wordmark + deco rule + endorsement */
.game-lockup {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 46px;
}
.emblem-wrap { position: relative; display: grid; place-items: center; }
.emblem-wrap::before {
  content: ""; position: absolute; width: 118%; height: 118%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  filter: blur(6px);
}
.emblem {
  position: relative;
  height: 158px; width: auto;
  /* fade the dark-bg emblems (book / breaker) into the page */
  -webkit-mask-image: radial-gradient(ellipse 76% 78% at 50% 46%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 78% at 50% 46%, #000 58%, transparent 100%);
}
.wordmark {
  margin-top: 16px;
  font-family: "Cinzel", Georgia, serif; font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1;
  background: linear-gradient(180deg, var(--gold-hi) 8%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
/* the wordmark's deco underline — a hairline rule with a centre diamond */
.wm-rule {
  display: flex; align-items: center; gap: 14px;
  width: min(260px, 70%); margin: 14px 0 16px;
}
.wm-rule span { height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
.wm-rule i { width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); flex: none; }
.endorse {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: "Cinzel", Georgia, serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.endorse img { height: 16px; width: 16px; border-radius: 3px; }
.game-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Cinzel", Georgia, serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.tag-live { color: var(--gold); border: 1px solid var(--line-gold); }
.tag-emerald { color: var(--emerald); border: 1px solid rgba(22, 185, 129, 0.4); }
.tag-teal { color: var(--teal); border: 1px solid rgba(69, 178, 198, 0.45); }
.tag-crimson { color: var(--crimson); border: 1px solid rgba(229, 72, 77, 0.45); }

/* the body: screenshot + copy, alternating side per game */
.game-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.game-body .shot { max-width: 320px; margin: 0 auto; }
.game.flip .game-body .media { order: 2; }
/* copy-only body (The Rally has no web board — its emblem is the visual) */
.game-body.solo { grid-template-columns: 1fr; max-width: 660px; margin: 0 auto;
  text-align: center; }
.game-body.solo .chips { justify-content: center; }
.game .tagline {
  font-weight: 600; font-size: 17px; margin-bottom: 16px;
  font-family: "Cinzel", Georgia, serif; letter-spacing: 0.02em;
}
.game.g-bull .tagline { color: var(--emerald); }
.game.g-book .tagline { color: var(--gold); }
.game.g-rally .tagline { color: var(--teal); }
.game.g-cb .tagline { color: var(--crimson); }
.game .copy p { color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-gold-soft);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- download band ---------- */
.band {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(200, 160, 78, 0.09), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg));
  border-top: 1px solid var(--line-gold-soft);
  text-align: center;
}
.band h2 {
  font-size: clamp(28px, 3.8vw, 42px); font-weight: 800;
  text-transform: uppercase; color: var(--ivory); margin-bottom: 16px;
}
.band h2 .accent {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.band p { color: var(--muted); max-width: 36em; margin: 0 auto 32px; }
.band .hero-ctas { justify-content: center; }
.band .deco-rule { max-width: 260px; margin: 0 auto 28px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-gold-soft);
  padding: 40px 0 48px;
  color: var(--muted); font-size: 14px;
}
.foot-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot-inner .brand { font-size: 14px; }
.foot-links { margin-left: auto; display: flex; gap: 20px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold); }
.foot-legal { margin-top: 18px; font-size: 12.5px; color: #5c6b80; }

/* ---------- privacy page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase;
  color: var(--ivory); margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 42px; }
.doc h2 {
  font-size: 18px; margin: 40px 0 12px;
  color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase;
}
.doc p, .doc li { color: #C4CDD9; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 16px; }
.doc strong { color: var(--ivory); }

/* ---------- origin strip ---------- */
.origin-strip {
  padding: 30px 0;
  background: rgba(200, 160, 78, 0.035);
}
/* rules sit at the content width — like the separators between the games — not
   the full width of the window */
.origin-inner {
  display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}
.origin-kicker {
  font-family: Cinzel, Georgia, serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}
.origin-inner p {
  flex: 1; min-width: 280px; margin: 0;
  color: var(--muted); font-size: 14.5px; line-height: 1.6;
}
.origin-inner a { color: var(--gold); text-decoration: none; white-space: nowrap; }
.origin-inner a:hover { text-decoration: underline; }

/* ---------- the alley ---------- */
.alley { padding-top: 60px; }
.alley-head { max-width: 760px; margin: 28px auto 40px; text-align: center; }
.alley-body { max-width: 660px; margin: 0 auto; }
.alley-body p { color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.alley-body strong { color: var(--ivory); font-weight: 600; }
.alley-body em { color: var(--text); }
.alley-punch {
  color: var(--ivory) !important; font-size: 18px; font-weight: 600;
  text-align: center; padding-top: 8px;
}
.alley-quote {
  max-width: 620px; margin: 40px auto 0; padding: 26px 32px;
  border-left: 2px solid var(--gold);
  background: rgba(200, 160, 78, 0.05);
  font-family: Cinzel, Georgia, serif; font-size: 17px; line-height: 1.65;
  color: var(--ivory);
}
.alley-note {
  max-width: 620px; margin: 30px auto 0; text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--muted); opacity: 0.75;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-inner, .game-body { grid-template-columns: 1fr; gap: 40px; }
  .game.flip .game-body .media { order: 0; }
  .emblem { height: 132px; }
  .hero .phone { transform: none; }
  .hero-lamp { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-inner { gap: 12px; }
  .brand { font-size: 15px; letter-spacing: 0.1em; }
  section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .origin-inner { gap: 12px; }
  .alley-quote { padding: 20px 22px; font-size: 15.5px; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}
