/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B1628;
  --bg-card: #0F1E35;
  --bg-card-hover: #132540;
  --fg: #E8EEF4;
  --fg-muted: #8FA3BA;
  --accent: #F5A623;
  --accent-dim: #C88210;
  --green: #3ECF8E;
  --amber: #F5A623;
  --red: #F87171;
  --border: rgba(255,255,255,0.08);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; }

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,22,40,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark .amber { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-tagline { font-size: 0.85rem; color: var(--fg-muted); }

/* === SECTION UTILITIES === */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* === HERO === */
.hero { padding: 80px 24px 100px; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(62,207,142,0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62,207,142,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(62,207,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); }
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 480px;
}

/* === SEARCH WIDGET === */
.search-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-row { display: flex; gap: 12px; }
.search-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.search-field--zip { max-width: 120px; }
.search-field label { font-size: 0.72rem; font-family: var(--font-head); font-weight: 600; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.search-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--fg-muted); opacity: 0.6; }
.search-row--filters { flex-wrap: wrap; gap: 8px; }
.filter-tag {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 500;
}

/* === HERO PROOF === */
.hero-proof { display: flex; align-items: center; gap: 10px; }
.proof-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }
.proof-text { font-size: 0.82rem; color: var(--fg-muted); }

/* === RESULTS CARD === */
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.results-header {
  background: var(--bg-card-hover);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.results-title { font-size: 0.8rem; font-family: var(--font-head); font-weight: 600; color: var(--fg-muted); }
.results-title strong { color: var(--fg); }
.results-time { font-size: 0.72rem; color: var(--green); font-family: var(--font-head); }

.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: rgba(255,255,255,0.02); }
.result-row--best { background: rgba(62,207,142,0.05); }
.result-rank {
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 700;
  min-width: 44px;
  color: var(--fg-muted);
  text-align: center;
}
.result-row--best .result-rank { color: var(--green); }
.result-info { flex: 1; }
.result-model { font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.result-dealer { font-size: 0.72rem; color: var(--fg-muted); margin-top: 2px; }
.result-price { font-size: 1rem; font-family: var(--font-head); font-weight: 700; color: var(--fg); }
.result-row--best .result-price { color: var(--green); }
.results-footer {
  padding: 10px 20px;
  background: rgba(255,255,255,0.02);
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
}

/* === HOW IT WORKS === */
.hiw { background: #080F1C; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(245,166,35,0.2);
  line-height: 1;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 1.1rem; color: var(--fg); margin-bottom: 12px; }
.step-card p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.7; }

/* === DEAL SCORE === */
.deal-score { border-top: 1px solid var(--border); }
.deal-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ds-features { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.ds-features li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--fg); }
.ds-check {
  width: 22px;
  height: 22px;
  background: rgba(62,207,142,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.score-row:last-of-type { border-bottom: none; }
.score-label { font-size: 0.82rem; color: var(--fg-muted); font-family: var(--font-head); }
.score-val { font-size: 0.95rem; font-family: var(--font-head); font-weight: 700; color: var(--fg); }
.score-val--good { color: var(--green); }
.score-badge {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}
.score-badge--great { background: rgba(62,207,142,0.15); color: var(--green); }
.score-meter { margin-top: 20px; }
.meter-fill {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--red) 0%, #f5a623 35%, var(--green) 70%);
}
.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
}

/* === SOURCES === */
.sources { background: #080F1C; }
.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 40px;
}
.source-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
  transition: all 0.2s;
}
.source-tile:hover { border-color: var(--accent); color: var(--fg); }
.source-tile--large { grid-column: span 1; }
.source-tile--wide { grid-column: span 2; }
.sources-note { margin-top: 24px; font-size: 0.8rem; color: var(--fg-muted); opacity: 0.7; text-align: center; }

/* === CLOSING === */
.closing { border-top: 1px solid var(--border); }
.closing-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand .wordmark { font-size: 1.1rem; }
.footer-brand p { font-size: 0.8rem; color: var(--fg-muted); margin-top: 4px; }
.footer-legal p { font-size: 0.75rem; color: var(--fg-muted); opacity: 0.5; text-align: right; max-width: 480px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .deal-score-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
  .source-tile--wide { grid-column: span 1; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 16px 64px; }
  .search-row { flex-direction: column; }
  .search-field--zip { max-width: 100%; }
  .sources-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal p { text-align: center; }
}