:root {
  --bg: #0a0a12;
  --bg-alt: #10101c;
  --fg: #e8e8f0;
  --accent: #00ff9d;
  --accent-2: #ff00ff;
  --accent-3: #00ccff;
  --card: #14142280;
  --border: #2a2a44;
  --font-pixel: 'Press Start 2P', monospace;
  --font-retro: 'VT323', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-retro);
  font-size: 20px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* CRT overlay */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.15) 0px,
      rgba(0,0,0,0.15) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-family: var(--font-pixel);
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 2px;
}
.logo-pro { color: var(--fg); }
.logo-8bit { color: var(--accent); }
.logo-bit { color: var(--accent-2); }

.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding:
  background:
    radial-gradient(circle at 50% 30%, rgba(0,255,157,0.08), transparent 60%),
    var(--bg);
}

.hero-tag {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--accent-3);
  letter-spacing: 4px;
  margin-bottom: 24px;
  animation: blink 1.4s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(40px, 10vw, 90px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .line { display: inline-block; }
.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
}

.hero-sub {
  font-size: 24px;
  color: #aab;
  margin-bottom: 32px;
}

.hero-ascii pre {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent-2);
  opacity: 0.5;
  margin-top: 40px;
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 12px;
  padding: 14px 22px;
  text-decoration: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent);
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 25px var(--accent); }
.btn-ghost { border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-small { font-size: 10px; padding: 10px 16px; margin-top: 14px; }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 4vw, 30px);
  margin-bottom: 14px;
  color: var(--fg);
}
.section-title .num {
  color: var(--accent);
  margin-right: 12px;
}

.section-lead {
  font-size: 22px;
  color: #99a;
  margin-bottom: 36px;
  max-width: 640px;
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards */
.card {
  background: var(--card);
  border: 2px solid var(--border);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card-icon { font-size: 40px; margin-bottom: 14px; }
.card h3 {
  font-family: var(--font-pixel);
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--accent);
}
.card p { color: #aab; font-size: 19px; }

.card-retro { border-color: var(--accent-2); }
.card-retro h3 { color: var(--accent-2); }
.card-retro:hover { border-color: var(--accent-2); box-shadow: 0 0 20px rgba(255,0,255,0.3); }

/* Video cards */
.video-card {
  background: var(--card);
  border: 2px solid var(--border);
  padding: 14px;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-3);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.video-thumb .play {
  font-size: 40px;
  color: var(--accent-3);
  text-shadow: 0 0 15px var(--accent-3);
}
.video-card h4 {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--fg);
}

/* Embed box */
.embed-box {
  margin-top: 30px;
  border: 2px dashed var(--border);
  padding: 30px;
  text-align: center;
}
.embed-hint { color: #667; font-size: 18px; }

/* About */
.about-box {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: var(--card);
  border: 2px solid var(--border);
  padding: 30px;
  flex-wrap: wrap;
}
.about-avatar {
  font-size: 70px;
  line-height: 1;
}
.about-text { flex: 1; min-width: 240px; }
.about-text p { font-size: 21px; color: #ccd; margin-bottom: 18px; }

.socials { display: flex; gap: 20px; flex-wrap: wrap; }
.socials a {
  color: var(--accent);
  text-decoration: none;
  font-size: 20px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.socials a:hover { border-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 26px 0;
  text-align: center;
  color: #667;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 600px) {
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }
  .hero { padding: 60px 0 50px; }
  .hero-ascii { display: none; }
}

