/* Velocity — static styles */
:root {
  --bg: #1a1d24;
  --bg-2: #14171d;
  --surface: #232730;
  --surface-2: #2c313c;
  --fg: #f4f5f7;
  --muted: #9aa3b2;
  --border: rgba(255,255,255,0.08);
  --brand: #5cb8ff;
  --brand-2: #7ad0ff;
  --brand-gradient: linear-gradient(135deg,#5cb8ff,#7ad0ff);
  --shadow-glow: 0 0 80px -10px rgba(92,184,255,0.4);
  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.6);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Inter', system-ui, sans-serif; }
body {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.02em; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted); }
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(26,29,36,0.7);
  backdrop-filter: blur(20px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-gradient); box-shadow: var(--shadow-glow); }
.nav { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--fg); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
@media (max-width: 720px) { .nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 14px;
  transition: opacity .2s, transform .2s, background .2s;
}
.btn-primary { background: var(--brand-gradient); color: #0d1117; box-shadow: var(--shadow-glow); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(92,184,255,0.15), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 64px 0 96px; min-height: 80vh;
}
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.hero p { font-size: 18px; color: var(--muted); margin: 24px 0 32px; max-width: 480px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; color: var(--muted); margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 400px; margin-top: 40px; }
.stat-v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; }
.stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-image-wrap { position: relative; }
.hero-image-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-gradient); opacity: 0.2; filter: blur(80px); border-radius: 50%;
}
.hero-image-wrap img { position: relative; border-radius: 16px; box-shadow: var(--shadow-card); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 64px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-eyebrow { color: var(--brand); font-size: 14px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

/* Body type cards */
.bt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.bt-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; transition: all .2s;
}
.bt-card:hover { border-color: rgba(92,184,255,0.5); background: var(--surface-2); transform: translateY(-2px); }
.bt-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(92,184,255,0.15); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.bt-card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; }
.bt-card-meta { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .bt-grid { grid-template-columns: repeat(2,1fr); } }

/* Car cards */
.cars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cars-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .cars-grid, .cars-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .cars-grid, .cars-grid.cols-4 { grid-template-columns: 1fr; } }
.car-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all .3s; display: block;
}
.car-card:hover { border-color: rgba(92,184,255,0.5); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.car-card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg-2); }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car-card:hover .car-card-img img { transform: scale(1.05); }
.car-tag {
  position: absolute; top: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(20,23,29,0.7); backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 500;
}
.car-tag.left { left: 12px; }
.car-tag.right { right: 12px; display: flex; gap: 4px; align-items: center; }
.car-card-body { padding: 20px; }
.car-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.car-model { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; }
.car-variant { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.car-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 16px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.car-price-row { display: flex; align-items: flex-end; justify-content: space-between; }
.car-price-label { font-size: 12px; color: var(--muted); }
.car-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; }
.car-cta { color: var(--brand); font-size: 14px; font-weight: 500; }

/* Brand strip */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; height: 80px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  transition: all .2s; cursor: pointer;
}
.brand-tile:hover { border-color: rgba(92,184,255,0.5); background: var(--surface-2); }
@media (max-width: 700px) { .brand-grid { grid-template-columns: repeat(3,1fr); } }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 24px; padding: 64px 48px;
}
.cta-banner::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: var(--brand-gradient); opacity: 0.2; filter: blur(80px); border-radius: 50%;
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.cta-banner p { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 96px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding: 64px 0;
}
.footer-col h4 { font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-about p { font-size: 14px; color: var(--muted); max-width: 280px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px; text-align: center;
  font-size: 12px; color: var(--muted);
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* Browse */
.page-header { padding: 48px 0 32px; }
.page-header h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.page-header p { color: var(--muted); }
.browse-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-bottom: 80px; }
@media (max-width: 900px) { .browse-layout { grid-template-columns: 1fr; } }
.filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  position: sticky; top: 80px; height: fit-content;
}
.filters-title { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 600; }
.filter-block { margin-bottom: 24px; }
.filter-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; display: block; }
.filter-input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--fg); font-size: 14px; outline: none;
}
.filter-input:focus { border-color: var(--brand); }
.filter-list button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 8px; font-size: 14px;
  transition: background .2s;
}
.filter-list button:hover { background: rgba(255,255,255,0.04); }
.filter-list button.active { background: var(--surface-2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--border); transition: all .2s;
}
.chip:hover { border-color: rgba(92,184,255,0.5); }
.chip.active { background: var(--brand-gradient); color: #0d1117; border-color: transparent; }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 1100px) { .results-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .results-grid { grid-template-columns: 1fr; } }
.empty {
  grid-column: 1/-1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px; text-align: center; color: var(--muted);
}

/* Car detail */
.detail-hero { padding: 32px 0 64px; background:
  radial-gradient(ellipse at top, rgba(92,184,255,0.15), transparent 60%),
  linear-gradient(180deg, var(--bg), var(--bg-2)); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.back-link:hover { color: var(--fg); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-image { position: relative; }
.detail-image::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-gradient); opacity: 0.2; filter: blur(80px); border-radius: 50%;
}
.detail-image img { position: relative; border-radius: 16px; box-shadow: var(--shadow-card); width: 100%; }
.detail-brand { color: var(--brand); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; margin-bottom: 8px; }
.detail-title { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin-bottom: 8px; }
.detail-variant { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.detail-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.detail-rating .star { color: var(--brand); }
.price-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
}
.price-label { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.price-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 36px; }
.price-emi { font-size: 12px; color: var(--muted); margin-top: 8px; }
.specs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1000px) { .specs-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .specs-grid { grid-template-columns: repeat(2,1fr); } }
.spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.spec-card svg { color: var(--brand); margin-bottom: 12px; }
.spec-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.spec-value { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; } }
.overview-card, .perf-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
}
.perf-card { background: var(--surface-2); }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.highlight { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.highlight .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(92,184,255,0.15); color: var(--brand);
  display: grid; place-items: center; font-size: 12px;
}
.perf-row { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--border); }
.perf-row:first-of-type { border-top: 0; }
.perf-label { color: var(--muted); }
.perf-value { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }

/* Compare */
.compare-grid {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: grid;
}
.compare-grid .cell { padding: 16px; border-bottom: 1px solid var(--border); }
.compare-grid .cell.with-left { border-left: 1px solid var(--border); }
.compare-grid .cell.no-border { border-bottom: 0; }
.compare-grid .cell.head { position: relative; min-height: 280px; }
.compare-grid .cell.label { color: var(--muted); font-size: 14px; font-weight: 500; }
.compare-grid .cell.value { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.compare-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.remove-btn {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(20,23,29,0.8);
  display: grid; place-items: center;
  transition: background .2s;
}
.remove-btn:hover { background: #b34646; }
.add-cell { display: grid; place-items: center; min-height: 280px; }
.add-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); transition: color .2s; }
.add-btn:hover { color: var(--fg); }
.add-circle {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px dashed var(--border);
  display: grid; place-items: center;
}
.picker { width: 100%; max-height: 280px; overflow: auto; }
.picker-item {
  display: flex; gap: 8px; align-items: center;
  width: 100%; padding: 8px; border-radius: 8px; text-align: left;
  font-size: 14px;
}
.picker-item:hover { background: var(--surface-2); }
.picker-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.picker-item .meta { font-size: 12px; color: var(--muted); }
