:root {
  --bg: #060b14;
  --surface: #0c1524;
  --surface2: #121e33;
  --line: #1e304d;
  --line-bright: rgba(63, 182, 232, 0.42);
  --text: #ecf2fa;
  --muted: #8ca2bf;
  --primary: #3fb6e8;
  --accent: #f2a63b;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(63, 182, 232, 0.12), transparent 70%),
    linear-gradient(to right, rgba(63, 182, 232, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 182, 232, 0.03) 1px, transparent 1px),
    radial-gradient(1px 1px at 18% 14%, rgba(236, 242, 250, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 28%, rgba(63, 182, 232, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 72%, rgba(236, 242, 250, 0.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 64%, rgba(242, 166, 59, 0.35) 50%, transparent 51%);
  background-size: 100% 100%, 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: rgba(63, 182, 232, 0.32);
  color: #ffffff;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #ffffff 0%, #c8daef 65%, #8ca7c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h2::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(242, 166, 59, 0.6);
  transform: rotate(45deg);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
  transition: color 0.16s ease;
}

a:hover {
  color: #8ad8f8;
}

.small {
  font-size: 14px;
  line-height: 1.43;
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 11, 20, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(63, 182, 232, 0.08);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: #ffffff;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 166, 59, 0.18), 0 0 12px rgba(242, 166, 59, 0.6);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.16s ease;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
}

.hero-hud {
  background: linear-gradient(160deg, rgba(18, 30, 51, 0.7), rgba(9, 17, 31, 0.9));
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9), 0 0 28px -18px rgba(63, 182, 232, 0.35);
}

.hero-hud svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 16px;
}

.hero .lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.56;
  color: #c3d2e6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1.33 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(63, 182, 232, 0.28);
  background: rgba(63, 182, 232, 0.08);
}

.lede-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/1.4 var(--font-mono);
  color: var(--muted);
  margin: 0;
}

/* Sections */
section {
  padding: 40px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.grid > * {
  height: 100%;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 30, 51, 0.72) 0%, rgba(12, 21, 36, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .card:hover {
    transform: translateY(-2px);
  }
}

.card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 12px 28px -16px rgba(63, 182, 232, 0.35), inset 0 1px 0 rgba(63, 182, 232, 0.16);
}

.card h3 {
  color: var(--text);
  margin: 0;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #bdcde2;
}

/* Facts Readout */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 4px 20px;
}

.fact {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact dt {
  color: var(--primary);
  font: 500 12px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  padding-top: 2px;
}

.fact dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 212, 145, 0.4);
  border-radius: var(--r-md);
  background: var(--accent);
  color: #160f05;
  font: 600 15px/1.2 var(--font-sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 20px -6px rgba(242, 166, 59, 0.55);
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  background: #ffbc5c;
  color: #160f05;
  box-shadow: 0 0 24px -4px rgba(242, 166, 59, 0.7);
}

.btn:active,
.btn-ghost:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(12, 21, 36, 0.7);
  color: var(--text);
  font: 500 14px/1.2 var(--font-sans);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(63, 182, 232, 0.08);
  color: #ffffff;
}

.btn-ghost[aria-pressed="true"],
.btn-ghost[data-gf-liked] {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(242, 166, 59, 0.08);
}

.stage-emblem {
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Interactive Console Stage */
.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #101d32 0%, #091220 100%);
  border: 1px solid rgba(63, 182, 232, 0.34);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 24px 48px -28px rgba(0, 0, 0, 0.95),
    0 0 36px -18px rgba(63, 182, 232, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(63, 182, 232, 0.12);
  border-radius: var(--r-sm);
  pointer-events: none;
  z-index: 1;
}

.stage .cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(63, 182, 232, 0.2), transparent 60%),
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(63, 182, 232, 0.025) 3px 4px);
}

.stage .cover .row {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stage .cover h3 {
  font-size: clamp(20px, 2.8vw, 26px);
  max-width: 24ch;
  color: #ffffff;
}

.stage .cover p {
  margin: 0;
  color: #b4c6dc;
  font-size: 15px;
  max-width: 44ch;
}

.stage .cover .eyebrow {
  margin: 0 0 4px;
}

.stage .cover .btn {
  margin-top: 8px;
}

.stage .loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--primary);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage[data-gf-state="loading"] .loader {
  display: flex;
}

.stage[data-gf-state="loading"] .cover,
.stage[data-gf-state="playing"] .cover {
  display: none;
}

.loader span.bar {
  display: block;
  width: 160px;
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader span.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--primary), #9ee4ff);
}

@media (prefers-reduced-motion: no-preference) {
  .loader span.bar::after {
    animation: sweep 1.1s ease-in-out infinite;
  }
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

/* FAQ Accordion */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font: 600 17px/1.4 var(--font-sans);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  transition: color 0.16s ease;
}

.faq summary:hover {
  color: #ffffff;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
  content: "–" / "";
  color: var(--accent);
}

.faq details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq p {
  margin: 0 0 16px;
  color: #c3d2e6;
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

/* Prose & Page Callouts */
.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 44px;
}

.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #c3d2e6;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
  word-break: break-word;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  color: var(--primary);
  font: 500 12px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface2);
}

.answer {
  background: var(--surface2);
  border: 1px solid rgba(63, 182, 232, 0.3);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 0 0 20px;
  color: #dbe8f8;
  max-width: 70ch;
}

.checklist {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  max-width: 70ch;
}

.checklist li {
  counter-increment: s;
  position: relative;
  padding: 0 0 16px 44px;
  margin: 0;
  color: #c3d2e6;
}

.checklist li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: rgba(63, 182, 232, 0.12);
  border: 1px solid rgba(63, 182, 232, 0.35);
  color: var(--primary);
  font: 600 13px/26px var(--font-mono);
  text-align: center;
}

.checklist li strong {
  color: var(--text);
}

.callout {
  border: 1px solid rgba(242, 166, 59, 0.35);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  margin: 0 0 20px;
  max-width: 70ch;
}

.callout p:last-child {
  margin: 0;
}

/* Comments */
.comments {
  margin-top: 8px;
}

.cform {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 28px;
}

.cform input, .cform textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text);
  font: 400 16px/1.5 var(--font-sans);
  transition: border-color 0.16s ease;
}

.cform input::placeholder, .cform textarea::placeholder {
  color: #6d82a1;
}

.cform input:focus, .cform textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.cform .btn {
  justify-self: start;
}

.comment {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.comment header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}

.comment header strong {
  font-size: 15px;
  font-weight: 600;
}

.comment time {
  color: var(--muted);
  font: 400 12px/1 var(--font-mono);
}

.comment p {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: #d2e0f2;
}

.comment[data-gf-owner] {
  border: 1px solid rgba(242, 166, 59, 0.38);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  padding: 14px 16px;
  margin: 8px 0;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font: 500 14px var(--font-sans);
  cursor: pointer;
}

[data-gf-comments][data-gf-empty]::before {
  content: "No comments yet — ask the first question or leave a tip for other traders.";
  display: block;
  color: var(--muted);
  font-size: 15px;
  padding: 16px 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 36px 0 40px;
  background: #04080f;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.foot-name {
  font-weight: 600;
  margin: 0 0 6px;
}

.foot-brand {
  max-width: 44ch;
}

.foot-links {
  display: flex;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.foot-links a:hover {
  color: var(--text);
}

.disclaimer {
  color: #6b7f9c;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 78ch;
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-hud {
    max-width: 320px;
  }
  .top-inner {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .brand {
    flex: 0 0 auto;
    font-size: 15px;
  }
  .nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero {
    padding: 32px 0 20px;
  }
  h1 {
    font-size: clamp(26px, 6.8vw, 32px);
    line-height: 1.15;
  }
  .hero .lead {
    font-size: 16.5px;
    line-height: 1.6;
  }
  .stage {
    aspect-ratio: 4 / 5;
  }
  .stage .cover {
    padding: 20px;
    gap: 10px;
  }
  .stage .cover h3 {
    font-size: 20px;
  }
  .card {
    padding: 18px;
  }
  .prose table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prose th:first-child, .prose td:first-child,
  .prose th:nth-child(2), .prose td:nth-child(2) {
    white-space: nowrap;
  }
  .prose th, .prose td {
    padding: 8px 10px;
  }
  .checklist li {
    padding-left: 38px;
  }
  .foot-links {
    gap: 12px 16px;
  }
  section {
    padding: 32px 0;
  }
  .hero {
    padding: 22px 0 14px;
  }
  .prose li {
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .prose table {
    mask-image: linear-gradient(to right, #000 90%, transparent);
  }
}