/* ==========================================
   MODERN DESIGN SYSTEM & GLOBAL STYLES
   ========================================== */

:root {
    /* Enhanced Color Palette - 2025 Modern Design */
    --primary-blue: #0066FF;
    --primary-blue-dark: #0052CC;
    --primary-green: #00D4A1;
    --primary-green-dark: #00B389;
    --accent-purple: #7C3AED;
    --accent-pink: #EC4899;
    --accent-orange: #FF6B35;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --bg-dark: #0F172A;
    --bg-gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 40%, #EEF2FF 100%);
    --bg-gradient-section: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

    /* Text Colors */
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #64748B;
    --text-lighter: #94A3B8;

    /* Borders */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;

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

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

    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.15);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

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

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

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

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: width var(--transition-medium);
    border-radius: 2px;
}

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    background: var(--bg-gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 161, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 60%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-green-dark));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Trust Badges */
.trust-badges {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
}

.trust-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

/* ==========================================
   SECTION STYLES WITH ENHANCED HIERARCHY
   ========================================== */

section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-3xl);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ==========================================
   MODERN CARD COMPONENTS
   ========================================== */

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

.ecosystem-card {
    background-color: white;
    border: 1px solid var(--border-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.ecosystem-card:hover::before {
    transform: scaleX(1);
}

.ecosystem-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: grayscale(0);
    opacity: 0.9;
}

.ecosystem-card p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    font-size: 1rem;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--primary-green);
    gap: 0.75rem;
}

.card-link.coming-soon {
    color: var(--text-light);
    cursor: default;
}

/* ==========================================
   STATS & METRICS SECTION
   ========================================== */

.impact {
    background: var(--bg-gradient-section);
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.04), transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(0, 212, 161, 0.04), transparent 60%);
    z-index: 0;
}

.impact .container {
    position: relative;
    z-index: 1;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.stat {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
}

.stat:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-blue);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==========================================
   FEATURE CARDS & PILLARS
   ========================================== */

.pillar-card {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
}

.pillar-card:hover {
    box-shadow: var(--shadow-xl);
    border-left-width: 6px;
    transform: translateX(8px);
}

.pillar-card h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-size: 1.375rem;
    font-weight: 700;
}

.pillar-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

/* ==========================================
   VISION & MISSION SECTIONS
   ========================================== */

.vision {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.vision-text {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-medium);
    font-weight: 400;
}

.mission {
    background: var(--bg-gradient-section);
}

.mission-text {
    text-align: center;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-medium);
    font-weight: 500;
}

/* ==========================================
   ENHANCED CTA FOOTER SECTION
   ========================================== */

.cta-footer {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    text-align: center;
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-4xl) 0;
}

.cta-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    z-index: 0;
}

.cta-footer .container {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-2xl);
}

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

.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-3xl);
    justify-content: flex-end;
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

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

.footer-column a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

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

    .ecosystem-grid,
    .pillars-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-md);
        font-size: 0.875rem;
    }

    .hero {
        padding: var(--spacing-3xl) 0 var(--spacing-2xl);
        min-height: 90vh;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .footer-links {
        justify-content: center;
        gap: var(--spacing-2xl);
    }

    section {
        padding: var(--spacing-3xl) 0;
    }

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

@media (max-width: 480px) {
    .nav-links {
        gap: var(--spacing-sm);
        font-size: 0.8125rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }
}

/* ==========================================
   PAGE-SPECIFIC STYLES
   ========================================== */

/* About Page */
.about-hero {
    padding-top: 140px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient-hero);
}

.about-section {
    max-width: 950px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.about-section h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
}

.about-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

.principles-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.principle-item {
    background-color: white;
    padding: var(--spacing-xl);
    border-left: 4px solid var(--accent-purple);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
}

.principle-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(10px);
    border-left-width: 6px;
}

.principle-item h4 {
    color: var(--accent-purple);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 700;
}

.principle-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Manifesto Page */
.manifesto-content {
    max-width: 850px;
    margin: 0 auto;
    padding: var(--spacing-4xl) var(--spacing-lg);
    background: var(--bg-gradient-hero);
    min-height: 100vh;
}

.manifesto-content p {
    font-size: 1.25rem;
    line-height: 2;
    margin-bottom: var(--spacing-xl);
    color: var(--text-medium);
}

.manifesto-content strong {
    color: var(--primary-blue);
    font-size: 1.375rem;
    font-weight: 700;
}

/* Contact Page */
.contact-hero {
    padding-top: 140px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-gradient-hero);
}

.contact-content {
    max-width: 750px;
}

.contact-info {
    margin: var(--spacing-2xl) 0;
    font-size: 1.25rem;
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

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

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary-green);
}
