:root {
  color-scheme: dark;
  --ink: #080b10;
  --panel: #101720;
  --line: #26313e;
  --paper: #e9f0f3;
  --muted: #94a5b2;
  --cyan: #72e6ff;
  --yellow: #ffcf5a;
  --red: #ff6b5f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .75rem 1rem; background: var(--yellow); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header, footer {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header { min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 2px solid var(--cyan); color: var(--cyan); font: 900 .8rem/1 ui-monospace, monospace; box-shadow: 3px 3px 0 rgba(114,230,255,.18); }
.site-header nav, footer nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a, footer nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, footer nav a:hover { color: var(--paper); }
.site-header .nav-play { color: var(--ink); background: var(--yellow); padding: .65rem 1rem; }
.hero {
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 4rem 0 5rem;
}
.eyebrow { margin: 0 0 1rem; color: var(--cyan); font: 800 .75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 7.5vw, 7.25rem); line-height: .84; letter-spacing: -.075em; text-transform: uppercase; }
h1 em { color: var(--yellow); font-style: normal; }
.hero-lede { max-width: 37rem; color: #b8c4cb; font-size: clamp(1.04rem, 1.8vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin: 2rem 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 52px; padding: .85rem 1.25rem; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .035em; }
.button-primary { background: var(--yellow); color: var(--ink); box-shadow: 6px 6px 0 #6f5717; }
.button-primary:hover { transform: translate(2px,2px); box-shadow: 4px 4px 0 #6f5717; }
.text-link { color: var(--cyan); font-weight: 800; text-underline-offset: .3em; }
.quick-facts { display: flex; gap: 1.75rem; padding: 0; color: var(--muted); list-style: none; font: 700 .77rem/1.4 ui-monospace, monospace; text-transform: uppercase; }
.quick-facts li::before { content: "■"; margin-right: .45rem; color: var(--cyan); }
.hero-art { position: relative; aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; border: 1px solid #303d49; background: #101720; box-shadow: 18px 18px 0 #0d1219; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .13; background: repeating-linear-gradient(0deg,transparent 0 3px,#000 4px); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.score-strip { display: grid; grid-template-columns: repeat(4,1fr); width: 100%; border-block: 1px solid var(--line); background: #0b1016; }
.score-strip p { min-height: 90px; margin: 0; display: flex; align-items: center; gap: .85rem; padding: 1rem clamp(1rem,3vw,3rem); border-right: 1px solid var(--line); color: #b7c2ca; font-size: .85rem; font-weight: 750; }
.score-strip p:last-child { border: 0; }
.score-strip span { color: var(--cyan); font: 800 .7rem/1 ui-monospace,monospace; }
.section { width: min(calc(100% - 2.5rem), var(--max)); margin: 0 auto; padding: 7rem 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem 5rem; margin-bottom: 3rem; }
.section-heading .eyebrow { grid-column: 1 / -1; }
h2 { margin-bottom: 0; font-size: clamp(2.2rem,5vw,4.5rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.section-heading > p:last-child { color: var(--muted); max-width: 38rem; }
.level-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.level-grid article { min-height: 230px; padding: 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(135deg,rgba(255,255,255,.025),transparent); }
.level-grid article:hover { background: #111922; }
.level-grid article > span { color: var(--cyan); font: 800 .7rem/1 ui-monospace, monospace; }
.level-grid h3 { margin: 3.5rem 0 .7rem; font-size: 1.1rem; text-transform: uppercase; }
.level-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.final-cta { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.final-cta h2 { max-width: 800px; }
.final-cta .button { flex: none; }
footer { min-height: 130px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; font-size: .8rem; }
.page-main { width: min(calc(100% - 2.5rem), 850px); min-height: calc(100vh - 214px); margin: 0 auto; padding: 6rem 0; }
.page-main h1 { font-size: clamp(3rem,8vw,6rem); }
.page-main h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.7rem,4vw,2.7rem); }
.page-main h3 { margin: 2.2rem 0 .6rem; }
.page-main p, .page-main li { color: #b8c4cb; }
.page-main li + li { margin-top: .7rem; }
.page-main .callout { margin: 2.5rem 0; padding: 1.5rem; border-left: 5px solid var(--yellow); background: var(--panel); }
.controls-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.controls-table th, .controls-table td { padding: .85rem; border: 1px solid var(--line); text-align: left; }
.controls-table th { color: var(--cyan); font: 800 .75rem/1.2 ui-monospace, monospace; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 4.5rem; }
  .score-strip { grid-template-columns: 1fr 1fr; }
  .score-strip p:nth-child(2) { border-right: 0; }
  .score-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr 1fr; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  footer { padding: 2rem 0; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .site-header { min-height: 72px; }
  .site-header nav a:not(.nav-play) { display: none; }
  .brand { font-size: .9rem; }
  .hero { width: min(calc(100% - 1.5rem),var(--max)); min-height: auto; padding: 4rem 0; }
  h1 { font-size: clamp(3.2rem,16vw,5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .quick-facts { gap: .75rem 1.25rem; flex-wrap: wrap; }
  .hero-art { box-shadow: 10px 10px 0 #0d1219; }
  .score-strip { grid-template-columns: 1fr; }
  .score-strip p { min-height: 66px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { width: min(calc(100% - 1.5rem),var(--max)); padding: 5rem 0; }
  .level-grid { grid-template-columns: 1fr; }
  .level-grid article { min-height: 190px; }
  .level-grid h3 { margin-top: 2.5rem; }
  footer { width: min(calc(100% - 1.5rem),var(--max)); align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; }
  .page-main { width: min(calc(100% - 1.5rem),850px); padding: 4rem 0; }
  .controls-table { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
