/* =====================================================
   MotorHub — Marketing Site
   motorhub.lk
   ===================================================== */

:root {
  /* Brand — deep emerald with bright lime accent */
  --primary: #064E3B;
  --primary-light: #059669;
  --primary-dark: #022C22;
  --accent: #A3E635;
  --accent-hover: #84CC16;
  --accent-soft: #ECFCCB;

  /* Neutrals (tinted toward green) */
  --text: #052E22;
  --text-muted: #4B6B5C;
  --text-soft: #7E9788;
  --bg: #FFFFFF;
  --bg-alt: #F1F7F3;
  --bg-dark: #022C22;
  --border: #DCEAE0;
  --border-strong: #B8D1BF;

  /* Functional */
  --success: #10B981;
  --danger: #EF4444;

  /* Layout */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(6, 78, 59, 0.08);
  --shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 20px 60px rgba(6, 78, 59, 0.16);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Oswald', var(--font-sans);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   NAV
   ===================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: "Arial Rounded MT Bold", "Arial Rounded MT", "Nunito", "Helvetica Rounded", system-ui, sans-serif;
}

.logo-mark { display: inline-flex; color: #FFFFFF; }

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: "Arial Rounded MT Bold", "Arial Rounded MT", "Nunito", "Helvetica Rounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav .logo-name { color: #FFFFFF; }
.nav .logo-sub  { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: rgba(255, 255, 255, 0.85); transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta-secondary { color: rgba(255, 255, 255, 0.85) !important; }

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

.nav-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
}

/* Header CTA tweaks for black background */
.nav .btn-ghost { color: #FFFFFF; }
.nav .btn-ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.nav .btn-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.3); }
.nav .btn-outline:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

/* Buttons */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.30);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { color: var(--primary); }

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

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(255, 184, 0, 0.12), transparent 60%),
    radial-gradient(800px 600px at 10% 30%, rgba(6, 78, 59, 0.08), transparent 70%),
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,42,86,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,42,86,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  top: -100px; right: -150px;
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
}
.hero-blob-2 {
  width: 420px; height: 420px;
  bottom: -120px; left: -100px;
  background: radial-gradient(circle, #064E3B 0%, transparent 70%);
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.08);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  border: 1px solid rgba(6, 78, 59, 0.18);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%     { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 22px;
}
.hero-title-accent {
  background: linear-gradient(135deg, #10B981 0%, #064E3B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero search */
.hero-search {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.6fr auto;
  gap: 0;
  width: 100%;
  max-width: 920px;
  background: white;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(6, 78, 59, 0.18), 0 4px 12px rgba(6, 78, 59, 0.06);
  border: 1px solid #000;
  border-radius: 0;
  margin-bottom: 28px;
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  position: relative;
  color: var(--text-muted);
  border-right: 1px solid #000;
}

.hero-search-field:last-of-type { border-right: none; }

.hero-search-field select,
.hero-search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.hero-search-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 18px; }
.hero-search-field select::-ms-expand { display: none; }

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, transform .12s ease;
}
.hero-search-btn:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Quick chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
}
.hero-chips-label { font-size: 13.5px; color: var(--text-soft); margin-right: 4px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(27,79,165,0.04); }

/* Trust strip */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-bottom: 40px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.hero-trust-item svg { color: var(--success); flex-shrink: 0; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-stat { text-align: left; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-unit { font-size: 16px; color: var(--text-soft); margin-left: 2px; }
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* =====================================================
   SECTIONS (shared)
   ===================================================== */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: white; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.section-head-center .section-title { margin-left: auto; margin-right: auto; }
.section-title-light { color: white; }

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 640px;
  line-height: 1.6;
}
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }
.section-sub-light { color: rgba(255,255,255,0.75); }

.section-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--primary-light);
  white-space: nowrap;
}
.section-link:hover { color: var(--primary); }

/* =====================================================
   CATEGORIES
   ===================================================== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat-card:hover .cat-icon { transform: scale(1.06); }

.cat-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform .18s ease;
}
.cat-car .cat-icon            { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.cat-bike .cat-icon           { background: linear-gradient(135deg, #F97316, #C2410C); }
.cat-three-wheeler .cat-icon  { background: linear-gradient(135deg, #F59E0B, #D97706); }
.cat-truck .cat-icon          { background: linear-gradient(135deg, #059669, #064E3B); }
.cat-van .cat-icon            { background: linear-gradient(135deg, #2563EB, #1E40AF); }
.cat-bus .cat-icon            { background: linear-gradient(135deg, #10B981, #047857); }
.cat-excavator .cat-icon      { background: linear-gradient(135deg, #EAB308, #A16207); }
.cat-tractor .cat-icon        { background: linear-gradient(135deg, #84CC16, #3F6212); }
.cat-key .cat-icon            { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.cat-wrench .cat-icon         { background: linear-gradient(135deg, #52525B, #18181B); }
.cat-tools .cat-icon          { background: linear-gradient(135deg, #06B6D4, #0E7490); }
.cat-anchor .cat-icon         { background: linear-gradient(135deg, #0EA5E9, #1E40AF); }
.cat-icon svg { width: 32px; height: 32px; }

.cat-body { min-width: 0; }
.cat-body h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.cat-body p {
  display: none;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cat-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-light);
}

/* =====================================================
   STEPS
   ===================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: steps;
}

.step {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================================================
   LISTINGS
   ===================================================== */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.listing {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.listing:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.listing-media-ph {
  width: 100%;
  height: 100%;
}
.listing-media-1 { background: linear-gradient(135deg, #10B981, #064E3B); }
.listing-media-2 { background: linear-gradient(135deg, #34D399, #047857); }
.listing-media-3 { background: linear-gradient(135deg, #84CC16, #3F6212); }
.listing-media-4 { background: linear-gradient(135deg, #022C22, #064E3B); }

.listing-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.listing-tag-featured { background: rgba(255, 184, 0, 0.95); color: var(--primary-dark); }
.listing-tag-verified { background: rgba(16, 185, 129, 0.95); color: white; }
.listing-tag-urgent { background: rgba(239, 68, 68, 0.95); color: white; }

.listing-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease;
}
.listing-fav:hover { color: var(--danger); }

.listing-body { padding: 16px; }
.listing-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.listing h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.listing-meta {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.listing-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}
.listing-price-unit { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* =====================================================
   WHY US
   ===================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: background .18s ease, border-color .18s ease;
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 184, 0, 0.3);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* =====================================================
   PRICING
   ===================================================== */

.pricing-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.pricing-grid > .plan {
  flex: 0 0 auto;
  width: min(440px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.plan-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 50px rgba(6, 78, 59, 0.15);
  transform: scale(1.02);
}
.plan-featured:hover { transform: scale(1.02) translateY(-3px); }

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
}

.plan-head { margin-bottom: 18px; }
.plan h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.plan-tag { font-size: 13.5px; color: var(--text-muted); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan-price-currency { font-size: 18px; font-weight: 600; color: var(--text-muted); }
.plan-price-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-price-period { font-size: 14px; color: var(--text-muted); }

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  padding: 9px 0 9px 28px;
  font-size: 14.5px;
  color: var(--text);
  position: relative;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* =====================================================
   APP CTA
   ===================================================== */

.app-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  overflow: hidden;
  position: relative;
}
.app-cta::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.2), transparent 70%);
  top: -200px; right: -100px;
  filter: blur(60px);
}

.app-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.app-cta-copy .section-title,
.app-cta-copy .section-sub { text-align: left; max-width: 480px; margin-left: 0; margin-right: 0; }

.app-cta-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: black;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: white;
  transition: transform .12s ease, background .15s ease;
}
.app-store-btn:hover { background: #1a1a1a; transform: translateY(-1px); }
.app-store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-store-btn small { font-size: 10.5px; color: rgba(255,255,255,0.65); }
.app-store-btn strong { font-size: 16px; font-weight: 600; }

.app-cta-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* Phone mockup */
.app-cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 280px;
  height: 560px;
  background: #111;
  border-radius: 42px;
  padding: 12px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.06);
  transform: rotate(-4deg);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #F1F7F3, #fff);
  border-radius: 32px;
  height: 100%;
  padding: 38px 16px 16px;
  overflow: hidden;
  position: relative;
}

.phone-card {
  background: white;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
}
.phone-card-img {
  width: 60px; height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981, #064E3B);
  flex: 0 0 60px;
}
.phone-card-img-2 { background: linear-gradient(135deg, #34D399, #047857); }
.phone-card-body { flex: 1; }
.phone-card-title { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.phone-card-price { font-size: 12px; color: var(--accent-hover); font-weight: 700; }

.phone-pill {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: var(--primary);
  color: white;
  font-size: 11.5px;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.35);
  font-weight: 500;
}

/* =====================================================
   FINAL CTA
   ===================================================== */

.final-cta { padding: 64px 0 120px; }
.final-cta-card {
  background: linear-gradient(135deg, #047857 0%, #022C22 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 30px 60px rgba(6, 78, 59, 0.35);
}
.final-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.final-cta-card p {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.85);
}
.final-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-cta-card .btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); }
.final-cta-card .btn-primary:hover { background: var(--accent-hover); }
.final-cta-card .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.4); }
.final-cta-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: #000000;
  color: rgba(255,255,255,0.7);
  padding: 32px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer .logo .logo-name { color: white; }

.footer-tagline {
  margin: 6px 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-socials { display: flex; gap: 6px; }
.footer-socials a {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background .15s ease, color .15s ease;
}
.footer-socials a:hover { background: var(--accent); color: var(--primary-dark); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 2px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================
   DEALERS SECTION
   ===================================================== */

.dealers-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.dealers-feats {
  list-style: none;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.dealers-feats li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.dealers-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%23DC2626' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.dealers-visual { display: flex; justify-content: center; }
.dealer-card {
  background: linear-gradient(180deg, white, #FAFBFD);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 30px 60px rgba(6, 78, 59, 0.12);
  position: relative;
}
.dealer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.dealer-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.dealer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dealer-stats div { display: flex; flex-direction: column; gap: 2px; }
.dealer-stats strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
}
.dealer-stats span {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dealer-pill {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Empty state for featured grid */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: white;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.empty-state a { color: var(--accent); font-weight: 600; }

/* =====================================================
   MOBILE STICKY CTA
   ===================================================== */

.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom)) 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  gap: 10px;
  box-shadow: 0 -10px 30px rgba(6, 78, 59, 0.08);
}
.mobile-cta .btn-ghost,
.mobile-cta .btn-primary {
  flex: 1;
  padding: 12px 16px;
}
.mobile-cta .btn-ghost {
  background: var(--bg-alt);
  color: var(--primary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .app-cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .app-cta-copy .section-title, .app-cta-copy .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .app-cta-copy .eyebrow { display: block; text-align: center; }
  .app-cta-buttons { justify-content: center; }
  .dealers-row { grid-template-columns: 1fr; gap: 32px; }
  .dealers-feats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  /* Hide nav Post Ad on mobile since we have sticky CTA */
  .nav-actions .btn-primary { padding: 8px 14px; font-size: 13.5px; }

  /* Mobile menu open state — drops the nav links vertically below the bar. */
  .nav-inner.menu-open {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 8px;
  }
  .nav-inner.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4px;
    padding-top: 4px;
  }
  .nav-inner.menu-open .nav-links a {
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-inner.menu-open .nav-links a:last-child { border-bottom: none; }

  .hero { padding: 40px 0 56px; }
  .hero-badge { font-size: 12px; padding: 6px 12px; margin-bottom: 20px; }
  .hero-title { margin-bottom: 14px; }
  .hero-subtitle { margin-bottom: 28px; font-size: 15px; }
  .hero-search {
    grid-template-columns: 1fr;
    padding: 8px;
    margin-bottom: 22px;
  }
  .hero-search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .hero-search-field:last-of-type { border-bottom: none; }
  .hero-search-btn { padding: 14px; }

  .hero-chips { margin-bottom: 32px; }
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    margin-bottom: 28px;
  }
  .hero-stats { gap: 18px; padding: 18px; }
  .hero-stat-divider { display: none; }
  .hero-stat { flex: 1 1 40%; }

  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }

  /* Sticky mobile CTA — show + give body room above footer */
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .final-cta { padding-bottom: 80px; }
}

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 14px 8px; }
  .cat-icon { width: 56px; height: 56px; }
  .cat-icon svg { width: 28px; height: 28px; }
  .cat-body h3 { font-size: 12.5px; }
  .listings-grid, .steps {
    grid-template-columns: 1fr;
  }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-card { padding: 16px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plan { padding: 20px; }

  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-3px); }

  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .footer-col h4 { font-size: 12px; }
  .footer-col a { font-size: 12.5px; padding: 4px 0; }
  .footer-tagline { font-size: 12.5px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .final-cta-card { padding: 40px 24px; }
}
