/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Navbar ── */
#navbar {
    background: rgba(254, 254, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(110, 231, 183, 0.2);
}
#navbar.scrolled {
    background: rgba(254, 254, 249, 0.95);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}
.nav-logo { letter-spacing: -0.02em; }

/* ── Hero shapes ── */
.hero-shape {
    position: absolute;
    pointer-events: none;
}
.shape-circle-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px; right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}
.shape-circle-2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%; left: -60px;
    animation: float-slow 6s ease-in-out infinite reverse;
}
.shape-rect {
    width: 120px; height: 120px;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 24px;
    top: 25%; left: 8%;
    transform: rotate(15deg);
    animation: float-slow 7s ease-in-out infinite;
}
.shape-triangle {
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(16, 185, 129, 0.07);
    top: 30%; right: 10%;
    animation: float-slow 9s ease-in-out infinite reverse;
}
.shape-dot {
    width: 16px; height: 16px;
    background: rgba(5, 150, 105, 0.3);
    border-radius: 50%;
    bottom: 25%; right: 20%;
    animation: float-slow 5s ease-in-out infinite;
}

/* ── About shapes ── */
.about-shape {
    position: absolute;
    pointer-events: none;
}
.shape-circle-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px; right: -150px;
}
.shape-rect-2 {
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 40px;
    bottom: -50px; left: -50px;
    transform: rotate(20deg);
}

/* ── CTA shapes ── */
.cta-shape {
    position: absolute;
    pointer-events: none;
}
.shape-dot-1 {
    width: 20px; height: 20px;
    background: rgba(5, 150, 105, 0.2);
    border-radius: 50%;
    top: 15%; left: 10%;
    animation: float-slow 5s ease-in-out infinite;
}
.shape-circle-4 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px; right: -80px;
}
.shape-rect-3 {
    width: 100px; height: 100px;
    background: rgba(5, 150, 105, 0.06);
    border-radius: 20px;
    top: 10%; right: 15%;
    transform: rotate(-10deg);
    animation: float-slow 7s ease-in-out infinite reverse;
}

/* ── Animations ── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}
.shape-triangle { --rot: 15deg; }
.shape-rect { --rot: 15deg; }
.shape-rect-2 { --rot: 20deg; }
.shape-rect-3 { --rot: -10deg; }

/* ── Marquee ── */
.marquee-track {
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Reveal on scroll ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
.bar { transition: all 0.3s ease; }
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Mobile link animation ── */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hero-shape, .about-shape, .cta-shape { animation: none; }
    .marquee-track { animation: none; }
    .reveal { transition: none; }
    html { scroll-behavior: auto; }
}

/* ── Utility ── */
.pt-18 { padding-top: 4.5rem; }
</style>
