:root {
    --ease-out-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled,
.site-header.nav-open {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 40, 80, 0.08);
    box-shadow: 0 12px 40px rgba(11, 25, 44, 0.08);
}

.hero {
    align-items: stretch;
}

.hero-copy,
.hero-visual {
    min-height: 480px;
    border-radius: 32px;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(1200px 400px at 90% -10%, rgba(59, 130, 246, 0.45), transparent 55%),
        linear-gradient(145deg, #0b192c 0%, #1e3a8a 52%, #2563eb 100%);
}

.hero-copy::before,
.hero-copy::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
}

.hero-copy::before {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -40px;
    background: rgba(96, 165, 250, 0.55);
}

.hero-copy::after {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -50px;
    background: rgba(59, 130, 246, 0.35);
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(11, 25, 44, 0.78) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.hero-badge {
    z-index: 2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.25);
}

.btn-accent {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-accent::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.38) 50%, transparent 80%);
    transform: translateX(-180%);
    animation: shimmer 4.8s var(--ease-out-premium) infinite;
    pointer-events: none;
}

.btn-accent:hover {
    transform: scale(1.03);
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.45);
}

.btn-accent:active,
.btn-ghost:active,
.btn-header-phone:active {
    transform: scale(0.97);
}

.hero-copy .btn-ghost {
    color: #e0f2fe;
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(11, 25, 44, 0.15), rgba(11, 25, 44, 0.15)) padding-box,
        linear-gradient(120deg, #93c5fd, #3b82f6, #60a5fa) border-box;
}

.hero-copy .btn-ghost:hover {
    color: #fff;
    background: linear-gradient(120deg, #2563eb, #3b82f6);
    border-color: transparent;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.35);
}

.hero-stage .lede,
.hero-stage h1,
.hero-stage .hero-lead,
.hero-stage .hero-actions,
.hero-stage .hero-visual {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s var(--ease-out-premium),
        transform 0.8s var(--ease-out-premium);
}

body.is-ready .hero-stage .lede {
    opacity: 1;
    transform: none;
    transition-delay: 0.08s;
}

body.is-ready .hero-stage h1 {
    opacity: 1;
    transform: none;
    transition-delay: 0.22s;
}

body.is-ready .hero-stage .hero-lead {
    opacity: 1;
    transform: none;
    transition-delay: 0.38s;
}

body.is-ready .hero-stage .hero-actions {
    opacity: 1;
    transform: none;
    transition-delay: 0.54s;
}

body.is-ready .hero-stage .hero-visual {
    opacity: 1;
    transform: none;
    transition-delay: 0.32s;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--ease-out-premium),
        transform 0.8s var(--ease-out-premium);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@keyframes shimmer {
    0%,
    55% {
        transform: translateX(-180%);
    }
    80%,
    100% {
        transform: translateX(280%);
    }
}

@media (max-width: 768px) {
    .hero-copy,
    .hero-visual {
        min-height: 0;
    }

    .hero-visual img {
        position: relative;
        inset: auto;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stage .lede,
    .hero-stage h1,
    .hero-stage .hero-lead,
    .hero-stage .hero-actions,
    .hero-stage .hero-visual,
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-accent::after {
        display: none;
        animation: none;
    }
}
