/* ============================================================
   AutoCare — Landing Page Styles
   Uses CSS variables defined in app.css for the design system
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- Shared ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -.5px;
  line-height: 1.2;
}

.section-sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray-500);
  max-width: 520px;
}

/* ---- Fade-in on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.l-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

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

.l-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -.5px;
}

.l-nav-brand-icon {
  width: 34px; height: 34px;
  background: var(--blue-500);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
}

.l-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  height: 36px;
  border-radius: var(--radius-sm);
  transition: background .15s, transform .1s;
}

.l-nav-cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.l-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

/* Unsplash background */
.l-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 100%),
    url('https://images.unsplash.com/photo-1625047509248-ec889cbff17f?w=1600&q=80&auto=format&fit=crop')
    center/cover no-repeat;
  z-index: 0;
}

/* SVG blob accent */
.l-hero-blob {
  position: absolute;
  top: -120px; right: -160px;
  width: 560px; height: 560px;
  opacity: .18;
  z-index: 1;
  pointer-events: none;
}

.l-hero .container {
  position: relative;
  z-index: 2;
}

.l-hero-content {
  max-width: 600px;
}

.l-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.l-hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.l-hero h1 span {
  color: rgba(255,255,255,.7);
}

.l-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.l-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.l-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
  padding: 0 28px;
  height: 50px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
}

.l-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.l-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 0 20px;
  height: 50px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,.4);
  transition: background .15s;
}

.l-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* scroll chevron */
.l-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.5);
  font-size: 22px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.l-proof {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}

.l-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.l-proof-item {
  padding: 8px 16px;
  border-right: 1px solid var(--gray-200);
}

.l-proof-item:last-child { border-right: none; }

.l-proof-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-500);
  letter-spacing: -1px;
  line-height: 1;
}

.l-proof-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 6px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.l-features {
  padding: 80px 0;
}

.l-features-header {
  margin-bottom: 48px;
}

.l-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.l-feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}

.l-feature-card:hover {
  box-shadow: 0 8px 32px rgba(14,165,233,.1);
  transform: translateY(-3px);
}

.l-feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.l-feature-icon.blue   { background: var(--blue-50);    color: var(--blue-500); }
.l-feature-icon.green  { background: #ecfdf5;           color: #10b981; }
.l-feature-icon.amber  { background: #fffbeb;           color: #f59e0b; }
.l-feature-icon.red    { background: #fff1f2;           color: #ef4444; }
.l-feature-icon.purple { background: #f5f3ff;           color: #8b5cf6; }
.l-feature-icon.teal   { background: #f0fdfa;           color: #14b8a6; }

.l-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.l-feature-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.l-how {
  padding: 80px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

/* SVG circle accent */
.l-how-blob {
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  opacity: .07;
  pointer-events: none;
}

.l-how .container { position: relative; z-index: 1; }

.l-how-header { margin-bottom: 48px; }

.l-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

.l-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.l-step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14,165,233,.35);
}

.l-step-body {}

.l-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 5px;
}

.l-step-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.l-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.l-cta-blob {
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  opacity: .12;
  pointer-events: none;
}

.l-cta .container { position: relative; z-index: 1; }

.l-cta h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.8px;
  margin-bottom: 14px;
}

.l-cta p {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.l-footer {
  background: var(--gray-800);
  padding: 32px 0;
  color: rgba(255,255,255,.55);
}

.l-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.l-footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.l-footer-brand-icon {
  width: 28px; height: 28px;
  background: var(--blue-500);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--white);
}

.l-footer-copy {
  font-size: 12px;
}

.l-footer-login {
  font-size: 12px;
  color: var(--blue-500);
  font-weight: 600;
}

.l-footer-login:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — Tablet (≥640px)
   ============================================================ */
@media (min-width: 640px) {
  .l-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .l-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .l-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .l-hero {
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  .l-hero-content { max-width: 640px; }

  .l-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}