/* =========================================================
   Alien Barrage – Marketing Website Styles
   Design system mirrors the iOS game:
     Primary:    #00FF00 (neon green)
     Background: #000000 (black)
     Accent:     #00FFFF (cyan) / #FF00FF (magenta) for glitch
     Text:       #FFFFFF / rgba(255,255,255,0.7)
     Font:       Orbitron (headers/buttons), Inter (body)
   ========================================================= */

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

:root {
  --green:        #00FF00;
  --green-90:     rgba(0,255,0,0.90);
  --green-70:     rgba(0,255,0,0.70);
  --green-55:     rgba(0,255,0,0.55);
  --green-45:     rgba(0,255,0,0.45);
  --green-14:     rgba(0,255,0,0.14);
  --green-08:     rgba(0,255,0,0.08);
  --green-06:     rgba(0,255,0,0.06);
  --cyan:         #00FFFF;
  --magenta:      #FF00FF;
  --orange:       #FFBD70;
  --bg:           #000000;
  --bg-card:      rgba(0,0,0,0.88);
  --white:        #FFFFFF;
  --gray:         rgba(255,255,255,0.55);
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    12px;
  --font-display: 'Orbitron', 'Futura', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --glow:         0 0 12px rgba(0,255,0,0.55), 0 0 24px rgba(0,255,0,0.25);
  --glow-sm:      0 0 6px rgba(0,255,0,0.45);
}

html { scroll-behavior: smooth; font-size: 16px; }

html[lang="ar"] {
  --font-display: 'Noto Sans Arabic', 'Geeza Pro', 'Tahoma', sans-serif;
  --font-body: 'Noto Sans Arabic', 'Geeza Pro', 'Tahoma', sans-serif;
}

html[lang="hi"] {
  --font-display: 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Mangal', sans-serif;
  --font-body: 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Mangal', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .btn,
html[lang="ar"] .section-label,
html[lang="ar"] .hero-badge,
html[lang="ar"] .hero-subtitle,
html[lang="ar"] .lang-select,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] .btn,
html[lang="hi"] .section-label,
html[lang="hi"] .hero-badge,
html[lang="hi"] .hero-subtitle,
html[lang="hi"] .lang-select {
  letter-spacing: normal;
}

body {
  background-color: var(--bg);
  background-image: var(--cdn-bg, url('https://d3od4vl78dd97d.cloudfront.net/alienbarrage/assets/background.jpg'));
  background-repeat: repeat;
  background-size: 512px 512px;
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dark overlay so content stays readable over the background tile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--white); }

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

/* ── Utility ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--green-70);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--green);
  text-shadow: var(--glow);
  margin-bottom: 14px;
}

.section-body {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 620px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

/* Primary – mirrors "START GAME" style */
.btn-primary {
  font-size: 1rem;
  padding: 14px 32px;
  color: var(--green);
  background: var(--green-08);
  border: 5px solid var(--green-55);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  background: var(--green-14);
  border-color: var(--green);
  color: var(--white);
  box-shadow: var(--glow);
}

/* Secondary – mirrors compact nav buttons */
.btn-secondary {
  font-size: 0.875rem;
  padding: 10px 22px;
  color: var(--green);
  background: var(--green-08);
  border: 1px solid var(--green-55);
}
.btn-secondary:hover {
  background: var(--green-14);
  border-color: var(--green);
  color: var(--white);
  box-shadow: var(--glow-sm);
}

/* Outline pill – mirrors tutorial SKIP */
.btn-pill {
  font-size: 0.875rem;
  padding: 8px 18px;
  color: var(--green);
  background: var(--green-08);
  border: 1px solid var(--green-55);
  border-radius: 999px;
}
.btn-pill:hover {
  background: var(--green-14);
  border-color: var(--green);
  color: var(--white);
}

/* Submit / CTA – filled */
.btn-submit {
  font-size: 0.9rem;
  padding: 13px 28px;
  color: var(--bg);
  background: var(--green);
  border: 2px solid var(--green);
  box-shadow: var(--glow-sm);
}
.btn-submit:hover {
  background: #00e600;
  box-shadow: var(--glow);
  color: var(--bg);
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--green-45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-shadow: var(--glow-sm);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  white-space: nowrap;
  color: var(--green-70);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover {
  color: var(--green);
  background: var(--green-08);
}

/* Language selector */
.lang-select {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--green-70);
  background: var(--green-08);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  width: 13rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.lang-select:hover, .lang-select:focus {
  border-color: var(--green);
  color: var(--green);
}
.lang-select option { background: #000; color: var(--green); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Ambient green glow orbs (match game's blur circles) */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,0,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--green-70);
  border: 1px solid var(--green-45);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--green-06);
}

/* ── Glitch Title (mirrors RubikGlitch RGB effect) ── */
.glitch-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0,255,0,0.6), 0 0 40px rgba(0,255,0,0.3);
  animation: glitch-flicker 6s infinite;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.glitch-title::before {
  color: var(--cyan);
  opacity: 0;
  animation: glitch-shift-left 6s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-title::after {
  color: var(--magenta);
  opacity: 0;
  animation: glitch-shift-right 6s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-flicker {
  0%, 92%, 100% { transform: none; }
  93% { transform: skewX(0.5deg); }
  94% { transform: skewX(-0.5deg) translateX(2px); }
  95% { transform: none; }
  96.5% { transform: skewX(0.3deg) translateX(-1px); }
  97% { transform: none; }
}

@keyframes glitch-shift-left {
  0%, 91%, 100% { opacity: 0; transform: none; }
  92% { opacity: 0.75; transform: translateX(-3px); }
  94% { opacity: 0.75; transform: translateX(-2px); }
  96% { opacity: 0; }
}

@keyframes glitch-shift-right {
  0%, 91%, 100% { opacity: 0; transform: none; }
  93% { opacity: 0.75; transform: translateX(3px); }
  95% { opacity: 0.75; transform: translateX(2px); }
  97% { opacity: 0; }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.24em;
  color: var(--green-70);
  margin-top: 10px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 60px;
}

/* App Store badge */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--green-08);
  border: 1px solid var(--green-55);
  border-radius: var(--radius);
  color: var(--white);
  transition: all 0.18s;
}
.appstore-btn svg { color: var(--green); }
.appstore-btn:hover {
  background: var(--green-14);
  border-color: var(--green);
  box-shadow: var(--glow-sm);
  color: var(--white);
}
.appstore-btn-label { text-align: left; }
.appstore-btn-sublabel {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  font-family: var(--font-display);
}
.appstore-btn-main {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

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

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  animation: pulse-fade 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--green);
}
.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}
@keyframes pulse-fade {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.25; transform: translateX(-50%) translateY(4px); }
}

/* ── Section wrapper ── */
.section {
  padding: 96px 0;
}
.section + .section {
  border-top: 1px solid rgba(0,255,0,0.08);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--green-70);
  box-shadow: 0 0 16px rgba(0,255,0,0.12);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-45);
  border-radius: var(--radius);
  background: var(--green-08);
  margin-bottom: 16px;
  color: var(--green);
  font-size: 1.1rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* FAQ — reuses .feature-card framing, but questions stay sentence case
   so they read as questions rather than shouting in 15 languages. */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.faq-q {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--green);
  line-height: 1.4;
  margin-bottom: 10px;
}
.faq-a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.feature-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ── Enemies / Scoring Section ── */
.enemies-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  justify-content: center;
}

.enemy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
  min-width: 140px;
  flex: 1;
  max-width: 240px;
  transition: border-color 0.2s;
}
.enemy-card:hover {
  border-color: var(--green-70);
  box-shadow: 0 0 12px rgba(0,255,0,0.10);
}

.enemy-card-squad {
  max-width: 300px;
}

.enemy-sprite {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.enemy-sprite-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 220px;
  align-items: end;
}

.enemy-sprite-variant {
  width: 100%;
  height: 44px;
}

.enemy-sprite-boss {
  width: 92px;
}

.enemy-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green);
  text-align: center;
}

.enemy-pts {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.enemy-note {
  font-size: 0.7rem;
  color: var(--gray);
  text-align: center;
}

.enemy-flyby {
  position: relative;
  height: 92px;
  margin-top: 28px;
  overflow: hidden;
}

.enemy-flyby-sprite {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 96px;
  height: 92px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  transform: translateX(-140px);
  will-change: transform;
}

.enemy-flyby.is-ready .enemy-flyby-sprite {
  opacity: 0.95;
  animation:
    enemy-ufo-pass 8s linear infinite,
    enemy-ufo-bob 1.4s ease-in-out infinite;
}

@keyframes enemy-ufo-pass {
  from { transform: translateX(-140px); }
  to { transform: translateX(calc(100vw + 140px)); }
}

@keyframes enemy-ufo-bob {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 6px; }
}

@media (max-width: 640px) {
  .enemy-card-squad {
    max-width: 100%;
  }

  .enemy-sprite-group {
    max-width: 100%;
  }

  .enemy-sprite-variant {
    height: 38px;
  }

  .enemy-flyby {
    height: 78px;
  }

  .enemy-flyby-sprite {
    width: 78px;
    height: 74px;
    bottom: 10px;
  }
}

/* ── Powerups Section ── */
.powerups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.powerup-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.powerup-card:hover {
  border-color: var(--green-70);
}

/* When a real img is used instead of icon span */
.powerup-card img.powerup-img {
  flex-shrink: 0;
}

.powerup-info-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.powerup-info-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.upgrade-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.upgrade-card .powerup-img {
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1 / 1;
}

.upgrade-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── How To Play Section ── */
.htp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.htp-step {
  position: relative;
  padding: 24px 24px 24px 66px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
}

.htp-num {
  position: absolute;
  top: 24px; left: 20px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--green-45);
  line-height: 1;
}

.htp-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.htp-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ── Difficulty badges ── */
.diff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.diff-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--green-55);
  background: var(--green-08);
  color: var(--green);
}
.diff-badge.hard { border-color: var(--orange); background: rgba(255,189,112,0.08); color: var(--orange); }

/* ── Contact Section / Page ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-45);
  border-radius: var(--radius);
  background: var(--green-08);
  color: var(--green);
  font-size: 0.9rem;
}

.contact-info-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--green-70);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.contact-info-value {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--green-70);
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
select,
textarea {
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--green-45);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

input[type="text"],
input[type="email"] {
  -webkit-appearance: none;
  appearance: none;
  height: 52px;
  line-height: 1.2;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--green-70);
  box-shadow: 0 0 0 2px rgba(0,255,0,0.08);
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.3); }

select { appearance: none; cursor: pointer; }
select option { background: #000; color: var(--white); }

textarea { resize: vertical; min-height: 130px; }

.form-notice {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Form success / error messages */
.form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.form-msg.success {
  background: rgba(0,255,0,0.08);
  border: 1px solid var(--green-55);
  color: var(--green);
}
.form-msg.error {
  background: rgba(255,50,50,0.08);
  border: 1px solid rgba(255,80,80,0.5);
  color: #FF6666;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--green-45);
  padding: 40px 0;
  background: rgba(0,0,0,0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-shadow: var(--glow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo img { width: 24px; height: 24px; border-radius: 4px; }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--green-70);
}
.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ── Divider ── */
.green-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin: 16px 0;
  border-radius: 2px;
}

/* ── Scanline overlay (subtle retro texture) ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 130px 24px 60px;
  text-align: center;
}

/* ── Legal / Privacy Page ── */
.legal-shell {
  max-width: 860px;
  margin: 0 auto 96px;
  padding: 32px;
  background: rgba(0,0,0,0.78);
  border: 1px solid var(--green-45);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.legal-meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green-70);
  text-transform: uppercase;
}

.legal-summary {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}

.legal-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,255,0,0.10);
}

.legal-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-shell p,
.legal-shell li {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.78;
}

.legal-shell p + p {
  margin-top: 12px;
}

.legal-shell ul {
  margin: 14px 0 0 20px;
}

.legal-shell li + li {
  margin-top: 8px;
}

.legal-shell strong {
  color: var(--white);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .legal-shell {
    margin-bottom: 72px;
    padding: 24px 20px;
  }
}

/* ── Hero art row ── */
.hero-art-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.hero-art-row-video {
  min-height: 420px;
  gap: clamp(12px, 3vw, 24px);
}

.hero-video-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-alien-video {
  width: min(600px, calc(50vw - 24px));
  height: auto;
  max-height: 420px;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.hero-alien-video.is-ready {
  opacity: 1;
  visibility: visible;
}

.hero-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(72px, 8vw, 92px);
  height: clamp(72px, 8vw, 92px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-70);
  border-radius: 999px;
  background: rgba(0,0,0,0.82);
  color: var(--green);
  box-shadow: var(--glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, background 0.18s ease;
  z-index: 2;
}

.hero-video-frame.is-ready .hero-video-play {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-video-frame.is-playing .hero-video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
  color: var(--white);
  background: rgba(0,0,0,0.92);
}

.hero-video-play:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hero-video-play-icon {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid currentColor;
  margin-left: 5px;
}

/* ── Powerup image ── */
.powerup-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
  image-rendering: pixelated;
}

/* ── Ships section ── */
.ships-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
  justify-content: center;
}

.ship-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 28px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
  min-width: 220px;
  max-width: 300px;
  flex: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.ship-card:hover {
  border-color: var(--green-70);
  box-shadow: 0 0 20px rgba(0,255,0,0.12);
}

.ship-img-wrap {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--green-45);
}
.ship-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ship-img-wrap .ship-img-classic {
  width: 75%;
  height: 75%;
  margin: 12.5%;
  object-fit: contain;
}

.ship-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--green);
}

.ship-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.ship-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.ship-badge.default { border-color: var(--green-55); color: var(--green); background: var(--green-08); }
.ship-badge.unlock  { border-color: var(--orange);   color: var(--orange); background: rgba(255,189,112,0.08); }

/* ── Achievements ── */
.achievements-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  justify-content: center;
}

.achieve-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  transition: border-color 0.2s;
}
.achieve-card:hover { border-color: var(--green-70); }

.achieve-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.achieve-name {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--green-70);
  text-align: center;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--green-45);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 24px 50px; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-art-row-video { gap: 10px; }
  .enemies-row { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Language suggestion banner ──────────────────────────────────────────────
   Injected by js/main.js when the visitor's browser language differs from the
   page language. Offers the translation; never redirects automatically. Fixed to
   the bottom so it cannot collide with the fixed nav or shift the layout. */
.lang-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 56px 14px 20px;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--green-45);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.lang-banner.is-visible { transform: translateY(0); }
.lang-banner a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-45);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}
.lang-banner a:hover { background: rgba(0,255,0,0.1); box-shadow: 0 0 12px rgba(0,255,0,0.25); }
.lang-banner button {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.lang-banner button:hover { color: var(--green); }
.lang-banner[dir="rtl"] { padding: 14px 20px 14px 56px; }
.lang-banner[dir="rtl"] button { right: auto; left: 16px; }
@media (max-width: 600px) {
  .lang-banner { font-size: 0.8rem; gap: 10px; padding: 12px 48px 12px 16px; }
}

/* ── Footer language links ───────────────────────────────────────────────────
   Real anchors so search engines can crawl between the static language
   versions. The header <select> only navigates via JavaScript, which crawlers
   do not follow, so these links are what actually connects the locales. */
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 18px auto 0;
  max-width: 760px;
}
.footer-langs a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-langs a:hover { color: var(--green); }
.footer-langs a[aria-current="true"] { color: var(--green); }
