*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #0a0a0a;
    --surface: #111;
    --card: #1a1a1a;
    --card-hover: #222;
    --text: #e0e0e0;
    --text-muted: #8a8a8a;
    --accent: #fff;
    --border: #2a2a2a;
    --green: #4ade80;
    --amber: #f59e0b;
}
html { scroll-behavior: smooth; }
*:focus-visible { outline: 2px solid #888; outline-offset: 2px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
header {
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img { height: 38px; width: auto; border-radius: 4px; }
.logo-text { min-width: 0; }
.logo-text h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
.logo-text span { color: var(--text-muted); font-size: 0.8rem; display: block; margin-top: -1px; }
.header-info { display: flex; gap: 20px; align-items: center; flex: 0 1 auto; min-width: 0; }
.header-info a { color: var(--text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.header-info a:hover { color: #fff; }
.btn-header {
    padding: 7px 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-header:hover {
    border-color: #555;
    background: var(--card-hover);
    color: #fff;
}
.phone { font-weight: 600; font-size: 1rem !important; white-space: nowrap; }

/* ── Hero ── */
.hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.hero h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 6px;
    letter-spacing: -1px;
    line-height: 1.15;
}
.hero h2 strong {
    font-weight: 800;
    display: block;
    font-size: 3.6rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 16px auto 28px;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-cta .btn-primary {
    padding: 14px 36px;
    font-size: 1rem;
    background: #fff;
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-cta .btn-primary:hover {
    background: #ddd;
    transform: translateY(-1px);
}
.hero-cta .btn-secondary {
    padding: 14px 36px;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-cta .btn-secondary:hover {
    border-color: #555;
    background: var(--card);
    transform: translateY(-1px);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    min-width: 140px;
    justify-content: center;
}
.hero-stats .stat strong {
    display: block;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}
.hero-stats .stat span {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: block;
    line-height: 1.3;
}

/* ── Featured Carousel ── */
.featured {
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border);
}
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
    max-width: 1280px;
    margin: 0 auto;
}
.featured-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.featured-header a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
}
.featured-header a:hover { color: #fff; }
.featured-track-wrap {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.featured-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.featured-track::-webkit-scrollbar { height: 4px; }
.featured-track::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
.featured-card {
    flex: 0 0 260px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}
.featured-card:hover {
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.featured-card .card-image-wrap {
    height: 160px;
}
.featured-card .card-body {
    padding: 10px 12px;
}
.featured-card .card-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.featured-card .card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.featured-card .card-specs {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.featured-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 6px;
}
.featured-card .card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.featured-card .card-no-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s;
    opacity: 0;
}
.featured-track-wrap:hover .featured-arrow,
.featured-track-wrap:focus-within .featured-arrow,
.featured-arrow:focus-visible { opacity: 1; }
.featured-arrow:hover {
    background: var(--card-hover);
    border-color: #555;
}
.featured-arrow.prev { left: 4px; }
.featured-arrow.next { right: 4px; }
.featured-arrow svg { width: 18px; height: 18px; }

/* ── Trade-In Section ── */
.tradein-section {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.tradein-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.tradein-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 20px;
}
.tradein-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.tradein-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.tradein-card:hover {
    border-color: #555;
    background: var(--card-hover);
    transform: translateY(-2px);
}
.tradein-card .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.tradein-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.tradein-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Trust Bar ── */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.trust-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.trust-item strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Integrations ── */
.integrations {
    padding: 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.integrations h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}
.integrations .subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.integration-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.integration-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
}
.integration-link:hover {
    border-color: #555;
    background: var(--card);
    color: #fff;
    transform: translateY(-1px);
}
.integration-link .icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Controls ── */
.controls {
    padding: 20px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: #555; }
.filter-select {
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    min-width: 130px;
}
.result-count { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }

/* ── Vehicle Grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0 60px;
}
.card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    cursor: pointer;
}
.card:hover {
    background: var(--card-hover);
    border-color: #444;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #111;
    overflow: hidden;
}
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.card:hover .card-image { transform: scale(1.03); }
.photo-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
.card-body { padding: 16px; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.card-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.card-specs span::before { content: "\2022 "; color: #555; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.card-price { font-size: 1.2rem; font-weight: 700; color: #fff; }
.card-no-price { font-size: 0.82rem; color: var(--text-muted); }

.card-brand-bg {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #151515 0%, #222 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
}
.brand-logo-large { width: 72px; height: auto; opacity: 0.65; }
.brand-text { font-size: 1.8rem; font-weight: 700; color: #777; letter-spacing: 2px; }
.brand-model { font-size: 0.82rem; color: #555; text-align: center; padding: 0 16px; }
.brand-badge {
    position: absolute; top: 8px; left: 8px;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 5px;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; opacity: 0.85; }
.card-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--green);
    color: #000;
    font-weight: 600;
}
.card-badge.call {
    background: #555;
    color: #fff;
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
    background: var(--surface);
    border-radius: 16px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.modal-header-price { font-size: 1.4rem; font-weight: 700; color: #fff; margin-top: 4px; }
.modal-header-price.call { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}
.modal-close:hover { color: #fff; background: var(--card); }
.modal-img { width: 100%; max-height: 380px; object-fit: cover; background: #111; }
.modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    overflow-x: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.modal-thumbs::-webkit-scrollbar { height: 3px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
.modal-thumb {
    width: 72px; height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background: #111;
    transition: border-color 0.15s;
}
.modal-thumb.active { border-color: #fff; }
.modal-thumb:hover { border-color: #777; }
.modal-body { padding: 20px 24px; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-spec-item { display: flex; justify-content: space-between; padding: 7px 12px; background: var(--card); border-radius: 6px; }
.modal-spec-item label { color: var(--text-muted); font-size: 0.78rem; }
.modal-spec-item span { font-weight: 500; font-size: 0.85rem; }
.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-footer .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

/* ── Buttons ── */
.btn {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #ddd; transform: translateY(-1px); }
.btn-apply {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
}
.btn-apply:hover {
    background: linear-gradient(135deg, #5be990, #34d36e);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74,222,128,0.25);
}
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card-hover); }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
footer strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero { padding: 50px 20px 40px; }
    .hero h2 { font-size: 2rem; }
    .hero h2 strong { font-size: 2.4rem; }
    .header-inner { flex-direction: column; gap: 10px; text-align: center; }
    .header-info { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .controls { flex-direction: column; }
    .search-input, .filter-select { width: 100%; }
    .result-count { margin-left: 0; }
    .modal-specs { grid-template-columns: 1fr; }
    .hero-stats .stat { min-width: 100px; padding: 10px 16px; }
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary { width: 100%; text-align: center; }
}
