/* Style variables matching Prism Pulse neon sci-fi theme */
:root {
  --bg-deep: #030308;
  --bg-dark: #070712;
  --bg-panel: rgba(10, 10, 22, 0.75);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 245, 212, 0.4);
  
  --neon-cyan: #00f5d4;
  --neon-pink: #ff007f;
  --neon-blue: #00b4d8;
  --neon-purple: #9b5de5;
  --neon-yellow: #fee440;
  
  --text-primary: #f5f5fc;
  --text-secondary: #a2a2bd;
  --text-muted: #5e5e7a;
  
  --font-title: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --shadow-glow-cyan: 0 0 15px rgba(0, 245, 212, 0.35);
  --shadow-glow-pink: 0 0 15px rgba(255, 0, 127, 0.35);
  --shadow-glow-yellow: 0 0 15px rgba(254, 228, 64, 0.35);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background glows */
.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: floatGlow 20s infinite alternate ease-in-out;
}

.bg-cyan {
  top: -10%;
  left: -10%;
  background: var(--neon-cyan);
}

.bg-purple {
  bottom: 20%;
  right: -10%;
  background: var(--neon-purple);
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 10%) scale(1.15); }
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--neon-cyan);
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--neon-cyan);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #030308;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-pink);
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 150px 24px 80px;
  position: relative;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-pink);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.hero-img-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(3, 3, 8, 0.8));
  pointer-events: none;
}

/* Features Section */
.features {
  padding: 100px 24px;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
  box-shadow: 0 15px 30px rgba(0, 245, 212, 0.08);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 245, 212, 0.1);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.feature-icon.pink {
  background: rgba(255, 0, 127, 0.1);
  color: var(--neon-pink);
}

.feature-icon.yellow {
  background: rgba(254, 228, 64, 0.1);
  color: var(--neon-yellow);
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

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

/* Play Section (Embedded Frame) */
.play-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
}

.game-container-web {
  width: 100%;
  max-width: 800px;
  height: 600px;
  margin: 40px auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  background: var(--bg-dark);
  position: relative;
}

.game-container-web iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* CTA Section */
.cta {
  padding: 60px 24px 100px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.8), rgba(5, 5, 12, 0.8));
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.cta-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 35px;
  font-size: 1.1rem;
}

/* Legal Layout details */
.legal-container {
  max-width: 800px;
  margin: 140px auto 100px;
  padding: 0 24px;
}
.legal-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
}
.legal-meta {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin: 35px 0 15px;
  color: var(--neon-cyan);
}
.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #020206;
  border-top: 1px solid var(--border-light);
  padding: 80px 24px 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-desc {
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-logo-desc {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .game-container-web {
    height: 480px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
