/* Velocity Motors — Automotive Luxury & Performance CSS */
:root {
  --bg-dark: #080a0f;
  --bg-surface: #0e131d;
  --bg-card: #141b29;
  --bg-card-hover: #1c263a;
  --primary: #2563eb;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --red-accent: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Demo Control Bar */
.demo-bar {
  background: #040508;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 16px;
  font-size: 0.82rem;
  position: relative;
  z-index: 1000;
}

.demo-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-tag {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-switchers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-switchers span {
  color: var(--text-muted);
}

.preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover, .preset-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

.demo-price span {
  color: var(--accent);
  font-weight: 800;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  z-index: 500;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.brand-name {
  font-size: 1.3rem;
  display: block;
  line-height: 1.1;
  color: #fff;
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #040508;
  font-weight: 800;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: #fff;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn-wa-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #fff;
  padding: 0;
  font-size: 1.2rem;
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Hero */
.hero {
  padding: 70px 0 60px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.hero-stats strong {
  font-size: 1.6rem;
  color: #fff;
  display: block;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.car-card-highlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.car-card-highlight img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.car-badge-over {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 15, 0.95) 100%);
  padding: 30px 24px 20px;
}

.car-badge-over span {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
}

.car-badge-over h4 {
  font-size: 1.4rem;
  margin-top: 6px;
}

.car-badge-over p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Sections */
.section { padding: 80px 0; }
.text-center { text-align: center; }

.sub-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* Inventory Filters */
.inventory-filters {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 14px;
  margin-bottom: 40px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-group select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
}

/* Cars Grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.car-thumb {
  position: relative;
  height: 220px;
}

.car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.car-card:hover .car-thumb img {
  transform: scale(1.08);
}

.car-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 10, 15, 0.88);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.car-price-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 5px 12px;
  border-radius: 4px;
}

.car-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-body h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.car-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.car-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-surface);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.car-specs-grid span i {
  color: var(--accent);
  margin-right: 6px;
}

.car-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Calculator */
.calculator-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #151d2c 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.calc-control-group {
  margin-bottom: 24px;
}

.control-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.control-header span {
  color: var(--accent);
  font-family: 'Space Grotesk', monospace;
}

.calc-control-group input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-result-box {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius-md);
  text-align: center;
}

.calc-result-box h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.emi-large-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 24px;
}

.emi-large-num small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.emi-breakdown {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-size: 0.88rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.breakdown-row strong {
  color: #fff;
}

/* Trade-In Box */
.tradein-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.tradein-text h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.tradein-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.check-list i {
  color: var(--accent);
  margin-right: 8px;
}

.tradein-form {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tradein-form h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.tradein-form input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
}

.quick-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.spec-box {
  background: var(--bg-dark);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.spec-box label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-box strong {
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: #040508;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-container, .calc-grid, .tradein-box { grid-template-columns: 1fr; }
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-filters { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .cars-grid { grid-template-columns: 1fr; }
  .inventory-filters { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
}
