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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
    /* Above overlay */
}

.mobile-menu-btn span {
    width: 2rem;
    height: 0.25rem;
    background: #0f172a;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 55;
    /* Below button, above header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

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

.mobile-nav-links .btn-text {
    font-size: 1.5rem;
}

.mobile-nav-links .btn-primary-small {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

/* Typography & Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
a {
    text-decoration: none;
    color: inherit;
}

.btn-text {
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: #0f172a;
}

.btn-primary-small,
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-small {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    font-size: 0.875rem;
}

.btn-primary-small:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-size: 1.125rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    padding: 1rem 2rem;
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-size: 1.125rem;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-large {
    min-width: 200px;
}

.pulse-btn {
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('/images/map-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(100%) brightness(1.2) contrast(90%);
    animation: mapFadeIn 4s ease-out forwards;
}

.hero-bg-texture {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    z-index: 1;
}

.hero-map-svg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: 2;
    animation: idleSlowPan 60s infinite alternate linear;
}

.hero-bg-depth {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(circle at center, transparent 30%, rgba(248, 250, 252, 0.7) 100%);
    pointer-events: none;
}

@keyframes mapFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.15;
        transform: scale(1);
    }
}

@keyframes idleSlowPan {
    0% {
        transform: scale(1.05) translate(-1%, -1%) rotate(-0.2deg);
    }

    100% {
        transform: scale(1.1) translate(1%, 1%) rotate(0.2deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social Proof */
.social-proof {
    padding: 6rem 1.5rem;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.section-kicker {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.quote {
    font-size: 1.125rem;
    color: #1e293b;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author strong {
    display: block;
    color: #0f172a;
}

.author span {
    color: #64748b;
    font-size: 0.875rem;
}

/* Final CTA */
.final-cta {
    padding: 8rem 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .hero-map-svg {
        animation: none;
    }

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

    .problem-section h2,
    .value-section h2 {
        font-size: 2rem;
    }

    .btn-large {
        width: 100%;
        min-width: auto;
    }

    /* Mobile Nav Tweaks */
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}