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

:root {
  --bg: #0A0F1A;
  --bg-alt: #101A2C;
  --bg-alt2: #142238;
  --panel: #16223A;
  --border: #24344F;
  --text: #E9EEF5;
  --text-muted: #9AA7BD;
  --accent: #FF7A29;
  --accent-2: #F4C542;
  --sky: #4FA3DB;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --font-head: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  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;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
}

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

/* 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, visibility 0.4s ease;
}
#preloader img { width: 64px; height: 64px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 20px 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--text);
}
.logo-accent { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; }

.main-nav {
  display: flex;
  gap: 36px;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-play-icon {
  flex-shrink: 0;
}
.btn-primary {
  background: var(--gradient);
  color: #1A1005;
  box-shadow: 0 8px 24px rgba(255, 122, 41, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 122, 41, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-small { padding: 10px 20px; font-size: 13px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}
.burger-btn span {
  position: absolute;
  left: 6px;
  width: 32px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-btn span:nth-child(1) { top: 10px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 32px; }
.burger-btn.act span:nth-child(1) { top: 21px; transform: rotate(45deg); background: var(--accent-2); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 21px; transform: rotate(-45deg); background: var(--accent-2); }

#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(9, 13, 22, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  padding: 10px 0;
}
#mobile-menu a:hover { color: var(--accent-2); }

/* Hero */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 122, 41, 0.16), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(79, 163, 219, 0.12), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 238, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 238, 245, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-badge img { width: 30px; height: 30px; border-radius: 8px; }
.hero-badge span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 span { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; }
.hero p { color: var(--text-muted); font-size: 17px; margin-bottom: 18px; max-width: 560px; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  animation: float 3s ease-in-out infinite;
}
.hero-cta .btn-primary:hover { animation-play-state: paused; }
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.hero-cta-note { color: var(--text-muted); font-size: 14px; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 15, 26, 0.85));
}
.hero-visual .glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--gradient);
  filter: blur(90px);
  opacity: 0.35;
  border-radius: 50%;
  top: -40px;
  right: -40px;
  z-index: -1;
}

/* Generic section */
.section { position: relative; padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

/* Features */
.features-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.feature-item .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  color: #1A1005;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item p { color: var(--text-muted); font-size: 15px; }

.feature-gallery {
  display: grid;
  justify-content: center;
  grid-template-columns: 0.74fr;
  gap: 16px;
}
.feature-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.feature-gallery .tall { grid-row: span 2; }

.features-outro { margin-top: 40px; color: var(--text-muted); max-width: 780px; }

/* Gameplay / how to play */
.gameplay-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}
.gameplay-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.gameplay-visual img { width: 100%; }
.gameplay-steps { display: flex; flex-direction: column; gap: 26px; }
.gameplay-steps .step { position: relative; padding-left: 46px; }
.gameplay-steps .step .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-2);
  border-radius: 8px;
  color: var(--accent-2);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.gameplay-steps .step p { color: var(--text-muted); font-size: 15.5px; }

/* Reviews */
.reviews-band {
  position: relative;
  margin-top: 50px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.reviews-band img { width: 100%; height: 260px; object-fit: cover; filter: brightness(0.55); }
.reviews-band .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.reviews-band .caption p {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text);
  max-width: 560px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.review-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.review-card .quote-mark {
  font-family: var(--font-head);
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.review-card p { color: var(--text-muted); font-size: 15px; }

/* Support */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}
.support-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
}
.support-card p { color: var(--text-muted); margin-bottom: 20px; }
.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 4px;
}
.support-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.support-icon-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.final-cta .section-title { margin: 0 auto 18px; }
.final-cta .section-lead { margin: 0 auto 34px; }
.final-cta .btn { margin: 0 auto; }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy { color: var(--text-muted); font-size: 13px; }

/* Legal pages */
.legal-page { padding: 160px 0 100px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 {
  font-size: 36px;
  margin-bottom: 28px;
}
.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--accent-2);
}
.legal-content h3 {
  font-size: 17px;
  margin: 20px 0 10px;
  color: var(--text);
}
.legal-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 15.5px; }
.legal-content ul, .legal-content ol { color: var(--text-muted); margin: 0 0 14px 22px; font-size: 15.5px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent-2); text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-layout,
  .gameplay-layout,
  .support-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn-outline { display: none; }
  .burger-btn { display: block; }
  .section { padding: 70px 0; }
  .hero { padding: 140px 0 80px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .feature-gallery { grid-template-columns: 1fr 1fr; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .feature-gallery .tall { grid-row: auto; }
  #mobile-menu a { padding: 10px 20px; }
}
