:root {
  --bg-main: #07070a;
  --bg-sec: #11131a;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --acc-primary: #4cc9f0;
  --acc-secondary: #9d4edd;
  --gradient: linear-gradient(135deg, var(--acc-primary), var(--acc-secondary));
  --text-main: #f1f5f9;
  --text-sec: #94a3b8;
  --glow-primary: rgba(76, 201, 240, 0.4);
  --glow-secondary: rgba(157, 78, 221, 0.4);
  --font-base: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --spacing-section: 50px;
}

@media (min-width: 768px) {
  :root { --spacing-section: 70px; }
}

@media (min-width: 1024px) {
  :root { --spacing-section: 100px; }
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(76, 201, 240, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-sec);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-secondary);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  background: var(--bg-glass);
  border: 1px solid var(--acc-primary);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(76, 201, 240, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--glow-primary);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 201, 240, 0.2);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--text-main);
  height: 2px;
  width: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}
.nav-toggle-label span::before { bottom: 8px; }
.nav-toggle-label span::after { top: 8px; }

/* Hero Section */
.hero {
  padding: calc(80px + var(--spacing-section)) 0 var(--spacing-section);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('images/hero-cosmic-bg.webp') center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: var(--acc-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(76, 201, 240, 0.3);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-sec);
  margin-bottom: 30px;
}

.hero-disclaimer {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-disclaimer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Game Section */
.game-section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.game-container {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--bg-glass);
  border-radius: 22px;
  padding: 10px;
  border: 1px solid rgba(76, 201, 240, 0.2);
  box-shadow: 0 0 50px rgba(7, 7, 10, 0.8), 0 0 20px var(--glow-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
}

.game-container:hover {
  transform: scale(1.01);
  box-shadow: 0 0 50px rgba(7, 7, 10, 0.8), 0 0 30px var(--glow-secondary);
  border-color: rgba(157, 78, 221, 0.4);
}

.game-wrapper {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 500px;
}

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

/* Features Section */
.features-section {
  padding: var(--spacing-section) 0;
  background: var(--bg-sec);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

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

.feature-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-glass-hover);
  border-color: rgba(76, 201, 240, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(76, 201, 240, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--acc-primary);
  border: 1px solid rgba(76, 201, 240, 0.2);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-sec);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  padding: var(--spacing-section) 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: 800px; height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  filter: blur(80px);
  z-index: -1;
  border-radius: 50%;
}

.cta-box {
  background: var(--bg-glass);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

/* Footer */
.footer {
  background: #040406;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-desc {
  color: var(--text-sec);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #64748b;
  font-size: 0.85rem;
}

/* Inner Pages (Legal, About, Contact) */
.page-header {
  padding: calc(100px + var(--spacing-section)) 0 calc(var(--spacing-section) / 2);
  text-align: center;
  background: linear-gradient(to bottom, rgba(157, 78, 221, 0.1), transparent);
}

.content-section {
  padding: var(--spacing-section) 0;
}

.glass-panel {
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.text-content h2 { margin: 30px 0 15px; font-size: 1.8rem; color: var(--acc-primary); }
.text-content h3 { margin: 25px 0 10px; font-size: 1.3rem; }
.text-content p { margin-bottom: 20px; color: var(--text-sec); }
.text-content ul { margin: 0 0 20px 20px; color: var(--text-sec); }
.text-content li { margin-bottom: 10px; }

/* Contact Form */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-base);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--acc-primary);
  box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
}

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

/* Responsive */
@media (max-width: 992px) {
  .nav-toggle-label { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 13, 18, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .nav-toggle:checked ~ .nav-menu {
    max-height: 400px;
    padding: 20px 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
  }

  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); bottom: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
  
  .hero-title { font-size: 2.5rem; }
  .game-wrapper { min-height: 400px; }
  .glass-panel { padding: 25px; }
}

@media (max-width: 576px) {
  .hero-disclaimer { flex-direction: column; gap: 5px; }
  .game-wrapper { aspect-ratio: 4/3; min-height: 350px; }
  .feature-card { padding: 30px 20px; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }