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

:root {
  --bg: #07121d;
  --bg-2: #0c1f2f;
  --bg-3: #112a3f;
  --panel: rgba(18, 44, 64, 0.55);
  --panel-border: rgba(79, 217, 255, 0.18);
  --primary: #4FD9FF;
  --azure: #1E5A8A;
  --turquoise: #7CF2D4;
  --gold: #FFB347;
  --ember: #FF6B4A;
  --violet: #D95CFF;
  --grove: #A8FF6A;
  --heading: #ffffff;
  --text: #cfe6f2;
  --muted: #8fb0c4;
  --cta-grad: linear-gradient(135deg, #4FD9FF 0%, #7CF2D4 100%);
  --gold-grad: linear-gradient(135deg, #FFB347 0%, #FF6B4A 100%);
  --font-head: 'Cinzel', serif;
  --font-body: 'Nunito', sans-serif;
  --header-h: 80px;
  --maxw: 1200px;
}

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

html.hide #preloader { display: none; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .logo-text {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
}

.accent { color: var(--primary); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader img { width: 64px; height: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cta-grad);
  color: #06222e;
  box-shadow: 0 8px 24px rgba(79, 217, 255, 0.35);
  animation: btn-pulse 2.4s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(79, 217, 255, 0.5);
  animation-play-state: paused;
}
@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); box-shadow: 0 12px 30px rgba(79, 217, 255, 0.5); }
}
.btn-gold {
  background: var(--gold-grad);
  color: #2a1405;
  box-shadow: 0 8px 24px rgba(255, 130, 74, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(79, 217, 255, 0.08);
  color: var(--primary);
  border: 1.5px solid rgba(79, 217, 255, 0.4);
}
.btn-ghost:hover { background: rgba(79, 217, 255, 0.16); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1100;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.header.scrolled {
  background: rgba(7, 18, 29, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--cta-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 220px;
  line-height: 1.25;
  padding-bottom: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }
.logo.nav-link::after,
.btn.nav-link::after { display: none; }
.logo.nav-link:hover { color: inherit; }
.header-cta { flex-shrink: 0; }
.header .btn { padding: 11px 22px; font-size: 14px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s 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 ---------- */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 29, 0.98);
  backdrop-filter: blur(14px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding-top: calc(var(--header-h) + 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 22px; font-family: var(--font-head); }
#mobile-menu .btn { margin-top: 12px; }

/* ---------- Section base ---------- */
section { position: relative; }
.sec {
  padding: 100px 0;
  position: relative;
}
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--turquoise);
  margin-bottom: 16px;
}
.sec h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background:
    linear-gradient(180deg, rgba(7,18,29,0.72) 0%, rgba(7,18,29,0.88) 100%),
    url('../img/hero-bg.webp') center/cover no-repeat fixed;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,242,212,0.18), transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: 18px;
  font-weight: 700;
  color: var(--turquoise);
  margin-bottom: 18px;
}
.hero-text { font-size: 16.5px; color: var(--text); margin-bottom: 30px; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 9px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.pill b { color: var(--gold); }
.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img::before {
  content: '';
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(circle, rgba(79,217,255,0.28), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-img img {
  position: relative;
  z-index: 1;
  max-height: 560px;
  width: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about .container,
.world .container { max-width: 1320px; }
.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.18fr 0.82fr; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 55%, rgba(79,217,255,0.14));
  pointer-events: none;
}
.split-text h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 22px; }
.split-text p { color: var(--text); margin-bottom: 16px; font-size: 16.5px; }
.split-text p:last-child { margin-bottom: 0; }

/* ---------- World / Story ---------- */
.world {
  background:
    linear-gradient(180deg, rgba(7,18,29,0.82), rgba(7,18,29,0.94)),
    radial-gradient(circle at 20% 30%, rgba(217,92,255,0.12), transparent 50%),
    var(--bg);
}
.world .split-text p strong { color: var(--turquoise); font-weight: 800; }

/* ---------- How it works ---------- */
.how { background: var(--bg-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 32px 26px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(79,217,255,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.step-num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: var(--cta-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  display: block;
}
.step h3 { font-size: 20px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Why players stay ---------- */
.why { background: var(--bg); }
.why-intro { max-width: 820px; margin: 0 auto 36px; text-align: center; color: var(--text); font-size: 17px; }
.why-banner {
  max-width: 980px;
  margin: 0 auto 48px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  position: relative;
}
.why-banner img { width: 100%; height: 340px; object-fit: cover; }
.why-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,18,29,0.55));
  pointer-events: none;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: linear-gradient(160deg, rgba(18,44,64,0.7), rgba(12,31,47,0.5));
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(124,242,212,0.5); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(124,242,212,0.12);
  border: 1px solid rgba(124,242,212,0.3);
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 10px; color: var(--turquoise); }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Facts ---------- */
.facts { background: var(--bg-2); }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fact-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 3px;
  background: var(--gold-grad);
  border-radius: 0 0 4px 4px;
}
.fact-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,0.4); }
.fact-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}
.fact-value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 110px 0;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7,18,29,0.6), rgba(7,18,29,0.92)),
    url('../img/footer-bg.webp') center/cover no-repeat;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(79,217,255,0.18), transparent 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(28px, 4.5vw, 48px); margin-bottom: 18px; }
.final-cta p { color: var(--text); font-size: 18px; max-width: 620px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  font-size: 16px;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--muted); font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal-page {
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: var(--bg);
}
.legal-content { max-width: 880px; margin: 0 auto; }
.legal-content h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 36px;
  text-align: center;
}
.legal-content h2 {
  font-size: 21px;
  color: var(--primary);
  margin: 34px 0 14px;
}
.legal-content p { color: var(--text); margin-bottom: 16px; font-size: 16px; }
.legal-content a { color: var(--turquoise); font-weight: 700; }
.legal-content a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .burger-btn { display: block; }
  .steps, .features, .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { gap: 28px; }
}

@media (max-width: 768px) {
  .sec { padding: 72px 0; }
  .hero { padding-top: calc((var(--header-h) + 24px) / 1.5); background-attachment: scroll; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-img { order: 1; }
  .hero-img img { max-height: 360px; }
  .hero-btns, .pills { justify-content: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .steps, .features, .fact-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 14px; max-width: 200px; letter-spacing: 0.2px; }
  .logo img { width: 38px; height: 38px; }
  .btn { font-size: 15px; padding: 13px 24px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .why-banner img { height: 220px; }
}
