/* ============================================
   MAGA GAMES — Vaporwave / Outrun Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&display=swap');

/* --- CSS Variables --- */
:root {
  --bg:        #090014;
  --fg:        #E0E0E0;
  --card-bg:   #1a103c;
  --primary:   #FF00FF;
  --secondary: #00FFFF;
  --tertiary:  #FF9900;
  --border:    #2D1B4E;
  --font-head: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--secondary); text-decoration: none; transition: all 0.2s linear; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Global CRT Scanlines Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(18,16,20,0) 50%, rgba(0,0,0,0.22) 50%),
    linear-gradient(90deg, rgba(255,0,0,0.04), rgba(0,255,0,0.02), rgba(0,0,255,0.04));
  background-size: 100% 4px, 100% 100%;
  pointer-events: none;
  z-index: 9999;
}

/* --- Floating Sun Background --- */
.sun-orb {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--tertiary), var(--primary));
  opacity: 0.12;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* --- Animations --- */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96%            { opacity: 0.85; }
  97%            { opacity: 1; }
  98%            { opacity: 0.9; }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,0,20,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(255,0,255,0.25);
  padding: 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--tertiary), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg);
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: all 0.2s linear;
}
.nav a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(0,255,255,0.3), inset 0 0 10px rgba(0,255,255,0.05);
  text-shadow: 0 0 8px var(--secondary);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.2s linear;
}
.nav-toggle:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 15px var(--primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  z-index: 1;
}

/* Perspective Grid */
.hero-grid {
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 50%;
  background-image:
    linear-gradient(transparent 95%, rgba(255,0,255,0.4) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,0,255,0.4) 95%);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(60deg) translateY(20px);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '>';
  color: var(--primary);
  font-weight: bold;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 64px;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero h1 .line-gradient {
  display: block;
  background: linear-gradient(to right, var(--tertiary), var(--primary), var(--secondary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
  filter: drop-shadow(0 0 20px rgba(255,0,255,0.5));
}
.hero p {
  font-size: 16px;
  color: rgba(224,224,224,0.75);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Skewed button — primary */
.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  padding: 0;
  border: 2px solid var(--secondary);
  background: transparent;
  transform: skewX(-12deg);
  transition: all 0.2s linear;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}
.btn-primary span {
  display: inline-block;
  transform: skewX(12deg);
  padding: 12px 28px;
}
.btn-primary:hover {
  transform: skewX(0deg);
  background: var(--secondary);
  color: var(--bg);
  box-shadow: 0 0 25px rgba(0,255,255,0.6);
  text-shadow: none;
}
.btn-primary:hover span { transform: skewX(0deg); }

/* Skewed button — secondary */
.btn-secondary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  padding: 0;
  border: 2px solid var(--primary);
  background: var(--primary);
  transform: skewX(-12deg);
  transition: all 0.2s linear;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255,0,255,0.3);
}
.btn-secondary span {
  display: inline-block;
  transform: skewX(12deg);
  padding: 12px 28px;
}
.btn-secondary:hover {
  transform: skewX(0deg) scale(1.05);
  opacity: 0.85;
  box-shadow: 0 0 30px rgba(255,0,255,0.6);
  color: #fff;
}
.btn-secondary:hover span { transform: skewX(0deg); }

/* Hero right — terminal window */
.hero-terminal {
  border: 2px solid var(--secondary);
  background: rgba(0,0,0,0.7);
  box-shadow: 0 0 30px rgba(0,255,255,0.15), inset 0 0 30px rgba(0,0,0,0.5);
  animation: float-up 6s ease-in-out infinite;
}
.terminal-bar {
  background: rgba(0,255,255,0.08);
  border-bottom: 1px solid var(--secondary);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot-r { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.t-dot-g { background: var(--secondary); box-shadow: 0 0 6px var(--secondary); }
.t-dot-y { background: var(--tertiary); box-shadow: 0 0 6px var(--tertiary); }
.terminal-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(224,224,224,0.5);
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
}
.terminal-body { padding: 20px; }
.terminal-line {
  font-size: 13px;
  line-height: 2;
  color: rgba(224,224,224,0.8);
}
.terminal-line .prompt { color: var(--primary); margin-right: 8px; }
.terminal-line .cmd    { color: var(--secondary); }
.terminal-line .val    { color: var(--tertiary); }
.terminal-line .ok     { color: #00FF88; }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--secondary);
  vertical-align: middle;
  animation: pulse-glow 1s ease-in-out infinite;
  margin-left: 4px;
}

/* --- Stats Section --- */
.stats-section {
  position: relative;
  z-index: 1;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(26,16,60,0.5);
  backdrop-filter: blur(8px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s linear;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,0,255,0.05); }
.stat-number {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 40px;
  background: linear-gradient(to right, var(--tertiary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(255,0,255,0.4));
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(224,224,224,0.5);
}

/* --- Section Shared --- */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}
.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
}
.section-eyebrow::after {
  background: linear-gradient(to left, transparent, var(--primary));
}
.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: var(--fg);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(255,255,255,0.2);
}
.section-sub {
  text-align: center;
  font-size: 15px;
  color: rgba(224,224,224,0.55);
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.8;
}

/* --- Games Section --- */
.games-section {
  background-image:
    radial-gradient(rgba(255,0,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  border: 1px solid rgba(255,0,255,0.25);
  border-top: 2px solid var(--secondary);
  background: rgba(26,16,60,0.8);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: all 0.2s linear;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  border-color: var(--primary);
  border-top-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255,0,255,0.25), 0 8px 32px rgba(0,0,0,0.4);
}
.game-card-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #000;
}
.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s linear, filter 0.2s linear;
  filter: saturate(0.9) brightness(0.85);
}
.game-card:hover .game-card-img {
  transform: scale(1.06);
  filter: saturate(1.2) brightness(1);
}
.game-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid var(--tertiary);
  color: var(--tertiary);
  background: rgba(9,0,20,0.85);
  transform: skewX(-8deg);
}
.game-card-downloads {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  color: var(--secondary);
  background: rgba(9,0,20,0.85);
  border-left: 2px solid var(--secondary);
}
.game-card-body {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.game-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(0,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-meta {
  font-size: 11px;
  color: rgba(224,224,224,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Features / About Section --- */
.about-section {
  background: linear-gradient(to bottom, transparent, rgba(26,16,60,0.3), transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-text p {
  font-size: 15px;
  color: rgba(224,224,224,0.75);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-features-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  background: rgba(26,16,60,0.4);
  transition: all 0.2s linear;
}
.about-feat:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(0,255,255,0.1);
}
.about-feat-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  background: rgba(255,0,255,0.08);
  transition: transform 0.2s linear;
}
.about-feat:hover .about-feat-icon { transform: rotate(90deg); }
.about-feat-icon span { transform: rotate(-45deg); display: block; }
.about-feat h4 {
  font-family: var(--font-head);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 4px;
}
.about-feat p {
  font-size: 13px;
  color: rgba(224,224,224,0.6);
  line-height: 1.6;
  margin: 0;
}

/* File explorer window */
.file-explorer {
  border: 2px solid rgba(224,224,224,0.15);
  background: rgba(26,16,60,0.9);
  backdrop-filter: blur(8px);
}
.fe-titlebar {
  background: rgba(224,224,224,0.08);
  border-bottom: 2px solid rgba(224,224,224,0.15);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fe-title-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(224,224,224,0.5);
  margin-left: 8px;
}
.fe-body { padding: 0; }
.fe-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background 0.2s linear;
  font-size: 14px;
}
.fe-row:last-child { border-bottom: none; }
.fe-row:hover { background: rgba(0,255,255,0.04); }
.fe-icon { font-size: 20px; width: 28px; flex-shrink: 0; }
.fe-name { color: var(--secondary); flex: 1; font-size: 13px; }
.fe-val  { color: var(--tertiary); font-size: 13px; letter-spacing: 1px; }
.fe-statusbar {
  border-top: 2px solid rgba(224,224,224,0.15);
  background: var(--bg);
  padding: 8px 20px;
  font-size: 11px;
  color: rgba(224,224,224,0.35);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}

/* --- How It Works --- */
.how-section {
  background-image:
    radial-gradient(rgba(0,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.how-steps {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
/* Central line */
.how-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
  opacity: 0.3;
}
.how-step {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}
.how-step:last-child { margin-bottom: 0; }
.how-step-content {
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  background: rgba(26,16,60,0.7);
  padding: 28px 24px;
  transition: all 0.2s linear;
}
.how-step-content:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255,0,255,0.1);
  transform: translateX(-4px);
}
.how-step:nth-child(even) .how-step-content {
  border-top-color: var(--secondary);
  order: 3;
}
.how-step:nth-child(even) .how-step-content:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
  transform: translateX(4px);
}
.how-step:nth-child(even) .how-step-empty { order: 1; }
.how-step-num {
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  box-shadow: 0 0 15px rgba(255,0,255,0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.how-step:nth-child(even) .how-step-num {
  border-color: var(--secondary);
  color: var(--secondary);
  text-shadow: 0 0 10px var(--secondary);
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}
.how-step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.how-step-content h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}
.how-step:nth-child(even) .how-step-content h3 { color: var(--secondary); }
.how-step-content p {
  font-size: 14px;
  color: rgba(224,224,224,0.65);
  line-height: 1.7;
  margin: 0;
}

/* --- Trust Section --- */
.trust-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(26,16,60,0.3);
  padding: 80px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-card {
  border: 1px solid var(--border);
  border-top: 2px solid var(--secondary);
  background: rgba(26,16,60,0.6);
  padding: 28px 24px;
  transition: all 0.2s linear;
}
.trust-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
  transform: translateY(-2px);
}
.trust-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.trust-card h3 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(0,255,255,0.4);
}
.trust-card p {
  font-size: 13px;
  color: rgba(224,224,224,0.6);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-section { }
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.contact-box {
  border: 2px solid var(--secondary);
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 40px rgba(0,255,255,0.1), inset 0 0 40px rgba(0,0,0,0.3);
  padding: 0;
  overflow: hidden;
}
.contact-box .terminal-bar { border-bottom: 1px solid var(--secondary); }
.contact-body {
  padding: 40px;
  text-align: center;
}
.contact-body p {
  font-size: 15px;
  color: rgba(224,224,224,0.65);
  margin-bottom: 28px;
  line-height: 1.8;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--secondary);
  letter-spacing: 2px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 4px;
  transition: all 0.2s linear;
  text-shadow: 0 0 10px rgba(0,255,255,0.4);
}
.contact-email:hover {
  color: var(--primary);
  border-color: var(--primary);
  text-shadow: 0 0 20px rgba(255,0,255,0.6);
}
.contact-address {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(26,16,60,0.4);
  font-size: 13px;
  color: rgba(224,224,224,0.5);
  line-height: 1.8;
  text-align: left;
}
.contact-address .addr-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

/* --- Footer --- */
.footer {
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(255,0,255,0.15);
  padding: 40px 0;
  background: rgba(9,0,20,0.95);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(224,224,224,0.4);
  transition: all 0.2s linear;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary);
}
.footer-copy {
  font-size: 12px;
  color: rgba(224,224,224,0.3);
  letter-spacing: 1px;
  text-align: center;
}
.footer-entity {
  font-size: 11px;
  color: rgba(224,224,224,0.2);
  text-align: right;
}

/* --- Legal Pages --- */
.legal-page { padding: 100px 0 80px; z-index: 1; position: relative; }
.legal-page .container { max-width: 800px; }
.legal-page h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.legal-page .last-updated {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(224,224,224,0.35);
  margin-bottom: 48px;
}
.legal-page .entity-notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: rgba(26,16,60,0.5);
  padding: 20px 24px;
  margin: 32px 0 40px;
  font-size: 14px;
  color: rgba(224,224,224,0.75);
  line-height: 1.7;
}
.legal-page h2 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin: 40px 0 14px;
  text-shadow: 0 0 8px rgba(0,255,255,0.3);
}
.legal-page p, .legal-page ul {
  font-size: 14px;
  color: rgba(224,224,224,0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-page ul { padding-left: 24px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--secondary); border-bottom: 1px solid var(--secondary); }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .section-title { font-size: 34px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(9,0,20,0.97);
    border-bottom: 2px solid var(--primary);
    padding: 16px 24px;
    z-index: 99;
    gap: 0;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 60px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { display: none; }
  .hero h1 { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { left: 30px; }
  .how-step { grid-template-columns: 60px 1fr; }
  .how-step-empty { display: none; }
  .how-step:nth-child(even) .how-step-content { order: unset; }
  .how-step:nth-child(even) .how-step-empty { display: none; }
  .how-step:nth-child(even) .how-step-content:hover { transform: translateX(0) translateY(-2px); }
  .how-step-content:hover { transform: translateX(0) translateY(-2px); }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-entity { text-align: left; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 26px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-body { padding: 24px 20px; }
  .contact-email { font-size: 16px; }
}
