@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.title-italic {
  font-style: italic;
}

:root {
  --bg: #0a0f1c;
  --text: #ffffff;
  --muted: #a5adc3;
  --accent: #7c5dff;
  --accent-2: #1ad1a5;
  --panel: #11182c;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
}

body {
  margin: 0;
  background-color: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-image: radial-gradient(circle at top left, rgba(124, 93, 255, 0.1), transparent 50%), radial-gradient(circle at bottom right, rgba(26, 209, 165, 0.05), transparent 50%);
}

img {
  max-width: 100%;
  border-radius: var(--radius);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
  padding: 1.5rem 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  padding: 0.5rem 0.75rem;
  font-weight: 800;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: var(--transition);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .container.nav-bar {
  background: transparent;
  box-shadow: none;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
}

/* Animated particle/star background */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 60%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: drift 60s ease-in-out infinite;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 40% 20%, rgba(124, 93, 255, 0.8), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(26, 209, 165, 0.8), transparent),
    radial-gradient(2px 2px at 10% 40%, rgba(124, 93, 255, 0.6), transparent),
    radial-gradient(1px 1px at 85% 30%, rgba(26, 209, 165, 0.6), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: drift 45s ease-in-out infinite reverse;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0;
}

.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.3;
}

.hero-copy .lede {
  max-width: 720px;
  margin: 1rem auto;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-button, .ghost-button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
  color: #0a0f1c;
}

.primary-button:hover {
  background: #9a80ff;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.ghost-button:hover {
  background: rgba(255,255,255,0.05);
}

.section {
  padding: 3rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visual separator for game sections */
.section#galactic::before,
.section#unification .section-header::before {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--section-accent, var(--accent)), transparent);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(var(--section-accent-rgb, 124, 93, 255), 0.5);
}

/* Additional separator between major sections */
.section.features::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4rem auto 0;
}

.section#unification .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section#unification .game-info h3 {
  margin-top: 1.5rem;
}

.section#unification .game-info h3:first-child {
  margin-top: 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: rgba(17, 24, 44, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(124, 93, 255, 0.2);
}

.feature-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section.alt {
  background: #0d1326;
  position: relative;
}

.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(26, 209, 165, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.section.alt > .container {
  position: relative;
  z-index: 1;
}

/* Section-specific accent colors */
.section#galactic {
  --section-accent: var(--accent); /* Purple */
  --section-accent-rgb: 124, 93, 255;
  background: radial-gradient(circle at top left, rgba(124, 93, 255, 0.05), transparent 60%);
  border-top: 1px solid rgba(124, 93, 255, 0.1);
  padding-top: 4rem;
}

.section#unification {
  --section-accent: var(--accent-2); /* Teal */
  --section-accent-rgb: 26, 209, 165;
  border-top: 1px solid rgba(26, 209, 165, 0.1);
  padding-top: 4rem;
}

.section .eyebrow {
  color: var(--section-accent, var(--muted));
  font-weight: 600;
}

.section .primary-button {
  background: var(--section-accent, var(--accent));
}

.section .primary-button:hover {
  filter: brightness(1.2);
}

.section .text-link {
  color: var(--section-accent, var(--accent-2));
}

.section .screenshot-thumbnails img.active {
  border-color: var(--section-accent, var(--accent));
}

.section .screenshot-main img {
  box-shadow: 0 20px 60px rgba(var(--section-accent, 124, 93, 255), 0.3);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

figure {
  margin: 0;
}

figure img {
  box-shadow: 0 20px 60px rgba(124, 93, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(124, 93, 255, 0.4);
}

.screenshot-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screenshot-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.screenshot-main img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 20px 60px rgba(124, 93, 255, 0.3);
  transition: transform 0.3s ease;
}

.screenshot-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.screenshot-thumbnails img {
  width: 100%;
  height: auto;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.screenshot-thumbnails img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.screenshot-thumbnails img.active {
  opacity: 1;
  border-color: var(--accent);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.text-link {
  color: var(--accent-2);
  font-weight: bold;
}

.site-footer {
  background: #0c101f;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--accent-2);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-col p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1.25rem;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .nav-bar {
    position: relative;
    flex-direction: row;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    display: none;
    box-shadow: var(--shadow);
    z-index: 100;
  }

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

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-copy {
    padding: 2rem 0;
  }

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

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul {
    text-align: center;
  }
}
