*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: #1DD48A;
    color: #040B16;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ── Hero Animations ── */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.hero-orb:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 12s;
}

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

.hero-badge {
    animation: fadeSlideUp 0.8s ease-out both;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeSlideUp 0.8s ease-out 0.45s both;
}

.hero-scroll {
    animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

/* ── Car Cards ── */
.car-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(4, 11, 22, 0.15);
}

/* ── Feature Cards ── */
.feature-card {
    transition: background-color 0.5s ease, transform 0.3s ease;
}

/* ── Process Steps ── */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* ── Header Scroll State ── */
#header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 31, 53, 0.06), 0 4px 20px rgba(10, 31, 53, 0.04);
}

#header.scrolled .nav-link {
    color: #0A1F35;
}

#header.scrolled .nav-link:hover {
    color: #1DD48A;
}

#header.scrolled .menu-line {
    background: #0A1F35;
}

#header.scrolled .font-display {
    color: #0A1F35;
}

/* ── Mobile Menu ── */
.mobile-menu-open {
    overflow: hidden;
}

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

.mobile-link {
    animation: fadeSlideUp 0.4s ease-out both;
}

.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }

/* ── Hamburger Animation ── */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Input Autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ── Selection ── */
::selection {
    background: rgba(29, 212, 138, 0.2);
    color: #040B16;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #1DD48A;
    outline-offset: 2px;
}

/* ── Thin Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(10, 31, 53, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 31, 53, 0.3);
}
