/* Incentive Software Fan Site — Visual Identity
   Background: #010510 (deep space navy)
   Heading: Orbitron 700
   Body: Inter
   Primary accent: #00e676 (freescape green)
   Secondary accent: #4dd0e1 (cyan)
   Key motif: CSS 3D perspective wireframe grid (Driller-style receding floor) */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --bg: #010510;
  --bg-card: #020b1a;
  --bg-panel: #030d1f;
  --accent: #00e676;
  --secondary: #4dd0e1;
  --accent-dim: #00b85a;
  --secondary-dim: #39aec0;
  --text: #c8d8f0;
  --text-muted: #6a88b0;
  --text-bright: #e8f4ff;
  --border: rgba(0, 230, 118, 0.25);
  --border-secondary: rgba(77, 208, 225, 0.2);
  --glow-green: 0 0 12px rgba(0, 230, 118, 0.4);
  --glow-cyan: 0 0 12px rgba(77, 208, 225, 0.4);
  --font-heading: 'Orbitron', 'Courier New', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --transition: 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================
   Wireframe Grid Background (Freescape / Driller-style)
   CSS 3D perspective + rotateX with linear-gradient grid lines
   ============================================================ */
.wireframe-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  perspective: 600px;
  overflow: hidden;
  pointer-events: none;
}

.wireframe-grid-inner {
  width: 200%;
  height: 200%;
  margin-left: -50%;
  margin-top: 30%;
  transform: rotateX(70deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(to right, rgba(0, 230, 118, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 230, 118, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridScroll 12s linear infinite;
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 80px; }
}

/* Horizon glow line */
.wireframe-horizon {
  position: fixed;
  top: 38%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.5), rgba(77, 208, 225, 0.5), transparent);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   Skip Link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

/* ============================================================
   Navigation
   ============================================================ */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 5, 16, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: rgba(0, 230, 118, 0.08);
}

.nav-links a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ============================================================
   Page Shell
   ============================================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--accent);
  text-shadow: var(--glow-green);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.2em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-green);
}

.hero-stat .label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: var(--glow-green);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: #000;
  box-shadow: var(--glow-cyan);
}

/* ============================================================
   Section Headings
   ============================================================ */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  box-shadow: var(--glow-green);
}

section {
  margin-bottom: 4rem;
}

/* ============================================================
   Screenshot Strip (index page)
   ============================================================ */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.strip-image {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  padding: 4px;
}

.strip-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* ============================================================
   Game Cards
   ============================================================ */
.filter-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 230, 118, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

<<<<<<< HEAD
=======
/* game-card hover removed — cards are not clickable (false affordance) */
>>>>>>> main

.card-image {
  background: #000;
  padding: 6px;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(77, 208, 225, 0.12);
  color: var(--secondary);
  border: 1px solid var(--border-secondary);
}

.badge.spectrum { background: rgba(0, 230, 118, 0.1); color: var(--accent); border-color: var(--border); }
.badge.amiga    { background: rgba(77, 208, 225, 0.1); color: var(--secondary); }
.badge.dos      { background: rgba(150, 150, 200, 0.1); color: #9090cc; border-color: rgba(150, 150, 200, 0.2); }
.badge.c64      { background: rgba(200, 150, 100, 0.1); color: #c89660; border-color: rgba(200, 150, 100, 0.2); }
.badge.st       { background: rgba(200, 200, 100, 0.1); color: #c8c864; border-color: rgba(200, 200, 100, 0.2); }
.badge.cpc      { background: rgba(100, 180, 100, 0.1); color: #64b464; border-color: rgba(100, 180, 100, 0.2); }
.badge.bbc      { background: rgba(180, 100, 180, 0.1); color: #b464b4; border-color: rgba(180, 100, 180, 0.2); }
.badge.freescape { background: rgba(0, 230, 118, 0.15); color: var(--accent); font-weight: 700; }

.year {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--accent);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Gallery Grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  padding: 4px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
}

.gallery-item figcaption {
  padding: 0.5rem 0.25rem 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

/* ============================================================
   People Cards
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.person-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.person-role {
  font-size: 0.8rem;
  color: var(--secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.person-bio {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

/* ============================================================
   History Page
   ============================================================ */
.history-section {
  margin-bottom: 3.5rem;
}

.history-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.history-section p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.history-img {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 380px;
  width: 50%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  padding: 6px;
}

.history-img img {
  width: 100%;
  display: block;
}

.history-img figcaption {
  padding: 0.4rem 0.25rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .history-img {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================================
   Callout Boxes
   ============================================================ */
aside.trivia {
  background: rgba(0, 230, 118, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

blockquote.dev-quote {
  background: var(--bg-panel);
  border-left: 3px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.8;
}

blockquote.dev-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--secondary);
  text-transform: uppercase;
}

/* ============================================================
   Flagship Page
   ============================================================ */
.flagship-game {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-bottom: 4rem;
}

.flagship-game:first-child {
  border-top: none;
  padding-top: 0;
}

.flagship-game h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.flagship-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.flagship-game h3 {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
}

.flagship-game p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.flagship-img {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  padding: 6px;
}

.flagship-img img {
  width: 100%;
  display: block;
}

.flagship-img figcaption {
  padding: 0.4rem 0.25rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.flagship-img.right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 360px;
  width: 45%;
}

.flagship-img.left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 360px;
  width: 45%;
}

@media (max-width: 640px) {
  .flagship-img.right,
  .flagship-img.left {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 1.5rem 0;
  }
}

.clearfix::after { content: ''; display: table; clear: both; }

.footnotes {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footnotes li {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ============================================================
   Resources Page
   ============================================================ */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  align-items: start;
}

.resource-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resource-name a {
  color: inherit;
  text-decoration: none;
}
.resource-name a:hover { text-decoration: underline; }

.resource-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .resource-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ============================================================
   Videos Page
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 0.75rem 1rem;
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.video-card-meta {
  font-size: 0.75rem;
  color: var(--secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.video-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   Modern Scene Page
   ============================================================ */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.status-badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.ACTIVE   { background: rgba(0, 230, 118, 0.15); color: var(--accent); border: 1px solid var(--border); }
.status-badge.COMPLETE { background: rgba(77, 208, 225, 0.12); color: var(--secondary); border: 1px solid var(--border-secondary); }
.status-badge.WIP      { background: rgba(255, 200, 0, 0.1); color: #ffc800; border: 1px solid rgba(255, 200, 0, 0.2); }
.status-badge.ABANDONED{ background: rgba(180, 100, 100, 0.1); color: #b46464; border: 1px solid rgba(180, 100, 100, 0.2); }

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-links a {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.project-links a:hover {
  background: rgba(0, 230, 118, 0.1);
}

/* ============================================================
   Editorial / Content Sections
   ============================================================ */
.editorial p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.editorial h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.editorial h3 {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}

/* ============================================================
   Site Stats Bar
   ============================================================ */
.stats-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ============================================================
   Easter Egg Modal
   ============================================================ */
.easter-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.easter-modal-backdrop.open {
  display: flex;
}

.easter-modal {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 540px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.25);
  position: relative;
}

.easter-modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: var(--glow-green);
}

.easter-modal-body {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.easter-modal-close {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
}

.easter-modal-close:hover {
  background: var(--accent);
  color: #000;
}

/* ============================================================
   Page-specific: Index Intro Text
   ============================================================ */
.index-intro {
  max-width: 820px;
  margin: 0 auto 3rem;
}

.index-intro p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* ============================================================
   Cross-link Navigation Boxes
   ============================================================ */
.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.page-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
}

.page-link-card:hover {
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: var(--glow-green);
}

.page-link-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.page-link-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   README page
   ============================================================ */
.readme-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.readme-table th,
.readme-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

.readme-table th {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-panel);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; padding: 0.75rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; align-items: center; }

  .hero { min-height: 70vh; padding: 4rem 1rem 3rem; }

  .resource-item { grid-template-columns: 1fr; }

  .stats-bar { justify-content: center; }
}

@media (max-width: 480px) {
  main { padding: 1.5rem 1rem 3rem; }
  .hero-stats { gap: 1.5rem; }
}
