/* =========================================
   DETAILDRIVE — THEME CSS
   ========================================= */

:root {
  --bg: #08080f;
  --bg-card: #0e0e1a;
  --bg-card-hover: #12122a;
  --fg: #ede8e0;
  --fg-muted: #7a746e;
  --fg-subtle: #4a4540;
  --accent: #c9956a;
  --accent-light: #e8c49a;
  --accent-dim: rgba(201, 149, 106, 0.12);
  --border: rgba(201, 149, 106, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --radius: 4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--fg); }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }
p { font-size: 1rem; color: var(--fg-muted); line-height: 1.7; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 8, 15, 0.7);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.nav-logo {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--fg); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 3rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(201, 149, 106, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 149, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 149, 106, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.car-silhouette {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 700px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.75rem;
  color: var(--fg);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.hero-secondary {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--fg-subtle);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-secondary:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 6rem 3rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 3rem;
}

.step {
  padding: 0 2rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  color: var(--fg);
}

.step p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-divider {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
  margin: 0 1rem;
}

/* ── SERVICES ── */
.services {
  padding: 7rem 3rem;
}

.services-header {
  margin-bottom: 4rem;
}

.services-title {
  max-width: 520px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 2.25rem 2rem;
  transition: background 0.2s ease;
}

.service-card:hover {
  background: var(--bg-card);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 7rem 3rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-light);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.manifesto-body:last-of-type {
  margin-bottom: 4rem;
}

.manifesto-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ── PRICING ── */
.pricing {
  padding: 7rem 3rem;
}

.pricing-title {
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--border);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 0 0 3px 3px;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 1rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 1rem;
}

.pricing-cta {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pricing-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.pricing-card.featured .pricing-cta {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--accent-light);
}

/* ── CLOSING ── */
.closing {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 149, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.closing-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 1rem;
}
.closing-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.closing-sub {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  margin-top: 0;
}

/* ── FOOTER ── */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg-muted);
}

.footer-logo {
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0.6;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-subtle);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

.footer-sep {
  color: var(--fg-subtle);
  font-size: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  margin-top: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .step-divider { display: none; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .manifesto-stat-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .how-it-works, .services, .manifesto, .pricing, .closing {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline { font-size: 2.8rem; }
  .step { padding: 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-right { gap: 0.75rem; }
  .nav-cta { padding: 0.4rem 1rem; font-size: 0.75rem; }
  .footer-contact { flex-direction: column; gap: 0.5rem; }
}