/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* === NAV SCROLLED STATE === */
#site-header.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(2, 46, 59, 0.06);
}
#site-header.scrolled .border-b { border-color: rgba(2, 46, 59, 0.08); }

/* === MOBILE MENU === */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }

.mobile-nav-link {
    position: relative;
}
.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::after { width: 100%; }

/* === HERO FLOATING CARDS === */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: -1s; }
.floating-card:nth-child(3) { animation-delay: -2s; }
.floating-card:nth-child(4) { animation-delay: -3s; }
.floating-card:nth-child(5) { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* === MARQUEE === */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* === SCROLL DOT === */
@keyframes scroll-dot {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}
.animate-scroll-dot {
    animation: scroll-dot 1.5s ease-in-out infinite;
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card { animation: none; }
    .animate-marquee { animation: none; }
    .reveal { transition: none; }
    html { scroll-behavior: auto; }
}

/* === SELECTION === */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* === FOCUS === */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fefdf8; }
::-webkit-scrollbar-thumb { background: #064e3b33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #064e3b55; }
</style>
