:root {
    --color-emerald-950: #042f23;
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-emerald-500: #10b981;
    --color-emerald-100: #d1fae5;
    --color-emerald-50: #ecfdf5;
    --color-stone-950: #0c0a09;
    --color-stone-900: #1c1917;
    --color-stone-600: #57534e;
    --color-stone-500: #78716c;
    --color-stone-400: #a8a29e;
    --color-stone-200: #e7e5e4;
    --color-stone-100: #f5f5f4;
    --color-stone-50: #fafaf9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-stone-900);
    background-color: var(--color-stone-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-stone-100);
}
::-webkit-scrollbar-thumb {
    background: var(--color-emerald-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-500);
}

/* Loader */
#loader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Navbar */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}
.nav-text-white { color: white; }
.nav-text-white/60 { color: rgba(255, 255, 255, 0.6); }
.nav-text-white:hover { color: var(--color-emerald-900); }
.nav-hover:text-white:hover { color: white; }
#navbar.scrolled .nav-text-white { color: var(--color-emerald-900); }
#navbar.scrolled .nav-text-white/60 { color: var(--color-stone-500); }
#navbar.scrolled .nav-hover:text-white:hover { color: var(--color-emerald-700); }
#navbar.scrolled .mobile-link { color: var(--color-emerald-900) !important; }

/* Hero */
.hero {
    position: relative;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Scroll reveal */
.scroll-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);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }
.scroll-reveal[data-delay="6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link transitions */
.mobile-link {
    transition: color 0.2s ease;
}

/* Selection */
::selection {
    background: var(--color-emerald-200);
    color: var(--color-emerald-950);
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--color-emerald-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print */
@media print {
    #navbar, #loader, .animate-bounce { display: none; }
    body { color: black; background: white; }
}
