/* ArenaX landing page */
:root {
  --bg: #0b0d1a;
  --bg-soft: #12152a;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #9aa0c3;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --gold: #ffb020;
  --green: #34d399;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Background glow */
.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { background: var(--violet); top: -160px; left: -140px; }
.bg-glow-2 { background: var(--cyan); bottom: -200px; right: -160px; opacity: 0.18; }

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 28px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo i { color: var(--gold); margin-right: 6px; }
.logo span { color: var(--violet); }
.tagline {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #c9bdff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.pill i { color: var(--gold); }

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.grad {
  background: linear-gradient(90deg, var(--gold), #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 22px;
}

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
}
.badge i { color: var(--cyan); }

/* Buttons */
.download-area { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #5b8cff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(124, 92, 255, 0.55); }

.btn-store {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn-store strong { font-weight: 700; }
.btn-store:hover { background: rgba(255, 255, 255, 0.08); }
.store-icon { border-radius: 6px; object-fit: contain; }

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #1a1200; }

.info-text { color: var(--muted); font-size: 0.85rem; }
.info-text i { color: var(--green); margin-right: 6px; }

/* Phone mock */
.hero-mock { display: flex; justify-content: center; }
.phone {
  width: 270px;
  padding: 12px;
  border-radius: 38px;
  background: linear-gradient(160deg, #22264a, #10132a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 92, 255, 0.25);
  transform: rotate(3deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.phone-notch {
  width: 70px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px auto 10px;
}
.phone-screen {
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 18px 16px 20px;
  min-height: 380px;
}
.screen-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 18px;
}
.screen-head i { color: var(--gold); }
.live {
  margin-left: auto;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 80, 80, 0.16);
  color: #ff7b7b;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.team { display: flex; align-items: center; gap: 8px; }
.team.right { justify-content: flex-end; }
.score { font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: var(--violet); }
.d2 { background: var(--cyan); }
.d3 { background: var(--gold); }
.d4 { background: var(--green); }

.progress { margin-top: 22px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar-fill {
  width: 60%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 56px;
}
.feature {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.5); }
.f-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.16);
  color: var(--violet);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Bottom CTA */
.bottom-cta {
  text-align: center;
  padding: 44px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.bottom-cta h2 { font-size: 1.7rem; margin-bottom: 8px; }
.bottom-cta h2 i { color: var(--cyan); margin-right: 8px; }
.bottom-cta p { color: var(--muted); margin-bottom: 22px; }

/* Footer */
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 14px;
}
.footer-legal-links a { transition: color 0.15s ease; }
.footer-legal-links a:hover { color: var(--gold); }

/* Toast */
.toast-message {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px);
  padding: 12px 22px;
  border-radius: 12px;
  background: #1c2040;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast-message.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; text-align: center; padding-top: 8px; }
  .lead { margin-left: auto; margin-right: auto; }
  .badges, .download-area { justify-content: center; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 2px; }
  .btn { width: 100%; }
  .phone { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
