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

:root {
  --space-black: #0a0a1a;
  --nebula: #1a1a3a;
  --stellar-blue: #4169e1;
  --stellar-light: #6495ed;
  --star-gold: #ffd700;
  --comet: #00ffff;
  --white: #f0f8ff;
  --gray: #a0b0c0;
  --border-blue: rgba(65, 105, 225, 0.3);
  --glow-blue: rgba(65, 105, 225, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--space-black);
  color: var(--white);
  line-height: 1.7;
}

.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(65, 105, 225, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.cosmic-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-blue);
  z-index: 1000;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand-name {
  font-family: 'Audiowide', cursive;
  font-size: 1.5rem;
  color: var(--stellar-blue);
  text-decoration: none;
  letter-spacing: 2px;
}

.mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--stellar-blue);
  padding: 8px;
  cursor: pointer;
}

.mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--stellar-blue);
  margin: 5px 0;
  transition: 0.3s;
}

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

.nav-items a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-items a:hover { color: var(--stellar-light); }

.main-section { padding-top: 70px; }

.space-hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-flex {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Audiowide', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.hero-text h1 .glow {
  color: var(--stellar-blue);
  text-shadow: 0 0 20px var(--glow-blue);
}

.hero-text > p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 500px;
}

.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag {
  background: var(--nebula);
  border: 1px solid var(--border-blue);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.launch-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--stellar-blue), var(--comet));
  color: var(--space-black);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  transition: 0.3s;
}

.launch-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px var(--glow-blue);
}

.game-viewport {
  background: var(--nebula);
  border: 1px solid var(--border-blue);
  border-radius: 16px;
  overflow: hidden;
}

.viewport-screen {
  position: relative;
  width: 100%;
  padding-bottom: 65%;
  background: #000;
}

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

.modules-section {
  background: var(--nebula);
  padding: 5rem 2rem;
}

.modules-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.module {
  background: var(--space-black);
  border: 1px solid var(--border-blue);
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  transition: 0.3s;
}

.module:hover {
  border-color: var(--stellar-blue);
  transform: translateY(-5px);
}

.module-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.module h3 {
  font-family: 'Audiowide', cursive;
  font-size: 1rem;
  color: var(--stellar-light);
  margin-bottom: 0.5rem;
}

.module p { color: var(--gray); font-size: 0.9rem; }

.mission-brief {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-brief h2 {
  font-family: 'Audiowide', cursive;
  font-size: 1.8rem;
  color: var(--stellar-blue);
  margin-bottom: 1.5rem;
}

.mission-brief p { color: var(--gray); margin-bottom: 1rem; }

.orbital-footer {
  background: var(--nebula);
  border-top: 1px solid var(--border-blue);
  padding: 3rem 2rem;
}

.footer-core {
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

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

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

.safety-zone h4 {
  color: var(--stellar-blue);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

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

.safety-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  transition: 0.3s;
}

.safety-links a:hover { border-color: var(--stellar-blue); color: var(--stellar-light); }

.copy-line { color: var(--gray); font-size: 0.85rem; text-align: center; }

.gate-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.98);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.gate-box {
  background: var(--nebula);
  border: 2px solid var(--stellar-blue);
  padding: 2.5rem;
  max-width: 450px;
  text-align: center;
  border-radius: 16px;
}

.gate-box h2 {
  font-family: 'Audiowide', cursive;
  color: var(--stellar-light);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.gate-box p { color: var(--gray); margin-bottom: 2rem; }

.gate-btns { display: flex; gap: 1rem; justify-content: center; }

.btn-go, .btn-back {
  padding: 0.9rem 2rem;
  border: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 25px;
  transition: 0.3s;
}

.btn-go {
  background: linear-gradient(135deg, var(--stellar-blue), var(--comet));
  color: var(--space-black);
}

.btn-back {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray);
}

.btn-go:hover, .btn-back:hover { transform: scale(1.05); }

.hidden { display: none !important; }

.text-content {
  padding: 100px 2rem 4rem;
  max-width: 950px;
  margin: 0 auto;
}

.text-content h1 {
  font-family: 'Audiowide', cursive;
  font-size: 2rem;
  color: var(--stellar-blue);
  margin-bottom: 2rem;
}

.text-content h2 {
  font-family: 'Audiowide', cursive;
  font-size: 1.2rem;
  color: var(--stellar-light);
  margin: 2rem 0 1rem;
}

.text-content p, .text-content li { color: var(--gray); margin-bottom: 1rem; }
.text-content ul { padding-left: 1.5rem; }

.data-panel {
  background: var(--nebula);
  border: 1px solid var(--border-blue);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 12px;
}

.data-panel h3 { color: var(--stellar-blue); margin-bottom: 0.75rem; }

@media (max-width: 1000px) {
  .hero-flex { grid-template-columns: 1fr; text-align: center; }
  .hero-text > p { margin: 0 auto 2rem; }
  .mission-tags { justify-content: center; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-btn { display: block; }
  .nav-items {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-150%);
    transition: 0.4s;
  }
  .nav-items.open { transform: translateY(0); }
  .nav-items a { display: block; padding: 0.75rem; text-align: center; }
  .modules-grid { grid-template-columns: 1fr; }
  .mission-tags { flex-direction: column; align-items: center; }
  .gate-btns { flex-direction: column; }
  .footer-links { flex-direction: column; align-items: center; gap: 1rem; }
}
