/* ============ Mercury Auto Detailing ============ */
:root {
  --bg: #0a0c12;
  --bg2: #0f1320;
  --panel: #141927;
  --panel-2: #1a2033;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --blue: #2451c9;
  --blue-bright: #3f7bff;
  --blue-deep: #14245e;
  --chrome-1: #f4f6fa;
  --chrome-2: #b9c2d0;
  --chrome-3: #6d7787;
  --radius: 16px;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: 0.02em; }

.chrome-text {
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 45%, var(--chrome-3) 55%, var(--chrome-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 60%, var(--blue-deep));
  color: #fff;
  box-shadow: 0 4px 24px rgba(63, 123, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(63, 123, 255, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 1.25rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.nav-logo { height: 52px; width: auto; }
.nav-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; }
.nav-name em { font-style: normal; color: var(--blue-bright); font-weight: 500; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-cta { white-space: nowrap; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(36, 81, 201, 0.35), transparent 65%),
    radial-gradient(800px 500px at 85% 110%, rgba(36, 81, 201, 0.18), transparent 60%),
    var(--bg);
  padding: 6.5rem 1.25rem 4rem;
}
#heroParticles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-logo { width: min(420px, 78vw); margin-bottom: 1.5rem; filter: drop-shadow(0 12px 40px rgba(63, 123, 255, 0.35)); }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; line-height: 1.08; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); margin: 1rem auto 2rem; max-width: 560px; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.08em; color: var(--blue-bright); }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }
.hero-scroll {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.section-dark {
  max-width: none;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.5rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0.8rem auto 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 123, 255, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.card-icon { font-size: 1.9rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card-price {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-head);
  color: var(--blue-bright);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ---------- 3D Science ---------- */
.science-wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.science-canvas-wrap {
  position: relative;
  background: radial-gradient(600px 400px at 50% 30%, rgba(36, 81, 201, 0.16), transparent 70%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 440px;
}
#paintCanvas { width: 100%; height: 100%; display: block; touch-action: none; }
.science-hint {
  position: absolute;
  bottom: 0.8rem; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(10, 12, 18, 0.6);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  pointer-events: none;
}
.science-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.layer-buttons { display: flex; flex-direction: column; gap: 0.45rem; }
.layer-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}
.layer-btn i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot, #fff); flex: none; }
.layer-btn:hover { border-color: rgba(63, 123, 255, 0.5); }
.layer-btn.active { border-color: var(--blue-bright); background: rgba(63, 123, 255, 0.12); }
.layer-info { min-height: 110px; }
.layer-info h3 { color: var(--blue-bright); margin-bottom: 0.35rem; font-size: 1.1rem; }
.layer-info p { color: var(--muted); font-size: 0.9rem; }
.science-controls { border-top: 1px solid var(--line); padding-top: 1rem; }
.slider-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
input[type="range"] { accent-color: var(--blue-bright); width: 100%; }
.toggle-row { display: flex; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
.science-note { color: var(--muted); font-size: 0.8rem; margin-top: 0.8rem; }

/* ---------- Accordion ---------- */
.accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.accordion details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.accordion details[open] { border-color: rgba(63, 123, 255, 0.4); }
.accordion summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  position: absolute;
  right: 1.15rem; top: 50%;
  transform: translateY(-50%);
  color: var(--blue-bright);
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.accordion details[open] summary::after { content: '−'; }
.accordion details p { padding: 0 1.25rem 1.15rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- Pricing ---------- */
.price-group-title {
  font-size: 1.4rem;
  margin: 2.6rem 0 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.cards-price .price-card ul { list-style: none; margin-top: 0.9rem; }
.price-card ul li {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.28rem 0 0.28rem 1.3rem;
  position: relative;
}
.price-card ul li::before { content: '›'; position: absolute; left: 0.2rem; color: var(--blue-bright); }
.price-card ul li.plus { color: var(--text); font-weight: 500; }
.price-line { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: #fff; }
.price-line span:last-child { color: var(--chrome-2); }
.price-line em { font-style: normal; font-size: 0.8rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.price-card.featured { border-color: var(--blue-bright); box-shadow: 0 0 40px rgba(63, 123, 255, 0.18); }
.size-prices { display: flex; gap: 1.1rem; margin-top: 0.2rem; }
.size-prices div { display: flex; flex-direction: column; }
.size-prices span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.size-prices strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: #fff; }
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem;
}
.extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
}
.extra-item strong { font-family: var(--font-head); color: var(--blue-bright); font-size: 1.05rem; letter-spacing: 0.04em; white-space: nowrap; }
.badge {
  position: absolute;
  top: -12px; right: 14px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
.price-fineprint { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 1.6rem; }

/* ---------- Estimator ---------- */
.estimator {
  max-width: 820px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.est-step h4 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.7rem;
}
.seg { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.seg button, .opt-grid button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.seg button:hover, .opt-grid button:hover { border-color: rgba(63, 123, 255, 0.5); }
.seg button.active, .opt-grid button.active {
  border-color: var(--blue-bright);
  background: rgba(63, 123, 255, 0.14);
}
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.opt-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.opt-grid button span { color: var(--blue-bright); font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.04em; }
.est-hint { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; }
.est-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.est-total > div { display: flex; flex-direction: column; }
.est-label { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.est-price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1.1; }
.est-note { color: var(--muted); font-size: 0.8rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.18s, border-color 0.18s;
}
a.contact-card:hover { transform: translateY(-4px); border-color: rgba(63, 123, 255, 0.5); }
.contact-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.contact-card strong { font-family: var(--font-head); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.contact-card span:last-child { color: var(--muted); font-size: 0.85rem; }
.socials { text-align: center; margin-top: 2rem; color: var(--muted); }
.socials a { color: var(--blue-bright); text-decoration: none; font-weight: 600; margin: 0 0.6rem; }
.socials a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-logo { height: 56px; margin-bottom: 0.8rem; opacity: 0.85; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .science-wrap { grid-template-columns: 1fr; }
  .science-canvas-wrap { min-height: 360px; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 12, 18, 0.97);
    flex-direction: column;
    padding: 1rem 1.5rem 1.4rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-name { font-size: 0.92rem; }
  .est-total { flex-direction: column; align-items: stretch; text-align: center; }
  .est-total .btn { width: 100%; text-align: center; }
}
