:root {
  --obsidian: #05050A;
  --charcoal: #12121A;
  --teal: #00F2FE;
  --violet: #9B51E0;
  --gold: #F2C94C;
  --lime: #7ee787;
  --text-primary: #F4F4F8;
  --text-muted: #9A9AB0;
  --border: rgba(255,255,255,0.08);
  --grad: linear-gradient(90deg, var(--teal), var(--violet));
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--text-primary);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,10,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.5px; }
.brand-icon { filter: drop-shadow(0 0 6px var(--violet)); font-size: 1.2rem; }
.brand-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #05050A;
  border-radius: 999px;
  padding: 18px 44px;
  font-size: 1.1rem;
  box-shadow: 0 0 24px rgba(0,242,254,0.35), 0 0 40px rgba(155,81,224,0.25);
}

.btn-primary:hover { transform: translateY(-2px) scale(1.03); }

.btn-header {
  background: var(--grad);
  color: #05050A;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  box-shadow: 0 0 14px rgba(0,242,254,0.3);
}
.btn-header:hover { transform: translateY(-1px); }

.pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(0,242,254,0.35), 0 0 40px rgba(155,81,224,0.25); }
  50% { box-shadow: 0 0 40px rgba(0,242,254,0.6), 0 0 64px rgba(155,81,224,0.45); }
}

.btn-lg { font-size: 1.2rem; padding: 20px 52px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 90px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-teal { background: var(--teal); top: -150px; left: -100px; }
.hero-glow-violet { background: var(--violet); top: 100px; right: -150px; }

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.friction-reducer {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- VIDEO / PHONE MOCK ---------- */
.video-placeholder { margin-top: 60px; }

.phone-mock {
  position: relative;
  width: 280px;
  margin: 0 auto;
  background: var(--charcoal);
  border: 2px solid var(--border);
  border-radius: 36px;
  padding: 18px 14px;
  box-shadow: 0 0 60px rgba(0,242,254,0.12), 0 0 100px rgba(155,81,224,0.1);
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  margin: 0 auto 14px;
}

.phone-screen {
  background: linear-gradient(160deg, #0c0c16, #060609);
  border-radius: 18px;
  padding: 18px 12px;
  min-height: 320px;
}

.splash-swords {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px var(--violet));
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.lobby-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.tab {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.tab.active.tab-free { background: rgba(126,231,135,0.15); color: var(--lime); }
.tab-stars { color: var(--gold); }
.tab-ton { color: var(--teal); }

.lobby-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.lobby-card.hot { border-color: rgba(242,201,76,0.4); }

.lobby-badge {
  background: var(--gold);
  color: #05050A;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

.video-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 50px;
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.step {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #05050A;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- TAB SWITCHER ---------- */
.tab-switcher {
  max-width: 640px;
  margin: 0 auto;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px;
}

.tab-switcher-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.tsw-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tsw-btn.active[data-tab="free"] { background: rgba(126,231,135,0.15); color: var(--lime); }
.tsw-btn.active[data-tab="stars"] { background: rgba(242,201,76,0.15); color: var(--gold); }
.tsw-btn.active[data-tab="ton"] { background: rgba(0,242,254,0.15); color: var(--teal); }

.tab-switcher-panel { position: relative; padding: 30px 24px; min-height: 110px; }
.tsw-content { display: none; text-align: center; animation: fadeIn 0.3s ease; }
.tsw-content.show { display: block; }
.tsw-content h4 { font-size: 1.2rem; margin-bottom: 10px; }
.tsw-content p { color: var(--text-muted); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- GAME MODES ---------- */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mode-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 26px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.mode-card:hover { transform: translateY(-6px); border-color: rgba(0,242,254,0.4); }

.mode-card-hot { border-color: rgba(242,201,76,0.35); }

.hot-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: #05050A;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.mode-icon { font-size: 2.2rem; margin-bottom: 16px; }
.mode-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.mode-players {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.mode-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- TRUST ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.trust-item {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}

.trust-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.trust-item h4 { margin-bottom: 10px; font-size: 1.1rem; }
.trust-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- SOCIAL PROOF ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-bottom: 60px;
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.testimonial {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 26px;
}

.testimonial p { font-style: italic; margin-bottom: 14px; color: var(--text-primary); }
.testimonial cite { color: var(--text-muted); font-size: 0.85rem; font-style: normal; }

/* ---------- DEVICE COMPARE ---------- */
.device-compare {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.device-mock {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.device-mobile { width: 220px; }
.device-desktop { width: 340px; }

.mini-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--violet);
  margin-bottom: 14px;
}

.lobby-card.small { padding: 8px 10px; font-size: 0.7rem; }

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.leaderboard-row:last-child { border-bottom: none; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(155,81,224,0.12), transparent 60%);
  border-radius: 24px;
}

.cta-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.disclaimer {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.75;
}

.social-amp { margin-top: 50px; }
.social-amp-text { color: var(--text-primary); font-weight: 600; margin-bottom: 16px; }

.social-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.social-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .steps, .mode-cards, .trust-grid, .testimonials, .stats-row { grid-template-columns: 1fr; }
  .device-compare { flex-direction: column; align-items: center; }
  .device-mobile, .device-desktop { width: 100%; max-width: 320px; }
}

@media (max-width: 500px) {
  .header-inner { padding: 12px 16px; }
  .btn-header { padding: 8px 16px; font-size: 0.85rem; }
  .hero { padding: 60px 16px 40px; }
  .btn-lg { padding: 16px 36px; font-size: 1rem; }
  .section { padding: 60px 16px; }
}
