*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
}

/* Hero animations */
.hero-eyebrow {
    animation: slideUp 0.6s ease-out both;
}

.hero-headline {
    animation: slideUp 0.6s ease-out 0.1s both;
}

.hero-sub {
    animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    animation: slideUp 0.6s ease-out 0.3s both;
}

.hero-trust {
    animation: slideUp 0.6s ease-out 0.4s both;
}

.hero-image-block {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.hero-badge {
    animation: fadeIn 0.6s ease-out 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Card hover */
.card-hover {
    /* default state is visible — no hidden state */
}

@media (prefers-reduced-motion: no-preference) {
    .card-hover {
        transition: transform 0.3s ease;
    }
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Header scroll state */
#site-header.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 43, 76, 0.08);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: #bbf7d0;
    color: #0f2b4c;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #d4dfe8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8bdd4;
}
