/* CricCoach AI — Enterprise Design System */
:root {
    --bg-primary: #050a14;
    --bg-secondary: #0a1628;
    --bg-card: #0f1d32;
    --bg-card-hover: #142640;
    --accent: #00e87a;
    --accent-dim: rgba(0, 232, 122, 0.15);
    --accent-glow: rgba(0, 232, 122, 0.3);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --white: #f8fafc;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-400: #64748b;
    --gray-500: #475569;
    --gray-600: #334155;
    --gray-700: #1e293b;
    --red: #ef4444;
    --amber: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(0, 232, 122, 0.08);
    --border: 1px solid rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-primary); color: var(--white); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Gradient overlays */
.gradient-text { background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── NAVIGATION ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(5, 10, 20, 0.85); backdrop-filter: blur(20px) saturate(180%); border-bottom: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 26px; }
.logo-text { font-size: 19px; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }
.logo-ai { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--gray-300); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }
.nav-cta .btn { font-size: 13px; padding: 8px 20px; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { box-shadow: 0 0 30px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3); transform: translateY(-2px); }
.btn-secondary { background: var(--bg-card); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }

/* ─── HERO ─── */
.hero { position: relative; padding: 160px 0 120px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 30% 50%, rgba(0,232,122,0.04) 0%, transparent 50%), radial-gradient(ellipse at 70% 20%, rgba(59,130,246,0.03) 0%, transparent 40%); animation: drift 20s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2%, 1%); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-dim); border: 1px solid rgba(0,232,122,0.2); padding: 8px 16px; border-radius: 24px; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 28px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 60px; font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-sub { font-size: 18px; color: var(--gray-300); line-height: 1.8; margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat { text-align: left; }
.hero-stat-value { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 12px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-mockup { width: 100%; max-width: 480px; margin: 0 auto; background: var(--bg-card); border-radius: 20px; border: var(--border); box-shadow: var(--shadow), var(--shadow-glow); overflow: hidden; }
.mockup-header { padding: 16px 20px; border-bottom: var(--border); display: flex; align-items: center; gap: 8px; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-600); }
.mockup-dot:first-child { background: var(--red); }
.mockup-dot:nth-child(2) { background: var(--amber); }
.mockup-dot:nth-child(3) { background: var(--accent); }
.mockup-body { padding: 24px; }
.mockup-score { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mockup-score-circle { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--accent); }
.mockup-score-info h3 { font-size: 16px; margin-bottom: 2px; }
.mockup-score-info p { font-size: 12px; color: var(--gray-400); }
.mockup-metrics { display: grid; gap: 8px; }
.mockup-metric { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 13px; }
.mockup-metric-bar { width: 60px; height: 4px; background: var(--gray-600); border-radius: 2px; overflow: hidden; }
.mockup-metric-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.mockup-fault { margin-top: 16px; padding: 12px 14px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 8px; }
.mockup-fault-label { font-size: 10px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.mockup-fault-text { font-size: 13px; color: var(--gray-200); }

/* ─── SECTIONS ─── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-title { font-size: 44px; font-weight: 800; letter-spacing: -1px; text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--gray-300); font-size: 17px; margin-bottom: 72px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ─── HOW IT WORKS ─── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.process-step { position: relative; padding: 40px 28px; background: var(--bg-card); border-radius: var(--radius); border: var(--border); text-align: center; transition: all 0.3s; }
.process-step:hover { background: var(--bg-card-hover); border-color: rgba(0,232,122,0.2); box-shadow: var(--shadow-glow); }
.process-number { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(0,232,122,0.3); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--accent); margin: 0 auto 20px; }
.process-step h3 { font-size: 17px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }

/* ─── FEATURES ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 32px; background: var(--bg-card); border-radius: var(--radius); border: var(--border); transition: all 0.3s; }
.feature-card:hover { border-color: rgba(0,232,122,0.15); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }

/* ─── ACADEMY SECTION ─── */
.academy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.academy-card { padding: 28px; background: var(--bg-card); border-radius: var(--radius); border: var(--border); display: flex; gap: 16px; transition: all 0.3s; }
.academy-card:hover { border-color: rgba(59,130,246,0.3); }
.academy-card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-dim); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.academy-card h3 { font-size: 15px; margin-bottom: 6px; }
.academy-card p { font-size: 13px; color: var(--gray-400); line-height: 1.6; }
.cta-center { text-align: center; }

/* ─── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card { background: var(--bg-card); border-radius: var(--radius); padding: 40px 32px; border: var(--border); text-align: center; position: relative; transition: all 0.3s; }
.pricing-card:hover { border-color: rgba(255,255,255,0.1); }
.pricing-featured { border-color: var(--accent); box-shadow: 0 0 60px rgba(0,232,122,0.08); transform: scale(1.03); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--bg-primary); padding: 6px 20px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pricing-tier { font-size: 13px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.pricing-price { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.pricing-price span { font-size: 15px; font-weight: 400; color: var(--gray-400); }
.pricing-desc { font-size: 14px; color: var(--gray-400); margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; font-size: 14px; color: var(--gray-300); border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pricing-note { font-size: 12px; color: var(--gray-500); margin-top: 12px; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── DEMO REPORT ─── */
.demo-report { max-width: 680px; margin: 0 auto; background: var(--bg-card); border-radius: var(--radius); border: var(--border); overflow: hidden; box-shadow: var(--shadow); }
.demo-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 32px; border-bottom: var(--border); }
.demo-athlete h3 { font-size: 18px; }
.demo-athlete p { font-size: 13px; color: var(--gray-400); }
.demo-score { text-align: center; }
.score-circle { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--accent); margin: 0 auto 4px; }
.demo-score span { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.demo-body { padding: 32px; }
.demo-section { margin-bottom: 24px; }
.demo-section h4 { font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.demo-section p { font-size: 14px; color: var(--gray-200); line-height: 1.8; }
.demo-metrics { display: grid; gap: 6px; }
.metric { display: flex; justify-content: space-between; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 13px; }
.metric-label { color: var(--gray-300); }
.metric-value { font-weight: 600; }
.metric-value.good { color: var(--accent); }
.metric-value.warning { color: var(--amber); }
.metric-value.bad { color: var(--red); }
.drill-schedule { font-size: 12px; color: var(--gray-500); margin-top: 8px; font-style: italic; }
.demo-cta-text { text-align: center; font-weight: 600; margin: 32px 32px 12px; font-size: 16px; }
.demo-report > .btn { display: block; margin: 0 32px 32px; text-align: center; justify-content: center; }

/* ─── FOOTER ─── */
.footer { background: var(--bg-secondary); padding: 80px 0 40px; border-top: var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--gray-400); line-height: 1.7; }
.footer-links h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: var(--gray-400); text-decoration: none; padding: 5px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: var(--border); padding-top: 24px; font-size: 13px; color: var(--gray-500); display: flex; justify-content: space-between; }
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 44px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .academy-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .pricing-featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 120px 0 80px; }
    .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
    .section { padding: 80px 0; }
    .section-title { font-size: 30px; }
    .process-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
