:root {
    --bg-0: #05080d;
    --bg-1: #0b121d;
    --bg-2: #121d2d;
    --line: rgba(255, 255, 255, 0.08);
    --text-0: #edf6ff;
    --text-1: #b3c4d8;
    --accent-cyan: #00d4ff;
    --accent-orange: #ff6f3d;
    --accent-lime: #8dfb42;
    --card-bg: rgba(11, 19, 31, 0.82);
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-0);
    font-family: "Rajdhani", sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 212, 255, 0.16), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(255, 111, 61, 0.14), transparent 28%),
        radial-gradient(circle at 55% 85%, rgba(141, 251, 66, 0.11), transparent 36%),
        linear-gradient(140deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
    background-attachment: fixed;
}

.background-glow {
    position: fixed;
    inset: -20% -10%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.015) 0px,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 42px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.012) 0px,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 42px
        );
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(circle at 50% 50%, black 62%, transparent 100%);
}

.catalog-shell {
    position: relative;
    z-index: 1;
    width: min(1300px, 94vw);
    margin: 0 auto;
    padding: 2.2rem 0 3.5rem;
}

.hero {
    margin-bottom: 1.8rem;
}

.kicker {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.hero h1 {
    margin: 0.4rem 0 0.5rem;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.75rem, 4vw, 3.15rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-subtitle {
    margin: 0;
    max-width: 720px;
    color: var(--text-1);
    font-size: 1.08rem;
}

.section-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tab-button {
    border: 1px solid var(--line);
    background: rgba(8, 15, 24, 0.82);
    color: var(--text-1);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--text-0);
}

.tab-button.is-active {
    color: #00111b;
    border-color: transparent;
    background: linear-gradient(120deg, var(--accent-cyan), #69f3ff 62%, #a8fbff);
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.26);
}

.catalog-section {
    display: none;
}

.catalog-section.is-active {
    display: block;
    animation: sectionReveal 0.25s ease both;
}

.section-head {
    margin-bottom: 0.8rem;
}

.section-kicker {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-lime);
}

.section-head h2 {
    margin: 0.25rem 0 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.input-group {
    display: grid;
    gap: 0.35rem;
}

.input-group span {
    font-size: 0.86rem;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 14, 23, 0.82);
    color: var(--text-0);
    padding: 0.72rem 0.8rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder {
    color: #7f92a8;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.16);
    transform: translateY(-1px);
}

.catalog-meta {
    margin-bottom: 0.9rem;
    color: var(--text-1);
}

.results-count {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.catalog-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.vehicle-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: translateY(0) scale(1);
    transition:
        transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1),
        box-shadow 0.26s ease,
        border-color 0.26s ease;
    animation: reveal 0.45s ease both;
}

.vehicle-card:hover {
    transform: translateY(-7px) scale(1.015);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(0, 212, 255, 0.24);
}

.card-media {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(120deg, #101d2f, #16283e);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.vehicle-card:hover .card-media img {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.03);
}

.card-content {
    padding: 0.9rem 0.9rem 1rem;
}

.card-content h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: 1.06rem;
    letter-spacing: 0.03em;
}

.brand {
    margin: 0.2rem 0 0.65rem;
    color: var(--text-1);
    font-size: 0.95rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.chip {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: var(--accent-lime);
    border: 1px solid rgba(141, 251, 66, 0.45);
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    white-space: nowrap;
}

.price {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 0.03em;
}

.empty-state {
    margin-top: 1.2rem;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 0.3rem;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.05em;
}

.empty-state p {
    margin: 0;
    color: var(--text-1);
}

.hidden {
    display: none;
}

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

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

@media (max-width: 900px) {
    .section-tabs {
        flex-wrap: wrap;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .catalog-shell {
        width: min(1300px, 92vw);
        padding-top: 1.35rem;
    }

    .hero h1 {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .price {
        font-size: 0.98rem;
    }
}
