/* ==========================================
   CSS VARIABLES - Color Palette & Spacing
   ========================================== */

:root {
    /* Colors - Vibrant Modern Palette */
    --navy-dark: #1E1B4B;        /* Deep indigo */
    --navy-medium: #312E81;      /* Medium indigo */
    --teal-primary: #06B6D4;     /* Bright cyan */
    --teal-light: #22D3EE;       /* Lighter cyan */
    --accent-coral: #F43F5E;     /* Vibrant coral/pink */
    --accent-purple: #8B5CF6;    /* Bright purple */
    --white-neural: #F8FAFC;     /* Crisp white */
    --gray-silver: #94A3B8;      /* Slate gray */
    --gray-light: #E2E8F0;       /* Light slate */
    --gray-dark: #64748B;        /* Dark slate */

    /* Gradient accents */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    --gradient-accent: linear-gradient(135deg, #F43F5E 0%, #8B5CF6 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-dark);
    background-color: var(--white-neural);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark .pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white-neural);
    letter-spacing: -0.02em;
}

.logo-ext {
    color: var(--teal-primary);
}

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

.nav-links a {
    color: var(--gray-silver);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

#neural-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--white-neural);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-ext {
    color: var(--teal-primary);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--teal-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-silver);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--teal-primary), transparent);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(20px);
        opacity: 0.3;
    }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--teal-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

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

.pillars {
    padding: var(--spacing-xl) 0;
    background: var(--white-neural);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.pillar-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(6, 182, 212, 0.03));
}

.pillar-icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.pillar-description {
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================
   FEATURED ARTICLES
   ========================================== */

.featured {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--white-neural), #E8F1F5);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--navy-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.article-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
    border-color: var(--teal-primary);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.02), white);
}

.article-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    width: fit-content;
}

.tag-ai {
    background: rgba(6, 182, 212, 0.15);
    color: #0891B2;
    font-weight: 700;
}

.tag-clinical {
    background: rgba(139, 92, 246, 0.15);
    color: #7C3AED;
    font-weight: 700;
}

.tag-future {
    background: rgba(244, 63, 94, 0.15);
    color: #E11D48;
    font-weight: 700;
}

.tag-ethics {
    background: rgba(139, 92, 246, 0.15);
    color: #7C3AED;
    font-weight: 700;
}

.article-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-light);
}

.read-time {
    color: var(--gray-silver);
    font-size: 0.875rem;
}

.article-link {
    color: var(--teal-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--teal-light);
    transform: translateX(4px);
}

/* ==========================================
   MANIFESTO SECTION
   ========================================== */

.manifesto {
    padding: var(--spacing-xl) 0;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
}

.manifesto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(63, 209, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(63, 209, 193, 0.1) 0%, transparent 50%);
}

.manifesto-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-quote {
    border: none;
}

.manifesto-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white-neural);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    font-weight: 500;
}

.manifesto-quote p:last-child {
    color: var(--teal-primary);
    margin-bottom: 0;
}

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

.about {
    padding: var(--spacing-xl) 0;
    background: var(--white-neural);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.about-text {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    color: var(--gray-dark);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-text strong {
    color: var(--navy-dark);
    font-weight: 600;
}

.about-text em {
    color: var(--teal-primary);
    font-style: normal;
    font-weight: 600;
}

.about-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

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

.footer {
    background: var(--navy-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    color: var(--white-neural);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text {
    color: var(--white-neural);
}

.footer-tagline {
    color: var(--gray-silver);
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white-neural);
    font-weight: 600;
}

.newsletter-description {
    color: var(--gray-silver);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-neural);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--teal-primary);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--gray-silver);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--gray-silver);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-silver);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--teal-primary);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: var(--gray-silver);
    font-size: 0.875rem;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .manifesto-quote p {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
