/* ============================================
   Void Imperium — Landing Page Styles
   Theme: Dark Imperial
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0D0F1A;
  --bg-surface: #1A1D2E;
  --bg-card: #242840;
  --bg-panel: #12152A;
  --gold: #C9A84C;
  --gold-light: #E0C76A;
  --red: #8B1A1A;
  --red-light: #A52A2A;
  --blue: #4A90D9;
  --text-primary: #E8E6E3;
  --text-secondary: #8A8D9B;
  --text-disabled: #445566;
  --ferrion: #C0834A;
  --syntex: #4AC0C0;
  --flux: #9B4AC0;
  --energy: #FFD700;
  --success: #2ECC71;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Rajdhani', sans-serif;
  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 0.8rem 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 26, 26, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="1" fill="%23E8E6E3" opacity="0.3"/><circle cx="150" cy="30" r="0.5" fill="%23E8E6E3" opacity="0.2"/><circle cx="100" cy="120" r="0.8" fill="%23C9A84C" opacity="0.2"/><circle cx="30" cy="170" r="0.5" fill="%23E8E6E3" opacity="0.15"/><circle cx="180" cy="150" r="1" fill="%23E8E6E3" opacity="0.2"/></svg>');
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
}

.hero-cta img {
  height: 60px;
  transition: transform 0.2s;
}

.hero-cta:hover img {
  transform: scale(1.05);
}

.play-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}

.play-store-badge:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.play-store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Universe / Lore --- */
.universe {
  padding: var(--section-padding);
  background: var(--bg-surface);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.lore-card {
  background: var(--bg-panel);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
}

.lore-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.lore-card h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.lore-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Features --- */
.features {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

/* --- Units --- */
.units {
  padding: var(--section-padding);
  background: var(--bg-surface);
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.unit-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.unit-card:hover {
  border-color: var(--red);
}

.unit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.unit-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.unit-role {
  font-size: 0.85rem;
  color: var(--red-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.unit-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
}

/* --- Screenshots --- */
.screenshots {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: var(--bg-surface);
  border: 1px dashed rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-disabled);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* --- Download --- */
.download {
  padding: var(--section-padding);
  background: var(--bg-surface);
  text-align: center;
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --- Contact --- */
.contact {
  padding: var(--section-padding);
  background: var(--bg-primary);
  text-align: center;
}

.contact-email {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copyright {
  color: var(--text-disabled);
  font-size: 0.85rem;
}

/* --- Legal pages (privacy, terms) --- */
.legal-page {
  padding: 6rem 1.5rem 4rem;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-disabled);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--gold);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 15, 26, 0.98);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }

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

  .nav-toggle {
    display: block;
  }

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

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

/* Mobile */
@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 1rem;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

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

  .section-title {
    font-size: 1.4rem;
  }

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

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

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

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
