* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #06090c;
  color: #e0e6ed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: fixed;
  width: 80vmax;
  height: 80vmax;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 180, 220, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}
nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav a:hover { color: #00d4ff; }
.logo { color: #e0e6ed; font-weight: 600; font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
main { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #00d4ff;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero .cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.5);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.hero .cta:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
}
.hero-divider {
  color: rgba(0, 212, 255, 0.35);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.2em;
}
.hero-access {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 212, 255, 0.7);
  margin-bottom: 0.25rem;
}
.hero-modes {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}
.section {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}
.section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.section h3 { font-size: 1.25rem; color: #fff; margin: 1.5rem 0 0.5rem; }
.section p, .section li {
  color: #9ca3af;
  max-width: 720px;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.section .lead { margin-bottom: 1.5rem; }
.section hr.section-divider { border: none; border-top: 1px solid rgba(0, 212, 255, 0.15); margin: 2.5rem 0; }
.section p.section-divider { margin: 2.5rem 0 0; padding: 0; color: rgba(0, 212, 255, 0.3); font-size: 0.9rem; letter-spacing: 0.2em; }
.muted { color: #6b7280; font-size: 0.9rem; }
.section ul { margin: 0.5rem 0 1rem 1.5rem; }
.section .blog-nav { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(0, 212, 255, 0.12); color: #9ca3af; font-size: 0.95rem; }
.section .blog-nav a { text-decoration: none; }
.section .blog-nav a:hover { text-decoration: underline; }
.blog-list { display: flex; flex-direction: column; gap: 2.5rem; }
.blog-teaser { border-bottom: 1px solid rgba(0, 212, 255, 0.08); padding-bottom: 2.5rem; }
.blog-teaser:last-child { border-bottom: none; padding-bottom: 0; }
.blog-teaser h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.blog-teaser h2 a { text-decoration: none; }
.blog-teaser .meta { color: #6b7280; font-size: 0.9rem; margin-bottom: 0.5rem; }
.blog-teaser .teaser { color: #9ca3af; font-size: 1rem; line-height: 1.55; max-width: 720px; margin: 0; }
footer {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
}
footer a { color: #9ca3af; text-decoration: none; }
footer a:hover { color: #00d4ff; }
footer .footer-links { margin-bottom: 0.5rem; }
.page-title { font-size: 2rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.page-meta { color: #6b7280; font-size: 0.9rem; margin-bottom: 2rem; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(0, 212, 255, 0.06); }
.article-list a { color: #00d4ff; text-decoration: none; font-weight: 500; }
.article-list a:hover { color: #fff; }
.article-list .meta { color: #6b7280; font-size: 0.85rem; margin-top: 0.25rem; }
.subnav { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0, 212, 255, 0.1); }
.subnav a { color: #9ca3af; text-decoration: none; margin-right: 1.5rem; font-size: 0.9rem; }
.subnav a:hover { color: #00d4ff; }
#play-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #06090c;
  display: none;
}
#play-overlay.active { display: block; }
#play-overlay canvas { display: block; width: 100%; height: 100%; }
#play-close {
  position: fixed;
  top: 1.25rem;
  right: 2rem;
  z-index: 1001;
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
#play-close:hover { color: #00d4ff; }

/* Futuristic digital VHS glitch overlay — full viewport, CSS-only */
.play-glitch {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  overflow: hidden;
}
.play-glitch.active {
  opacity: 1;
  animation: play-glitch-flicker 0.08s steps(2, jump-none) infinite;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.35) 48%,
    rgba(0, 0, 0, 0.35) 52%,
    transparent 58%,
    transparent 100%
  );
  background-size: 100% 280px;
  animation: play-glitch-flicker 0.08s steps(2, jump-none) infinite, play-glitch-tracking 3s linear infinite;
}
/* Scanlines */
.play-glitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.18) 1px,
    rgba(0, 0, 0, 0.18) 2px
  );
  animation: play-glitch-scan 0.06s linear infinite;
}
/* Chromatic aberration (red/cyan shift) */
.play-glitch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 80, 0.12) 0%,
    transparent 25%,
    transparent 75%,
    rgba(0, 200, 255, 0.12) 100%
  );
  mix-blend-mode: screen;
  animation: play-glitch-chroma 0.15s steps(1, jump-none) infinite;
}
@keyframes play-glitch-flicker {
  0%, 100% { transform: translateX(0) skewX(0deg); }
  50% { transform: translateX(4px) skewX(-0.3deg); }
}
@keyframes play-glitch-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}
@keyframes play-glitch-chroma {
  0% { opacity: 0.7; transform: translateX(0); }
  33% { opacity: 1; transform: translateX(2px); }
  66% { opacity: 0.85; transform: translateX(-1px); }
  100% { opacity: 0.7; transform: translateX(0); }
}
@keyframes play-glitch-tracking {
  0% { background-position: 0 0; }
  100% { background-position: 0 280px; }
}

#play-terminal {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1002;
  width: 28rem;
  max-width: calc(100vw - 4rem);
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  background: rgba(6, 9, 12, 0.88);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  color: rgba(0, 212, 255, 0.9);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.play-terminal-header {
  color: rgba(0, 212, 255, 0.5);
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}
.play-terminal-log {
  min-height: 6em;
  max-height: 10em;
  overflow: hidden;
  word-break: break-all;
}
.play-terminal-log .line { display: block; }
.play-terminal-log .line.ok { color: rgba(0, 212, 255, 0.85); }
.play-terminal-log .line.warn { color: rgba(255, 180, 80, 0.9); }
.play-terminal-log .line.fail { color: rgba(255, 100, 100, 0.85); }
.play-terminal-log .line.glitch { color: rgba(0, 212, 255, 0.7); }
.play-terminal-prompt {
  margin-top: 0.35rem;
  color: rgba(0, 212, 255, 0.6);
}
#play-terminal.glitch-active .play-terminal-log .line.glitch {
  animation: terminal-glitch 0.12s steps(1) infinite;
}
#play-terminal.error-state {
  border-color: rgba(255, 80, 80, 0.5);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 60, 60, 0.15);
  animation: terminal-bounce 0.2s steps(1, jump-none) infinite;
}
#play-terminal.error-state .play-terminal-header { color: rgba(255, 100, 100, 0.5); }
#play-terminal.error-state .play-terminal-prompt { color: rgba(255, 100, 100, 0.8); }
@keyframes terminal-bounce {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(3px, -2px); }
  25%  { transform: translate(-2px, 2px); }
  37%  { transform: translate(-3px, -1px); }
  50%  { transform: translate(2px, 1px); }
  62%  { transform: translate(1px, 3px); }
  75%  { transform: translate(-1px, -2px); }
  87%  { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}
@keyframes terminal-glitch {
  0%, 100% { opacity: 1; filter: none; }
  25% { opacity: 0.92; letter-spacing: 0.05em; }
  50% { opacity: 1; filter: none; }
  75% { opacity: 0.88; letter-spacing: -0.02em; }
}

dl.faq dt { color: #e0e6ed; margin-top: 1rem; }
dl.faq dd { color: #9ca3af; margin-left: 0; padding-left: 1rem; margin-bottom: 0.5rem; }
dl.glossary dt { color: #00d4ff; margin-top: 1rem; font-weight: 500; }
dl.glossary dd { color: #9ca3af; margin-left: 0; padding-left: 1rem; margin-bottom: 1rem; }
