/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.2s ease;
    --transition-med: 0.35s ease;
    --transition-slow: 0.5s ease;
}

/* ===== NAVBAR ===== */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242, 250, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(191, 232, 209, 0.4);
    transition: box-shadow var(--transition-med);
}

.nav-scrolled.scrolled {
    box-shadow: 0 4px 30px rgba(13, 27, 41, 0.08);
}

/* ===== HERO ===== */
.hero-gradient {
    background: linear-gradient(
        145deg,
        #0d1b29 0%,
        #152a3d 35%,
        #1e3a52 65%,
        #2e4f6e 100%
    );
    position: relative;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
}

.hero-deco-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #64b884, transparent 70%);
    top: -200px;
    right: -150px;
}

.hero-deco-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #95d3ad, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.08;
}

.hero-deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #bfe8d1, transparent 70%);
    top: 40%;
    left: 10%;
    opacity: 0.1;
}

.hero-eyebrow {
    animation: fadeDown 0.7s ease both;
}

.hero-title {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.15s;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.3s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.45s;
}

.hero-images {
    animation: fadeUp 0.9s ease both;
    animation-delay: 0.6s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: #64b884;
    color: #0d1b29;
    box-shadow: 0 4px 20px rgba(100, 184, 132, 0.35);
}

.btn-primary:hover {
    background: #95d3ad;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(100, 184, 132, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #f0f4f9;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}

/* ===== CARDS ===== */
.card-hover {
    will-change: transform;
}

.card-hover .bg-white {
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.card-hover:hover .bg-white {
    transform: translateY(-6px);
}

/* ===== INPUTS ===== */
.input-field {
    background: #f2faf5;
    border: 1.5px solid #ddf5e8;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #0d1b29;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

.input-field::placeholder {
    color: #a8b8cc;
}

.input-field:focus {
    border-color: #64b884;
    box-shadow: 0 0 0 3px rgba(100, 184, 132, 0.15);
    background: #ffffff;
}

.input-field.error {
    border-color: #e07a5f;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

/* ===== CTA SECTION ===== */
.cta-gradient {
    background: linear-gradient(
        135deg,
        #152a3d 0%,
        #1e3a52 50%,
        #2e4f6e 100%
    );
    position: relative;
}

.cta-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
}

.cta-deco-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #95d3ad, transparent 70%);
    top: -200px;
    left: -150px;
}

.cta-deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #bfe8d1, transparent 70%);
    bottom: -100px;
    right: -50px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .nav-scrolled {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
