:root {
  --bg-primary: #09111F;
  --bg-secondary: #111C31;
  --bg-surface: #182742;
  --color-purple: #8A5CFF;
  --color-pink: #FF72D9;
  --color-gold: #FFD86A;
  --color-blue: #58B4FF;
  --color-cyan: #6EF5FF;
  --text-primary: #F8FAFF;
  --text-secondary: #D7E2FF;
  --text-muted: #9DAAC9;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--color-blue);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--color-purple), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(138, 92, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 6px 20px rgba(110, 245, 255, 0.5);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-cyan);
  border: 2px solid var(--color-cyan);
}

.btn-secondary:hover {
  background: var(--color-cyan);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(110, 245, 255, 0.4);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 17, 31, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(88, 180, 255, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--color-cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.mobile-menu-btn {
  display: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: radial-gradient(circle at top right, rgba(138, 92, 255, 0.15), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(110, 245, 255, 0.1), transparent 40%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-visual {
  flex: 1;
  position: relative;
}

.hero-visual img {
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(138, 92, 255, 0.3), inset 0 0 30px rgba(110, 245, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

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

/* Game Section */
.game-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(138, 92, 255, 0.2);
  border-bottom: 1px solid rgba(138, 92, 255, 0.2);
  position: relative;
}

.game-container {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--bg-surface);
  padding: 10px;
  box-shadow: 0 10px 40px rgba(9, 17, 31, 0.8), 0 0 20px rgba(138, 92, 255, 0.4);
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

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

/* Cosmic Discoveries */
.discoveries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.discovery-card {
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(88, 180, 255, 0.1);
  transition: var(--transition);
}

.discovery-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-purple);
  box-shadow: 0 10px 30px rgba(138, 92, 255, 0.2);
}

.discovery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(88, 180, 255, 0.1);
}

.discovery-content {
  padding: 25px;
}

.discovery-content h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--color-cyan);
}

/* Galaxy Highlights */
.highlights-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.highlight-item {
  padding: 30px 20px;
  background: rgba(24, 39, 66, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 216, 106, 0.1);
}

.counter {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.highlight-title {
  color: var(--text-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(88, 180, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-summary {
  padding: 20px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-cyan);
  transition: var(--transition);
}

details[open] .faq-summary::after {
  content: '-';
  color: var(--color-pink);
}

.faq-content {
  padding: 0 20px 20px;
  color: var(--text-muted);
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(138, 92, 255, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-primary);
  border: 1px solid rgba(88, 180, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(110, 245, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  display: none;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.status-loading {
  background: rgba(88, 180, 255, 0.1);
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}

.status-success {
  background: rgba(110, 245, 255, 0.1);
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}

.status-error {
  background: rgba(255, 114, 217, 0.1);
  color: var(--color-pink);
  border: 1px solid var(--color-pink);
}

/* Footer completely unique */
.footer-wrapper {
  background-color: var(--bg-primary);
}

.footer-top-strip {
  background: linear-gradient(90deg, var(--color-purple), var(--color-blue), var(--color-cyan));
  padding: 15px 0;
  text-align: center;
}

.footer-top-strip h2 {
  font-size: 1.2rem;
  color: var(--bg-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.footer-main {
  background-color: var(--bg-secondary);
  padding: 60px 0;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, rgba(138, 92, 255, 0.05) 0%, transparent 60%);
}

.footer-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-panel {
  background: rgba(24, 39, 66, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(110, 245, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(138, 92, 255, 0.3);
  padding-bottom: 10px;
}

.footer-panel p {
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--color-cyan);
  padding-left: 5px;
}

.footer-support {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
}

.footer-support span {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-bottom {
  background-color: #070C16;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 5px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: rgba(24, 39, 66, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(138, 92, 255, 0.3);
  padding: 20px 0;
  z-index: 9999;
  transition: var(--transition);
  display: flex;
  justify-content: center;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  gap: 20px;
}

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

.cookie-buttons {
  display: flex;
  gap: 15px;
}

/* Legal Pages Styling */
.legal-header {
  padding: 150px 0 50px;
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(88, 180, 255, 0.1);
}

.legal-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 30px 0 15px;
  color: var(--color-cyan);
}

.legal-content p, .legal-content ul {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.legal-content ul {
  padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.8rem; }
  .game-container { width: 90%; }
  .discoveries-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-panels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  .header-cta { display: none; }
  
  .hero .container { flex-direction: column; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { width: 80%; margin: 0 auto; }
  
  .game-container { width: 100%; border-radius: 0; padding: 5px; }
  .game-iframe-wrapper { border-radius: 8px; }
  
  .discoveries-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .footer-panels { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; text-align: center; }
}