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

:root {
  --foreground: #0f172a;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --amber-600: #d97706;
  --amber-400: #fbbf24;
  --radius: .75rem;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #f8fafc 0%, #fefce8 40%, #fff1f2 100%);
  color: var(--foreground);
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: all .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .875rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.nav-logo img { height: 2.75rem; width: auto; object-fit: contain; }
.nav-logo-text { font-size: 1.375rem; font-weight: 900; color: var(--foreground); letter-spacing: -.02em; }
.nav-logo-sub { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-foreground); margin-top: -.1rem; }

.nav-links {
  display: flex; align-items: center; gap: .125rem;
  border: 1px solid rgba(226,232,240,.7); border-radius: 9999px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px);
  padding: .375rem;
}
.nav-links button {
  padding: .375rem 1rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 500; color: var(--muted-foreground);
  transition: all .2s;
}
.nav-links button:hover { color: var(--foreground); background: white; }

.nav-actions { display: flex; align-items: center; gap: .625rem; }
.btn { display: inline-flex; align-items: center; gap: .375rem; border-radius: var(--radius); font-weight: 600; transition: all .2s; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-sm { padding: .375rem .875rem; font-size: .75rem; }
.btn-md { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--muted-foreground); border: none; }
.btn-ghost:hover { color: var(--foreground); background: rgba(0,0,0,.04); }
.btn-outline { background: rgba(255,255,255,.7); border: 2px solid var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: #fca5a5; background: #fff1f2; color: var(--red-700); }
.btn-red { background: linear-gradient(135deg, var(--red-600), var(--red-700)); color: white; border: none; box-shadow: 0 4px 14px rgba(220,38,38,.25); }
.btn-red:hover { box-shadow: 0 6px 20px rgba(220,38,38,.35); transform: translateY(-1px); }
.btn-red:active { transform: translateY(0); }

.hamburger { display: none; flex-direction: column; gap: 4px; padding: .5rem; border-radius: .5rem; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--foreground); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem; border-top: 1px solid var(--border);
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu button { text-align: left; padding: .75rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 500; color: var(--foreground); }
.mobile-menu button:hover { background: rgba(0,0,0,.04); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 1.25rem 6rem;
  text-align: center;
}
@media (min-width: 640px) { .hero { padding: 7rem 1.25rem 8rem; } }

.blob {
  position: absolute; border-radius: 9999px; pointer-events: none;
  filter: blur(60px); opacity: .7;
}
.blob-a { width: 24rem; height: 24rem; background: rgba(252,165,165,.35); top: -6rem; right: -4rem; animation: float-a 8s ease-in-out infinite; }
.blob-b { width: 20rem; height: 20rem; background: rgba(253,230,138,.4); top: 8rem; left: -5rem; animation: float-b 10s ease-in-out infinite; }
.blob-c { width: 36rem; height: 16rem; background: rgba(254,202,202,.2); bottom: 0; left: 50%; transform: translateX(-50%); }

@keyframes float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px, 20px); } }
@keyframes float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(15px, -15px); } }

.dot-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(circle, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-inner { position: relative; max-width: 56rem; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 9999px;
  background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(245,158,11,.1));
  border: 1px solid rgba(239,68,68,.25); color: #b91c1c;
  font-size: .8125rem; font-weight: 700; margin-bottom: 1.5rem;
}
.hero-badge .pulse { width: 6px; height: 6px; border-radius: 9999px; background: var(--red-600); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

h1.hero-title {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.gradient-text { background: linear-gradient(135deg, var(--red-600), #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: clamp(.9375rem, 2vw, 1.125rem); color: var(--muted-foreground); max-width: 38rem; margin: 0 auto 2.5rem; line-height: 1.7; }

.hero-cta { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; margin-bottom: 2.5rem; }
@media (min-width: 480px) { .hero-cta { flex-direction: row; justify-content: center; align-items: center; } }

/* Sign-in by role grid */
.role-grid {
  display: grid; grid-template-columns: 1fr;
  gap: .75rem; max-width: 48rem; margin: 0 auto;
  text-align: left; padding-top: 2.5rem;
}
@media (min-width: 560px) { .role-grid { grid-template-columns: 1fr 1fr; } }

.role-card {
  border-radius: 1.25rem; border: 1.5px solid; padding: 1.125rem 1.25rem;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: all .3s;
}
.role-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.role-card.coach  { border-color: #fca5a5; }
.role-card.organizer { border-color: #6ee7b7; }
.role-card.admin  { border-color: #93c5fd; }
.role-card.superadmin { border-color: #fcd34d; }

.role-card-icon {
  display: inline-flex; padding: .625rem; border-radius: .75rem; border: 1px solid; background: rgba(255,255,255,.8); margin-bottom: .625rem;
}
.coach .role-card-icon    { border-color: #fca5a5; color: var(--red-600); }
.organizer .role-card-icon { border-color: #6ee7b7; color: #059669; }
.admin .role-card-icon    { border-color: #93c5fd; color: #2563eb; }
.superadmin .role-card-icon { border-color: #fcd34d; color: #d97706; }

.role-card-label { font-weight: 700; font-size: .9375rem; }
.coach .role-card-label    { color: #7f1d1d; }
.organizer .role-card-label { color: #064e3b; }
.admin .role-card-label    { color: #1e3a5f; }
.superadmin .role-card-label { color: #451a03; }

.role-card-hint { font-size: .75rem; color: var(--muted-foreground); margin-top: .125rem; }
.role-card-actions { display: flex; align-items: center; gap: .625rem; margin-top: .875rem; }

.btn-coach    { background: var(--red-600); color: white; border: none; box-shadow: 0 2px 8px rgba(220,38,38,.2); }
.btn-coach:hover { background: var(--red-700); }
.btn-organizer { background: #059669; color: white; border: none; box-shadow: 0 2px 8px rgba(5,150,105,.2); }
.btn-organizer:hover { background: #047857; }
.btn-admin { background: #2563eb; color: white; border: none; box-shadow: 0 2px 8px rgba(37,99,235,.2); }
.btn-admin:hover { background: #1d4ed8; }
.btn-superadmin { background: #d97706; color: white; border: none; box-shadow: 0 2px 8px rgba(217,119,6,.2); }
.btn-superadmin:hover { background: #b45309; }

.role-learn { font-size: .75rem; font-weight: 500; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: .25rem; }
.role-learn:hover { color: var(--foreground); }

/* ── STATS ── */
.stats { border-top: 1px solid rgba(226,232,240,.5); border-bottom: 1px solid rgba(226,232,240,.5); background: rgba(255,255,255,.5); padding: 3rem 1.25rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }

.stat-card {
  position: relative; overflow: hidden; border-radius: 1.25rem; border: 1px solid;
  background: white; padding: 1.5rem; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: all .3s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); }
.stat-card.red    { border-color: #fee2e2; }
.stat-card.amber  { border-color: #fef3c7; }
.stat-card.blue   { border-color: #dbeafe; }
.stat-card.emerald { border-color: #d1fae5; }

.stat-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; border: 1px solid; margin: 0 auto .75rem; }
.stat-card.red .stat-icon-wrap    { background: #fff1f2; border-color: #fee2e2; color: var(--red-600); }
.stat-card.amber .stat-icon-wrap  { background: #fffbeb; border-color: #fef3c7; color: #d97706; }
.stat-card.blue .stat-icon-wrap   { background: #eff6ff; border-color: #dbeafe; color: #2563eb; }
.stat-card.emerald .stat-icon-wrap { background: #ecfdf5; border-color: #d1fae5; color: #059669; }

.stat-value { font-size: 2.25rem; font-weight: 900; line-height: 1; margin-bottom: .25rem; }
.stat-card.red .stat-value    { color: var(--red-600); }
.stat-card.amber .stat-value  { color: #d97706; }
.stat-card.blue .stat-value   { color: #2563eb; }
.stat-card.emerald .stat-value { color: #059669; }
.stat-label { font-size: .8125rem; color: var(--muted-foreground); font-weight: 500; }

/* ── SECTIONS common ── */
.section { padding: 5rem 1.25rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem; border-radius: 9999px; border: 1px solid;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.tag-red    { border-color: #fca5a5; background: #fff1f2; color: #b91c1c; }
.tag-amber  { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.tag-blue   { border-color: #93c5fd; background: #eff6ff; color: #1e40af; }
.section-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.025em; margin-bottom: 1rem; }
.section-sub { color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; max-width: 36rem; margin: 0 auto; }
.text-center { text-align: center; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(3,1fr); } }

.feature-card {
  border: 2px solid var(--border); border-radius: 1.25rem; padding: 1.5rem;
  background: white; cursor: pointer; text-align: left;
  transition: all .3s; width: 100%;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.feature-card.active { border-color: #fca5a5; box-shadow: 0 6px 24px rgba(220,38,38,.1); transform: scale(1.02); }

.feature-icon {
  width: 3rem; height: 3rem; border-radius: .875rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: transform .3s;
}
.feature-card.active .feature-icon { transform: scale(1.1); }
.feature-icon.red-grad    { background: linear-gradient(135deg, #ef4444, #e11d48); }
.feature-icon.amber-grad  { background: linear-gradient(135deg, #f59e0b, #f97316); }
.feature-icon.blue-grad   { background: linear-gradient(135deg, #3b82f6, #4f46e5); }

.feature-active-dot { display: none; align-items: center; gap: .375rem; margin-bottom: .75rem; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red-600); }
.feature-card.active .feature-active-dot { display: flex; }

.feature-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.feature-highlight { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); margin-bottom: .75rem; }
.feature-desc { font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1.25rem; }
.feature-stat { border-top: 1px solid var(--border); padding-top: 1rem; }
.feature-card.active .feature-stat { border-color: #fee2e2; }
.feature-stat-num { font-size: 1.5rem; font-weight: 900; }
.feature-stat-num.red   { color: var(--red-600); }
.feature-stat-num.amber { color: #d97706; }
.feature-stat-num.blue  { color: #2563eb; }
.feature-stat-label { font-size: .75rem; color: var(--muted-foreground); margin-left: .5rem; }

/* ── ROLES TABS ── */
.roles-section { background: linear-gradient(180deg, transparent, rgba(255,251,235,.5), transparent); }
.tabs-wrap { display: flex; gap: .625rem; padding: .375rem; border-radius: 1.25rem; border: 1px solid rgba(226,232,240,.6); background: rgba(255,255,255,.8); backdrop-filter: blur(8px); width: fit-content; margin: 0 auto 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.tab-btn { padding: .625rem 1.75rem; border-radius: .875rem; font-size: .875rem; font-weight: 600; color: var(--muted-foreground); transition: all .3s; display: flex; align-items: center; gap: .5rem; }
.tab-btn:hover { color: var(--foreground); background: rgba(0,0,0,.04); }
.tab-btn.active-red    { background: #dc2626; color: white; box-shadow: 0 2px 8px rgba(220,38,38,.3); }
.tab-btn.active-amber  { background: #d97706; color: white; box-shadow: 0 2px 8px rgba(217,119,6,.3); }

.tab-panel { display: none; border-radius: 1.25rem; border: 1px solid rgba(226,232,240,.6); background: white; box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: hidden; max-width: 48rem; margin: 0 auto; animation: fadeUp .3s ease-out; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: translateY(0); } }

.tab-bar { height: 6px; }
.tab-bar.red-bar   { background: linear-gradient(90deg, #ef4444, #f97316); }
.tab-bar.amber-bar { background: linear-gradient(90deg, #f59e0b, #f97316); }
.tab-content { padding: 2.5rem; }
.tab-header-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem; border-radius: 9999px; color: white; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.tab-title { font-size: 1.625rem; font-weight: 900; margin-bottom: .75rem; }
.tab-desc { color: var(--muted-foreground); font-size: .9375rem; line-height: 1.7; }
.tab-features { display: flex; flex-direction: column; gap: .625rem; min-width: 11rem; }
.tab-feature-item { display: flex; align-items: center; gap: .625rem; font-size: .875rem; }
.tab-feature-dot { width: 1.25rem; height: 1.25rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tab-layout { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px) { .tab-layout { flex-direction: row; align-items: flex-start; } }

/* ── FAQ ── */
.faq-list { max-width: 38rem; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid rgba(226,232,240,.6); border-radius: 1.25rem; background: white; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: all .3s; }
.faq-item.open { border-color: #fca5a5; box-shadow: 0 2px 10px rgba(220,38,38,.08); }
.faq-q { width: 100%; text-align: left; padding: 1.25rem 1.375rem; font-weight: 600; font-size: .9375rem; color: var(--foreground); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-chevron { flex-shrink: 0; transition: transform .3s; color: var(--muted-foreground); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.375rem 1.25rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CTA ── */
.cta-section { padding: 5rem 1.25rem; }
.cta-box {
  position: relative; max-width: 56rem; margin: 0 auto;
  border-radius: 1.75rem; overflow: hidden;
  box-shadow: 0 20px 60px rgba(220,38,38,.2);
}
.cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #d97706 100%); }
.cta-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.15), transparent 70%); }
.cta-dots { position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 24px 24px; }
.cta-inner { position: relative; padding: 3.5rem 2rem; text-align: center; color: white; }
.cta-icon { display: inline-flex; padding: 1.25rem; border-radius: 1.25rem; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.2); margin-bottom: 2rem; }
.cta-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.025em; margin-bottom: 1rem; }
.cta-sub { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.7; max-width: 36rem; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
@media (min-width: 480px) { .cta-actions { flex-direction: row; justify-content: center; align-items: center; } }
.btn-white { background: white; color: var(--red-600); border: none; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn-white:hover { background: #f8fafc; box-shadow: 0 6px 20px rgba(0,0,0,.2); transform: scale(1.03); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.4); color: white; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); }

/* ── FOOTER ── */
footer { background: #0f172a; color: #94a3b8; border-top: 1px solid rgba(226,232,240,.2); margin-top: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.footer-top { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand p { font-size: .875rem; color: #64748b; line-height: 1.7; max-width: 18rem; margin-top: .75rem; }
.footer-logo { display: flex; align-items: center; gap: .625rem; }
.footer-logo img { height: 2.5rem; width: auto; object-fit: contain; filter: brightness(1.1); }
.footer-logo-text { font-size: 1.25rem; font-weight: 900; color: white; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col h4 { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: white; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer-col a { font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: #fbbf24; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(100,116,139,.3); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: .75rem; color: #475569; }
.footer-powered { display: flex; align-items: center; gap: .625rem; }
.footer-powered img { width: 1.75rem; height: 1.75rem; border-radius: .5rem; object-fit: cover; border: 1px solid rgba(100,116,139,.4); }
.footer-powered span { font-size: .875rem; font-weight: 600; color: #cbd5e1; }

/* ── SIGN IN label ── */
.role-section-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); margin-bottom: .5rem; }
.role-section-sub { font-size: .875rem; color: var(--muted-foreground); max-width: 28rem; margin: 0 auto 1.25rem; }

@media (max-width: 1023px) { .nav-links { display: none; } .hamburger { display: flex; } }
@media (min-width: 1024px) { .hamburger { display: none; } .mobile-menu { display: none !important; } }
