:root {
  color-scheme: dark;
  --ink: #f7f8ff;
  --muted: #aeb6d6;
  --night: #05091d;
  --night-2: #0a1030;
  --panel: rgba(18, 27, 69, .78);
  --panel-solid: #111a43;
  --line: rgba(130, 151, 235, .28);
  --cyan: #18d9f6;
  --violet: #9c55ff;
  --gold: #ffbf2f;
  --pink: #ff4fc4;
  --green: #44e598;
  --red: #ff6578;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --radius: 28px;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(58, 58, 210, .23), transparent 27rem),
    radial-gradient(circle at 88% 20%, rgba(0, 206, 255, .13), transparent 30rem),
    linear-gradient(180deg, #05091d 0%, #090d27 52%, #050817 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(30deg, transparent 48.8%, rgba(72, 124, 255, .18) 49.5%, transparent 50.2%),
    linear-gradient(150deg, transparent 48.8%, rgba(72, 124, 255, .14) 49.5%, transparent 50.2%);
  background-size: 92px 160px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}

a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: white; color: #07102e; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(5, 9, 29, .76);
  border-bottom: 1px solid rgba(119, 143, 230, .14);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 850; letter-spacing: .02em; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 25px rgba(24, 217, 246, .35); }
.brand em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; }
.menu-button { display: none; border: 1px solid var(--line); background: var(--panel); color: white; border-radius: 14px; width: 44px; height: 44px; }

.hero { padding: 78px 0 86px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; }
.eyebrow { color: var(--cyan); letter-spacing: .16em; text-transform: uppercase; font-size: .77rem; font-weight: 850; }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3.4rem, 7vw, 7.2rem); letter-spacing: -.065em; max-width: 9ch; }
.gradient-text { color: transparent; background: linear-gradient(100deg, #fff 0%, #b8e8ff 34%, var(--cyan) 58%, #b56dff 78%, var(--gold) 100%); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); max-width: 580px; margin: 26px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px; border-radius: 16px; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #111; background: linear-gradient(180deg, #ffe36a, var(--gold)); box-shadow: 0 12px 32px rgba(255, 191, 47, .24); }
.button.secondary { border-color: rgba(24, 217, 246, .45); background: rgba(24, 217, 246, .08); color: #dffbff; }
.button.danger { background: var(--red); color: #160006; }
.store-note { color: #7883ae; font-size: .86rem; margin-top: 13px; }
.hero-art { position: relative; min-height: 640px; max-width: 600px; width: 100%; margin-inline: auto; }
.hero-orbit { position: absolute; inset: 7% 0 auto 4%; width: 94%; aspect-ratio: 1; border: 1px solid rgba(24, 217, 246, .2); border-radius: 50%; transform: rotate(-12deg); box-shadow: 0 0 80px rgba(114, 65, 255, .17) inset; }
.phone { position: absolute; width: clamp(200px, 45%, 260px); aspect-ratio: 9 / 20; border: 7px solid #101529; border-radius: 38px; overflow: hidden; background: #05091d; box-shadow: var(--shadow), 0 0 0 1px rgba(172, 192, 255, .25), 0 0 70px rgba(24, 217, 246, .16); }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.phone.front { right: 8%; top: 8px; transform: rotate(1.5deg); z-index: 2; }
.phone.back { left: 8%; top: 68px; transform: rotate(-3deg); opacity: .86; }
.float-card { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; z-index: 3; padding: 14px 18px; border-radius: 18px; border: 1px solid rgba(255, 191, 47, .46); background: rgba(12, 18, 50, .94); box-shadow: 0 14px 40px rgba(0,0,0,.35); font-weight: 800; }
.float-card strong { color: var(--gold); }

.section { padding: 94px 0; }
.section.compact { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-head h2, .page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -.045em; }
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .stat-card, .legal-card, .leader-card, .auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(25, 35, 82, .86), rgba(10, 16, 50, .78));
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
}
.feature-card { padding: 28px; min-height: 260px; position: relative; overflow: hidden; }
.feature-card::after { content:""; position:absolute; width:130px; height:130px; border-radius:50%; right:-60px; bottom:-60px; background: var(--glow, var(--cyan)); filter: blur(48px); opacity:.18; }
.feature-card .icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; font-size: 1.8rem; color: var(--glow, var(--cyan)); background: color-mix(in srgb, var(--glow, var(--cyan)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--glow, var(--cyan)) 45%, transparent); }
.feature-card h3 { font-size: 1.5rem; margin-top: 24px; }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.shot { border-radius: 32px; overflow: hidden; border: 1px solid rgba(130, 151, 235, .33); box-shadow: var(--shadow); background: #070b20; }
.shot:nth-child(2) { margin-top: 58px; }
.shot img { display: block; width: 100%; }
.formation-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.formation { text-align: center; padding: 24px 12px; border-radius: 22px; border: 1px solid var(--line); background: rgba(14, 22, 60, .7); }
.formation b { display:block; margin-top: 14px; }
.formation small { color: var(--muted); }
.formation-mark { height: 76px; display:flex; align-items:center; justify-content:center; filter: drop-shadow(0 0 15px currentColor); color: var(--color, var(--cyan)); font-size: 3.4rem; }
.cta-panel { padding: clamp(30px, 6vw, 68px); border-radius: 38px; border: 1px solid rgba(24,217,246,.3); background: radial-gradient(circle at 80% 20%, rgba(156,85,255,.24), transparent 40%), linear-gradient(135deg, #101a4d, #080d29); text-align:center; box-shadow: var(--shadow); }
.cta-panel h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.cta-panel p { color: var(--muted); max-width: 640px; margin: 20px auto 28px; }

.page-hero { padding: 86px 0 38px; text-align: center; }
.page-hero h1 { max-width: 850px; margin-inline: auto; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 20px auto 0; }
.legal { width: min(850px, calc(100% - 40px)); margin: 30px auto 100px; }
.legal-card { padding: clamp(26px, 5vw, 56px); }
.legal-card h2 { font-size: 1.55rem; margin-top: 38px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #c2c9e3; }
.legal-card a { color: var(--cyan); }
.legal-card .effective { color: var(--gold); font-weight: 750; }

.leaderboard-wrap { width: min(860px, calc(100% - 40px)); margin: 22px auto 100px; }
.tabs { display:flex; gap:10px; padding:8px; border:1px solid var(--line); background:rgba(12,18,50,.7); border-radius:20px; }
.tab { flex:1; min-height:48px; color:var(--muted); background:transparent; border:0; border-radius:14px; font-weight:800; }
.tab.active { color:#081021; background:linear-gradient(180deg,#7ff2ff,var(--cyan)); }
.periods { display:flex; justify-content:center; gap:10px; margin:16px 0 24px; }
.period { background:transparent; color:var(--muted); border:1px solid var(--line); padding:8px 14px; border-radius:99px; }
.period.active { color:white; border-color:var(--violet); background:rgba(156,85,255,.14); }
.leader-list { display:grid; gap:12px; }
.leader-card { padding:17px 20px; display:grid; grid-template-columns:56px 1fr auto; align-items:center; gap:14px; }
.rank { width:46px; height:46px; display:grid; place-items:center; border-radius:50%; background:#202b5d; font-weight:900; }
.leader-card:nth-child(1) .rank { color:#1d1500; background:linear-gradient(180deg,#ffe475,var(--gold)); box-shadow:0 0 25px rgba(255,191,47,.25); }
.leader-card:nth-child(2) .rank { color:#171b2c; background:#cbd7ef; }
.leader-card:nth-child(3) .rank { color:#2a1607; background:#d79565; }
.player-name { font-weight:850; }
.player-meta { color:var(--muted); font-size:.83rem; }
.player-score { color:var(--gold); font-weight:900; text-align:right; }
.status { text-align:center; color:var(--muted); padding:46px 16px; }

.support-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.support-item { padding:26px; border:1px solid var(--line); border-radius:22px; background:rgba(17,26,67,.72); }
.support-item h2 { font-size:1.25rem; }
.support-item p { color:var(--muted); margin-bottom:0; }

.form-field { display:grid; gap:8px; margin:18px 0; }
.form-field label { color:var(--muted); font-weight:700; }
.form-field input { min-height:52px; border:1px solid var(--line); border-radius:14px; background:#080e2c; color:white; padding:0 16px; }
.notice { padding:16px 18px; border-radius:15px; background:rgba(24,217,246,.08); border:1px solid rgba(24,217,246,.28); color:#c8f8ff; }
.notice.error { background:rgba(255,101,120,.08); border-color:rgba(255,101,120,.4); color:#ffd9df; }
.auth-card { width:min(560px,100%); margin:0 auto; padding:32px; }

.dashboard { width:min(1180px,calc(100% - 40px)); margin:20px auto 100px; }
.dashboard-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:22px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stat-card { padding:22px; }
.stat-card span { color:var(--muted); font-size:.83rem; }
.stat-card strong { display:block; font-size:2rem; margin-top:4px; }
.chart-card { margin-top:18px; padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(17,26,67,.74); overflow:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:640px; }
.data-table th,.data-table td { text-align:left; padding:13px 12px; border-bottom:1px solid rgba(130,151,235,.15); }
.data-table th { color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }

.dashboard-head p { color:var(--muted); margin:8px 0 0; }
.insight-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.insight-card { position:relative; min-height:190px; overflow:hidden; padding:24px; border-radius:26px; border:1px solid color-mix(in srgb,var(--accent,var(--cyan)) 34%,transparent); background:linear-gradient(155deg,color-mix(in srgb,var(--accent,var(--cyan)) 12%,#111a43),rgba(8,13,41,.92)); }
.insight-card::after { content:""; position:absolute; width:120px; height:120px; right:-35px; bottom:-55px; border-radius:50%; background:var(--accent,var(--cyan)); opacity:.15; filter:blur(32px); }
.insight-question { display:block; color:var(--muted); font-size:.78rem; font-weight:780; letter-spacing:.045em; text-transform:uppercase; }
.insight-value { display:block; font-size:clamp(2.1rem,4vw,3.25rem); line-height:1; margin:16px 0 12px; color:var(--accent,var(--cyan)); letter-spacing:-.05em; }
.insight-answer { color:#d9def1; font-size:.92rem; margin:0; }
.analytics-stats { margin-bottom:18px; }
.analytics-stats .stat-card strong { font-size:1.65rem; }
.analytics-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.chart-panel { margin:0; min-height:380px; }
.chart-panel.wide { grid-column:1 / -1; }
.chart-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.chart-kicker { color:var(--cyan); font-size:.72rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.chart-heading h2 { font-size:1.35rem; margin-top:5px; }
.legend { display:flex; flex-wrap:wrap; gap:14px; color:var(--muted); font-size:.78rem; }
.legend span { display:flex; align-items:center; gap:6px; }
.legend i { width:9px; height:9px; border-radius:50%; background:var(--legend); box-shadow:0 0 12px var(--legend); }
.chart-canvas { min-height:275px; display:grid; place-items:center; }
.chart-canvas svg { width:100%; height:auto; overflow:visible; }
.chart-axis { stroke:rgba(160,178,238,.17); stroke-width:1; }
.chart-label { fill:#8994bb; font:11px Inter,system-ui,sans-serif; }
.chart-value { fill:#f7f8ff; font:700 11px Inter,system-ui,sans-serif; }
.chart-note { color:#858fb4; font-size:.77rem; margin:12px 0 0; }
.empty-chart { color:var(--muted); text-align:center; padding:70px 20px; }
.bar-chart { display:grid; gap:20px; padding-top:10px; }
.mode-row { display:grid; grid-template-columns:110px 1fr 70px; align-items:center; gap:12px; }
.mode-label { font-weight:800; text-transform:capitalize; }
.bar-track { height:18px; border-radius:99px; background:rgba(132,148,210,.13); overflow:hidden; }
.bar-fill { height:100%; min-width:3px; border-radius:inherit; background:linear-gradient(90deg,var(--bar),color-mix(in srgb,var(--bar) 55%,white)); box-shadow:0 0 20px color-mix(in srgb,var(--bar) 45%,transparent); }
.mode-value { text-align:right; color:var(--muted); font-size:.86rem; }
.mode-sub { grid-column:2 / 4; color:#7f89ae; font-size:.76rem; margin-top:-8px; }
.funnel-chart { display:grid; gap:9px; max-height:470px; overflow:auto; padding-right:8px; }
.funnel-row { display:grid; grid-template-columns:76px 1fr 72px; gap:12px; align-items:center; }
.funnel-stage { color:var(--muted); font-size:.8rem; }
.funnel-track { height:14px; border-radius:99px; background:rgba(132,148,210,.13); overflow:hidden; }
.funnel-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--violet),var(--cyan)); }
.funnel-value { font-size:.78rem; text-align:right; }
.retention-panel { display:grid; grid-template-columns:1fr 1.25fr; gap:32px; align-items:center; margin-top:18px; padding:30px; border:1px solid var(--line); border-radius:var(--radius); background:radial-gradient(circle at 80% 30%,rgba(156,85,255,.16),transparent 40%),rgba(17,26,67,.75); }
.retention-panel p { color:var(--muted); }
.retention-meters { display:grid; gap:18px; }
.retention-meter-head { display:flex; justify-content:space-between; gap:15px; font-size:.86rem; }
.retention-meter-head strong { color:var(--gold); }
.retention-track { height:12px; margin-top:8px; border-radius:99px; overflow:hidden; background:rgba(132,148,210,.14); }
.retention-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--cyan),var(--violet)); }
.methodology { margin-top:18px; padding:18px 22px; border:1px solid rgba(130,151,235,.18); border-radius:18px; color:var(--muted); }
.methodology summary { color:#dce2f7; cursor:pointer; font-weight:750; }

.site-footer { border-top:1px solid rgba(130,151,235,.17); padding:44px 0; color:var(--muted); }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:32px; }
.footer-grid h3 { color:white; font-size:1rem; margin-bottom:12px; }
.footer-grid a { display:block; text-decoration:none; margin:7px 0; }
.footer-grid a:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(130,151,235,.12); margin-top:28px; padding-top:20px; font-size:.84rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-art { min-height:600px; max-width:560px; width:100%; margin:10px auto 0; }
  .grid-3 { grid-template-columns:1fr; }
  .gallery { gap:14px; }
  .formation-row { grid-template-columns:repeat(3,1fr); }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .insight-grid { grid-template-columns:repeat(2,1fr); }
  .retention-panel { grid-template-columns:1fr; }
}

@media (max-width: 700px) {
  .shell { width:min(100% - 28px,1180px); }
  .nav-links { position:absolute; top:76px; left:14px; right:14px; padding:18px; flex-direction:column; align-items:stretch; border:1px solid var(--line); border-radius:18px; background:#0b1234; box-shadow:var(--shadow); display:none; }
  .nav-links.open { display:flex; }
  .menu-button { display:block; }
  .hero { padding-top:48px; }
  .hero-art { min-height:500px; }
  .phone { width:48%; min-width:0; border-width:5px; border-radius:28px; }
  .phone.front { right:7%; }
  .phone.back { left:7%; top:50px; }
  .float-card { bottom:0; font-size:.78rem; padding:11px 14px; }
  .section { padding:68px 0; }
  .section-head { display:block; }
  .section-head p { margin-top:16px; }
  .gallery { grid-template-columns:1fr 1fr; }
  .gallery .shot:last-child { display:none; }
  .shot:nth-child(2) { margin-top:40px; }
  .formation-row { grid-template-columns:1fr 1fr; }
  .support-grid { grid-template-columns:1fr; }
  .leader-card { grid-template-columns:48px 1fr; }
  .player-score { grid-column:2; text-align:left; }
  .footer-grid { grid-template-columns:1fr; }
  .tabs { overflow:auto; }
  .tab { min-width:110px; }
  .insight-grid,.analytics-grid { grid-template-columns:1fr; }
  .chart-panel.wide { grid-column:auto; }
  .mode-row { grid-template-columns:90px 1fr 58px; }
  .insight-card { min-height:160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
