:root {
    --bg: #0a0d12;
    --bg-alt: #0f131a;
    --card: #151b24;
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #eef2f7;
    --text-dim: #97a2b0;
    --accent: #d43f4b;
    --accent-light: #ff8f8f;
    --accent-gradient: linear-gradient(135deg, #8a2332 0%, #e0454f 100%);
    --radius: 14px;
    --container: 1180px;
    --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 10px;
}

h1, h2, h3, h4 { font-weight: 800; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
p { color: var(--text-dim); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-accent { background: var(--accent-gradient); color: #fbeef0; box-shadow: 0 10px 24px -8px rgba(212,63,75,.5); }
.btn-outline { border-color: rgba(255,255,255,.18); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent-light); }
.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 13, 18, 0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    padding: 140px 0 110px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-video, .hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video {
    opacity: 0;
    transition: opacity 1.1s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-fallback {
    background:
        radial-gradient(ellipse 60% 50% at 80% 10%, rgba(212,63,75,.26), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,143,143,.14), transparent 60%),
        var(--bg);
    transition: opacity .8s ease;
    overflow: hidden;
}
.hero-fallback.is-hidden { opacity: 0; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(6,9,14,.92) 0%, rgba(6,9,14,.78) 38%, rgba(6,9,14,.42) 68%, rgba(6,9,14,.65) 100%);
}
.light-sweep {
    position: absolute;
    top: 0;
    left: -35%;
    width: 30%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,143,143,.16) 45%, rgba(255,143,143,.05) 55%, transparent 100%);
    transform: skewX(-18deg);
    animation: sweep 9s ease-in-out infinite;
}
.light-sweep.l2 { animation-duration: 13s; animation-delay: 2.2s; opacity: .7; }
.light-sweep.l3 { animation-duration: 16.5s; animation-delay: 5s; opacity: .5; }
@keyframes sweep {
    0% { transform: translateX(0) skewX(-18deg); }
    50% { transform: translateX(420%) skewX(-18deg); }
    100% { transform: translateX(420%) skewX(-18deg); }
}
.hero-silhouette {
    position: absolute;
    right: -4%;
    bottom: 6%;
    width: 62%;
    max-width: 640px;
    opacity: .8;
    animation: driftIn 2.4s ease-out;
}
@keyframes driftIn {
    from { transform: translateX(6%); opacity: 0; }
    to { transform: translateX(0); opacity: .8; }
}
.hero-inner { max-width: 720px; position: relative; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; }
.hero h1 span { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-fade {
    opacity: 0;
    transform: translateY(22px);
    animation: heroFadeUp .9s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    color: var(--text-dim);
    opacity: .7;
    animation: bounceCue 2.2s ease-in-out infinite;
}
.hero-scroll-cue:hover { color: var(--accent-light); opacity: 1; }
@keyframes bounceCue {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-fade { animation: none; opacity: 1; transform: none; }
    .light-sweep, .hero-scroll-cue, .hero-silhouette { animation: none; }
}

/* Trust bar */
.trust-bar { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); background: var(--bg-alt); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 24px;
}
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-weight: 600; font-size: 14px; }
.trust-item svg { color: var(--accent-light); flex-shrink: 0; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { display: block; }

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.filters select {
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

/* Vehicle grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vehicle-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,143,143,.22); }
.vehicle-photo { position: relative; aspect-ratio: 4/3; background: #1b2330; overflow: hidden; }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo .badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent-gradient);
    color: #06101f;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}
.vehicle-body { padding: 20px; }
.vehicle-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.vehicle-specs span {
    font-size: 12.5px;
    color: var(--text-dim);
    background: rgba(255,255,255,.05);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 999px;
}
.vehicle-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { color: var(--accent-light); font-size: 19px; font-weight: 800; }
.empty-state { text-align: center; padding: 40px 0; color: var(--text-dim); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 22px;
}
.feature-card svg { color: var(--accent-light); margin-bottom: 14px; }
.feature-card p { font-size: 14px; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.about-text { font-size: 15.5px; margin-bottom: 26px; }
.about-logo {
    background: radial-gradient(ellipse at center, rgba(212,63,75,.16), transparent 70%);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.contact-form {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--text-dim); font-weight: 500; }
.contact-form input, .contact-form textarea {
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 11px 13px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14.5px;
    resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-light); }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.info-card h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-light); }
.info-card p { margin: 0; font-size: 14.5px; color: var(--text); }
.info-card a:hover { color: var(--accent-light); }
.social-links { display: flex; gap: 16px; }
.social-links a { font-weight: 600; color: var(--text); }
.social-links a:hover { color: var(--accent-light); }
.map-wrap { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 34px 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { height: 34px; }
.footer-inner p { margin: 0; font-size: 13.5px; }
.footer-admin-link { font-size: 12.5px; color: var(--text-dim); opacity: .6; }
.footer-admin-link:hover { opacity: 1; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #06101f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px -8px rgba(37,211,102,.6);
    z-index: 40;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: var(--shadow);
}
.toast--success { background: #1a7f4f; color: #eafff2; }
.toast--error { background: #8f2b2b; color: #ffecec; }

/* Vehicle modal */
.vehicle-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vehicle-modal[hidden] { display: none; }
.vehicle-modal-backdrop { position: absolute; inset: 0; background: rgba(4,6,10,.78); backdrop-filter: blur(3px); }
.vehicle-modal-panel {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.vehicle-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}
.vehicle-modal-gallery { position: relative; aspect-ratio: 16/9; background: #1b2330; }
.vehicle-modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.5); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.vehicle-modal-body { padding: 26px; }
.vehicle-modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; gap: 14px; }
.vehicle-modal-actions { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 980px) {
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-logo { order: -1; padding: 26px; }
    .contact-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .site-header.nav-open .nav {
        display: flex;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        padding: 18px 24px;
        gap: 16px;
    }
    .site-header.nav-open .header-cta {
        display: flex;
        position: absolute;
        top: calc(76px + 150px);
        left: 0; right: 0;
        background: var(--bg);
        padding: 0 24px 20px;
        border-bottom: 1px solid var(--card-border);
    }
    .vehicle-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 90px 0 60px; min-height: auto; }
    .hero-silhouette { opacity: .35; width: 90%; right: -10%; }
    .hero-scroll-cue { display: none; }
}
