/* NHANES to Lancet — Main Stylesheet */
:root {
    --primary: #A51C30;
    --primary-dark: #8B1528;
    --primary-light: #C93042;
    --secondary: #1E40AF;
    --accent: #047857;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --border: rgba(226,232,240,0.1);
    --bg: #0a0e1a;
    --bg-light: #141b2d;
    --bg-dark: #0a0e1a;
    --card: #141b2d;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: all 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.brand-icon {
    width: 32px; height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}
.brand-text { font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
.nav-link { font-weight: 500; font-size: 0.875rem; color: var(--text-secondary) !important; padding: 0.5rem 0.75rem !important; }
.nav-link:hover { color: var(--primary) !important; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(165,28,48,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(30,64,175,0.1) 0%, transparent 50%);
}
.hero-badge {
    display: inline-block;
    background: rgba(165,28,48,0.15);
    border: 1px solid rgba(165,28,48,0.3);
    color: #F87171;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, #EF4444, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    transition: all 0.2s;
}
.btn-hero-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(165,28,48,0.3); }
.btn-hero-outline {
    background: transparent;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.25);
    transition: all 0.2s;
}
.btn-hero-outline:hover { border-color: white; color: white; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.hero-trust i { color: #10B981; margin-right: 0.25rem; }

/* Terminal */
.terminal-window {
    background: #1E1E2E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-width: 480px;
    margin-left: auto;
}
.terminal-header {
    background: #2D2D3F;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }
.terminal-title { color: #888; font-size: 0.75rem; margin-left: 0.5rem; }
.terminal-body { padding: 1.25rem; font-family: 'SF Mono', 'Menlo', monospace; font-size: 0.82rem; line-height: 1.8; }
.terminal-line { color: #A0AEC0; }
.t-prompt { color: #10B981; }
.t-cmd { color: #F9FAFB; font-weight: 600; }
.t-info { color: #60A5FA; }
.t-success { color: #10B981; }
.t-bold { color: #F9FAFB; font-weight: 600; }
.t-cursor { color: #10B981; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Metrics */
.metrics-strip {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.metric-item { text-align: center; }
.metric-value { font-size: 2rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; }
.metric-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* Sections */
.section-padding { padding: 5rem 0; }
.bg-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
    display: inline-block;
    background: rgba(165,28,48,0.08);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.section-header h2 { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-secondary); max-width: 450px; margin: 0 auto; }

/* Steps */
.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.2s;
    position: relative;
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-number {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-size: 2.5rem; font-weight: 900; color: rgba(165,28,48,0.08);
    line-height: 1;
}
.step-icon {
    width: 48px; height: 48px;
    background: rgba(165,28,48,0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.step-card h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* Features */
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
    width: 44px; height: 44px;
    background: rgba(165,28,48,0.08);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.feature-card h5 { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

/* Comparison Table */
.comparison-table-wrapper { max-width: 700px; margin: 0 auto; }
.comparison-table { font-size: 0.9rem; }
.comparison-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); font-weight: 700; }
.comparison-table td { padding: 0.875rem; }

/* Topics */
.topic-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.15s;
    cursor: pointer;
}
.topic-card:hover { border-color: var(--primary); background: rgba(165,28,48,0.02); transform: translateY(-2px); }
.topic-card i { font-size: 1.5rem; color: var(--primary); display: block; margin-bottom: 0.5rem; }
.topic-card span { font-size: 0.8rem; font-weight: 600; color: var(--text); }

/* Output Preview */
.output-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.output-label {
    background: var(--bg-light);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
.output-table { margin: 0; font-size: 0.82rem; }
.output-table th { font-size: 0.7rem; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    padding: 5rem 0;
    text-align: center;
    color: white;
}
.cta-section h2 { font-size: 2.25rem; font-weight: 900; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto; }

/* Footer */
.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-desc { color: var(--text-secondary); font-size: 0.85rem; max-width: 300px; }
.footer-title { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--text-secondary); font-size: 0.8rem; margin: 0; }
.footer-social a { color: var(--text-secondary); font-size: 1.25rem; margin-left: 1rem; }
.footer-social a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-visual { margin-top: 2rem; }
    .metric-value { font-size: 1.5rem; }
    .section-padding { padding: 3rem 0; }
    .section-header h2 { font-size: 1.75rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
