/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f8ef7;
  --primary-dark: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-card2: #1c2333;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --mountain1: #1e3a5f;
  --mountain2: #2d5a8e;
  --mountain3: #1a2e4a;
  --snow: #dce8f5;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(13,17,23,0.98); }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn-play-small {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  transition: opacity var(--transition), transform var(--transition) !important;
}
.btn-play-small:hover { opacity: 0.9; transform: translateY(-1px); background: rgba(0,0,0,0) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #040d1a 0%, #0d1b35 40%, #0a1628 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(79,142,247,0.12) 0%, transparent 65%);
}

/* Stars */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* Mountains */
.mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  pointer-events: none;
}
.mountain {
  position: absolute;
  bottom: 0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.m1 {
  width: 55%; left: -5%;
  height: 78%;
  background: linear-gradient(180deg, #1e3a5f 0%, #0d1b35 100%);
}
.m2 {
  width: 50%; left: 30%;
  height: 95%;
  background: linear-gradient(180deg, #162d4a 0%, #0d1b35 100%);
}
.m3 {
  width: 40%; right: -8%;
  height: 70%;
  background: linear-gradient(180deg, #1a2e4a 0%, #0d1b35 100%);
}
.m4 {
  width: 35%; left: 15%;
  height: 60%;
  background: linear-gradient(180deg, #243d5c 0%, #0d1b35 100%);
}

.snow {
  position: absolute;
  clip-path: polygon(50% 0%, 15% 40%, 85% 40%);
  background: rgba(220, 232, 245, 0.85);
}
.s1 { width: 12%; left: 20.5%; bottom: 78%; height: 5%; }
.s2 { width: 15%; left: 42.5%; bottom: 95%; height: 6%; }
.s3 { width: 10%; right: 20%; bottom: 70%; height: 4%; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-logo {
  width: 96px; height: 96px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(79,142,247,0.4), 0 0 80px rgba(79,142,247,0.15);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 30%, #a8c8ff 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(79,142,247,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,142,247,0.6);
}
.btn-play .btn-icon { font-size: 1.2em; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.hero-badge {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.hero-badge span {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-arrow {
  width: 28px; height: 28px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg-dark);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease var(--delay, 0s), transform 0.6s ease var(--delay, 0s),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(79,142,247,0.15);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== HOW TO PLAY ===== */
.howto {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card2) 50%, var(--bg-dark) 100%);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 56px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.3;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  opacity: 0;
  transform: translateX(-30px);
}
.step.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease var(--delay, 0s), transform 0.6s ease var(--delay, 0s);
}

.step-number {
  min-width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(79,142,247,0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.howto-cta { text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-credits { text-align: right; }
.footer-credits p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }
.footer-credits a { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-credits { text-align: center; }
  .footer-links { justify-content: center; }
}
