/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #a8e6cf;
    color: #0f2b4c;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* Hero Gradient Animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-gradient-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-gradient-orb2 {
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-gradient-orb3 {
    animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Product Cards */
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 230, 207, 0.3);
}

/* Navbar Scroll State */
nav.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(15, 43, 76, 0.08);
}

nav.scrolled .nav-link {
    color: rgba(15, 43, 76, 0.7);
}

nav.scrolled #navbar .w-10 {
    background: rgba(168, 230, 207, 0.3);
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    transition: color 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf9f6;
}

::-webkit-scrollbar-thumb {
    background: #a8e6cf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7bc8a8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a8e6cf;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
