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

:root {
  --purple: #270346;
  --purple-deep: #30123c;
  --purple-light: #4a1e5e;
  --gold: #ffba03;
  --gold-dark: #d9a000;
  --gold-light: #ffd54f;
  --blue: #0b76af;
  --blue-dark: #095a87;
  --beige: #fff9ec;
  --cream: #fef6e4;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #0d1114;
  --red: #dc2626;
  --red-light: #fef2f2;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(39, 3, 70, 0.10);
  --shadow-lg: 0 12px 48px rgba(39, 3, 70, 0.16);
  --shadow-gold: 0 4px 20px rgba(255, 186, 3, 0.25);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

a {
  color: var(--purple);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Layout === */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* === Header === */
.header {
  background: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  color: var(--purple);
  font-weight: 500;
  font-size: 0.95rem;
}

.header-link:hover {
  color: var(--gold-dark);
}

.header-cta {
  background: var(--gold);
  color: var(--gray-900);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.header-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* === Hero === */
.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--gray-900);
  line-height: 1.1;
}

.hero-tagline {
  color: var(--gray-700);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.7;
}

.hero-highlight {
  color: var(--purple);
  font-weight: 700;
}

.hero-sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(39, 3, 70, 0.85));
  color: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-image-overlay p {
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* === VIN Form === */
.vin-form {
  max-width: 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  gap: 6px;
  box-shadow: 0 2px 16px rgba(39, 3, 70, 0.12);
  border: 2px solid var(--gray-200);
  transition: border-color 0.3s;
}

.vin-form:focus-within {
  border-color: var(--gold);
}

.vin-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-family: 'Inter', monospace;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  color: var(--gray-900);
  min-width: 0;
}

.vin-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-500);
  font-weight: 400;
}

.vin-submit {
  background: var(--gold);
  color: var(--gray-900);
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.vin-submit:hover {
  background: var(--gold-dark);
}

.vin-submit:active {
  transform: scale(0.98);
}

.vin-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.vin-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 20px;
  font-weight: 600;
}

/* === Trust Bar === */
.trust-bar {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  color: var(--gray-500);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.trust-check {
  color: var(--green);
  font-weight: 800;
}

/* === CTA Banner === */
.cta-banner {
  background: var(--blue);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/hero-2.png') center/cover no-repeat;
  opacity: 0.15;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
  line-height: 1.8;
}

.cta-banner .btn {
  position: relative;
}

/* === Section === */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 400;
}

/* === Value Props === */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

.value-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--beige);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.15rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.value-card p {
  color: var(--gray-700);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* === How It Works === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--gray-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 auto 16px;
  font-family: 'DM Sans', sans-serif;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.step h3 {
  color: var(--gray-900);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  color: var(--gray-700);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* === Pricing === */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--gray-900);
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-900);
  font-family: 'DM Sans', sans-serif;
}

.price-label {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-weight: 500;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.price-features li {
  padding: 10px 0;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  border-bottom: 1px solid var(--gray-100);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li .check {
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-item.open {
  border-color: var(--gold);
}

.faq-question {
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  padding: 20px 24px;
  background: var(--white);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  transition: transform 0.3s;
  color: var(--gold);
  font-weight: 800;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--gray-700);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  font-size: 0.93rem;
  padding: 0 24px;
  line-height: 1.7;
  background: var(--gray-100);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 16px 24px 20px;
}

/* === Footer === */
.footer {
  background: var(--purple);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 24px;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: var(--gold);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  margin-top: 8px;
  font-style: italic;
}

/* === CTA Button (generic) === */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--gray-900);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--gray-900);
}

/* === Scan Page === */
.scan-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
}

.scan-header {
  text-align: center;
  margin-bottom: 24px;
}

.scan-header .rover-gif {
  width: 200px;
  height: auto;
  margin-bottom: 12px;
}

.scan-header h2 {
  color: var(--gray-900);
  font-size: 1.6rem;
}

.vehicle-badge {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 2px solid var(--gold);
}

.vehicle-badge h2 {
  color: var(--gray-900);
  font-size: 1.3rem;
}

.vehicle-badge p {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', monospace;
  letter-spacing: 1px;
}

.scan-checklist {
  list-style: none;
  margin-bottom: 32px;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  opacity: 0.35;
  font-weight: 500;
}

.scan-item.active {
  opacity: 1;
  box-shadow: 0 2px 12px rgba(39, 3, 70, 0.1);
  border: 2px solid var(--gold);
}

.scan-item.done {
  opacity: 1;
  border: 2px solid transparent;
}

.scan-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: var(--gray-200);
}

.scan-item.active .scan-item-icon {
  background: var(--gold);
  animation: pulse 1s ease-in-out infinite;
}

.scan-item.done .scan-item-icon {
  background: var(--green);
  color: var(--white);
}

.scan-item.done.has-recall .scan-item-icon {
  background: var(--red);
  color: var(--white);
}

.scan-item-label {
  flex: 1;
  color: var(--gray-700);
}

.scan-item.done .scan-item-label {
  color: var(--gray-900);
  font-weight: 700;
}

.scan-item-status {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

.scan-item.done .scan-item-status {
  color: var(--green);
  font-weight: 800;
}

.scan-item.done.has-recall .scan-item-status {
  color: var(--red);
  font-weight: 800;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.scan-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  display: none;
  border: 2px solid var(--gold);
}

.scan-summary.visible {
  display: block;
  animation: fadeIn 0.5s;
}

.scan-summary h3 {
  color: var(--gray-900);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.recall-count-big {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
}

.recall-count-big.zero {
  color: var(--green);
}

.scan-cta {
  text-align: center;
  display: none;
}

.scan-cta.visible {
  display: block;
  animation: fadeIn 0.4s;
}

.email-input-group {
  max-width: 400px;
  margin: 0 auto 16px;
}

.email-input {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-align: center;
}

.email-input:focus {
  border-color: var(--gold);
}

.scan-progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.scan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold), var(--purple));
  background-size: 200% 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Success Page === */
.success-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.success-header {
  text-align: center;
  margin-bottom: 40px;
}

.success-header h1 {
  color: var(--gray-900);
  font-size: 2rem;
}

.report-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}

.report-card h3 {
  color: var(--gray-900);
  margin-bottom: 16px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vehicle-grid-item {
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.vehicle-grid-item strong {
  color: var(--gray-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.vehicle-grid-item span {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.05rem;
}

.recall-count-badge {
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 16px;
  border: 2px dashed var(--gold);
}

.recall-item {
  border-left: 5px solid var(--red);
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--red-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.recall-item.low {
  border-left-color: var(--gold);
  background: #fffbeb;
}

.recall-item h4 {
  color: var(--gray-900);
  margin-bottom: 8px;
  font-weight: 700;
}

.recall-item p {
  color: var(--gray-700);
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.recall-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recall-tag.critical {
  background: var(--red-light);
  color: var(--red);
}

.recall-tag.medium {
  background: #fffbeb;
  color: var(--gold-dark);
}

/* === Cancel Page === */
.cancel-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

/* === Loading Spinner === */
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* === Confetti Canvas === */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* === Responsive === */
@media (max-width: 960px) {
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    max-height: 300px;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .vin-form {
    flex-direction: column;
  }

  .vin-submit {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

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

  .cta-banner h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .header-nav {
    display: none;
  }

  .trust-bar {
    gap: 12px;
    flex-direction: column;
  }
}
