/* ============================================
   ATHLETE ENGINE — SHARED STYLES
   ============================================ */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #222222;
  --border-light: #2a2a2a;
  --green: #10b981;
  --green-dim: #0d8f63;
  --green-glow: rgba(16, 185, 129, 0.15);
  --text: #ffffff;
  --text-2: #999999;
  --text-3: #666666;
  --text-4: #444444;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --font-display: 'Archivo', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  display: inline-block;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  letter-spacing: -0.01em; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  object-fit: cover; display: block;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green); color: #000 !important; padding: 10px 18px;
  border-radius: 10px; font-weight: 700 !important; font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }
.nav-login {
  border: 1px solid var(--green); color: var(--green) !important; padding: 9px 16px;
  border-radius: 10px; font-weight: 600 !important; font-size: 14px; transition: background 0.2s;
}
.nav-login:hover { background: var(--green-glow); color: var(--green) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; line-height: 0; }
.nav-toggle svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 12px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--green-glow); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* Hero */
.hero {
  padding: 180px 0 120px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; background: radial-gradient(circle, var(--green-glow), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 24px; }
.hero h1 .accent { color: var(--green); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); margin-bottom: 40px; max-width: 620px; line-height: 1.5; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stat band */
.stat-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: var(--green); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--text-3); letter-spacing: 0.5px; }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* Section headers */
.section-head { max-width: 700px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 20px; }
.section-head p { font-size: 18px; color: var(--text-2); line-height: 1.6; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-glow);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--green); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* Inline icon helper (lists, inline marks) */
.icon-inline { width: 18px; height: 18px; stroke: var(--green); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }

/* How-it-works: inputs → outputs flow */
.flow-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; display: block;
}
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .flow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow-grid { grid-template-columns: 1fr; } }
.flow-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; transition: border-color 0.3s;
}
.flow-card:hover { border-color: var(--green); }
.flow-num { font-family: var(--font-mono); font-size: 12px; color: var(--green); letter-spacing: 1px; margin-bottom: 14px; display: block; }
.flow-card .feature-icon { margin-bottom: 16px; }
.flow-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.flow-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.flow-arrow { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 44px 0; color: var(--text-3); }
.flow-arrow svg { width: 22px; height: 22px; stroke: var(--green); stroke-width: 2; fill: none; }
.flow-arrow span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
/* Outputs list */
.output-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 760px) { .output-list { grid-template-columns: 1fr; } }
.output-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px;
}
.output-item .feature-icon { margin-bottom: 0; width: 40px; height: 40px; }
.output-item .feature-icon svg { width: 20px; height: 20px; }
.output-item h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.output-item p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.output-headline {
  margin-top: 36px; padding: 32px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, var(--green-glow), transparent); border: 1px solid var(--border);
}
.output-headline p { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
@media (max-width: 600px) { .output-headline p { font-size: 18px; } }
.output-headline .accent { color: var(--green); }

/* CTA section */
.cta-section { text-align: center; }
.cta-box {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-light); border-radius: 28px; padding: 80px 40px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 400px; background: radial-gradient(circle, var(--green-glow), transparent 70%);
}
.cta-box-content { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 20px; }
.cta-box p { font-size: 18px; color: var(--text-2); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text-4); font-size: 13px; }

/* Page hero (interior pages) */
.page-hero { padding: 160px 0 80px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 20px; max-width: 800px; }
.page-hero .accent { color: var(--green); }
.page-hero p { font-size: 19px; color: var(--text-2); max-width: 620px; line-height: 1.5; }

/* Split row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.reverse .split-visual { order: -1; }
@media (max-width: 860px) { .split.reverse .split-visual { order: 0; } }
.split-text h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.split-text p { color: var(--text-2); font-size: 17px; margin-bottom: 16px; }
.split-list { list-style: none; margin-top: 24px; }
.split-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--text-2); font-size: 16px; }
.split-list li::before { content: '→'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Visual mockup boxes */
.mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; position: relative; overflow: hidden;
}
.mockup-glow { position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; background: radial-gradient(circle, var(--green-glow), transparent 70%); }
.mockup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.mockup-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mockup-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.mockup-row:last-child { border-bottom: none; }
.mockup-label { color: var(--text-2); font-size: 14px; }
.mockup-val { font-weight: 700; font-size: 15px; }
.mockup-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.mockup-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green-dim), var(--green)); }

/* Score ring */
.score-ring { display: flex; align-items: center; gap: 24px; }
.ring { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--green); }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border-light); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.pill.active { background: var(--green-glow); border-color: var(--green); color: var(--green); }

/* Form */
.form-wrap { max-width: 560px; }
.form-row { margin-bottom: 24px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row.two { grid-template-columns: 1fr; } }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-size: 15px; font-family: var(--font-body); transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--green); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--green-glow); border: 1px solid rgba(16,185,129,0.3); border-radius: 100px;
  font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 28px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

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