/* ========================================
   OPTIMIZED HUMAN - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #e6f0ff;
    --secondary: #00c896;
    --secondary-dark: #00a67a;
    --accent: #8b5cf6;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Evidence Rating Colors */
    --evidence-strong: #10b981;
    --evidence-moderate: #f59e0b;
    --evidence-weak: #ef4444;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

.nowrap {
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   RESEARCH SECTION
   ======================================== */

.research-section {
    background: var(--bg-light);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.research-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.research-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-category {
    color: var(--primary);
    font-weight: 600;
}

.card-date {
    color: var(--text-muted);
}

.research-card h3 {
    margin-bottom: 0.75rem;
}

.research-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.evidence-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rating-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.rating-bar {
    flex: 1;
    max-width: 120px;
    height: 6px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--evidence-strong);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.rating-fill.moderate {
    background: var(--evidence-moderate);
}

.rating-score {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--evidence-strong);
}

.card-link {
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.card-link:hover {
    color: var(--primary-dark);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   PILLARS SECTION
   ======================================== */

.pillars-section {
    background: var(--bg-white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.pillar-card:hover {
    background: var(--bg-white);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pillar-card h3 {
    margin-bottom: 0.75rem;
}

.pillar-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.pillar-topics {
    margin-bottom: 1.5rem;
}

.pillar-topics li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pillar-topics li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.pillar-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition-fast);
}

.pillar-link:hover {
    gap: 0.5rem;
}

/* ========================================
   PROTOCOLS SECTION
   ======================================== */

.protocols-section {
    background: var(--bg-dark);
    color: white;
}

.protocols-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.protocols-section h2,
.protocols-section h3 {
    color: white;
}

.protocols-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.protocols-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.protocol-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.protocol-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.protocol-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
}

.protocol-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.protocol-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.protocol-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.protocol-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.protocol-time {
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.protocol-link {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.protocol-link:hover {
    color: var(--secondary);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-text h2 {
    margin-bottom: 1rem;
}

.newsletter-text > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-features li {
    color: var(--text-secondary);
}

.newsletter-form-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.newsletter-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.preview-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.preview-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.preview-card h4 {
    margin: 0.5rem 0 1rem;
    color: var(--primary);
}

.preview-card ul li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.preview-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-principles {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.principle {
    display: flex;
    gap: 1rem;
}

.principle-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.principle h4 {
    margin-bottom: 0.25rem;
}

.principle p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.about-sources {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.about-sources h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.source-item {
    padding: 0.625rem 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .newsletter-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card.featured {
        grid-column: 1;
    }
    
    .protocol-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .protocol-number {
        font-size: 1.25rem;
    }
    
    .protocol-meta {
        justify-content: center;
    }
    
    .protocol-link {
        margin-top: 1rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll animations */
.research-card,
.pillar-card,
.protocol-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.research-card.visible,
.pillar-card.visible,
.protocol-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.last-updated { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-muted); font-style: italic; }
