@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0c16;
  --bg-alt: #12162a;
  --bg-alt-2: #181d38;
  --primary: #8b5cf6;
  --primary-soft: #a78bfa;
  --accent: #2dd4bf;
  --danger: #ff7a45;
  --text: #f1f3fb;
  --text-muted: #a8afc9;
  --border: rgba(139, 92, 246, 0.22);
  --border-soft: rgba(45, 212, 191, 0.18);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Manrope', sans-serif;
  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
}

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

html.hide #preloader { opacity: 0; visibility: hidden; }

html { scroll-padding-top: 90px; }

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

body.fixed { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

.section { padding: 110px 0; position: relative; }

.section-alt { background: var(--bg-alt); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.section-title span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 48px;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#preloader img { width: 64px; height: 64px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 12, 22, 0.9);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-mark { cursor: pointer; }
.logo-mark img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.25s ease;
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 600;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-play-icon { flex-shrink: 0; }

.btn-primary {
  background: var(--grad-primary);
  color: #060810;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
  padding: 19px 38px;
  font-size: 19px;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(45, 212, 191, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 11px 22px; font-size: 14px; }

/* Hero */
.hero {
  padding: 170px 0 120px;
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.22), transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(45, 212, 191, 0.16), transparent 50%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-soft);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 38px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

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

.hero-actions .btn-primary {
  animation: floaty 3s ease-in-out infinite;
}

.hero-actions .btn-primary:hover { animation-play-state: paused; }

.hero-visual { position: relative; }

.hero-visual-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 12, 22, 0.85) 100%);
}

.hero-visual-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.35;
  top: -40px;
  right: -40px;
  z-index: -1;
  border-radius: 50%;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.about-visual img { width: 100%; }

.about-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }

.about-text p:last-child { margin-bottom: 0; }

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

.feature-card {
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(45, 212, 191, 0.18);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #060810;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p { color: var(--text-muted); font-size: 15px; }

/* Gameplay */
.gameplay-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.gameplay-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }

.gameplay-text p:last-child { margin-bottom: 0; }

.gameplay-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gameplay-visual img { width: 100%; }

/* Download */
.download-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 55%),
    var(--bg-alt);
  text-align: center;
}

.download-inner { max-width: 680px; margin: 0 auto; }

.download-kicker {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 22px;
}

.download-note {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 34px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 48px;
}

.contact-card p { color: var(--text-muted); margin-bottom: 28px; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-email:hover { color: var(--primary-soft); border-color: var(--primary-soft); }

/* Footer */
.site-footer {
  padding: 50px 0 34px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo img { height: 30px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }

.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.25s ease; }

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

.footer-copy { color: var(--text-muted); font-size: 13px; }

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 9, 18, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.mobile-nav .nav-link { font-size: 22px; }

.mobile-nav .btn { margin-top: 10px; }

/* Legal pages */
.legal-page { padding: 170px 0 100px; }

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

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  margin-bottom: 30px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 30px 0 14px;
  color: var(--accent);
}

.legal-content div { margin-bottom: 22px; }

.legal-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 15px; }

.legal-content ul { margin: 0 0 14px 0; }

.legal-content li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-content a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; word-break: break-word; }

.legal-content a:hover { color: var(--primary-soft); }

.legal-content strong { color: var(--text); }

.legal-content .date, .legal-content .name, .legal-content .app-domain { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .hero-grid, .about-grid, .gameplay-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 84px 0; }
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .header-cta .btn-outline { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 140px 0 80px; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .section { padding: 64px 0; }
  .legal-page { padding: 130px 0 70px; }
  .contact-email { font-size: 14px; }
}
