:root {
  --black: #000;
  --ink: #f4f4f4;
  --muted: #b9b9b9;
  --yellow: #ffff00;
  --cyan: #00ffff;
  --red: #ff2a2a;
  --panel: #0a0a0a;
  --line: #303030;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(255,255,0,.08), transparent 26rem),
    linear-gradient(var(--black), #050505 60%, var(--black));
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  image-rendering: pixelated;
}

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

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .65rem 1rem; color: #000; background: var(--yellow);
}
.skip-link:focus { top: 1rem; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; padding: .75rem max(1rem, calc((100vw - var(--max))/2));
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.92); backdrop-filter: blur(12px);
}
.brand { color: var(--yellow); font-weight: 900; font-size: 1.35rem; text-decoration: none; letter-spacing: .12em; }
nav { display: flex; gap: clamp(.75rem, 2.4vw, 2rem); }
nav a { color: var(--muted); text-decoration: none; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
nav a:hover, nav a:focus { color: var(--cyan); }

main, footer { overflow: hidden; }
.hero, .section, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.hero {
  min-height: calc(100vh - 66px);
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 8rem) 0;
}
.eyebrow { margin: 0 0 .6rem; color: var(--cyan); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: .95; text-transform: uppercase; }
h1 { color: var(--yellow); font-size: clamp(4.5rem, 13vw, 10rem); letter-spacing: -.08em; text-shadow: .06em .06em 0 rgba(0,255,255,.18); }
h2 { font-size: clamp(2.25rem, 5.5vw, 5rem); letter-spacing: -.055em; }
.tagline { margin: 1.25rem 0; color: var(--cyan); font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.05; font-weight: 800; }
.intro { max-width: 34rem; color: var(--muted); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; border: 2px solid; text-decoration: none; font-weight: 800; text-transform: uppercase; box-shadow: 6px 6px 0 #222; transition: transform .12s ease, box-shadow .12s ease; }
.button:hover, .button:focus { transform: translate(3px,3px); box-shadow: 3px 3px 0 #222; }
.button.primary { color: #000; background: var(--yellow); border-color: var(--yellow); }
.button.secondary { color: var(--cyan); background: #000; border-color: var(--cyan); }
.micro { color: #7f7f7f; font-size: .78rem; }

.frame { position: relative; border: 2px solid var(--cyan); background: #000; box-shadow: 12px 12px 0 rgba(0,255,255,.12); }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.1) 3px 4px); }
.hero-screen { transform: rotate(.5deg); }

.section { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading > p:last-child { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.copy { color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.copy p:first-child { margin-top: 0; color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-grid article { min-height: 140px; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; background: var(--panel); }
.feature-grid strong { color: var(--yellow); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; }
.feature-grid span { color: var(--cyan); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.gallery .wide { grid-column: span 2; }
.gallery a { overflow: hidden; }
.gallery img { width: 100%; transition: transform .18s steps(2,end); }
.gallery a:hover img, .gallery a:focus img { transform: scale(1.015); }

.controls { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-bottom: 2rem; background: var(--line); border: 1px solid var(--line); }
.controls > div { display: flex; min-height: 160px; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; background: var(--panel); text-align: center; }
kbd { display: inline-block; min-width: 3rem; margin: .15rem; padding: .45rem .65rem; border: 2px solid var(--yellow); color: var(--yellow); background: #000; box-shadow: 4px 4px 0 #4d4d00; font: inherit; font-weight: 900; }
.controls span { color: var(--cyan); text-transform: uppercase; font-size: .78rem; }
.load-box { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--cyan); background: rgba(0,255,255,.04); }
.load-box p { margin: 0; }
.load-box code { color: #000; background: var(--yellow); padding: .4rem .65rem; font-size: 1.2rem; font-weight: 900; }
.load-box p:last-child { color: var(--muted); }

.source-card { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; padding: clamp(1.5rem, 5vw, 4rem); border: 2px solid var(--yellow); background: linear-gradient(135deg, rgba(255,255,0,.07), transparent 55%); box-shadow: 14px 14px 0 rgba(255,255,0,.1); }
.source-card p:not(.eyebrow) { max-width: 44rem; color: var(--muted); }
.source-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.text-link { color: var(--cyan); text-decoration: none; font-weight: 800; }
.text-link:hover { text-decoration: underline; }

footer { padding: 3rem 0 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer strong { color: var(--cyan); }
footer .copyright { margin-top: 2rem; color: #777; }

@media (max-width: 820px) {
  .topbar nav a:nth-child(-n+2) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { order: 1; }
  .hero-screen { order: 2; }
  .split, .source-card { grid-template-columns: 1fr; }
  .controls { grid-template-columns: repeat(2,1fr); }
  .load-box { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { padding-inline: 1rem; }
  nav { gap: .8rem; }
  h1 { font-size: 4.6rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .controls { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
