html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[x-cloak] {
    display: none !important;
}

.site-shell {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
}

.nav-link {
    position: relative;
    color: rgb(71 85 105);
    transition: color 180ms ease;
}

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 100%;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    border-radius: 999px;
    background: linear-gradient(90deg, #15803d, #10b981);
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #15803d;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(226, 232, 240, 0.7);
    transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.premium-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.9));
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    position: absolute;
    inset: 0;
    padding: 1px;
    content: "";
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(21,128,61,0.28), rgba(245,158,11,0.18), rgba(148,163,184,0.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 128, 61, 0.14);
    background: rgba(240, 253, 244, 0.78);
    padding: 0.5rem 0.9rem;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btn-primary,
.btn-secondary,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #15803d, #059669);
    box-shadow: 0 14px 32px rgba(21, 128, 61, 0.24);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(21, 128, 61, 0.32);
}

.btn-secondary {
    border: 1px solid rgba(203, 213, 225, 0.95);
    color: rgb(15 23 42);
    background: rgba(255, 255, 255, 0.84);
}

.btn-secondary:hover {
    border-color: rgba(21, 128, 61, 0.24);
    color: #15803d;
    background: rgba(240, 253, 244, 0.9);
}

.btn-white {
    color: #166534;
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
}

.soft-orb {
    position: absolute;
    pointer-events: none;
    filter: blur(52px);
    opacity: 0.36;
}

.fab-float {
    animation: fabFloat 4.5s ease-in-out infinite;
}

.fab-tooltip {
    opacity: 0;
    transform: translateX(0.5rem) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.fab-action:hover .fab-tooltip,
.fab-action:focus-visible .fab-tooltip {
    opacity: 1;
    transform: translateX(0) scale(1);
}

@keyframes fabFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
