/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5f0e8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0a;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 15, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations — progressive enhancement, hidden by default via JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animations */
#hero-badge {
    animation: fadeSlideUp 0.8s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
#hero-title {
    animation: fadeSlideUp 0.8s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
#hero-subtitle {
    animation: fadeSlideUp 0.8s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
#hero-cta {
    animation: fadeSlideUp 0.8s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
#hero-trust {
    animation: fadeSlideUp 0.8s 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold shimmer on hover for buttons */
button, a {
    position: relative;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.6);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
