/* ==========================================================================
   SONIC CARROM — OFFICIAL SHOWCASE DESIGN SYSTEM
   Modern "Carromic Cyber-Glass" Aesthetic
   Accessible Championship Carrom for Windows
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Midnight Cyber Surface */
  --bg-base: #060b14;
  --bg-surface: #0a1324;
  --bg-elevated: #0f1c34;
  --bg-card: rgba(14, 25, 48, 0.72);
  --bg-card-hover: rgba(20, 38, 72, 0.86);
  --bg-glass: rgba(10, 20, 38, 0.65);
  
  /* Luminous Cyber Accents */
  --cyan: #00f5d2;
  --cyan-bright: #38f8dc;
  --cyan-glow: rgba(0, 245, 210, 0.35);
  --cyan-muted: rgba(0, 245, 210, 0.12);
  
  --amber: #ffbe0b;
  --amber-bright: #ffd154;
  --amber-glow: rgba(255, 190, 11, 0.32);
  --amber-muted: rgba(255, 190, 11, 0.12);

  --crimson: #f72585;
  --crimson-dark: #dc143c;
  --crimson-glow: rgba(247, 37, 133, 0.35);
  --crimson-muted: rgba(247, 37, 133, 0.14);

  --blue-neon: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.3);

  /* Carrom Traditional & Woodcraft Palette */
  --wood-birch: #f4e4cb;
  --wood-birch-dark: #e5cdab;
  --wood-grain: #d7b990;
  --wood-walnut: #2a150a;
  --wood-walnut-border: #4d2612;
  --wood-walnut-highlight: #743819;
  
  /* Carrom Pieces */
  --coin-white: #faf7f0;
  --coin-black: #1c202a;
  --coin-queen: #d91438;
  --coin-striker: #ffffff;
  --pocket-dark: #0a0b10;

  /* Typography & Layout Tokens */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-main: #f3f6fc;
  --text-secondary: #9cb1d1;
  --text-muted: #62779a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(0, 245, 210, 0.22);
  --border-card: rgba(56, 189, 248, 0.16);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.55), 0 0 16px -4px rgba(0, 245, 210, 0.12);
  --shadow-glow-cyan: 0 0 30px rgba(0, 245, 210, 0.32);
  --shadow-glow-amber: 0 0 30px rgba(255, 190, 11, 0.3);
  --shadow-glow-crimson: 0 0 30px rgba(247, 37, 133, 0.32);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(0, 245, 210, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(247, 37, 133, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(56, 189, 248, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(255, 190, 11, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #060b14 0%, #081020 50%, #060b14 100%);
  background-attachment: fixed;
}

/* Accessibility Skip Link & Focus States */
.skip-link {
  position: absolute;
  top: -120px;
  left: 24px;
  background: var(--cyan);
  color: #031019;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: var(--radius-sm);
  z-index: 10000;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 24px;
  outline: 3px solid #ffffff;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #ffffff 10%, var(--amber) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #ffffff 10%, var(--crimson) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 54px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--cyan-muted);
  border: 1px solid rgba(0, 245, 210, 0.28);
  border-radius: var(--radius-full);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all var(--transition-normal);
}

header.site-header.scrolled {
  background: rgba(6, 11, 20, 0.96);
  border-bottom-color: rgba(0, 245, 210, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(0, 245, 210, 0.4);
  box-shadow: 0 0 14px var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.brand-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-link:hover .brand-icon-wrap {
  transform: scale(1.06) rotate(3deg);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text span {
  color: var(--cyan);
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 210, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 210, 0.28);
  margin-left: 6px;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

nav.main-nav a:hover,
nav.main-nav a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & ACTION ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b4d8 100%);
  color: #04101e;
  box-shadow: 0 4px 18px var(--cyan-glow);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 245, 210, 0.55);
  background: linear-gradient(135deg, #33f8dc 0%, #0dc2e8 100%);
  color: #020b15;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 245, 210, 0.4);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 17px;
  padding: 16px 34px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
section.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-release-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(0, 245, 210, 0.08);
  border: 1px solid rgba(0, 245, 210, 0.28);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-release-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 4px var(--cyan); }
  50% { transform: scale(1.2); box-shadow: 0 0 12px var(--cyan); }
  100% { transform: scale(0.95); box-shadow: 0 0 4px var(--cyan); }
}

.hero-release-pill strong {
  color: var(--cyan);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero p.hero-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

.hero-specs-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-specs-row span svg {
  color: var(--cyan);
}

/* ==========================================================================
   CARROM BOARD ARENA SHOWCASE (Visual Hero Simulation)
   ========================================================================== */
.arena-showcase {
  margin-top: 60px;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: radial-gradient(circle at 50% 30%, rgba(20, 36, 68, 0.7) 0%, rgba(8, 14, 26, 0.95) 100%);
  border: 1px solid rgba(0, 245, 210, 0.22);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(0, 245, 210, 0.15);
}

.arena-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 24px;
  align-items: center;
}

.arena-layout.arena-solo {
  grid-template-columns: 1fr;
}

@media (max-width: 1060px) {
  .arena-layout {
    grid-template-columns: 1fr;
  }
}

.arena-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
}

.arena-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.arena-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(0, 245, 210, 0.3);
}

.arena-avatar.zenith {
  background: linear-gradient(135deg, #f72585, #7209b7);
  color: #ffffff;
}

.arena-avatar.player {
  background: linear-gradient(135deg, var(--cyan), #0077b6);
  color: #031019;
}

.arena-identity h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.arena-identity span {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-group {
  margin-bottom: 14px;
}

.stat-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
}

.stat-radar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: var(--text-secondary);
}

.radar-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
}

.radar-chip.queen {
  background: var(--crimson-muted);
  color: var(--crimson);
}

/* Authentic Carrom Board Center Graphic */
.carrom-board-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background: var(--wood-walnut);
  border: 14px solid var(--wood-walnut-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrom-board-surface {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--wood-birch) 0%, var(--wood-birch-dark) 100%);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(74, 40, 18, 0.4);
}

.pocket {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pocket-dark);
  border: 3px solid #20140d;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.9);
}

.pocket.top-left { top: 6px; left: 6px; }
.pocket.top-right { top: 6px; right: 6px; }
.pocket.bottom-left { bottom: 6px; left: 6px; }
.pocket.bottom-right { bottom: 6px; right: 6px; }

.board-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #3c1e0e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-inner-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #dc143c;
  background: rgba(220, 20, 60, 0.15);
}

.carrom-baseline {
  position: absolute;
  height: 2px;
  background: #3c1e0e;
  left: 20%;
  right: 20%;
}

.carrom-baseline.bottom { bottom: 45px; }
.carrom-baseline.top { top: 45px; }

.baseline-circle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c22d2d;
  border: 2px solid #3c1e0e;
  top: -7px;
}

.baseline-circle.left { left: 0; }
.baseline-circle.right { right: 0; }

.carrom-piece {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.carrom-piece.white {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2dac9 100%);
  border: 1px solid #baa88c;
}

.carrom-piece.black {
  background: radial-gradient(circle at 35% 35%, #353842 0%, #111317 100%);
  border: 1px solid #454955;
}

.carrom-piece.queen {
  background: radial-gradient(circle at 35% 35%, #ff2a55 0%, #a30b26 100%);
  border: 1px solid #ffd154;
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.6);
}

.carrom-piece.striker {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #c9d6e8 100%);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

/* ==========================================================================
   SPATIAL AUDIO ACOUSTIC SHOWCASE
   ========================================================================== */
section.audio-showcase-section {
  padding: 90px 0;
  position: relative;
}

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

.audio-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: left;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.audio-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 245, 210, 0.4);
  box-shadow: var(--shadow-card);
}

.audio-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--cyan-muted);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 245, 210, 0.25);
  font-size: 24px;
}

.audio-card.amber .audio-icon-wrap {
  background: var(--amber-muted);
  color: var(--amber);
  border-color: rgba(255, 190, 11, 0.25);
}

.audio-card.crimson .audio-icon-wrap {
  background: var(--crimson-muted);
  color: var(--crimson);
  border-color: rgba(247, 37, 133, 0.25);
}

.audio-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.audio-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.sound-wave-anim {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin-top: 18px;
}

.wave-bar {
  width: 4px;
  height: 12px;
  background: var(--cyan);
  border-radius: 2px;
  opacity: 0.8;
}

.wave-bar:nth-child(1) { height: 8px; }
.wave-bar:nth-child(2) { height: 18px; }
.wave-bar:nth-child(3) { height: 14px; }
.wave-bar:nth-child(4) { height: 20px; }
.wave-bar:nth-child(5) { height: 10px; }

/* Audio stat strip */
.audio-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.audio-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.audio-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
}

.audio-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   ACCESSIBILITY DEEP-DIVE
   ========================================================================== */
section.accessibility-section {
  padding: 90px 0;
  background: rgba(10, 20, 36, 0.4);
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.a11y-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
}

.a11y-card.wide {
  grid-column: span 2;
  border-color: var(--border-glass);
  background: radial-gradient(circle at 20% 0%, rgba(0, 245, 210, 0.08) 0%, var(--bg-card) 60%);
}

@media (max-width: 720px) {
  .a11y-card.wide { grid-column: span 1; }
}

.a11y-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 210, 0.4);
  box-shadow: var(--shadow-card);
}

.a11y-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.a11y-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.a11y-card .feature-list { margin-top: 4px; }

/* ==========================================================================
   AI ROSTER
   ========================================================================== */
section.roster-section {
  padding: 90px 0;
}

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

.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bot-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cyan);
  opacity: 0.7;
}

.bot-card.tier-1::before { background: #38bdf8; }
.bot-card.tier-2::before { background: #00f5d2; }
.bot-card.tier-3::before { background: #ffbe0b; }
.bot-card.tier-4::before { background: #fb8500; }
.bot-card.tier-5::before { background: #f72585; }
.bot-card.tier-6::before { background: linear-gradient(90deg, #ffd154, #f72585, #7209b7); }

.bot-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 210, 0.4);
  box-shadow: var(--shadow-card);
}

.bot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: #04101e;
  background: linear-gradient(135deg, var(--cyan), #0077b6);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.bot-avatar.zenith-av {
  background: linear-gradient(135deg, #ffd154, #f72585, #7209b7);
  color: #ffffff;
}

.bot-stars {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--amber);
}

.bot-stars.crown {
  font-size: 24px;
  color: #ffd154;
  text-shadow: 0 0 12px rgba(247, 37, 133, 0.6);
}

.bot-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.bot-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 8px;
}

.bot-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.bot-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   CHANGELOG / WHAT'S NEW
   ========================================================================== */
section.changelog-section {
  padding: 90px 0;
  background: rgba(10, 20, 36, 0.4);
}

.changelog-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color var(--transition-fast);
}

.changelog-item:hover { border-color: rgba(0, 245, 210, 0.35); }

.changelog-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  background: var(--cyan-muted);
  border: 1px solid rgba(0, 245, 210, 0.28);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 2px;
}

.changelog-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.changelog-item p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
section.faq-section {
  padding: 90px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(0, 245, 210, 0.35);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--cyan);
  transition: transform var(--transition-fast);
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  padding: 0 0 20px;
}

.faq-item code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  color: var(--cyan);
}

/* ==========================================================================
   CORE FEATURES & GAME ARCHITECTURE
   ========================================================================== */
section.features-section {
  padding: 90px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.features-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .features-grid-4 { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 245, 210, 0.45);
  box-shadow: var(--shadow-card);
}

.feature-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--cyan-muted);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
  border: 1px solid rgba(0, 245, 210, 0.28);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 14px;
}

.feature-list li svg {
  color: var(--cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   GAME MODES & CARROM COIN RULES (Illustrated)
   ========================================================================== */
section.modes-section {
  padding: 90px 0;
  background: rgba(10, 20, 36, 0.4);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.modes-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 920px) {
  .modes-grid-3 { grid-template-columns: 1fr; }
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
}

.mode-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.mode-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.mode-badge.points { background: rgba(56, 189, 248, 0.15); color: var(--blue-neon); }
.mode-badge.pool { background: rgba(255, 190, 11, 0.15); color: var(--amber); }
.mode-badge.open { background: rgba(247, 37, 133, 0.15); color: var(--crimson); }
.mode-badge.ai { background: rgba(0, 245, 210, 0.15); color: var(--cyan); }

.mode-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Illustrated Coin Scoring Guide */
.rules-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rules-breakdown-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
  text-align: center;
}

.rules-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
}

.coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.coin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-fast);
}

.coin-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.coin-token {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.coin-token.white {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ded5c2 100%);
  color: #2b1f14;
  border: 2px solid #b8a892;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.coin-token.black {
  background: radial-gradient(circle at 35% 35%, #3d4250 0%, #111317 100%);
  color: #ffffff;
  border: 2px solid #575c6c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.coin-token.queen {
  background: radial-gradient(circle at 35% 35%, #ff2a55 0%, #9e0c25 100%);
  color: #ffd154;
  border: 2px solid #ffd154;
  box-shadow: 0 0 20px rgba(255, 42, 85, 0.5);
}

.coin-token.striker {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d5e2f2 100%);
  color: #031019;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.coin-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.coin-points-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

.coin-card p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ==========================================================================
   ACCESSIBILITY & KEYBOARD SHORTCUTS REFERENCE TABLE
   ========================================================================== */
section.controls-section {
  padding: 90px 0;
}

.controls-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.controls-table th,
.controls-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.controls-table th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.controls-table tr:last-child td {
  border-bottom: none;
}

.controls-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.key-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.controls-table td:nth-child(2) {
  font-weight: 600;
  color: #ffffff;
}

.controls-table td:nth-child(3) {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================================================
   DOWNLOAD & SPECIFICATIONS SECTION
   ========================================================================== */
section.download-section {
  padding: 90px 0;
  position: relative;
}

.download-box {
  background: radial-gradient(circle at 50% 30%, rgba(22, 42, 80, 0.8) 0%, rgba(10, 18, 34, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.download-box h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 900;
  margin-bottom: 16px;
  color: #ffffff;
}

.download-box p.download-lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.download-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.spec-item span.spec-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.spec-item span.spec-val {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   ABOUT & COMMUNITY
   ========================================================================== */
section.about-section {
  padding: 80px 0;
}

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 8, 16, 0.95);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 340px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   MEDIA QUERIES & RESPONSIVE BEHAVIOR
   ========================================================================== */
@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    gap: 16px;
  }

  nav.main-nav.open {
    display: flex;
  }

  .nav-toggle-btn {
    display: block;
  }
}

/* Narrow phones: keep the header from overflowing.
   Hide the "Windows" chip and the standalone nav download button
   (the hero has a prominent download CTA). */
@media (max-width: 600px) {
  .brand-tag { display: none; }
  #nav-download-btn { display: none; }
  .brand-text { font-size: 20px; }

  /* Long CTA labels must not force horizontal overflow on phones. */
  .btn-lg {
    font-size: 15px;
    padding: 14px 20px;
  }
  .hero-cta-wrap .btn,
  .download-cta-row .btn {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   TESTER-GATED DOWNLOAD (PLAN_testers.md §6)
   ========================================================================== */
.dl-note {
  max-width: 640px;
  margin: -14px auto 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}
.dl-note a { color: var(--cyan); font-weight: 600; }
.dl-status { max-width: 640px; margin: 0 auto 18px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-main); }
.dl-status:empty { display: none; }
.dl-status a { color: var(--cyan); }
.download-link[aria-busy="true"] { opacity: .7; cursor: progress; }
