:root {
  --bg-1: #04101f;
  --bg-2: #052a45;
  --accent: #39ffb5;
  --accent-2: #ffb347;
  --text: #e8f1ff;
  --muted: #8aa7c7;
  --card: rgba(9, 24, 46, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 0 40px rgba(57, 255, 181, 0.4);
  --speed: 24s;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(57, 255, 181, 0.1), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 179, 71, 0.1), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  padding: 72px clamp(16px, 4vw, 64px) 32px;
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.chip__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), #0aff9d 70%, transparent);
  box-shadow: var(--glow);
}

.chip__label {
  font-weight: 700;
}

.chip__year {
  color: var(--accent-2);
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero__text h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 12px 0;
}

.text-glow {
  display: inline-block;
  padding: 0 8px;
  background: linear-gradient(90deg, rgba(57, 255, 181, 0.12), rgba(255, 179, 71, 0.12));
  border-radius: 10px;
  box-shadow: var(--glow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.lede {
  margin: 16px 0 24px;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04101f;
  box-shadow: 0 10px 30px rgba(57, 255, 181, 0.4);
}

.btn.ghost {
  backdrop-filter: blur(8px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), var(--glow);
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.hero__visual {
  position: relative;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(57, 255, 181, 0.06), rgba(255, 179, 71, 0.08));
}

.arcade {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(4, 16, 31, 0.9), rgba(9, 24, 46, 0.8));
  box-shadow: var(--shadow), inset 0 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.arcade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 179, 71, 0.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(57, 255, 181, 0.12), transparent 40%);
  pointer-events: none;
}

.arcade__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.arcade__label {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: 10px;
}

.arcade__light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), #0aff9d 70%, transparent);
  box-shadow: 0 0 18px rgba(57, 255, 181, 0.6);
}

.arcade__screen {
  position: relative;
  height: 230px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 20%, rgba(57, 255, 181, 0.16), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 179, 71, 0.18), transparent 55%),
    #0a1426;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.arcade__glow {
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(circle at 50% 50%, rgba(57, 255, 181, 0.18), transparent 60%);
  filter: blur(12px);
}

.arcade__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
  mix-blend-mode: screen;
}

.arcade__sprite {
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(57, 255, 181, 0.6);
}

.arcade__ship {
  width: 52px;
  height: 9px;
  border-radius: 30px 30px 12px 12px;
  bottom: 28px;
  left: 22%;
  transform: rotate(-4deg);
}

.arcade__asteroid {
  width: 28px;
  height: 28px;
  border-radius: 40%;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.7);
  top: 46%;
  left: 64%;
  transform: rotate(18deg);
}

.arcade__invader {
  width: 18px;
  height: 14px;
  background: linear-gradient(90deg, currentColor 60%, transparent 60%);
  color: var(--text);
  top: 24%;
  left: 44%;
  box-shadow:
    0 2px 0 currentColor,
    0 4px 0 currentColor,
    2px 4px 0 currentColor,
    -2px 4px 0 currentColor,
    2px 2px 0 currentColor,
    -2px 2px 0 currentColor,
    4px 6px 0 currentColor,
    -4px 6px 0 currentColor;
  animation: blink 1.2s steps(2) infinite;
}

.arcade__score,
.arcade__coins {
  position: absolute;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(255, 179, 71, 0.6);
}

.arcade__score {
  top: 10px;
  left: 12px;
}

.arcade__coins {
  bottom: 10px;
  right: 14px;
  color: var(--muted);
  text-shadow: none;
}

.arcade__panel {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(57, 255, 181, 0.08), rgba(255, 179, 71, 0.08));
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.25);
}

.arcade__stick {
  width: 54px;
  height: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}

.arcade__stick::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(57, 255, 181, 0.7);
  top: -3px;
  left: 6px;
}

.arcade__buttons {
  display: flex;
  gap: 10px;
}

.arcade__btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.arcade__btn--fire {
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.6);
}

.arcade__base {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.arcade__badge {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.arcade__badge--alt {
  color: var(--accent-2);
}

.orbit {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin calc(var(--speed) / 2) linear infinite;
}

.orbit__planet {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  border-radius: 50%;
  box-shadow: var(--glow);
  animation: pulse 2s ease-in-out infinite;
}

.orbit__moon {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--accent-2);
  border-radius: 50%;
  top: -8px;
  left: 50%;
  margin-left: -13px;
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.6);
}

.orbit__trail {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.waveform {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 26px 0 10px;
  height: 90px;
}

.waveform span {
  display: block;
  background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0));
  border-radius: 8px;
  animation: beat 1s ease-in-out infinite;
}

.waveform span:nth-child(2) { animation-delay: 0.1s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.3s; }
.waveform span:nth-child(5) { animation-delay: 0.4s; }

.screen {
  font-family: "Press Start 2P", monospace;
  text-align: center;
  letter-spacing: 0.12em;
  padding: 10px 0;
  color: var(--accent-2);
}

.timeline {
  padding: 20px clamp(16px, 4vw, 64px) 40px;
}

.timeline__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.timeline__note {
  max-width: 36ch;
  color: var(--muted);
}

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.topic {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  opacity: 0.85;
  transform: translateY(8px);
}

.topic::before {
  content: attr(data-era);
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.topic:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 179, 71, 0.8);
  box-shadow: var(--glow);
  opacity: 1;
}

.topic.visible {
  opacity: 1;
  transform: translateY(0);
}

.topic__label {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--accent-2);
}

.topic h3 {
  margin-bottom: 6px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chip-link::after {
  content: "↗";
  font-size: 16px;
  transition: transform 0.2s ease;
}

.topic:hover .chip-link::after {
  transform: translateX(4px);
}

.lab {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  padding: 60px clamp(16px, 4vw, 64px) 80px;
  align-items: center;
}

.lab__panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.toggle-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 12px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  display: none;
}

.slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  transition: background 0.2s ease;
  border: 1px solid var(--border);
}

.slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(57, 255, 181, 0.6);
}

.switch input:checked + .slider {
  background: rgba(57, 255, 181, 0.16);
}

.switch input:checked + .slider::after {
  transform: translateX(18px);
}

.switch .label {
  color: var(--muted);
  font-weight: 700;
}

.lab__scene {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(57, 255, 181, 0.07), rgba(255, 179, 71, 0.08));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 0.4;
}

.grid__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: var(--glow);
  border-radius: 50%;
  top: 10%;
  left: 20%;
}

.grid__dot:nth-child(2) {
  top: 50%;
  left: 60%;
}

.grid__dot:nth-child(3) {
  top: 80%;
  left: 30%;
}

.badge {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  position: relative;
  z-index: 1;
  color: var(--accent);
}

.badge--alt {
  margin-left: 10px;
  color: var(--accent-2);
}

.console {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.35);
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: #b7ffdf;
  position: relative;
  z-index: 1;
}

.console__line + .console__line {
  margin-top: 6px;
}

.lab__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.article {
  padding: 10px clamp(16px, 4vw, 64px) 60px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.subhero {
  padding: 72px clamp(16px, 4vw, 64px) 36px;
  position: relative;
  overflow: hidden;
}

.subhero h1 {
  margin: 10px 0;
  font-size: clamp(32px, 4.6vw, 50px);
}

.section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section__header h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.fact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.fact-card .label {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

.fact-card.highlight {
  border-color: rgba(255, 179, 71, 0.7);
  box-shadow: var(--glow);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge--year {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
}

.quote {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(120deg, rgba(57, 255, 181, 0.08), rgba(255, 179, 71, 0.06));
  font-weight: 600;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.quote__attr {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 400;
}

.longform p + p {
  margin-top: 10px;
}

.stack {
  display: grid;
  gap: 10px;
}

.timeline-vertical {
  display: grid;
  gap: 12px;
}

.timeline-vertical__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.play-card {
  background: linear-gradient(120deg, rgba(57, 255, 181, 0.08), rgba(255, 179, 71, 0.06));
}

.footer {
  padding: 22px clamp(16px, 4vw, 64px) 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.footer__brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.footer__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.stars {
  position: fixed;
  inset: 0;
  background: radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.45;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
  transition: transform 0.2s ease;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 400px at 20% 30%, rgba(57, 255, 181, 0.14), transparent 50%),
    radial-gradient(500px 380px at 80% 20%, rgba(255, 179, 71, 0.1), transparent 40%),
    radial-gradient(800px 500px at 50% 90%, rgba(57, 255, 181, 0.08), transparent 40%);
  filter: blur(30px);
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.crt {
  position: relative;
}

.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.35));
  mix-blend-mode: multiply;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes beat {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes blink {
  0%, 60%, 100% { opacity: 0.9; }
  70% { opacity: 0.2; }
}

@media (max-width: 980px) {
  .hero, .lab {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero, .timeline, .lab {
    padding-inline: 16px;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 18px 14px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
