/* ============================
   VARIABLES
   ============================ */
:root {
  --bg-primary: #020617;
  --bg-secondary: #0b1120;
  --surface: #111827;
  --accent-blue: #0ea5e9;
  --accent-blue-light: #38bdf8;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #6366f1;
  --accent-green: #22c55e;
  --accent-green-light: #4ade80;
  --alert-red: #ef4444;
  --text-primary: #e0f2fe;
  --text-secondary: #a5b4fc;
  --text-muted: #64748b;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-blur: 20px;
  --glass-border: rgba(56,189,248,0.15);
  --grad-blue: linear-gradient(135deg, #38bdf8, #0ea5e9);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #6366f1);
  --grad-green: linear-gradient(135deg, #22c55e, #4ade80);
  --glow-blue: rgba(14,165,233,0.45);
  --glow-purple: rgba(139,92,246,0.35);
  --glow-green: rgba(34,197,94,0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1360px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

ul {
  list-style: none;
}

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   BACKGROUND EFFECTS
   ============================ */
.scanline-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(14,165,233,0.015) 2px,
    rgba(14,165,233,0.015) 4px
  );
}

.grid-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================
   HEADER — SHIELD CORE NAV
   ============================ */
.shield-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  height: var(--header-h);
  z-index: 1000;
  background: rgba(11,17,32,0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.shield-header::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(56,189,248,0.2), transparent 40%, transparent 60%, rgba(139,92,246,0.15));
  z-index: -1;
  pointer-events: none;
}

.shield-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0.5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-shield {
  position: relative;
}

.logo-shield::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  opacity: 0.4;
  animation: logoPulse 3s ease-in-out infinite;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.logo-accent {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shield-nav {
  display: flex;
  align-items: center;
}

.nav-segment-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px;
  gap: 2px;
}

.nav-segment {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-segment:hover {
  color: var(--text-primary);
  background: rgba(56,189,248,0.08);
}

.nav-segment.active {
  color: var(--accent-blue-light);
  background: rgba(56,189,248,0.12);
  box-shadow: 0 0 20px rgba(14,165,233,0.15), inset 0 0 20px rgba(14,165,233,0.05);
  border: 1px solid rgba(56,189,248,0.25);
}

.btn-activate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  background: var(--grad-blue);
  color: #020617;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-activate:hover {
  box-shadow: 0 0 30px var(--glow-blue), 0 0 60px rgba(14,165,233,0.2);
  transform: translateY(-1px);
}

.btn-activate:active {
  transform: translateY(1px) scale(0.98);
}

.btn-activate-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  animation: activatePulse 2s ease-in-out infinite;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-blue-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(2,6,23,0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateY(0);
}

.mobile-nav-link {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-blue-light);
  background: rgba(56,189,248,0.1);
}

.mobile-cta {
  margin-top: 16px;
}

/* ============================
   HERO — ENERGY SHIELD CORE
   ============================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 110px;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(14,165,233,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(139,92,246,0.06), transparent),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(34,197,94,0.04), transparent);
  z-index: 0;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.p1 { width: 3px; height: 3px; background: var(--accent-blue); top: 20%; left: 15%; animation: floatParticle 8s ease-in-out infinite; }
.p2 { width: 2px; height: 2px; background: var(--accent-purple); top: 30%; right: 20%; animation: floatParticle 10s ease-in-out infinite 1s; }
.p3 { width: 4px; height: 4px; background: var(--accent-blue-light); top: 60%; left: 10%; animation: floatParticle 7s ease-in-out infinite 2s; }
.p4 { width: 2px; height: 2px; background: var(--accent-green); top: 70%; right: 15%; animation: floatParticle 9s ease-in-out infinite 0.5s; }
.p5 { width: 3px; height: 3px; background: var(--accent-purple-light); top: 15%; left: 60%; animation: floatParticle 11s ease-in-out infinite 3s; }
.p6 { width: 2px; height: 2px; background: var(--accent-blue); top: 80%; left: 40%; animation: floatParticle 6s ease-in-out infinite 1.5s; }
.p7 { width: 3px; height: 3px; background: var(--accent-green-light); top: 45%; right: 30%; animation: floatParticle 8s ease-in-out infinite 4s; }
.p8 { width: 2px; height: 2px; background: var(--accent-blue-light); top: 55%; left: 75%; animation: floatParticle 10s ease-in-out infinite 2.5s; }

/* Shield Animation */
.hero-shield-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 0;
}

.shield-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 100%; height: 100%;
  border-color: rgba(56,189,248,0.1);
  animation: shieldRotate 30s linear infinite;
  border-style: dashed;
}

.ring-mid {
  width: 70%; height: 70%;
  border-color: rgba(139,92,246,0.12);
  animation: shieldRotate 20s linear infinite reverse;
  border-style: dotted;
}

.ring-inner {
  width: 40%; height: 40%;
  border-color: rgba(34,197,94,0.1);
  animation: shieldRotate 15s linear infinite;
}

.shield-core-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(14,165,233,0.15), transparent 70%);
  border-radius: 50%;
  animation: coreGlow 4s ease-in-out infinite;
}

/* HUD Corners */
.hero-hud-elements {
  position: absolute;
  inset: 80px 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hud-corner {
  position: absolute;
  width: 40px;
  height: 40px;
}

.hud-tl { top: 0; left: 0; border-top: 2px solid rgba(56,189,248,0.2); border-left: 2px solid rgba(56,189,248,0.2); }
.hud-tr { top: 0; right: 0; border-top: 2px solid rgba(56,189,248,0.2); border-right: 2px solid rgba(56,189,248,0.2); }
.hud-bl { bottom: 0; left: 0; border-bottom: 2px solid rgba(139,92,246,0.15); border-left: 2px solid rgba(139,92,246,0.15); }
.hud-br { bottom: 0; right: 0; border-bottom: 2px solid rgba(139,92,246,0.15); border-right: 2px solid rgba(139,92,246,0.15); }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--glow-green);
  animation: dotBlink 2s ease-in-out infinite;
}

.hero-headline {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.headline-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-blue);
  color: #020617;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--glow-blue), 0 8px 32px rgba(14,165,233,0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 0 20px rgba(14,165,233,0.15);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================
   SECTION COMMON
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-gradient-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   GAME — CORE DEFENSE MODULE
   ============================ */
.game-section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14,165,233,0.06), transparent),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(139,92,246,0.04), transparent);
}

.game-reactor {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.reactor-ring {
  position: absolute;
  inset: -40px;
  border: 1px solid rgba(56,189,248,0.08);
  border-radius: var(--radius-xl);
  animation: reactorPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.reactor-ring-2 {
  inset: -20px;
  border-color: rgba(139,92,246,0.06);
  animation-delay: 2s;
}

.game-frame-wrapper {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(14,165,233,0.08),
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}

.game-frame-wrapper:hover {
  box-shadow:
    0 0 80px rgba(14,165,233,0.12),
    0 24px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.game-frame-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(56,189,248,0.1);
}

.hud-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  opacity: 0.7;
}

.hud-label::before {
  content: '◈ ';
  color: var(--accent-green);
}

.game-frame-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

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

.game-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(56,189,248,0.1);
}

.btn-game-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-game-control:hover {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.3);
  color: var(--accent-blue-light);
  box-shadow: 0 0 20px rgba(14,165,233,0.15);
}

/* ============================
   MODAL — SYSTEM GUIDE
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(14,165,233,0.1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--alert-red);
}

.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.guide-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-item h4 {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.guide-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-legal {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================
   FEATURES — SYSTEM CAPABILITIES
   ============================ */
.features-section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}

.features-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.feature-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 36px;
  grid-column: span 4;
  overflow: hidden;
  transition: all 0.4s ease;
}

.feature-panel.panel-wide {
  grid-column: span 6;
}

.feature-panel:hover {
  border-color: rgba(56,189,248,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 30px rgba(14,165,233,0.08);
}

.panel-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.panel-glow-blue { background: radial-gradient(circle at center, rgba(14,165,233,0.06), transparent 50%); }
.panel-glow-purple { background: radial-gradient(circle at center, rgba(139,92,246,0.06), transparent 50%); }
.panel-glow-green { background: radial-gradient(circle at center, rgba(34,197,94,0.06), transparent 50%); }

.feature-panel:hover .panel-glow {
  opacity: 1;
}

.panel-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 20px;
}

.panel-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.panel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.panel-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-bar {
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  display: block;
  height: 100%;
  background: var(--grad-blue);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--glow-blue);
  transition: width 1.5s ease-out;
}

.stat-bar-purple .stat-fill {
  background: var(--grad-purple);
  box-shadow: 0 0 10px var(--glow-purple);
}

.stat-bar-green .stat-fill {
  background: var(--grad-green);
  box-shadow: 0 0 10px var(--glow-green);
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.panel-metrics {
  display: flex;
  gap: 24px;
}

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

.metric-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue-light);
}

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================
   LEGAL BANNER
   ============================ */
.legal-banner-section {
  position: relative;
  z-index: 1;
  padding: 0 0 110px;
}

.legal-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px rgba(14,165,233,0.05);
}

.legal-banner-icon {
  flex-shrink: 0;
}

.legal-banner-text h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.legal-banner-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-banner-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.legal-banner-links a {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56,189,248,0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.legal-banner-links a:hover {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.4);
}

/* ============================
   FOOTER
   ============================ */
.shield-footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.shield-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.3), transparent);
}

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

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-links-col a:hover {
  color: var(--accent-blue-light);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-online {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--glow-green);
  animation: dotBlink 2s ease-in-out infinite;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================
   MOBILE BOTTOM NAV
   ============================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 998;
  background: rgba(11,17,32,0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(56,189,248,0.1);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.bottom-nav-item.active {
  color: var(--accent-blue-light);
}

.bottom-nav-item:hover {
  color: var(--accent-blue-light);
}

/* ============================
   PAGE CONTENT (Sub-pages)
   ============================ */
.page-content {
  position: relative;
  z-index: 1;
  padding: 140px 0 110px;
  min-height: 100vh;
}

.page-hero {
  text-align: center;
  margin-bottom: 64px;
}

.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

.content-panels {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.content-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.content-panel h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.legal-text h2 {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.legal-text h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-text ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 0 6px 20px;
  position: relative;
}

.legal-text ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.legal-text a {
  color: var(--accent-blue-light);
  border-bottom: 1px solid rgba(56,189,248,0.3);
  transition: border-color 0.3s ease;
}

.legal-text a:hover {
  border-color: var(--accent-blue-light);
}

.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* About page values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.value-item:hover {
  border-color: rgba(56,189,248,0.2);
  background: rgba(56,189,248,0.04);
}

.value-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.value-item h4 {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.value-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Responsible Gaming banner */
.rg-banner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rg-banner-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.rg-banner h2 {
  margin-top: 0;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-form-panel h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-panel > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(56,189,248,0.4);
  background: rgba(56,189,248,0.04);
  box-shadow: 0 0 20px rgba(14,165,233,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--surface);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #020617;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px var(--glow-green);
}

.form-success h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(56,189,248,0.2);
}

.info-card-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-card h4 {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes logoPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes activatePulse {
  0% { width: 0; height: 0; opacity: 0.3; }
  100% { width: 300px; height: 300px; opacity: 0; }
}

@keyframes shieldRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coreGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25% { transform: translate(20px, -30px); opacity: 0.8; }
  50% { transform: translate(-10px, -60px); opacity: 0.3; }
  75% { transform: translate(15px, -20px); opacity: 0.7; }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes reactorPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.01); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered animation class */
.anim-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   UTILITIES
   ============================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablet */
@media (max-width: 1024px) {
  .shield-nav { display: none; }
  .btn-activate { display: none; }
  .mobile-toggle { display: flex; }

  .hero-section {
    padding: 120px 24px 80px;
  }

  .hero-shield-anim {
    width: 400px;
    height: 400px;
  }

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

  .feature-panel {
    grid-column: span 1;
  }

  .feature-panel.panel-wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .legal-banner {
    flex-direction: column;
    text-align: center;
  }

  .legal-banner-links {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .game-section, .features-section {
    padding: 80px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shield-header {
    top: 8px;
    width: calc(100% - 32px);
    height: 60px;
    border-radius: var(--radius-lg);
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .hero-section {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-shield-anim {
    width: 280px;
    height: 280px;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-hud-elements {
    display: none;
  }

  .features-dashboard {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .feature-panel.panel-wide {
    grid-column: span 1;
  }

  .panel-metrics {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-panel {
    padding: 28px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    grid-template-columns: 1fr;
  }

  .game-frame-hud {
    display: none;
  }

  .game-section, .features-section {
    padding: 60px 0;
  }

  .legal-banner {
    padding: 24px;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .shield-footer {
    padding-bottom: 100px;
  }

  .page-content {
    padding: 110px 0 80px;
  }

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

  .contact-form-panel {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-tag {
    font-size: 0.65rem;
    padding: 6px 14px;
  }

  .section-tag {
    font-size: 0.6rem;
  }

  .btn-primary, .btn-secondary {
    font-size: 0.72rem;
    padding: 14px 24px;
  }

  .game-controls {
    flex-direction: column;
  }

  .btn-game-control {
    width: 100%;
    justify-content: center;
  }
}