/* ============================================================
   DynastyDesk — shared marketing design system
   Cohesive with the app (apps/web/app/globals.css .dark theme):
   midnight-navy surfaces, gold primary, electric-blue accent.
   Type: Barlow Condensed (athletic display) + Geist (body/UI).
   ============================================================ */

:root {
  /* Surfaces — mirror app --background / --card (oklch → hex) */
  --navy:        #0A1322;   /* page background (brand navy = app bg) */
  --navy-2:      #0E1728;   /* alternating section wash */
  --navy-card:   #141F33;   /* cards float above bg (app --card) */
  --navy-elev:   #1A2A44;   /* hover / raised */

  /* Brand accents */
  --gold:        #F0B429;   /* primary (app --primary) */
  --gold-light:  #FFD166;
  --gold-dim:    rgba(240,180,41,0.13);
  --electric:    #3BB4F2;   /* accent (app --accent electric blue) */
  --electric-deep:#1568FF;  /* brand blue linework */
  --cyan:        #00E0FF;   /* Al holographic glow */
  --orange:      #F26B05;   /* DD shield accent — sparingly */

  /* Text */
  --white:       #E6F2FF;   /* brand off-white */
  --muted:       #A8BEDB;
  --muted-dim:   rgba(168,190,219,0.60);

  /* Lines & elevation — electric-tinted, echoes app "techy grid" borders */
  --border:      rgba(59,180,242,0.18);
  --border-gold: rgba(240,180,41,0.18);
  --surface:     rgba(20,31,51,0.75);
  --shadow-card: 0 1px 2px rgba(5,10,20,0.30), 0 1px 3px rgba(5,10,20,0.20);
  --shadow-card-hover: 0 8px 28px -6px rgba(5,10,20,0.55), 0 2px 8px -2px rgba(59,180,242,0.18);
  --shadow-glow: 0 0 60px -12px rgba(59,180,242,0.35);

  /* Result semantics (match app --win/--loss) */
  --win:  #35c26a;
  --loss: #f0574d;

  /* Radii — app --radius 0.625rem scale */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1200px;

  /* Fonts */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(59,180,242,0.30); color: #fff; }

/* Faint film grain, matches the premium app feel */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
h1 em, h2 em, .cta-title em { font-style: normal; color: var(--gold); }

.section-label, .section-eyebrow, .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
.section-desc { font-family: var(--font-body); color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 640px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: 96px 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 16px;
  padding: 12px 26px; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--gold); color: #0A1322; box-shadow: 0 0 0 0 rgba(240,180,41,0); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(240,180,41,0.5); }
.btn-secondary { background: rgba(59,180,242,0.08); color: var(--white); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--electric); color: #fff; background: rgba(59,180,242,0.14); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--white); }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px); height: 66px;
  background: rgba(10,19,34,0.82); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-wordmark { height: 42px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links > li > a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; transition: color .2s; }
.nav-links > li > a:hover { color: var(--white); }
.nav-signin { color: var(--white) !important; padding: 7px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border) !important; font-weight: 600 !important; font-size: 14px !important; }
.nav-signin:hover { border-color: var(--electric) !important; color: var(--electric) !important; }
.nav-cta { background: var(--gold) !important; color: #0A1322 !important; padding: 8px 20px; border-radius: var(--r-sm);
  font-weight: 700 !important; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 14px !important; }
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(59,180,242,0.22), rgba(21,104,255,0.10) 45%, transparent 72%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
/* Prevent grid tracks blowing out past the viewport on long display words */
.hero-grid > * { min-width: 0; }
.hero-badge, .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--electric); padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(59,180,242,0.06); margin-bottom: 22px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(40px, 7vw, 82px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; overflow-wrap: break-word; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; margin: 22px 0 30px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-fineprint { color: var(--muted-dim); font-size: 14px; margin-top: 28px; max-width: 640px; }

/* Al holographic hero art */
.hero-al { position: relative; display: flex; justify-content: center; align-items: flex-end; min-width: 0; }
.hero-al img { width: 100%; min-width: 0; max-width: 400px; height: auto;
  filter: drop-shadow(0 0 46px rgba(59,180,242,0.42)); }
.hero-al::after {
  content: ''; position: absolute; inset: 4% 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(60% 58% at 50% 44%, rgba(0,224,255,0.30), rgba(21,104,255,0.12) 50%, transparent 72%); filter: blur(28px);
}

/* Dual-path cards */
.hero-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.hero-path-card {
  background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hero-path-card:hover { border-color: var(--electric); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.hero-path-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.hero-path-card h3 { font-size: 26px; text-transform: uppercase; margin: 8px 0 10px; }
.hero-path-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.hero-path-card .btn-primary { width: 100%; margin-bottom: 10px; }
.hero-path-link { display: inline-block; color: var(--electric); text-decoration: none; font-size: 14px; font-weight: 600; }
.hero-path-link:hover { color: var(--gold); }

.banner-strip { max-width: var(--maxw); margin: 56px auto 0; padding: 0 24px; }
.banner-strip img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border-gold); box-shadow: var(--shadow-glow); }

/* ---------- Generic section header ---------- */
.how, .features-section, .stats-section, .mockup-section, .bot-section { }
.how-inner, .features-wrap, .stats-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.how { padding: 96px 0; background: var(--navy-2); }
.how-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.how-header .section-desc { margin: 16px auto 0; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s; }
.step-card:hover { border-color: var(--electric); transform: translateY(-3px); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--electric); letter-spacing: 0.1em; }
.step-icon { font-size: 30px; display: block; margin: 14px 0 10px; }
.step-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.step-desc { color: var(--muted); font-size: 15px; }

/* Mockup (Discord status board) */
.mockup-section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mockup-wrap { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card-hover); }
.mockup-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--border); }
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.mockup-title { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-left: 8px; }
.mockup-body { padding: 22px; font-family: var(--font-mono); font-size: 14px; }
.m-league { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--gold); }
.m-week { color: var(--muted); margin: 2px 0 6px; }
.m-deadline { color: var(--white); } .m-deadline span { color: var(--electric); }
.m-divider { height: 1px; background: var(--border); margin: 14px 0; }
.m-label { font-size: 13px; color: var(--win); margin-bottom: 8px; letter-spacing: 0.04em; }
.m-player { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.m-player-name { color: var(--white); } .m-player-team { color: var(--muted); font-size: 12px; }

/* ---------- Features grid ---------- */
.features-section { padding: 96px 0; }
.features-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.features-header .section-desc { margin: 16px auto 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s, box-shadow .2s; }
.feat-card:hover { border-color: var(--electric); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.feat-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.feat-icon-wrap { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: rgba(59,180,242,0.10); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 14px; }
.feat-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feat-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feat-desc a { color: var(--gold); text-decoration: none; }
.feat-desc a:hover { text-decoration: underline; }

/* Platform tags */
.platform-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.tag-discord { background: rgba(88,101,242,0.16); color: #8b95f5; border: 1px solid rgba(88,101,242,0.3); }
.tag-web { background: rgba(59,180,242,0.14); color: var(--electric); border: 1px solid var(--border); }
.tag-both { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-gold); }

/* Command list */
.cmd-list { display: grid; gap: 8px; }
.cmd-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--r-sm); }
.cmd-name { font-family: var(--font-mono); font-size: 13px; color: var(--electric); }
.cmd-desc-sm { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Bot / Al section ---------- */
.bot-section { padding: 96px 0; background: var(--navy-2); }
.bot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.bot-inner img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 0 40px rgba(59,180,242,0.34)); }
.al-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.al-keywords span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }

/* ---------- Stats band ---------- */
.stats-section { padding: 84px 0; }
.stats-wrap { text-align: center; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.stat-block { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px 20px; box-shadow: var(--shadow-card); }
.stat-num { font-family: var(--font-display); font-size: clamp(48px, 7vw, 76px); font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-section { position: relative; padding: 110px 0; overflow: hidden; text-align: center; }
.cta-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 20%, rgba(59,180,242,0.18), transparent 70%); }
.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.cta-title { font-size: clamp(40px, 6vw, 72px); font-weight: 900; text-transform: uppercase; }
.cta-sub { color: var(--muted); font-size: 18px; margin: 18px auto 32px; max-width: 560px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 44px clamp(20px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-logo-img { height: 34px; width: 34px; object-fit: contain; border-radius: 50%; }
.footer-tagline { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-social a { color: var(--muted); display: inline-flex; transition: color .2s; }
.footer-social a:hover { color: var(--white); }
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--muted-dim); font-size: 13px; font-family: var(--font-mono); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Generic content pages (setup / privacy / support / features prose) ---------- */
.page-hero { padding: 118px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 900; text-transform: uppercase; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 16px auto 0; }
.prose { max-width: 820px; margin: 0 auto; padding: 0 24px 96px; }
.prose h2 { font-size: 30px; text-transform: uppercase; margin: 44px 0 14px; color: var(--white); }
.prose h3 { font-size: 22px; text-transform: uppercase; margin: 28px 0 10px; color: var(--gold); }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--electric); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(59,180,242,0.10); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--electric); }
.card { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }

/* ============================================================
   Documentation pages (setup hub, start, playing, webapp, reference)
   ------------------------------------------------------------
   These lived as an 88-line inline <style> inside setup.html, which
   also redefined :root, body, nav and footer — a private fork of the
   design system. That fork asked for 'Geist' while the page loaded
   Barlow + Space Mono, so the guide silently rendered in fallback
   faces. Shared here so five doc pages stay one look.
   ============================================================ */

.doc-layout {
  max-width: 1000px; margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 120px;
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 60px); align-items: start;
}
/* The hub has no on-this-page nav — it IS the navigation. */
.doc-layout-full { grid-template-columns: 1fr; max-width: 880px; }

/* The on-this-page nav. A <details> so it can collapse on mobile, where it
   is the ONLY navigation — the old rule was `display:none` under 768px,
   which left a 136KB page with no way through it but scrolling. */
.doc-toc {
  position: sticky; top: 86px;
  max-height: calc(100vh - 110px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(240,180,41,0.25) transparent;
}
.doc-toc::-webkit-scrollbar { width: 6px; }
.doc-toc::-webkit-scrollbar-thumb { background: rgba(240,180,41,0.25); border-radius: 3px; }
.doc-toc::-webkit-scrollbar-track { background: transparent; }
.doc-toc > summary { display: none; }   /* desktop: plain sidebar, no control */

.sidebar-nav { list-style: none; border-left: 2px solid var(--border); padding-left: 20px; }
.sidebar-nav li { margin-bottom: 4px; }
.sidebar-nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 6px 0; display: block; transition: color .2s;
}
.sidebar-nav a:hover { color: var(--white); }
.sidebar-nav a.is-current { color: var(--gold); font-weight: 600; }
.sidebar-nav .nav-section {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-top: 20px; margin-bottom: 8px; opacity: 0.8;
}

/* ---------- Doc prose ---------- */
.doc-content section { margin-bottom: 72px; scroll-margin-top: 84px; }
.doc-content h2 {
  font-size: 36px; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.doc-content h3 {
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em;
  margin: 28px 0 12px; color: var(--gold);
}
.doc-content h4 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.doc-content p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-bottom: 14px; }
.doc-content p strong { color: var(--white); font-weight: 600; }
.doc-content a { color: var(--electric); text-decoration: none; }
.doc-content a:hover { text-decoration: underline; }
.doc-content code {
  font-family: var(--font-mono); font-size: 0.9em; background: rgba(59,180,242,0.10);
  border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--electric);
}
.doc-content ul { list-style: none; margin-bottom: 14px; }
.doc-content ul li {
  color: var(--muted); font-size: 16px; line-height: 1.8; padding: 6px 0 6px 20px;
  position: relative; border-bottom: 1px solid rgba(240,180,41,0.05);
}
.doc-content ul li::before { content: '\2192'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 8px; }
.doc-content ul li strong { color: var(--white); font-weight: 600; }
.doc-content h2 .platform-tag { vertical-align: 2px; margin-right: 10px; }

/* ---------- Doc components ---------- */
.step-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px 26px; margin-bottom: 14px; display: flex; gap: 18px; align-items: flex-start;
  backdrop-filter: blur(10px);
}
.step-block-num { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--gold); line-height: 1; min-width: 34px; }
.step-block-content p { margin: 0; font-size: 15px; }
.step-block-content p + p { margin-top: 10px; }

.note-box {
  background: rgba(240,180,41,0.06); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px; margin: 14px 0;
}
.note-box p { color: var(--white); font-size: 15px; margin: 0; line-height: 1.8; }
.note-box p + p { margin-top: 10px; }
.note-box strong { color: var(--gold); }

/* A warning is a note that can cost you something. Red rail, not gold, so it
   reads as "stop" at a glance rather than "by the way". */
.warn-box { background: rgba(240,87,77,0.07); border: 1px solid rgba(240,87,77,0.3); border-left: 3px solid var(--loss); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 18px; margin: 14px 0; }
.warn-box p { color: var(--white); font-size: 15px; margin: 0; line-height: 1.8; }
.warn-box p + p { margin-top: 10px; }
.warn-box strong { color: #ff8b83; }

/* "Who sees this?" — the anxiety-reducer that runs through the start guide. */
.who-box { background: rgba(59,180,242,0.07); border: 1px solid var(--border); border-left: 3px solid var(--electric); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 18px; margin: 14px 0; }
.who-box p { color: var(--white); font-size: 14.5px; margin: 0; line-height: 1.75; }
.who-box strong { color: var(--electric); }

.cmd-block {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 14px 18px; margin: 10px 0; display: flex; align-items: flex-start; gap: 14px;
}
.cmd-block-name { font-family: var(--font-mono); font-size: 12px; color: var(--gold); white-space: nowrap; padding-top: 2px; min-width: 155px; }
.cmd-block-desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.cmd-block-who { font-family: var(--font-mono); font-size: 10px; color: rgba(240,180,41,0.5); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.cmd-block[hidden], .doc-content h3[hidden] { display: none; }

.role-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.role-filter button {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 18px;
  cursor: pointer; transition: all .2s;
}
.role-filter button:hover { border-color: var(--gold); color: var(--gold); }
.role-filter button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.role-filter-hint { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.03em; margin-bottom: 8px; }
.faq-a { color: var(--muted); font-size: 16px; line-height: 1.8; }

/* Hub routing cards — the "what do you want to do?" grid on setup.html */
.doc-hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.doc-hub-card {
  display: block; text-decoration: none; background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc-hub-card:hover { border-color: var(--electric); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.doc-hub-card h3 { font-size: 25px; text-transform: uppercase; margin: 10px 0 8px; color: var(--white); }
.doc-hub-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.doc-hub-card .doc-hub-go { display: inline-block; margin-top: 14px; color: var(--electric); font-size: 14px; font-weight: 600; }

.page-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Phase headers on the start guide — a big numeral you can navigate by. */
.phase-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--border-gold); padding-bottom: 14px; margin-bottom: 8px; }
.phase-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 8vw, 64px); line-height: 0.9; color: var(--gold-dim); -webkit-text-stroke: 1px var(--gold); }
.phase-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--electric); }

@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; padding: 28px 20px 80px; }
  .doc-hub { grid-template-columns: 1fr; }

  /* The TOC becomes a collapsed, sticky control pinned under the nav bar. */
  .doc-toc {
    position: sticky; top: 66px; z-index: 50; max-height: none; margin-bottom: 26px;
    background: rgba(10,19,34,0.97); backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: var(--r);
    box-shadow: var(--shadow-card);
  }
  .doc-toc > summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; font-size: 15px; color: var(--gold);
  }
  .doc-toc > summary::-webkit-details-marker { display: none; }
  .doc-toc > summary::after { content: '\25BE'; font-size: 13px; transition: transform .2s; }
  .doc-toc[open] > summary::after { transform: rotate(180deg); }
  .doc-toc[open] > .sidebar-nav { max-height: 58vh; overflow-y: auto; }
  .sidebar-nav { border-left: none; padding: 2px 16px 14px; }
  .sidebar-nav .nav-section { margin-top: 14px; }

  .doc-content section { margin-bottom: 56px; }
  .doc-content h2 { font-size: 28px; }
  .cmd-block { flex-direction: column; gap: 6px; }
  .cmd-block-name { min-width: 0; }
  .step-block { padding: 18px 18px; gap: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-al { order: -1; max-width: 340px; margin: 0 auto; }
  .steps-grid, .feat-grid, .stats-row, .hero-paths { grid-template-columns: 1fr; }
  .feat-card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .mockup-section, .bot-inner { grid-template-columns: 1fr; gap: 32px; }
  .bot-inner img { max-width: 300px; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(10,19,34,0.98); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; transform: translateY(-140%); transition: transform .28s ease; z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links > li { padding: 4px 0; }
  .nav-links > li > a { display: block; padding: 10px 0; }
  .nav-cta, .nav-signin { display: inline-block; text-align: center; margin-top: 6px; }
  .hamburger { display: flex; }
  .section-pad, .how, .features-section, .bot-section { padding: 64px 0; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 440px) {
  .hero h1 { font-size: 38px; }
  .hero { padding-top: 104px; }
  .section-title, .cta-title, .page-hero h1 { font-size: 30px; }
  h1, h2, h3 { overflow-wrap: break-word; }
}
