/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0D1B2A;
  --bg-alt:    #0A1520;
  --bg-card:   rgba(255,255,255,.04);
  --border:    rgba(255,255,255,.08);
  --blue:      #4FC3F7;
  --green:     #81C784;
  --purple:    #CE93D8;
  --amber:     #FFB74D;
  --red:       #EF5350;
  --text:      #E8F0FE;
  --muted:     rgba(232,240,254,.55);
  --radius:    14px;
  --max-w:     1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,42,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.5px;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: opacity .2s, transform .15s;
  cursor: pointer;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

.btn-primary {
  background: var(--blue);
  color: #0a1520;
}

.btn-ghost {
  background: rgba(79,195,247,.1);
  color: var(--blue);
  border: 1px solid rgba(79,195,247,.3);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 4rem;
}

.hero-inner { flex: 1; max-width: 540px; }

.hero-badge {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 100px;
  background: rgba(79,195,247,.12);
  border: 1px solid rgba(79,195,247,.25);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
}
.accent { color: var(--blue); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { flex: 1; display: flex; justify-content: center; }

/* ── Phone mockup ─────────────────────────────────────────────────────────── */
.phone-mockup {
  width: 280px;
  background: #0f1e2e;
  border-radius: 32px;
  border: 2px solid rgba(255,255,255,.12);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.phone-screen { display: flex; flex-direction: column; gap: .75rem; }

.mockup-header {
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue);
  text-align: center;
  margin-bottom: .25rem;
}

.mockup-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: 10px;
}
.mockup-card.blue   { background: rgba(79,195,247,.1);  border: 1px solid rgba(79,195,247,.2); }
.mockup-card.green  { background: rgba(129,199,132,.1); border: 1px solid rgba(129,199,132,.2); }
.mockup-card.purple { background: rgba(206,147,216,.1); border: 1px solid rgba(206,147,216,.2); }
.mockup-card.amber  { background: rgba(255,183,77,.1);  border: 1px solid rgba(255,183,77,.2); }

.mockup-icon { font-size: 1.4rem; flex-shrink: 0; }
.mockup-label { font-weight: 600; font-size: .85rem; }
.mockup-sub   { font-size: .72rem; color: var(--muted); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 6rem 1.5rem; }
.section.alt { background: var(--bg-alt); }
.section.cta-section { background: rgba(79,195,247,.04); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-inner.center { text-align: center; }

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

/* ── Features grid ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s;
}
.feature-card:hover { border-color: rgba(79,195,247,.3); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p { font-size: .9rem; color: var(--muted); }

/* ── Two-col layout ───────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1rem;
}

.check-list li {
  padding-left: 1.75rem;
  position: relative;
  font-size: .95rem;
  color: var(--muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ── Mat preview ──────────────────────────────────────────────────────────── */
.mat-preview {
  background: #0a1c2e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: hidden;
}

.mat-label {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.mat-grid {
  position: relative;
  height: 180px;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 29px, rgba(255,255,255,.05) 30px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 29px, rgba(255,255,255,.05) 30px
  );
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  margin-bottom: .75rem;
}

.mat-athlete {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transform: translate(-50%, -50%);
  font-weight: 700;
}
.mat-athlete.flyer { background: rgba(79,195,247,.2); color: var(--blue); border: 2px solid var(--blue); }
.mat-athlete.base  { background: rgba(239,83,80,.2);  color: var(--red);  border: 2px solid var(--red); }
.mat-athlete.dot   { background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--border); }

.mat-legend { display: flex; gap: 1.25rem; }
.leg { font-size: .78rem; font-weight: 600; }
.leg.flyer { color: var(--blue); }
.leg.base  { color: var(--red); }
.leg.dot   { color: var(--muted); }

/* ── Stats preview ────────────────────────────────────────────────────────── */
.stats-preview {
  background: #0a1c2e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stats-header {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.stat-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}

.stat-bar-label { width: 28px; font-size: .8rem; color: var(--muted); }
.stat-bar-wrap { flex: 1; background: rgba(255,255,255,.06); border-radius: 100px; height: 8px; overflow: hidden; }
.stat-bar { height: 100%; background: linear-gradient(90deg, var(--blue), #7dd3fc); border-radius: 100px; }
.stat-val { width: 32px; text-align: right; font-size: .8rem; color: var(--muted); }

.medal-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.medal {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 100px;
  background: rgba(255,183,77,.12);
  border: 1px solid rgba(255,183,77,.25);
  color: var(--amber);
  font-size: .8rem;
  font-weight: 600;
}

/* ── Download ─────────────────────────────────────────────────────────────── */
.download-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  transition: background .2s, transform .15s;
  min-width: 180px;
}
.store-btn:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }

.store-icon {
  font-size: 1.6rem;
  color: var(--blue);
}

.store-label { font-size: .7rem; color: var(--muted); }
.store-name  { font-size: 1rem; font-weight: 700; }

.coming-soon { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 900;
}
.footer-logo span { color: var(--blue); }

.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .85rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: .8rem; color: rgba(232,240,254,.3); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: auto; padding: 4rem 1.25rem; gap: 3rem; }
  .hero-inner { max-width: 100%; }
  .hero-visual { width: 100%; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }

  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero h1 { font-size: 2.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
}
