/* ==========================================================
   LUMATIDE LOOP - HIGH DENSITY HUD THEME
   Bioluminescent Arcade & Gaming Interface
   ========================================================== */

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

:root {
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sub: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* High Density Slate & Abyssal Palette */
  --bg-abyss: #020617;
  --bg-deep: #0b1329;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-terminal: rgba(2, 6, 23, 0.75);

  /* High Density Dynamic Glow System */
  --glow-primary: #22d3ee;
  --glow-primary-dim: rgba(34, 211, 238, 0.2);
  --glow-primary-strong: rgba(34, 211, 238, 0.45);
  --glow-secondary: #3b82f6;
  --glow-secondary-dim: rgba(59, 130, 246, 0.2);
  --glow-accent: #e040fb;
  --glow-accent-dim: rgba(224, 64, 251, 0.2);
  --glow-gold: #fbbf24;
  --glow-emerald: #10b981;

  /* High Density Text Hierarchy */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* High Density Hairline Slate Borders */
  --border-slate: #1e293b;
  --border-slate-subtle: rgba(30, 41, 59, 0.8);
  --border-hud: rgba(34, 211, 238, 0.3);
  --border-hud-active: rgba(34, 211, 238, 0.8);
  --border-glow: rgba(59, 130, 246, 0.4);

  /* Geometry */
  --radius-hud: 16px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-btn: 12px;
  
  /* Shadows */
  --shadow-neon: 0 0 25px rgba(34, 211, 238, 0.35), 0 0 50px rgba(59, 130, 246, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-btn: 0 0 30px rgba(255, 255, 255, 0.35);
}

/* Dynamic Glow Cosmetic Variants (Saved in LocalStorage) */
body.theme-cyan {
  --glow-primary: #22d3ee;
  --glow-primary-dim: rgba(34, 211, 238, 0.25);
  --border-hud: rgba(34, 211, 238, 0.35);
  --shadow-neon: 0 0 25px rgba(34, 211, 238, 0.35);
}

body.theme-coral {
  --glow-primary: #ff4d6d;
  --glow-primary-dim: rgba(255, 77, 109, 0.25);
  --border-hud: rgba(255, 77, 109, 0.35);
  --shadow-neon: 0 0 25px rgba(255, 77, 109, 0.35);
}

body.theme-magenta {
  --glow-primary: #e040fb;
  --glow-primary-dim: rgba(224, 64, 251, 0.25);
  --border-hud: rgba(224, 64, 251, 0.35);
  --shadow-neon: 0 0 25px rgba(224, 64, 251, 0.35);
}

body.theme-amber {
  --glow-primary: #fbbf24;
  --glow-primary-dim: rgba(251, 191, 36, 0.25);
  --border-hud: rgba(251, 191, 36, 0.35);
  --shadow-neon: 0 0 25px rgba(251, 191, 36, 0.35);
}

body.theme-pearl {
  --glow-primary: #e2e8f0;
  --glow-primary-dim: rgba(226, 232, 240, 0.3);
  --border-hud: rgba(226, 232, 240, 0.4);
  --shadow-neon: 0 0 25px rgba(255, 255, 255, 0.35);
}

body.theme-emerald {
  --glow-primary: #10b981;
  --glow-primary-dim: rgba(16, 185, 129, 0.25);
  --border-hud: rgba(16, 185, 129, 0.35);
  --shadow-neon: 0 0 25px rgba(16, 185, 129, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background: var(--bg-abyss);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* High Density Ambient Background Layer */
.ambient-background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Dot Matrix Grid from High Density Theme */
.tide-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#1e40af 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.22;
}

/* Ambient Bloom Spheres */
.ambient-bloom-top {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 450px;
  height: 450px;
  background: #2563eb;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
}

.ambient-bloom-bottom {
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 450px;
  height: 450px;
  background: #0891b2;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
}

#bubbleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.2) 50%
  );
  background-size: 100% 4px;
  opacity: 0.2;
}

/* Typography & Headings */
h1, h2, h3, .hud-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

h4, h5, .hud-subtitle, .nav-link {
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-mono-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

a {
  color: var(--glow-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--glow-primary);
}

/* Layout Utilities */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================
   HIGH DENSITY HUD NAVIGATION HEADER
   ========================================================== */
.hud-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-slate);
  padding: 0.85rem 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.hud-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-logo-frame img, .brand-logo-frame svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--glow-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-beacon {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow-emerald);
  box-shadow: 0 0 8px var(--glow-emerald);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav Links */
.hud-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.4rem 0;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active, .nav-link:hover {
  border-bottom: 2px solid var(--glow-primary);
  color: #ffffff;
}

/* Nav Actions */
.hud-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hud-btn-mini {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-slate);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hud-btn-mini:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--glow-primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--glow-primary-dim);
}

.hud-btn-mini.active {
  border-color: var(--glow-primary);
  color: var(--glow-primary);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 10px var(--glow-primary-dim);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-slate);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================
   BUTTONS & HIGH DENSITY CONTROLS
   ========================================================== */
.hud-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

/* High Density Theme Luminous White Pill */
.hud-btn-primary {
  background: #ffffff;
  color: #020617;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}

.hud-btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
  color: #000000;
}

.hud-btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-slate);
  color: var(--text-pure);
  backdrop-filter: blur(8px);
}

.hud-btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--glow-primary);
  color: #ffffff;
  box-shadow: 0 0 18px var(--glow-primary-dim);
  transform: translateY(-2px);
}

.hud-btn-magenta {
  background: linear-gradient(135deg, var(--glow-secondary) 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.hud-btn-magenta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* ==========================================================
   HERO / ACTIVE SESSION SECTION (High Density Layout)
   ========================================================== */
.hero-section {
  padding: 3rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-slate);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--glow-primary);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
}

.hero-title span.glow-word {
  background: linear-gradient(135deg, #ffffff 0%, var(--glow-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.25rem;
}

/* High Density Metrics Card Row */
.hero-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-hud);
  backdrop-filter: blur(12px);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ==========================================================
   HIGH DENSITY ARENA HUD MINI-SIMULATOR (Center-Right)
   ========================================================== */
.arena-hud-container {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-card), inset 0 0 25px rgba(34, 211, 238, 0.04);
  backdrop-filter: blur(16px);
}

/* Sleek Corner Accent Markers */
.arena-hud-container::before, .arena-hud-container::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.arena-hud-container::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--glow-primary);
  border-left: 2px solid var(--glow-primary);
  border-top-left-radius: 8px;
}

.arena-hud-container::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--glow-primary);
  border-right: 2px solid var(--glow-primary);
  border-bottom-right-radius: 8px;
}

.arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-slate);
  padding-bottom: 0.65rem;
}

.arena-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--glow-primary);
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.arena-stats-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arena-stat-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(2, 6, 23, 0.6);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-slate);
  color: var(--text-secondary);
}

.arena-stat-badge span {
  color: var(--glow-primary);
  font-weight: 700;
}

/* Canvas Area */
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0b1739 0%, #020617 100%);
  border: 1px solid var(--border-slate);
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.canvas-overlay-ui {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.canvas-hit-toast {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--glow-primary);
  text-shadow: 0 0 20px var(--glow-primary);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arena-controls {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.75rem;
}

.pulse-btn {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  text-align: center;
  letter-spacing: 0.06em;
}

.pulse-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.7);
}

.hint-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ==========================================================
   HIGH DENSITY SECTION COMMON STYLES
   ========================================================== */
.section-wrapper {
  padding: 3.75rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow-primary);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-slate);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 0.6rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================
   COSMETICS & GLOW VAULT (Interactive Theme Selector)
   ========================================================== */
.glow-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-hud);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
}

.glow-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-glow-color, var(--glow-primary));
  box-shadow: var(--shadow-card), 0 0 20px var(--card-glow-dim, var(--glow-primary-dim));
  background: var(--bg-card-hover);
}

.glow-card.selected {
  border-color: var(--card-glow-color, var(--glow-primary));
  box-shadow: 0 0 25px var(--card-glow-dim, var(--glow-primary-dim));
  background: rgba(30, 41, 59, 0.85);
}

.glow-card.selected::after {
  content: 'EQUIPPED';
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--card-glow-color, var(--glow-primary));
  color: #020617;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.glow-orb-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  position: relative;
  box-shadow: 0 0 20px var(--card-glow-color, var(--glow-primary));
  animation: orbFloat 3s infinite ease-in-out;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.glow-card-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.glow-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================
   GAME FEATURES MATRIX (High Density)
   ========================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-hud);
  padding: 1.5rem;
  position: relative;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-hud-card:hover {
  border-color: var(--glow-primary);
  box-shadow: var(--shadow-card), 0 0 20px var(--glow-primary-dim);
  transform: translateY(-2px);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-icon-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--border-hud);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glow-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-slate);
}

.feature-micro-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(2, 6, 23, 0.5);
  color: var(--glow-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-slate);
}

/* ==========================================================
   MILESTONES & LOCAL DATA TERMINAL (High Density)
   ========================================================== */
.milestones-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-hud {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-hud);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--glow-primary);
  background: var(--bg-card-hover);
}

.timeline-stage-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--glow-primary);
  background: rgba(34, 211, 238, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-hud);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-info {
  flex: 1;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Local Data Dashboard Terminal (Right Side) */
.local-data-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-slate);
  padding-bottom: 0.65rem;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--glow-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.terminal-data-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.6);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-slate);
}

.data-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.data-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--glow-primary);
  font-weight: 700;
}

.terminal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* ==========================================================
   SUPPORT & CONTACT TERMINAL
   ========================================================== */
.support-card {
  background: radial-gradient(circle at 50% 0%, #0f2752 0%, var(--bg-card) 75%);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-card);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.support-email-box {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid var(--border-hud);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  margin: 1.5rem auto 1rem;
  box-shadow: 0 0 20px var(--glow-primary-dim);
}

.support-email-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.1em;
}


/* ==========================================================
   PRIVACY POLICY PAGE SPECIFIC STYLES (High Density)
   ========================================================== */
.policy-page-header {
  padding: 3rem 0 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border-slate);
  margin-bottom: 2rem;
}

.policy-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow-primary);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-slate);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.policy-layout {
  display: block;
  padding-bottom: 4rem;
}


.policy-toc-sidebar {
  display: none;
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-hud);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow-primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-slate);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.toc-link {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  display: block;
  transition: all 0.15s ease;
}

.toc-link:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.1);
  padding-left: 0.65rem;
}

.policy-content-body {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-hud);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  max-width: 980px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-slate);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.policy-section h2 span.sec-num {
  color: var(--glow-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.policy-section p {
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.policy-section ul {
  list-style: none;
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.policy-section li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.policy-section li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--glow-primary);
  font-size: 1rem;
}

/* ==========================================================
   HIGH DENSITY FOOTER
   ========================================================== */
.hud-footer {
  border-top: 1px solid var(--border-slate);
  background: rgba(2, 6, 23, 0.95);
  padding: 2.5rem 0 1.75rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--glow-primary);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.hud-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--glow-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--glow-primary-dim);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================
   RESPONSIVE QUERIES
   ========================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .milestones-container {
    grid-template-columns: 1fr;
  }
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-toc-sidebar {
  display: none;
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hud-nav-links {
    display: none;
  }
  .hud-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid var(--border-slate);
    padding: 1.5rem;
    gap: 1rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-specs-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .policy-content-body {
    padding: 1.5rem;
  }
}

/* ==========================================================
   LUMATIDE LOOP — SKY + PINK LAGOON REDESIGN
   Distinct soft-neon ocean arcade identity.
   ========================================================== */
:root {
  --bg-abyss: #071321;
  --bg-deep: #0c2034;
  --bg-surface: #102942;
  --bg-surface-elevated: #173650;
  --bg-card: rgba(16, 42, 67, 0.70);
  --bg-card-hover: rgba(24, 57, 86, 0.82);
  --bg-terminal: rgba(5, 22, 38, 0.72);

  --glow-primary: #8bdcff;
  --glow-primary-dim: rgba(139, 220, 255, 0.18);
  --glow-primary-strong: rgba(139, 220, 255, 0.45);
  --glow-secondary: #64bdf1;
  --glow-secondary-dim: rgba(100, 189, 241, 0.18);
  --glow-accent: #f59acb;
  --glow-accent-dim: rgba(245, 154, 203, 0.22);
  --glow-gold: #ffc6e3;
  --glow-emerald: #8de7de;

  --text-pure: #ffffff;
  --text-primary: #f5fbff;
  --text-secondary: #c4d9e8;
  --text-muted: #8da9bb;

  --border-slate: rgba(151, 219, 255, 0.14);
  --border-slate-subtle: rgba(151, 219, 255, 0.09);
  --border-hud: rgba(139, 220, 255, 0.28);
  --border-hud-active: rgba(245, 154, 203, 0.68);
  --border-glow: rgba(245, 154, 203, 0.30);

  --radius-hud: 24px;
  --radius-card: 32px;
  --radius-btn: 999px;
  --shadow-neon: 0 18px 55px rgba(79, 172, 227, 0.16), 0 0 42px rgba(245, 154, 203, 0.08);
  --shadow-card: 0 26px 70px -34px rgba(0, 0, 0, 0.80);
}

/* Keep all cosmetic modes inside the LumaTide sky/pink family. */
body.theme-cyan {
  --glow-primary: #8bdcff;
  --glow-primary-dim: rgba(139, 220, 255, 0.20);
  --border-hud: rgba(139, 220, 255, 0.30);
}
body.theme-coral {
  --glow-primary: #ff9ecb;
  --glow-primary-dim: rgba(255, 158, 203, 0.20);
  --border-hud: rgba(255, 158, 203, 0.32);
}
body.theme-magenta {
  --glow-primary: #ef9cff;
  --glow-primary-dim: rgba(239, 156, 255, 0.20);
  --border-hud: rgba(239, 156, 255, 0.30);
}
body.theme-amber {
  --glow-primary: #ffc0dc;
  --glow-primary-dim: rgba(255, 192, 220, 0.20);
  --border-hud: rgba(255, 192, 220, 0.30);
}
body.theme-pearl {
  --glow-primary: #cceeff;
  --glow-primary-dim: rgba(204, 238, 255, 0.22);
  --border-hud: rgba(204, 238, 255, 0.32);
}
body.theme-emerald {
  --glow-primary: #8de7de;
  --glow-primary-dim: rgba(141, 231, 222, 0.20);
  --border-hud: rgba(141, 231, 222, 0.30);
}

html,
body {
  background: #071321;
}

body {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(116, 207, 255, 0.24), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(245, 154, 203, 0.23), transparent 28%),
    radial-gradient(circle at 58% 76%, rgba(131, 181, 255, 0.12), transparent 34%),
    linear-gradient(155deg, #071321 0%, #0c2238 42%, #132b43 68%, #0a1726 100%);
  background-attachment: fixed;
}

.ambient-background-layer {
  opacity: 1;
}

.tide-grid-overlay {
  background-image:
    radial-gradient(circle, rgba(180, 230, 255, 0.24) 1px, transparent 1.5px),
    linear-gradient(120deg, transparent 0 48%, rgba(245, 154, 203, 0.025) 49%, transparent 50% 100%);
  background-size: 34px 34px, 180px 180px;
  opacity: 0.13;
}

.ambient-bloom-top {
  width: 540px;
  height: 540px;
  background: #6ecfff;
  filter: blur(155px);
  opacity: 0.22;
}

.ambient-bloom-bottom {
  width: 520px;
  height: 520px;
  background: #f08fc4;
  filter: blur(160px);
  opacity: 0.19;
}

.scanline-overlay {
  display: none;
}

/* Floating island navigation — intentionally unlike the previous full-width HUD bars. */
.hud-navbar {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  padding: 0.9rem 0 0;
  backdrop-filter: none;
}

.hud-nav-wrapper {
  min-height: 68px;
  padding: 0.55rem 0.7rem 0.55rem 0.65rem;
  border: 1px solid rgba(145, 220, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(10, 31, 51, 0.82), rgba(26, 50, 75, 0.62));
  box-shadow: 0 18px 55px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.brand-logo-frame {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(139,220,255,0.14), rgba(245,154,203,0.17));
  border: 1px solid rgba(245,154,203,0.28);
  box-shadow: 0 10px 28px rgba(79, 172, 227, 0.14);
}

.brand-name {
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #f8fdff 0%, #a9e6ff 52%, #ffb5d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  display: none;
}

.hud-nav-links {
  background: rgba(7, 26, 43, 0.46);
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 220, 255, 0.09);
}

.nav-link {
  border: 0;
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  color: #b9d2e4;
  font-size: 0.78rem;
  letter-spacing: 0.025em;
  text-transform: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(116,207,255,0.14), rgba(245,154,203,0.14));
  box-shadow: inset 0 0 0 1px rgba(186, 229, 255, 0.12);
  text-shadow: none;
}

.hud-btn-mini,
.mobile-menu-btn {
  border-radius: 999px;
  border-color: rgba(245,154,203,0.24);
  background: rgba(245,154,203,0.08);
}

/* Asymmetric hero: simulator left, content right inside a soft glass slab. */
.hero-section {
  padding: 4rem 0 3.6rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas: "sim copy";
  gap: 2rem;
  align-items: center;
}

.hero-content {
  grid-area: copy;
  gap: 1rem;
  padding: 1.8rem 1.9rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(16, 44, 70, 0.68), rgba(28, 51, 77, 0.42));
  border: 1px solid rgba(183, 229, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-status-pill {
  background: linear-gradient(135deg, rgba(116,207,255,0.10), rgba(245,154,203,0.10));
  border-color: rgba(245,154,203,0.22);
  color: #ffc1df;
  padding: 0.38rem 0.82rem;
}

.hero-title {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-title span.glow-word {
  background: linear-gradient(90deg, #9fe4ff 0%, #d7dcff 46%, #ff9fcd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: #cfe1ef;
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 100%;
}

.hero-actions {
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hud-btn {
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  letter-spacing: 0.05em;
}

.hud-btn-primary,
.pulse-btn {
  background: linear-gradient(105deg, #75d3ff 0%, #a8dfff 45%, #f49acb 100%);
  color: #081524;
  box-shadow: 0 12px 34px rgba(116, 207, 255, 0.18), 0 8px 30px rgba(245,154,203,0.12);
}

.hud-btn-primary:hover,
.pulse-btn:hover {
  box-shadow: 0 15px 40px rgba(116, 207, 255, 0.25), 0 10px 34px rgba(245,154,203,0.18);
}

.hud-btn-secondary {
  background: rgba(255,255,255,0.045);
  border-color: rgba(181, 225, 250, 0.18);
  color: #e5f5ff;
}

.hero-specs-row {
  display: none;
}

.spec-item {
  padding: 0.78rem 0.75rem;
  border-radius: 18px;
  background: rgba(7, 29, 48, 0.54);
  border: 1px solid rgba(139, 220, 255, 0.12);
  min-width: 0;
}

.spec-val {
  color: #dff6ff;
  font-size: 1.25rem;
}

.spec-label {
  color: #8eabc0;
  letter-spacing: 0.08em;
}

.arena-hud-container {
  grid-area: sim;
  border-radius: 42px 24px 42px 24px;
  padding: 1.15rem;
  background: linear-gradient(155deg, rgba(21, 56, 88, 0.80), rgba(11, 29, 49, 0.74));
  border: 1px solid rgba(139,220,255,0.24);
  box-shadow: 0 38px 90px rgba(0,0,0,0.29), 0 0 60px rgba(245,154,203,0.06);
  transform: rotate(-0.55deg);
}

.arena-hud-container::before,
.arena-hud-container::after {
  display: none;
}

.canvas-wrapper {
  height: 330px;
  border-radius: 30px 18px 30px 18px;
  background:
    radial-gradient(circle at 34% 22%, rgba(116,207,255,0.20), transparent 35%),
    radial-gradient(circle at 72% 75%, rgba(245,154,203,0.16), transparent 34%),
    linear-gradient(145deg, #0b2238 0%, #071524 100%);
  border-color: rgba(183,229,255,0.13);
}

.arena-header {
  border-bottom-color: rgba(139,220,255,0.12);
}

.arena-title,
.arena-stat-badge span,
.data-val,
.terminal-title {
  color: var(--glow-primary);
}

.arena-stat-badge {
  border-radius: 999px;
  background: rgba(6, 24, 41, 0.62);
}

/* Sections behave like floating islands instead of repetitive boxed panels. */
.section-wrapper {
  position: relative;
  margin: 1.6rem 0 3rem;
  padding: 4rem 0;
}

.section-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 -2.4rem;
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(17, 43, 68, 0.38), rgba(13, 31, 51, 0.16));
  border: 1px solid rgba(139, 220, 255, 0.07);
  pointer-events: none;
}

.section-header {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 760px;
  margin: 0 0 2rem;
}

.section-pill {
  color: #ffb8da;
  border-color: rgba(245,154,203,0.24);
  background: rgba(245,154,203,0.07);
  border-radius: 999px;
}

.section-title {
  font-family: var(--font-body);
  letter-spacing: -0.035em;
  text-transform: none;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  background: linear-gradient(90deg, #f6fbff 0%, #c7ecff 65%, #ffc1df 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  margin-left: 0;
  color: #abc3d5;
}

/* Bento Glow Vault */
.glow-vault-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.glow-card {
  grid-column: span 3;
  min-height: 205px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(20, 48, 75, 0.76), rgba(13, 32, 54, 0.70));
  border-color: rgba(179, 226, 252, 0.11);
  box-shadow: none;
  padding: 1.35rem;
}

.glow-card:nth-child(1),
.glow-card:nth-child(2) {
  grid-column: span 6;
  min-height: 230px;
}

.glow-card.selected,
.glow-card:hover {
  border-color: rgba(245,154,203,0.42);
  box-shadow: 0 22px 50px rgba(0,0,0,0.20), 0 0 30px rgba(139,220,255,0.08);
  transform: translateY(-4px);
}

.glow-orb-preview {
  width: 74px;
  height: 74px;
  border-radius: 24px 50% 50% 50%;
  transform: rotate(8deg);
}

.glow-card-name,
.feature-card-title,
.timeline-title {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Offset bento feature matrix */
.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-hud-card {
  grid-column: span 4;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 46, 73, 0.70), rgba(12, 30, 50, 0.65));
  border-color: rgba(139,220,255,0.11);
  padding: 1.45rem;
  box-shadow: none;
}

.feature-hud-card:nth-child(1),
.feature-hud-card:nth-child(5) {
  grid-column: span 8;
  background: linear-gradient(135deg, rgba(116,207,255,0.11), rgba(245,154,203,0.08), rgba(12,30,50,0.66));
}

.feature-hud-card:hover {
  border-color: rgba(245,154,203,0.34);
  box-shadow: 0 24px 55px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}

.feature-icon-frame {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(116,207,255,0.15), rgba(245,154,203,0.14));
  border-color: rgba(183,229,255,0.14);
}

.feature-micro-badge {
  border-radius: 999px;
  background: rgba(116,207,255,0.07);
  border-color: rgba(116,207,255,0.12);
}

.milestones-container,
.support-card,
.policy-layout,
.footer-grid {
  position: relative;
  z-index: 1;
}

.timeline-item,
.local-data-terminal,
.support-card,
.policy-toc-sidebar,
.policy-content-body {
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 47, 75, 0.72), rgba(11, 29, 49, 0.67));
  border-color: rgba(152, 217, 252, 0.12);
  box-shadow: 0 20px 55px rgba(0,0,0,0.16);
}

.timeline-stage-num {
  border-radius: 50%;
  color: #ffc1df;
  background: linear-gradient(145deg, rgba(116,207,255,0.11), rgba(245,154,203,0.14));
  border-color: rgba(245,154,203,0.22);
}

.data-row {
  border-radius: 16px;
  background: rgba(6, 25, 43, 0.52);
  border-color: rgba(139,220,255,0.10);
}

.support-card {
  background:
    radial-gradient(circle at 18% 8%, rgba(116,207,255,0.18), transparent 34%),
    radial-gradient(circle at 84% 84%, rgba(245,154,203,0.18), transparent 32%),
    linear-gradient(145deg, rgba(19,47,75,0.76), rgba(13,31,52,0.72));
  padding: 3.2rem 1.7rem;
}

.support-email-box {
  border-radius: 999px;
  background: rgba(7, 27, 45, 0.70);
  border-color: rgba(245,154,203,0.22);
  box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}


/* Privacy page continues the soft lagoon visual language. */
.policy-page-header {
  padding-top: 4.5rem;
  border-bottom: 0;
}

.policy-badge {
  border-radius: 999px;
  color: #ffc1df;
  background: rgba(245,154,203,0.07);
  border-color: rgba(245,154,203,0.22);
}

.policy-page-header h1 {
  font-family: var(--font-body);
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, #f8fdff, #aee8ff 58%, #ffb0d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-toc-sidebar {
  display: none;
  top: 100px;
}

.toc-link {
  border-radius: 12px;
}

.toc-link:hover {
  background: linear-gradient(90deg, rgba(116,207,255,0.09), rgba(245,154,203,0.08));
}

.policy-section h2 span.sec-num,
.policy-section li::before,
.toc-title {
  color: #9be2ff;
}

/* Footer as a rounded floating closing panel rather than a full dark strip. */
.hud-footer {
  background: transparent;
  border-top: 0;
  margin-top: 2.5rem;
  padding: 0 0 1.5rem;
}

.hud-footer .app-container {
  padding-top: 2.2rem;
  padding-bottom: 1.35rem;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(12,34,56,0.86), rgba(19,43,67,0.64));
  border: 1px solid rgba(139,220,255,0.11);
  box-shadow: 0 24px 65px rgba(0,0,0,0.18);
  backdrop-filter: blur(20px);
}

.footer-bottom {
  border-top-color: rgba(139,220,255,0.10);
}

.hud-toast {
  border-radius: 999px;
  background: rgba(11, 34, 55, 0.94);
  border-color: rgba(245,154,203,0.32);
}

@media (max-width: 1100px) {
  .hud-nav-links {
    gap: 0;
  }
  .nav-link {
    padding-left: 0.56rem;
    padding-right: 0.56rem;
    font-size: 0.73rem;
  }
  .audio-label {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "sim";
  }
  .hero-content {
    max-width: 760px;
  }
  .arena-hud-container {
    transform: none;
  }
  .glow-card,
  .glow-card:nth-child(1),
  .glow-card:nth-child(2) {
    grid-column: span 6;
  }
  .feature-hud-card,
  .feature-hud-card:nth-child(1),
  .feature-hud-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .hud-navbar {
    padding-top: 0.55rem;
  }
  .hud-nav-wrapper {
    border-radius: 20px;
  }
  .hud-nav-links.mobile-open {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    top: calc(100% + 0.45rem);
    border: 1px solid rgba(139,220,255,0.14);
    border-radius: 22px;
    background: rgba(8, 28, 46, 0.96);
    backdrop-filter: blur(18px);
  }
  .hero-section {
    padding-top: 2.2rem;
  }
  .hero-content {
    padding: 1.35rem 1.1rem;
    border-radius: 22px;
  }
  .hero-title {
    font-size: clamp(1.95rem, 10vw, 2.85rem);
  }
  .canvas-wrapper {
    height: 275px;
  }
  .section-wrapper::before {
    inset: 0 -0.5rem;
    border-radius: 30px;
  }
  .glow-card,
  .glow-card:nth-child(1),
  .glow-card:nth-child(2),
  .feature-hud-card,
  .feature-hud-card:nth-child(1),
  .feature-hud-card:nth-child(5) {
    grid-column: span 12;
  }
  .hero-specs-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-email-box {
    width: 100%;
    justify-content: space-between;
    overflow: hidden;
  }
  .support-email-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
