@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg:       #010308;
  --bg1:      #060d1a;
  --bg2:      #0a1422;
  --bg3:      #0e1c2e;
  --ng:       #00ff41;
  --nc:       #00e5ff;
  --np:       #ff0080;
  --ny:       #ffe600;
  --no:       #ff6600;
  --npu:      #cc44ff;
  --txt:      #d8eeff;
  --muted:    #4a7088;
  --dim:      #2a4055;
  --border:   rgba(0,229,255,0.18);
  --borderg:  rgba(0,229,255,0.55);
  --glow-ng:  0 0 12px rgba(0,255,65,0.6);
  --glow-nc:  0 0 12px rgba(0,229,255,0.6);
  --glow-np:  0 0 12px rgba(255,0,128,0.6);
  --glow-ny:  0 0 12px rgba(255,230,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--nc) var(--bg1);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--nc); border-radius: 4px; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

body.gameplay-performance-mode::after {
  display: none;
}

body.gameplay-performance-mode .nav {
  backdrop-filter: none;
  background: rgba(1,3,8,0.98);
}

body.gameplay-performance-mode .ticker-track,
body.gameplay-performance-mode .embed-dot,
body.gameplay-performance-mode .hero-eyebrow,
body.gameplay-performance-mode .btn-insert,
body.gameplay-performance-mode .term-cursor {
  animation-play-state: paused !important;
}

/* ─── SCANLINE OVERLAY ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  z-index: 9999;
}

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(1,3,8,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.68rem;
  color: var(--nc);
  text-shadow: var(--glow-nc);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

.nav-logo-text span { color: var(--ng); text-shadow: var(--glow-ng); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--nc);
  border-color: var(--nc);
  box-shadow: var(--glow-nc), inset 0 0 10px rgba(0,229,255,0.06);
  text-shadow: var(--glow-nc);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nc);
  transition: all 0.3s;
  box-shadow: var(--glow-nc);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(1,3,8,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px;
}

.mobile-menu.open { display: block; }
.mobile-menu .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.mobile-menu .nav-links a { font-size: 0.65rem; width: 100%; }

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
}

#arcade-canvas {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Gradient above canvas so text stays readable */
.hero-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(1,3,8,0.90) 0%,
    rgba(1,3,8,0.55) 45%,
    rgba(1,3,8,0.15) 100%
  );
  z-index: 1;
}

.hero-canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,60,100,0.25), transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
}

.hero-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.58rem;
  color: var(--ng);
  text-shadow: var(--glow-ng);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  animation: blinkFade 2s infinite;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.3;
  color: var(--nc);
  text-shadow: 0 0 40px rgba(0,229,255,0.7), 0 0 80px rgba(0,229,255,0.3), 2px 2px 0 rgba(0,0,0,0.8);
  margin-bottom: 20px;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-tagline {
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 40px;
  animation: fadeSlideUp 0.8s 0.15s ease both;
}

.hero-tagline strong { color: var(--ny); }

.btn-insert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--bg);
  background: var(--ng);
  border: 2px solid var(--ng);
  padding: 14px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--glow-ng), 4px 4px 0 rgba(0,255,65,0.25);
  animation: fadeSlideUp 0.8s 0.3s ease both, coinPulse 2.5s 1.5s ease infinite;
  position: relative;
}

.btn-insert:hover {
  background: transparent;
  color: var(--ng);
  box-shadow: var(--glow-ng), 0 0 30px rgba(0,255,65,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--nc);
  border: 1px solid var(--nc);
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.2s;
  margin-left: 16px;
  animation: fadeSlideUp 0.8s 0.45s ease both;
}

.btn-ghost:hover {
  background: rgba(0,229,255,0.08);
  box-shadow: var(--glow-nc);
}

/* ─── TICKER ──────────────────────────────────────────── */
.ticker {
  position: relative;
  background: var(--ng);
  color: var(--bg);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  border-top: 2px solid rgba(0,0,0,0.3);
  border-bottom: 2px solid rgba(0,0,0,0.3);
}

.ticker-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  background: var(--bg);
  color: var(--ng);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 4px 0 0 rgba(0,0,0,0.3);
}

.ticker-track {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  gap: 80px;
}

/* ─── SECTIONS ───────────────────────────────────────── */
.section {
  padding: 80px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 20px;
  background: var(--bg1);
  position: relative;
}
.play-browser-section {
  scroll-margin-top: 72px;
  padding: 28px 20px 56px;
}
.section-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(0,229,255,0.02) 79px, rgba(0,229,255,0.02) 80px);
}
.section-full > .section-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}
.play-browser-section > .section-inner > .play-browser-content {
  padding: 24px 20px 0;
}
.play-browser-section .section-header {
  margin-bottom: 28px;
}

.section-header {
  margin-bottom: 52px;
}

.section-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--ng);
  text-shadow: var(--glow-ng);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--nc);
  text-shadow: var(--glow-nc);
  line-height: 1.4;
}

.section-title .bkt { color: var(--dim); }

.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 60ch;
}

/* ─── DIVIDER ────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--nc), var(--ng), transparent);
  opacity: 0.25;
  margin: 0;
}

/* ─── GAME CARDS ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeSlideUp 0.5s ease both;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--borderg);
  box-shadow: 0 0 30px rgba(0,229,255,0.15), 0 12px 40px rgba(0,0,0,0.5);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}

.game-card-thumb svg {
  width: 100%;
  height: 100%;
}

.game-card-body {
  padding: 18px 20px 20px;
}

.game-card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--ny);
  margin-bottom: 10px;
  line-height: 1.5;
}

.game-card-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  padding: 4px 8px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-web    { color: var(--nc); border-color: var(--nc); background: rgba(0,229,255,0.06); }
.badge-android{ color: var(--ng); border-color: var(--ng); background: rgba(0,255,65,0.06); }
.badge-pc     { color: var(--no); border-color: var(--no); background: rgba(255,102,0,0.06); }
.badge-dev    { color: var(--muted); border-color: var(--dim); background: rgba(42,64,85,0.3); }
.badge-godot  { color: var(--npu); border-color: var(--npu); background: rgba(204,68,255,0.06); }
.badge-python { color: var(--ny); border-color: var(--ny); background: rgba(255,230,0,0.06); }
.badge-open   { color: var(--np); border-color: var(--np); background: rgba(255,0,128,0.06); }
.badge-ai     { color: var(--npu); border-color: var(--npu); background: rgba(204,68,255,0.06); }

.card-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-play {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  padding: 8px 14px;
  background: var(--ng);
  color: var(--bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-play:hover {
  background: transparent;
  color: var(--ng);
  border: 1px solid var(--ng);
  box-shadow: var(--glow-ng);
}

.btn-dl {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  padding: 8px 14px;
  background: transparent;
  color: var(--nc);
  border: 1px solid var(--nc);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-dl:hover {
  background: rgba(0,229,255,0.08);
  box-shadow: var(--glow-nc);
}

.btn-disabled {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  padding: 8px 14px;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--dim);
  cursor: not-allowed;
  display: inline-block;
}

/* ─── WEB GAME FRAME ─────────────────────────────────── */
.game-embed-wrap {
  position: relative;
  background: #000;
  border: 2px solid var(--border);
  box-shadow: 0 0 40px rgba(0,229,255,0.1);
  max-width: 860px;
  margin: 0 auto;
}

.game-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--muted);
  gap: 16px;
}

.embed-dot { width: 8px; height: 8px; background: var(--ng); display: inline-block; box-shadow: var(--glow-ng); animation: blinkFade 1.5s infinite; }
.embed-dot.red { background: var(--np); box-shadow: var(--glow-np); }
.embed-dot.yellow { background: var(--ny); box-shadow: var(--glow-ny); animation-delay: 0.5s; }

.game-embed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-embed-action {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--nc);
  background: transparent;
  border: 1px solid var(--nc);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.game-embed-action:hover {
  background: rgba(0,229,255,0.08);
  box-shadow: var(--glow-nc);
}

.game-embed-action[hidden] {
  display: none;
}

.game-player-shell {
  display: flex;
  flex-direction: column;
  background: #000;
}

.game-player-frame-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.game-player-frame-shell.is-fullscreen,
.game-player-frame-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}

.game-player-frame-shell.is-fullscreen {
  min-height: 100vh;
}

.game-player-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.game-player-frame-shell:not(.is-active) .game-player-frame {
  opacity: 0;
  pointer-events: none;
}

.game-player-launcher {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(1,3,8,0.78), rgba(1,3,8,0.92)),
    radial-gradient(circle at top, rgba(0,229,255,0.18), transparent 50%);
}

.game-player-launcher[hidden] {
  display: none;
}

.game-player-launch-kicker {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: var(--ng);
  text-shadow: var(--glow-ng);
}

.game-player-launch-button {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.56rem;
  color: var(--bg);
  background: var(--ng);
  border: 1px solid var(--ng);
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: var(--glow-ng);
}

.game-player-launch-button:hover {
  background: transparent;
  color: var(--ng);
}

.game-player-launch-text {
  max-width: 40ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.game-player-note {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10,20,34,0.92), rgba(1,3,8,0.98));
}

.game-frame-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #000;
  min-height: 320px;
  padding: 40px;
  text-align: center;
}

.game-frame-placeholder p {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--nc);
  line-height: 1.8;
}

.game-frame-placeholder small {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─── DOWNLOADS ──────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-card:hover {
  border-color: var(--borderg);
  box-shadow: 0 0 20px rgba(0,229,255,0.1);
}

.dl-platform {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.dl-platform-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--nc);
}

.dl-game-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--ny);
  line-height: 1.5;
}

.dl-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;
}

.dl-meta {
  font-size: 0.9rem;
  color: var(--dim);
}

/* ─── APP CARDS ──────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.app-card.accent-cyan::before { background: var(--nc); box-shadow: var(--glow-nc); }
.app-card.accent-green::before { background: var(--ng); box-shadow: var(--glow-ng); }
.app-card.accent-purple::before { background: var(--npu); box-shadow: var(--glow-np); }
.app-card.accent-yellow::before { background: var(--ny); box-shadow: var(--glow-ny); }

.app-card:hover {
  border-color: var(--borderg);
  box-shadow: 0 0 24px rgba(0,229,255,0.12);
}

.app-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
}

.app-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--nc);
  line-height: 1.5;
}

.app-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  flex: 1;
}

/* ─── ORIGINS (ROBLOX/YT) ────────────────────────────── */
.origins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.origin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.origin-logo {
  width: 60px; height: 60px;
}

.origin-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--ny);
}

.origin-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-list a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: var(--nc);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.link-list a:hover {
  border-color: var(--nc);
  box-shadow: var(--glow-nc);
  background: rgba(0,229,255,0.04);
}

.link-list a::before { content: '▶'; color: var(--ng); font-size: 0.6em; }

/* ─── AI CHATBOT SECTION ──────────────────────────────── */
.ai-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ai-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  justify-self: center;
}

.ai-terminal {
  width: 100%;
  background: var(--bg1);
  border: 1px solid var(--ng);
  box-shadow: var(--glow-ng), inset 0 0 30px rgba(0,255,65,0.04);
  overflow: hidden;
}

.ai-term-bar {
  background: rgba(0,255,65,0.1);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,255,65,0.2);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--ng);
}

.ai-term-body {
  padding: 16px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--ng);
  line-height: 1.7;
}

.term-line { display: block; }
.term-prompt { color: var(--nc); }
.term-cursor { display: inline-block; width: 10px; height: 1.2em; background: var(--ng); animation: blinkFade 1s infinite; vertical-align: text-bottom; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 48px 20px 32px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 30ch;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--nc);
  text-shadow: var(--glow-nc);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--nc); }

.footer-bottom {
  max-width: 1300px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: var(--dim);
}

.footer-bottom .ng { color: var(--ng); text-shadow: var(--glow-ng); }

/* ─── BACK TO TOP ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 500;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--nc);
  border: 1px solid var(--nc);
  padding: 10px 12px;
  background: rgba(1,3,8,0.9);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { box-shadow: var(--glow-nc); background: rgba(0,229,255,0.06); }

/* ─── PIXEL CORNER DECORATIONS ────────────────────────── */
.px-corner {
  position: relative;
}
.px-corner::before, .px-corner::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--nc);
  border-style: solid;
  opacity: 0.5;
}
.px-corner::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.px-corner::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ─── STAT BAR ───────────────────────────────────────── */
.stat-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--ny);
  text-shadow: var(--glow-ny);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes blinkFade {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes coinPulse {
  0%, 100% { box-shadow: var(--glow-ng), 4px 4px 0 rgba(0,255,65,0.25); }
  50%       { box-shadow: 0 0 24px rgba(0,255,65,0.8), 4px 4px 0 rgba(0,255,65,0.4); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ABOUT / COMMUNITY ──────────────────────────────── */
.about-intro {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--fg);
  font-family: 'VT323', monospace;
  font-size: 1.35rem;
  line-height: 1.7;
}
.about-intro strong { color: var(--nc); }
.about-intro em    { color: var(--ng); font-style: normal; }

.manifesto-header {
  text-align: center;
  margin: 0 auto 28px;
}
.manifesto-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.value-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.value-tile:hover {
  border-color: var(--ng);
  box-shadow: 0 0 16px rgba(0,255,65,0.12);
}
.value-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.value-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.52rem;
  color: var(--nc);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.value-desc {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.community-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.community-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.community-card.discord::before { background: #5865F2; box-shadow: 0 0 12px #5865F2; }
.community-card.patreon::before { background: #FF424D; box-shadow: 0 0 12px #FF424D; }
.community-card:hover { transform: translateY(-4px); }
.community-card.discord:hover { box-shadow: 0 0 28px rgba(88,101,242,0.35); border-color: #5865F2; }
.community-card.patreon:hover { box-shadow: 0 0 28px rgba(255,66,77,0.35);  border-color: #FF424D; }

.community-icon { width: 64px; height: 64px; flex-shrink: 0; }

.community-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.community-card.discord .community-name { color: #5865F2; text-shadow: 0 0 10px rgba(88,101,242,0.7); }
.community-card.patreon .community-name { color: #FF424D; text-shadow: 0 0 10px rgba(255,66,77,0.7); }

.community-desc {
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.btn-community {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 3px;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}
.btn-community:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-community.discord { background: #5865F2; color: #fff; }
.btn-community.patreon { background: #FF424D; color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .ai-showcase { grid-template-columns: 1fr; }
  .ai-visual { max-width: 100%; }
  .origins-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 40px 20px; }
  .hero-title { font-size: 1.4rem; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }

  .section { padding: 52px 16px; }
  .section-full { padding: 52px 16px; }

  .card-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .community-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .stat-bar { gap: 20px; }
  .stat-value { font-size: 1rem; }

  .back-to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: 0.48rem; }
  .hero-title { font-size: 1.1rem; }
  .btn-insert { font-size: 0.58rem; padding: 12px 18px; }
  .section-title { font-size: 0.85rem; }
  .nav-logo-text { display: none; }
  .values-grid { grid-template-columns: 1fr; }
}
