/* ========================================
   Training Run - Global Styles
   ======================================== */

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

:root {
    --cyan: #00d4ff;
    --cyan-dark: #0099cc;
    --cyan-glow: rgba(0, 212, 255, 0.5);
    --purple: #8a2be2;
    --magenta: #ff00ff;
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: rgba(20, 20, 40, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border-subtle: rgba(0, 212, 255, 0.15);
    --border-accent: rgba(0, 212, 255, 0.3);
    --warning: #ff6b6b;
    --success: #4ecdc4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.cyan { color: var(--cyan); }

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 40px 100px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(60px, 12vw, 140px);
    color: var(--cyan);
    text-shadow:
        0 0 20px var(--cyan-glow),
        0 0 40px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(0, 212, 255, 0.2);
    margin-bottom: 15px;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.15); }
}

.hero .tagline {
    font-size: clamp(16px, 3vw, 24px);
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 650px;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: white;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
}

.cta-button.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* Sections */
section {
    padding: 100px 40px;
}

.section-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 50px;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
}

.intro-section h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
}

.intro-text strong {
    color: var(--cyan);
}

/* TRS Preview Section */
.trs-preview {
    text-align: center;
}

.trs-preview h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.trs-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.component {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 30px 20px;
    transition: all 0.3s;
}

.component:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
}

.component .weight {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 10px;
}

.component h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.component p {
    font-size: 13px;
    color: var(--text-muted);
}

.learn-more {
    display: inline-block;
    color: var(--cyan);
    font-weight: 600;
    margin-top: 20px;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.02) 50%, transparent 100%);
}

.trust-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.source-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.source-card:hover {
    border-color: var(--cyan);
}

.source-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.source-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.source-card a {
    font-size: 13px;
    color: var(--cyan);
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 60px 40px;
}

.disclaimer-box {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-box h3 {
    color: var(--warning);
    font-size: 24px;
    margin-bottom: 20px;
}

.disclaimer-box p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box strong {
    color: var(--text-primary);
}

.disclaimer-box em {
    color: var(--cyan);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 40px;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 40px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px !important;
    opacity: 0.7;
}

/* ========================================
   Methodology Page Styles
   ======================================== */

.methodology-page {
    padding-top: 120px;
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding: 60px 40px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: clamp(40px, 8vw, 64px);
    margin-bottom: 25px;
}

.page-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 20px;
}

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
}

/* Method Sections */
.method-section {
    padding: 50px 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.method-section:last-of-type {
    border-bottom: none;
}

.method-section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.method-section h3 {
    font-size: 18px;
    color: var(--cyan);
    margin: 30px 0 15px;
}

.method-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 30px;
}

.formula-display {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.formula-display code {
    font-family: 'Space Grotesk', monospace;
    font-size: 18px;
    color: var(--cyan);
}

.formula-note {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Source Citations */
.source-citation {
    margin: 20px 0;
}

.source-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--cyan);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.source-item h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.source-item p {
    font-size: 14px;
    margin-bottom: 10px;
}

.source-details {
    list-style: none;
    margin: 15px 0;
    padding-left: 0;
}

.source-details li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.source-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

.source-link {
    display: inline-block;
    font-size: 13px;
    color: var(--cyan);
    margin-right: 15px;
}

.calc-formula {
    display: block;
    background: var(--bg-darker);
    border-radius: 6px;
    padding: 15px 20px;
    font-family: 'Space Grotesk', monospace;
    font-size: 15px;
    color: var(--cyan);
    margin: 20px 0;
}

.caution-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

/* Limitations Box */
.limitations-box {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 30px;
}

.limitations-box h3 {
    color: var(--warning);
    margin-top: 0;
}

.limitations-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.limitations-box li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.limitations-box li::before {
    content: '⚠';
    position: absolute;
    left: 0;
}

.limitations-box li strong {
    color: var(--text-primary);
}

.transparency-note {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Citations List */
.citations-list {
    margin-top: 30px;
}

.citations-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.citations-list ol {
    list-style-position: inside;
    padding: 0;
}

.citations-list ol li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.citations-list ol li em {
    color: var(--text-muted);
}

.citations-list ul {
    list-style: none;
    padding: 0;
}

.citations-list ul li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 60px 20px;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .method-section {
        padding: 40px 20px;
    }

    .trs-components {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trs-components {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}
