:root {
  --bg:        oklch(0.165 0.025 260);
  --bg-elev:   oklch(0.205 0.028 260);
  --bg-elev-2: oklch(0.245 0.030 260);
  --line:      oklch(0.295 0.030 260);
  --line-soft: oklch(0.250 0.028 260);
  --text:      oklch(0.96 0.010 260);
  --text-2:    oklch(0.80 0.015 260);
  --text-3:    oklch(0.60 0.018 260);
  --text-4:    oklch(0.44 0.012 260);
  /* Softer gold — the previous #E8B923 read 'caution-tape yellow'
     against the dark theme. This shift toward warm amber/champagne
     keeps the brand recognition without screaming. */
  --accent:        #C8A24A;
  --accent-soft:   rgba(200, 162, 74, 0.13);
  --accent-glow:   rgba(200, 162, 74, 0.26);
  --accent-ink:    #16110a;
  --ok:    oklch(0.78 0.17 150);
  --bad:   oklch(0.68 0.21 25);
  --info:  oklch(0.75 0.13 230);
  --radius:    8px;
  --radius-lg: 14px;
  --max-w:     1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}
.mono, code { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto;
  padding: 22px 28px;
  /* 28px lateral padding matches the section content rule below
     so the brand mark's left edge aligns with the hero title and
     every section eyebrow. */
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  cursor: default;
}
.nav-brand.brand-link { cursor: pointer; }
.brand-mark { width: 44px; height: 44px; object-fit: contain;
              filter: drop-shadow(0 0 14px var(--accent-glow)); }
.brand-mark.sm { width: 22px; height: 22px; }
.brand-name { font-weight: 600; font-size: 22px; letter-spacing: -0.015em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text-2); transition: color 120ms; }
.nav-links a:hover { color: var(--text); }
/* Primary CTA in the nav still needs the dark ink colour against
   the gold pill — beat the .nav-links a specificity. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--accent-ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius);
  font: inherit; font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer; user-select: none;
  transition: transform 80ms, background 120ms, border-color 120ms;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 24px rgba(232, 185, 35, 0.20);
}
.btn-primary:hover {
  background: oklch(0.85 0.15 85);
  box-shadow: 0 0 36px rgba(232, 185, 35, 0.40);
}
.btn-ghost {
  background: transparent; color: var(--text-2);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn-back {
  background: var(--bg-elev); color: var(--text-2);
  border-color: var(--line);
}
.btn-back:hover { color: var(--text); border-color: var(--text-3); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }
/* Elongated primary on the hero CTA — same height as btn-lg, just
   wider so the call-to-action carries more visual weight than the
   social buttons next to it. */
.btn-wide { padding-left: 56px; padding-right: 56px; min-width: 240px;
            justify-content: center; }
/* Square icon-only button (X, Discord). Matches btn-lg's vertical
   bounds so they sit on the same baseline as the elongated CTA.
   Background lifted to bg-elev-2 + brighter border so the buttons
   actually pop next to the gold CTA — the previous variant got
   lost on the page background. */
.btn-icon {
  width: 46px; height: 46px;
  padding: 0; border-radius: 10px;
  background: var(--bg-elev-2); color: var(--text);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 80ms, background 120ms, border-color 120ms;
}
.btn-icon img {
  width: 22px; height: 22px; object-fit: contain;
  /* Lift dim wordmark sources so they read on the dark panel. */
  filter: brightness(1.05);
}
.btn-icon:hover {
  border-color: var(--accent);
  background: var(--bg-elev);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35),
              0 0 0 3px var(--accent-soft);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 110px;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 28px;
  position: relative; z-index: 2;
}
.hero-eyebrow, .section-eyebrow {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-family: "Geist Mono", monospace;
  margin-bottom: 22px;
}
.hero-title {
  font-size: 56px; line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 22px; font-weight: 500;
  max-width: 920px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 17px; color: var(--text-2);
  max-width: 640px; margin: 0 0 36px;
}
.hero-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero-socials { display: flex; align-items: center; gap: 8px; }
.hero-cta-sub {
  font-size: 12px; color: var(--text-3); font-family: "Geist Mono", monospace;
  /* Sits inline (to the left, after wrap-to-second-row only when
     the viewport is too narrow). */
  margin-left: 6px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  /* Top glow boosted ~30% (alpha 0.13 -> ~0.17, span 60%/40% ->
     72%/48%). Side glow left as-is so it stays atmospheric. */
  background:
    radial-gradient(ellipse 72% 48% at 50% 0%, rgba(200, 162, 74, 0.17), transparent 60%),
    radial-gradient(ellipse 30% 50% at 85% 30%, rgba(120, 180, 255, 0.06), transparent 60%);
  z-index: 1;
}
@media (max-width: 820px) {
  .hero { padding: 56px 22px 80px; }
  .hero-title { font-size: 36px; }
}

/* ============================================================
   Sections shared
   Pattern: section is full-width with vertical padding only.
   Each direct child gets max-width + auto margin + 28px lateral
   padding. That way the hero title, section eyebrows, the
   venues / how / strategies grids, and the CTA all align on
   the same x position regardless of viewport width.
   ============================================================ */
section {
  padding: 56px 0;
}
section > * {
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
  padding-left: 28px; padding-right: 28px;
}
section.hero { padding-top: 84px; padding-bottom: 110px; }
.section-title {
  font-size: 32px; letter-spacing: -0.02em; font-weight: 500;
  /* Keep auto left/right so the shared 'section > *' centering
     still applies — was 'margin: 0 0 36px', which expanded to
     four sides and clobbered the auto centering, leaving the
     title flush against the viewport edge. */
  margin: 0 auto 36px; line-height: 1.1;
}

/* ============================================================
   Venues
   ============================================================ */
.venues {
  padding-top: 0;
}
.venues-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 14px;
}
.venue-tile {
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  height: 110px;
  display: grid; place-items: center;
  transition: border-color 150ms, transform 150ms;
}
.venue-tile:hover { border-color: var(--line); transform: translateY(-2px); }
.venue-tile img {
  height: 36px; width: auto; max-width: 70%;
  object-fit: contain; opacity: 0.92;
}
/* Lighter's wordmark has a tall symbol that pulls the bbox height
   above the text baseline — at the same height= as Hyperliquid /
   Extended the visible 'Lighter' letters end up tiny. Render
   bigger to even out perceived size. */
.venue-tile img[alt="Lighter"] { height: 60px; }
@media (max-width: 760px) {
  .venues-row { grid-template-columns: 1fr; }
}

/* ============================================================
   How it works
   ============================================================ */
.how-grid, .strat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.strat-grid { grid-template-columns: repeat(2, 1fr); }
.how-card, .strat-card {
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: border-color 150ms, transform 150ms;
}
.how-card:hover, .strat-card:hover { border-color: var(--line); transform: translateY(-2px); }
.how-num {
  font-size: 32px; color: var(--accent);
  font-family: "Geist Mono", monospace; letter-spacing: -0.02em;
  font-weight: 500; line-height: 1;
  margin-bottom: 14px;
}
.how-label {
  font-size: 11px; color: var(--text-3);
  font-family: "Geist Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.how-card p { margin: 0 0 4px; line-height: 1.5; }
.how-card p:last-child { color: var(--text-3); margin-bottom: 0; }
.how-card h3, .strat-card h3 {
  margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.how-card p, .strat-card p { margin: 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 760px) {
  .how-grid, .strat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Strategy tags
   Treated like a "section number" — same large-monospace-accent
   styling as .how-num so the cards in both grids share a rhythm.
   ============================================================ */
.strat-tag {
  display: inline-block;
  font-size: 28px; font-family: "Geist Mono", monospace;
  font-weight: 500; letter-spacing: 0.04em;
  margin-bottom: 14px; line-height: 1;
}
.tag-grid { color: oklch(0.78 0.13 230); }
.tag-arb  { color: oklch(0.78 0.14 300); }
.tag-mm   { color: oklch(0.78 0.14 150); }

/* ============================================================
   Analytics teaser
   ============================================================ */
.analytics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  /* align-items: start so the card's top edge sits on the same y
     as the 'ANALYTICS' eyebrow on the left, instead of stretching
     the card to match the text column's height. */
  align-items: start;
}
.analytics-text { display: flex; flex-direction: column; }
/* The section-title's auto margins centre it inside its grid cell
   by default — pull it left so it lines up with the eyebrow above
   and the body copy below. */
.analytics-text .section-title { margin-left: 0; margin-right: 0; }
.analytics-copy p {
  margin: 0 0 14px; color: var(--text-2); font-size: 15px; line-height: 1.6;
}
.analytics-copy p:last-child { color: var(--text-3); margin-bottom: 0; }
/* Mocked-up dashboard per-venue card, mirroring the real component
   from MultiVenue1/dashboard so visitors see the actual layout
   they'll get after launch. Class names are .dashlike-* to keep
   them isolated from any future site styles. */
.dashlike-card {
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 16px 18px;
  align-self: start;
}
.dashlike-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  height: 56px; flex-shrink: 0;
}
.dashlike-logo { height: 22px; width: auto; object-fit: contain; opacity: 0.92; }
.dashlike-count {
  margin-left: auto; font-size: 11px; color: var(--text-3);
  background: var(--bg-elev-2); padding: 3px 9px; border-radius: 10px;
  font-family: "Geist Mono", monospace;
}
.dashlike-stats { display: flex; flex-direction: column; gap: 9px; }
.dashlike-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.dashlike-k { font-size: 12px; color: var(--text-3); }
.dashlike-v {
  font-size: 15px; color: var(--text);
  font-family: "Geist Mono", monospace;
  letter-spacing: -0.01em;
}
.dashlike-v.pos { color: var(--ok); }
.dashlike-v.neg { color: var(--bad); }

@media (max-width: 760px) {
  .analytics-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   Repeat CTA + footer
   ============================================================ */
.cta {
  text-align: center; padding-top: 80px; padding-bottom: 100px;
  /* Flex-column with align-items center actually centers each
     child on the cross-axis — auto-margins from the shared
     'section > *' rule don't centre inline-flex (the button) on
     their own, so we override here. */
  display: flex; flex-direction: column; align-items: center;
}
.cta > * { width: 100%; }
.cta .btn { width: auto; }
.cta h2 {
  font-size: 36px; letter-spacing: -0.02em; font-weight: 500;
  margin: 0 0 12px;
}
.cta p { color: var(--text-2); margin: 0 0 28px; font-size: 16px; }

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0;
}
.foot-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-meta {
  font-size: 12px; color: var(--text-3); font-family: "Geist Mono", monospace;
  display: flex; gap: 8px;
}
.foot-dot { color: var(--text-4); }
.foot-link { color: var(--text-3); transition: color 120ms; }
.foot-link:hover { color: var(--text); }

/* ============================================================
   Legal pages (Terms, etc.)
   ============================================================ */
.legal { padding-top: 72px; padding-bottom: 96px; }
.legal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.legal-head .legal-title { margin: 0; }
.legal-back { flex-shrink: 0; }
.legal-title { margin-top: 6px; margin-bottom: 8px; }
.legal-meta {
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--text-2); margin-bottom: 44px;
}
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  margin: 32px 0 10px; color: var(--text);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  margin: 0 0 14px; color: var(--text); font-size: 14.5px;
  line-height: 1.65;
}
.legal-meta { color: var(--text-2); }
.legal-body strong { color: var(--text); font-weight: 500; }
.legal-link {
  color: var(--accent); border-bottom: 1px solid transparent;
  transition: border-color 120ms;
}
.legal-link:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Launch placeholder page
   ============================================================ */
.launch-body {
  display: flex; flex-direction: column; min-height: 100vh;
  position: relative; overflow-x: hidden;
}
/* Dashboard screenshot teaser — blurred + dimmed so it reads as
   atmosphere, not foreground content. Card sits sharply on top. */
.launch-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.launch-bg img {
  width: 100%; height: 100%; object-fit: cover;
  /* Light blur so the dashboard reads as 'a screenshot behind glass'
     rather than a fog. Brightness stays close to 1 — the veil layer
     below carries the contrast for the foreground card. */
  filter: blur(3px) saturate(1.05) brightness(0.95);
  transform: scale(1.04);
  opacity: 1;
}
.launch-bg-veil {
  position: absolute; inset: 0;
  /* Lighter veil — just enough to push the centre toward the card so
     the text stays readable. The edges/corners stay almost untouched
     so you can clearly see the dashboard's per-venue cards, sidebar,
     bot bar, etc. as the teaser. */
  background:
    radial-gradient(ellipse 50% 45% at 50% 50%, rgba(8, 10, 18, 0.78), rgba(8, 10, 18, 0.15) 70%, transparent 100%);
}
.launch-main {
  flex: 1; display: grid; place-items: center;
  padding: 40px 24px 80px;
  position: relative; z-index: 1;
}
.launch-body > .nav { position: relative; z-index: 1; }
.launch-card {
  max-width: 540px; width: 100%; text-align: center;
  background: rgba(32, 36, 52, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 46px 38px;
  position: relative;
  /* Backdrop blur so the card cleanly separates from the teaser
     even on browsers without our colour shift. Falls back to the
     translucent background above on older engines. */
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(232, 185, 35, 0.04);
}
.launch-glyph { margin-bottom: 18px; display: flex; justify-content: center; }
.launch-glyph img {
  width: 64px; height: 64px;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}
.launch-eyebrow {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-family: "Geist Mono", monospace;
  margin-bottom: 14px;
}
.launch-card h1 {
  font-size: 26px; line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 14px; font-weight: 500;
}
.launch-card p { color: var(--text-2); margin: 0 0 28px; }
.launch-status {
  text-align: left; background: var(--bg-elev-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 28px;
}
.status-row {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 10px;
  align-items: center; padding: 5px 0;
  font-size: 13px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.ok  { background: var(--ok); box-shadow: 0 0 8px rgba(120, 220, 160, 0.4); }
.status-dot.wip { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.status-k { color: var(--text-2); }
.status-v {
  color: var(--text-3); font-family: "Geist Mono", monospace;
  font-size: 12px;
}
