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

:root {
  --primary: #7c5cff;
  --accent: #4ff5d1;
  --gold: #ffcf6b;
  --bg: #0a0b1f;
  --bg-alt: #12142e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #f1efff;
  --text-muted: #a7a3c9;
  --border: rgba(255, 255, 255, 0.09);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

html, body { background: var(--bg); }

body {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}

h2 { font-size: 2.4rem; margin-bottom: 1.25rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn--primary {
  background: var(--gradient);
  color: #0a0b1f;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
  animation: floatBtn 3s ease-in-out infinite;
}
.btn--primary:hover { animation-play-state: paused; transform: translateY(-4px); box-shadow: 0 14px 34px rgba(79, 245, 209, 0.4); }

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

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
header.scrolled {
  background: rgba(10, 11, 31, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 34px; }

.nav-desktop { display: flex; gap: 34px; }

.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1101;
}
.burger-btn span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .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); }

#mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; width: 100%;
  height: 100vh;
  z-index: 1050;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 1.4rem; }

body.fixed { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,11,31,0.92) 10%, rgba(10,11,31,0.55) 55%, rgba(10,11,31,0.25) 100%),
              linear-gradient(0deg, rgba(10,11,31,0.9), transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; }
.hero h1 {
  font-size: 3.6rem;
  max-width: 700px;
  margin-bottom: 1.3rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  max-width: 560px;
  color: var(--text-muted);
}
.hero-img {
  flex-shrink: 0;
  width: 320px;
}
.hero-img img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
}
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  animation: floatBtn 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; }

/* Content sections */
.content-section {
  padding: 110px 24px;
  background: var(--bg);
  position: relative;
}
.content-section--alt { background: var(--bg-alt); }

.content-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.content-grid--reverse { direction: rtl; }
.content-grid--reverse > * { direction: ltr; }

.content-text h2 { font-size: 2.2rem; }

.content-image img {
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

.feature-list {
  margin: 1.6rem 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px var(--accent);
}
.feature-list--light li { color: rgba(241,239,255,0.88); }

/* Upgrades section */
.upgrades-section {
  position: relative;
  padding: 130px 24px;
  overflow: hidden;
}
.upgrades-bg, .upgrades-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.upgrades-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,31,0.55), rgba(10,11,31,0.92) 65%, var(--bg) 100%);
}
.upgrades-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.upgrades-content h2 { font-size: 2.5rem; }
.upgrades-content p { color: rgba(241,239,255,0.82); text-align: left; }
.upgrades-content .feature-list {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
  backdrop-filter: blur(6px);
}
.upgrades-content .btn { margin-top: 2rem; }

/* Footer */
footer {
  position: relative;
  padding: 70px 24px 30px;
  overflow: hidden;
}
.footer-bg, .footer-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.footer-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 11, 31, 0.88);
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-inner .logo img { height: 30px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.footer-nav .nav-link { font-size: 0.92rem; }
.footer-nav--legal {
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-nav--legal .nav-link { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav--legal .nav-link:hover { color: var(--text); }
.footer-contact a {
  color: var(--accent);
  font-weight: 700;
}
.footer-contact a:hover { color: var(--primary); }
.footer-copy { font-size: 0.85rem; color: rgba(167,163,201,0.65); }

/* Legal pages */
.legal-page { padding: 160px 24px 100px; max-width: 860px; margin: 0 auto; }
.legal-page h1 { font-size: 2.4rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.4rem 0 0.6rem; color: var(--text); }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.4rem; list-style: disc; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.legal-content a:hover,
.legal-content a:focus-visible { color: var(--primary); text-decoration-color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.9rem; }
  .hero-img { width: 240px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid--reverse { direction: ltr; }
  .content-grid--reverse .content-image { order: -1; }
  h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }
  .hero { min-height: 92vh; }
  .hero h1 { font-size: 2.3rem; }
  .hero-content { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .hero-text { order: 2; }
  .hero-img { order: 1; width: 180px; }
  .hero-subtitle { max-width: none; }
  .content-section { padding: 80px 20px; }
  .upgrades-section { padding: 90px 20px; }
  .upgrades-content h2 { font-size: 2rem; }
  .legal-page { padding: 130px 20px 70px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1.05rem; }
  h2 { font-size: 1.7rem; }
  .btn { padding: 13px 26px; font-size: 0.92rem; }
  .footer-nav { gap: 16px 20px; }
}
