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

:root {
  --neon-green: #4DF98B;
  --neon-green-alt: #58F2A0;
  --electric-purple: #6C5CE7;
  --electric-purple-alt: #8A6CF0;
  --cyan-glow: #4DD8FF;
  --hot-pink: #FF4D8D;
  --warm-orange: #FFA245;

  --text-primary: #F2F4FF;
  --text-secondary: #9AA0C3;

  --bg-deep: #0B0E1A;
  --bg-deep-alt: #12172B;
  --panel: rgba(26, 32, 54, 0.8);
  --panel-border: rgba(77, 249, 139, 0.25);

  --font-heading: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --header-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.hide #preloader { opacity: 0; pointer-events: none; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-alt) 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; margin: 0 0 16px; }

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#preloader img { width: 80px; height: 80px; }

/* Background grid + glow helpers */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(77, 249, 139, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 249, 139, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Header */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  transition: background .3s ease, box-shadow .3s ease;
}
#header.scrolled {
  background: rgba(11, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.header-inner {
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 52px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop .nav-link {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  color: var(--text-primary); opacity: .85; transition: opacity .2s, color .2s;
}
.nav-desktop .nav-link:hover { opacity: 1; color: var(--neon-green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
  border-radius: 100px; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-green) 0%, var(--cyan-glow) 100%);
  color: #06170F;
  box-shadow: 0 0 24px rgba(77, 249, 139, .45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(77, 249, 139, .65); }

.btn-play-nav {
  padding: 10px 24px; font-size: 14px;
}

.btn-hero {
  padding: 22px 48px;
  font-size: 20px;
  margin-top: 8px;
}

@keyframes levitate {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.btn-levitate { animation: levitate 3s ease-in-out infinite; }
.btn-levitate:hover { animation-play-state: paused; }

.btn-outline {
  padding: 14px 32px; font-size: 15px;
  background: transparent;
  border: 2px solid var(--cyan-glow);
  color: var(--cyan-glow);
}
.btn-outline:hover { background: rgba(77, 216, 255, 0.1); }

/* Burger */
.burger-btn {
  display: none;
  background: transparent; border: 0;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; z-index: 1100;
}
.burger-btn span {
  width: 26px; height: 2px; background: var(--text-primary);
  transition: transform .25s ease, opacity .25s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu — hidden globally, not just in media query */
#mobile-menu {
  opacity: 0; pointer-events: none;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding-top: var(--header-height);
  transition: opacity .3s ease;
  z-index: 999;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
#mobile-menu .btn-play-nav { padding: 18px 40px; font-size: 18px; }

body.fixed { overflow: hidden; }
body.fixed #header { background: rgba(11, 14, 26, 0.98); backdrop-filter: blur(10px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  background-image:
    linear-gradient(90deg, rgba(11,14,26,.78) 0%, rgba(11,14,26,.4) 48%, rgba(11,14,26,0) 72%),
    linear-gradient(180deg, rgba(11,14,26,.35) 0%, rgba(11,14,26,.88) 100%),
    url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  display: flex; align-items: center;
}
.hero-bg-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(108,92,231,.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255,77,141,.2) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 60px; padding-bottom: 60px;
}
.hero-title {
  font-size: 48px; line-height: 1.1; text-transform: uppercase; letter-spacing: .5px;
  text-shadow: 0 0 24px rgba(77, 249, 139, .35);
}
.hero-subtitle {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px;
  color: var(--neon-green-alt); margin-bottom: 24px;
}
.hero-text p { color: var(--text-secondary); margin: 0 0 14px; }
.hero-character { max-width: 480px; margin: 0 auto; filter: drop-shadow(0 20px 60px rgba(108,92,231,.4)); }

/* Section base */
.section { position: relative; padding: 100px 0; }
.section-title { font-size: 34px; text-transform: uppercase; letter-spacing: .5px; }
.section-title-center { text-align: center; }

.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media-right .split-content { order: 1; }
.split-media-right .split-media { order: 2; }
.split-media img {
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(77, 249, 139, .15);
}
.split-content p { color: var(--text-secondary); margin: 0 0 14px; }

/* Siege mode warm accent shift */
.section-siege {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,162,69,.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255,77,141,.1) 0%, transparent 40%);
}
.section-siege .split-media img { box-shadow: 0 0 40px rgba(255,162,69,.25); }

.siege-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.siege-list li {
  position: relative; padding: 14px 20px 14px 44px;
  background: var(--panel); border: 1px solid rgba(255,162,69,.3);
  border-radius: 16px; font-weight: 600;
}
.siege-list li::before {
  content: ''; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--warm-orange); box-shadow: 0 0 10px rgba(255,162,69,.8);
}

/* Features */
.features-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  position: relative; padding: 22px 22px 22px 48px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 20px; font-weight: 600;
}
.feature-dot {
  position: absolute; left: 20px; top: 24px;
  width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(135deg, var(--neon-green), var(--cyan-glow));
  box-shadow: 0 0 10px rgba(77, 249, 139, .7);
  transform: rotate(45deg);
}

/* FAQ */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  display: flex; gap: 24px; padding: 28px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 20px;
}
.faq-number {
  font-family: var(--font-heading); font-weight: 800; font-size: 28px;
  color: transparent; -webkit-text-stroke: 1.5px var(--neon-green); opacity: .6;
  flex-shrink: 0;
}
.faq-body h3 { font-size: 18px; margin-bottom: 8px; }
.faq-body p { color: var(--text-secondary); margin: 0; }

/* Footer */
#footer {
  position: relative; padding: 48px 0; overflow: hidden;
}
.footer-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(11,14,26,.55) 0%, rgba(11,14,26,.88) 100%),
    url('../img/footer-bg.webp');
  background-size: cover; background-position: center;
}
.footer-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-left { font-family: var(--font-heading); font-weight: 700; }
.footer-center, .footer-right { color: var(--text-secondary); font-size: 14px; }
.footer-right a:hover { color: var(--neon-green); }
.footer-sep { margin: 0 8px; color: var(--text-secondary); }

/* Legal pages */
.legal-page { padding: calc(var(--header-height) + 60px) 0 100px; }
.legal-content h1 { font-size: 36px; margin-bottom: 24px; }
.legal-content h2, .legal-content h4 { font-size: 20px; margin-top: 32px; }
.legal-content p, .legal-content li { color: var(--text-secondary); }
.legal-content ul { padding-left: 24px; list-style: disc; margin-bottom: 16px; }
.legal-content .date { color: var(--neon-green); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 38px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-character { max-width: 320px; }
  .hero-text { text-align: left; line-height: 1.45; }
  .hero-text p { margin: 0 0 8px; }
  .hero-subtitle { margin-bottom: 16px; line-height: 1.3; }
  .btn-hero { width: 100%; font-size: 22px; }
  .logo img { height: 40px; }

  body { line-height: 1.45; }
  .split-content p { margin: 0 0 8px; }
  .faq-body p { margin: 0; }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(11,14,26,.8) 0%, rgba(11,14,26,.4) 45%, rgba(11,14,26,0) 68%),
      linear-gradient(180deg, rgba(11,14,26,.35) 0%, rgba(11,14,26,.88) 100%),
      url('../img/hero-bg.webp');
  }

  .split-inner { grid-template-columns: 1fr; gap: 32px; }
  .split-media-right .split-content,
  .split-media-right .split-media { order: initial; }

  #customization .split-content { order: 1; }
  #customization .split-media { order: 2; }

  .features-grid { grid-template-columns: 1fr; }
  .faq-item { flex-direction: column; gap: 8px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 26px; }
  .btn-hero { padding: 20px 32px; font-size: 22px; width: 100%; }
}
