/* ===================================
   Charity Finance Analyzer - Styles
   Clean, professional design with blue accents
   =================================== */

:root {
    /* Color Palette - Soft blues with warm neutrals */
    --color-bg: #fafbfc;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-hover: #f1f5f9;
    --color-bg-muted: #f8fafc;
    
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-faint: #94a3b8;
    
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-muted: rgba(37, 99, 235, 0.1);
    
    --color-secondary: #0ea5e9;
    --color-accent: #6366f1;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* Typography - Clean and professional */
    --font-body: Arial, Helvetica, sans-serif;
    --font-mono: Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms 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);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

p {
    line-height: 1.8;
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-coffee {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #d97706;
}

.btn-coffee:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: #b45309;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text);
}

.logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo svg {
    width: 20px;
    height: 20px;
}

.brand-name {
    font-family: var(--font-body);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-4xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-primary-muted);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

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

.stat-value {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-visual svg {
    width: 100%;
    height: auto;
}

/* Sections */
section {
    padding: var(--space-4xl) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-eyebrow {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary-muted);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Features */
.features {
    background: var(--color-bg-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
    margin: var(--space-2xl) auto;
    max-width: calc(1200px - var(--space-xl) * 2);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Different hover colors for each feature */
.feature-card:nth-child(1):hover { border-color: #10b981; }
.feature-card:nth-child(2):hover { border-color: #2563eb; }
.feature-card:nth-child(3):hover { border-color: #ef4444; }

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

/* Different colors for each feature card */
.feature-card:nth-child(1) .feature-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.feature-card:nth-child(2) .feature-icon {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}
.feature-card:nth-child(3) .feature-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    counter-reset: step-counter;
}

.step {
    position: relative;
    text-align: center;
    padding: var(--space-xl);
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    color: white;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
}

/* Different colors for each step */
.step:nth-child(1)::before { background: #10b981; }
.step:nth-child(2)::before { background: #2563eb; }
.step:nth-child(3)::before { background: #f59e0b; }

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.step-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* About */
.about {
    background: linear-gradient(135deg, #2563eb 0%, #059669 50%, #0ea5e9 100%);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) auto;
    max-width: calc(1200px - var(--space-xl) * 2);
    color: white;
    padding: var(--space-4xl);
}

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

.about .section-eyebrow {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.about .section-title {
    color: white;
}

.about-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.about-text.highlight-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: white;
}

/* CTA */
.cta {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) var(--space-xl);
    background: var(--color-bg-muted);
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.footer-brand .logo {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-xl) auto;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-faint);
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid,
    .steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .features,
    .about {
        margin: var(--space-xl) var(--space-md);
        padding: var(--space-2xl) var(--space-lg);
    }
}
