/* =========================================
   CSS Variables & Tokens
   ========================================= */
:root {
    /* Colors - Premium Palette */
    --bg-main: #f8fafc;
    --bg-dark: #0f172a;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #f1f5f9;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --border-radius: 16px;
    --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-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* =========================================
   Components
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

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

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

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

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

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

.site-nav a {
    color: var(--text-main);
    font-weight: 600;
}

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

.site-nav .btn {
    color: var(--primary); /* override */
}
.site-nav .btn:hover {
    color: white;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 80px;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.3);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.2);
    bottom: -100px;
    left: 20%;
    animation-delay: -10s;
}

/* =========================================
   Why Section (Grid Cards)
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   Map Section
   ========================================= */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =========================================
   FAQ Section
   ========================================= */
.bg-light {
    background-color: white;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-main);
    border: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-answer p {
    padding: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* =========================================
   Donate Section
   ========================================= */
.donate-section {
    background: var(--bg-dark);
    color: white;
    margin: 4rem 2rem;
    border-radius: 24px;
}

.donate-section h2, .donate-section p {
    color: white;
}

.donate-actions {
    margin-top: 2.5rem;
}

.btn-large {
    font-size: 1.25rem;
    padding: 1rem 3rem;
}

.donate-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* =========================================
   Comparative Section (Dark Mode)
   ========================================= */
.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.dark-mode h2 {
    color: white;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-box.highlight {
    background: var(--primary-dark);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* =========================================
   Process Timeline
   ========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: rgba(59, 130, 246, 0.2);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    flex-grow: 1;
}

/* =========================================
   Call to Action
   ========================================= */
.cta-section {
    position: relative;
    margin: 4rem 2rem;
    border-radius: 24px;
    background: var(--gradient-primary);
    color: white;
}

.cta-section h2, .cta-section p {
    color: white;
}

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

.signup-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 0.5rem;
}

.signup-form input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.signup-form .btn {
    background: var(--bg-dark);
    color: white;
}

.signup-form .btn:hover {
    background: black;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-col {
    max-width: 300px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* =========================================
   Animations
   ========================================= */
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(30px);
}

.slide-up.visible {
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .site-nav {
        display: none; /* simple mobile nav hide for now */
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--bg-dark);
        border-radius: 3px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .signup-form {
        flex-direction: column;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }
}
