/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #111827;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --max-width: 1200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

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

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    padding: 16px 0;
}

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

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.brand-tag {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'JetBrains Mono', monospace;
}

.nav-docs-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-docs-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    display: block;
    font-size: 28px;
    font-weight: 400;
    color: var(--primary);
    margin-top: 8px;
}

.hero-description {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.btn-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

/* Section Styles */
.section-problem, .section-solution, .section-thresholds, .section-compliance {
    padding: 80px 0;
}

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

.section-solution {
    background: var(--gray-50);
}

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

.section-compliance {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.problem-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--gray-600);
    line-height: 1.5;
}

/* Solution Tiers */
.solution-tiers {
    max-width: 1000px;
    margin: 0 auto;
}

.tier-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tier {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tier-a {
    border-top: 4px solid var(--secondary);
}

.tier-b {
    border-top: 4px solid var(--warning);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tier-header i {
    font-size: 28px;
}

.tier-a .tier-header i {
    color: var(--secondary);
}

.tier-b .tier-header i {
    color: var(--warning);
}

.tier-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
}

.tier-desc {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.tier ul {
    list-style: none;
    margin-bottom: 24px;
}

.tier li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
}

.tier li i {
    color: var(--secondary);
    font-size: 14px;
}

.tier-metric {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 14px;
    color: var(--gray-600);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Threshold Showcase */
.threshold-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.threshold-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.threshold-card.featured {
    border-color: var(--primary);
    background: var(--gray-50);
}

.threshold-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.threshold-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.threshold-monthly {
    font-size: 14px;
    color: var(--gray-500);
}

.formula-callout {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.formula-callout i {
    font-size: 32px;
}

.formula-callout h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.formula-callout p {
    opacity: 0.9;
    font-size: 14px;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

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

.compliance-item i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.compliance-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.compliance-item p {
    color: var(--gray-600);
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    padding: 80px 0;
}

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

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--gray-300);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-primary, .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

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

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--gray-900);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 40px 0;
}

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

.footer-brand h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-info a {
    color: var(--gray-400);
    text-decoration: none;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .tier-display {
        grid-template-columns: 1fr;
    }

    .threshold-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

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

    .nav-docs-btn span {
        display: none;
    }
}