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

:root {
  --bg:          #eef2fa;
  --bg-card:     #ffffff;
  --bg-card-2:   #f4f8ff;
  --border:      rgba(15,40,90,0.1);
  --blue:        #1760c8;
  --blue-dim:    rgba(23,96,200,0.07);
  --blue-mid:    rgba(23,96,200,0.22);
  --blue-light:  #60a5fa;
  --red:         #dc2626;
  --navy:        #0d2347;
  --text:        #0e1e3d;
  --text-muted:  #4a6080;
  --text-dim:    #96a8c0;
  --radius:      12px;
  --radius-lg:   20px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --transition:  0.25s ease;
  --shadow-sm:   0 1px 4px rgba(15,40,90,0.07), 0 4px 16px rgba(15,40,90,0.06);
  --shadow-md:   0 4px 12px rgba(15,40,90,0.08), 0 16px 40px rgba(15,40,90,0.08);
}

html { scroll-behavior: smooth; }

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

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

.accent { color: var(--blue); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--blue-mid);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 600px; margin: 16px auto 0; font-size: 1.05rem; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(238,242,250,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(15,40,90,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  display: block;
  height: 36px;
  width: auto;
  transition: filter var(--transition);
}
/* brightness(0) → black, then rebuild to #1760c8 */
.nav-logo:hover .nav-logo-img {
  filter: brightness(0) saturate(100%) invert(23%) sepia(97%) saturate(1194%) hue-rotate(205deg) brightness(98%);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--blue);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.nav-links a.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: opacity var(--transition);
}
.nav-links a.nav-cta:hover { opacity: 0.85; color: #fff; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(23,96,200,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(23,96,200,0.3); background: var(--blue-dim); color: var(--blue); }
.btn-lg { padding: 17px 36px; font-size: 1rem; border-radius: 12px; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(23,96,200,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 60%, rgba(13,35,71,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,96,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,96,200,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
#hero h1 { margin-bottom: 24px; }
#hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-social-proof {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-number { font-size: 1.8rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.proof-label  { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.proof-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Features ───────────────────────────────────────────────────────────── */
#features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card-2) 50%, var(--bg) 100%); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(23,96,200,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dim);
  border: 1px solid var(--blue-mid);
  border-radius: 12px;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p  { font-size: 0.92rem; margin-bottom: 20px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ftag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 6px;
}
.feature-visual { position: relative; }
.mock-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 0.82rem;
}
.mock-player-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mock-name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.mock-meta { color: var(--text-muted); font-size: 0.75rem; display: flex; gap: 8px; align-items: center; }
.mock-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.style-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.style-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
}
/* Mock radar */
.mock-radar {
  margin: 20px auto 0;
  width: 100%;
}
.mock-radar svg { width: 100%; height: auto; display: block; }

/* Mock table */
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.mock-table th {
  color: var(--text-dim);
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.mock-table td {
  padding: 8px 8px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(15,40,90,0.05);
}
.mock-table tr:last-child td { border-bottom: none; }
.mock-table td:first-child { font-size: 1rem; }
.mock-table td:nth-child(2) { color: var(--text); font-weight: 600; }
.score-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-mini {
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  min-width: 4px;
}
.score-value {
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 700;
}

/* ─── Stats Categories ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: default;
}
.stat-cat-card:hover {
  border-color: rgba(23,96,200,0.25);
  background: var(--bg-card-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-cat-icon { margin-bottom: 12px; }
.stat-cat-card h4 { margin-bottom: 8px; font-size: 1rem; }
.stat-cat-card p  { font-size: 0.82rem; line-height: 1.55; }
/* ─── Leagues ────────────────────────────────────────────────────────────── */
#leagues {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card-2) 100%);
  padding: 100px 0;
}
.leagues-scroll {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.league-badge {
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.league-flag {
  font-size: 1.2rem;
  line-height: 1;
}
.league-badge.tier-1 {
  border-color: var(--blue-mid);
  color: var(--blue);
  background: var(--blue-dim);
}
.league-badge:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.league-tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
  margin-top: 32px;
  text-align: center;
}
.leagues-group { width: 100%; }
.leagues-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.mock-card--top { margin-top: 24px; }

/* ─── Roles Section ──────────────────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.role-card:hover {
  border-color: rgba(23,96,200,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.role-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.role-card:hover::after { opacity: 1; }
.role-icon {
  margin-bottom: 16px;
  display: block;
}
.role-card h3 { margin-bottom: 6px; }
.role-subtitle {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.role-card p  { font-size: 0.9rem; margin-bottom: 20px; }
.role-benefits { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.role-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── How it Works ───────────────────────────────────────────────────────── */
#how {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg) 100%);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 28px;
  height: 1px;
}
.steps::before {
  left: calc(16.66% + 17px);
  right: calc(50% + 28px);
  background: linear-gradient(90deg, var(--blue-mid), var(--border));
}
.steps::after {
  left: calc(50% + 28px);
  right: calc(16.66% + 17px);
  background: linear-gradient(90deg, var(--border), var(--blue-mid));
}
.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step h4 { margin-bottom: 8px; font-size: 1rem; }
.step p  { font-size: 0.88rem; }

/* ─── CTA ─────────────────────────────────────────────────────────────────── */
#cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(23,96,200,0.06) 0%, transparent 70%);
}
.cta-inner { position: relative; }
#cta h2 { margin-bottom: 16px; }
#cta p  { margin-bottom: 40px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 0.8rem; color: var(--text-dim); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-card);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { line-height: 1; }
.footer-logo-img {
  display: block;
  height: 26px;
  width: auto;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.83rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }
.footer-inspiration {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-inspiration a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Lucide icon sizing ─────────────────────────────────────────────────── */
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: var(--blue);
  stroke-width: 1.75;
}
.stat-cat-icon svg {
  width: 28px; height: 28px;
  stroke: var(--blue);
  stroke-width: 1.5;
}
.role-icon svg {
  width: 32px; height: 32px;
  stroke: var(--blue);
  stroke-width: 1.5;
}
.check svg {
  width: 10px; height: 10px;
  stroke: var(--blue);
  stroke-width: 2.5;
}
.step-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ─── Hamburger ──────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.nav-hamburger:hover {
  background: var(--blue-dim);
  border-color: var(--blue-mid);
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Open state — morphs into × */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile menu ────────────────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  background: rgba(238,242,250,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(15,40,90,0.08);
}
.nav-mobile.open {
  max-height: 400px;
  opacity: 1;
  border-top-color: var(--border);
}
.nav-mobile-links {
  list-style: none;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-links li a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-mobile-links li a:hover,
.nav-mobile-links li a.active {
  background: var(--blue-dim);
  color: var(--blue);
}
.nav-mobile-links li:last-child a {
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.nav-mobile-links li:last-child a:hover { opacity: 0.88; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .proof-divider { display: none; }
  .hero-social-proof { gap: 20px; }

  .mock-card { overflow-x: auto; }
  .mock-table { white-space: nowrap; }
  .mock-table th { border-bottom: none; }
  .score-mini { display: none; }
}
