:root {
  color-scheme: dark;
  --bg: #06101d;
  --panel: rgba(8, 17, 30, 0.9);
  --panel-solid: #0c1726;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(226, 232, 240, 0.16);
  --blue: #38bdf8;
  --blue-strong: #7dd3fc;
  --red: #e11d48;
  --green: #86efac;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Anton", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 100;
  background: var(--blue);
  color: #03101d;
  padding: 0.7rem 1rem;
  font-weight: 900;
}
.skip-link:focus { left: 1rem; }
.wrap { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 16, 29, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { width: min(300px, 52vw); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem 1.15rem; }
.nav a { color: var(--muted); font-size: 0.9rem; font-weight: 900; }
.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}
.header-cta, .btn-primary {
  background: var(--blue);
  color: #03101d;
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.22);
}
.btn-primary:disabled { cursor: wait; opacity: 0.7; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.07); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 32px rgba(225, 29, 72, 0.22); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 8vw, 6rem) 0 4rem;
}
.hero-media, .hero-wash, .hero-slide { position: absolute; inset: 0; }
.hero-media { z-index: -3; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 18s infinite;
}
.hero-slide--one { background-image: url("/media/gallery/lee-size-245-60-20.webp"); }
.hero-slide--two { background-image: url("/media/gallery/lee-deep-rows.webp"); animation-delay: 6s; }
.hero-slide--three { background-image: url("/media/gallery/lee-wheel-mounted.webp"); animation-delay: 12s; }
@keyframes hero-fade {
  0%, 29% { opacity: 1; transform: scale(1); }
  34%, 95% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.hero-wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 16, 29, 0.96) 0%, rgba(6, 16, 29, 0.76) 46%, rgba(6, 16, 29, 0.46) 100%),
    linear-gradient(180deg, rgba(6, 16, 29, 0.08), #06101d);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw -8vw;
  height: 34vh;
  z-index: -1;
  background:
    repeating-linear-gradient(116deg, transparent 0 22px, rgba(56, 189, 248, 0.24) 22px 46px),
    #06101d;
  transform: skewY(-4deg);
}
.hero-grid, .split, .visit-grid { display: grid; gap: 2rem; align-items: center; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.74fr); }
.eyebrow, .panel-kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: 0; line-height: 0.96; }
h1 { margin: 0 0 1rem; font-size: clamp(3.4rem, 9vw, 7.2rem); max-width: 10ch; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 4rem); }
h3 { margin: 0 0 0.55rem; font-size: 1.35rem; }
.lead { max-width: 44rem; margin: 0 0 1.5rem; color: var(--muted); font-size: 1.13rem; }
.hero-actions, .visit-actions, .search-actions, .template-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-stats span {
  min-height: 90px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  color: var(--muted);
}
.hero-stats strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.55rem; line-height: 1; }

.search-panel {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.search-panel h2 { font-size: 2.1rem; }
label, label span { display: block; }
label span { margin-bottom: 0.4rem; color: var(--muted); font-size: 0.86rem; font-weight: 900; }
textarea, input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  padding: 0.78rem 0.85rem;
}
textarea:focus, input:focus { outline: 2px solid rgba(56, 189, 248, 0.38); border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 0.75rem; margin: 0.8rem 0 1rem; }
.search-status, .copy-status { min-height: 1.35rem; margin: 0.8rem 0 0; color: var(--muted); font-size: 0.9rem; }
.search-status[data-kind="error"], .copy-status[data-kind="error"] { color: #fecaca; }
.search-status[data-kind="ok"], .copy-status[data-kind="ok"] { color: var(--green); }
.search-results { margin-top: 1rem; }
.search-answer { border-top: 1px solid var(--line); padding-top: 1rem; }
.search-answer p, .search-result-card p { color: var(--muted); }
.search-question { color: #fecaca !important; }
.search-result-grid { display: grid; gap: 0.7rem; margin: 1rem 0; }
.search-result-card {
  padding: 0.85rem;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
}
.search-result-card strong, .search-result-card span { display: block; }
.template-grid { display: grid; gap: 0.75rem; margin-top: 1rem; }
.template-card {
  padding: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.36);
}
.template-card strong { display: block; margin-bottom: 0.35rem; }
.template-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.94rem; }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 790px; margin-bottom: 2rem; }
.section-head p, .split p, .visit-grid p { color: var(--muted); }
.gallery-grid, .proof-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-grid figure, .proof-strip figure, .visit-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}
.gallery-grid img, .proof-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-grid figcaption { padding: 0.8rem; color: var(--muted); font-weight: 900; }
.section-dark {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent 42%),
    linear-gradient(315deg, rgba(225, 29, 72, 0.12), transparent 45%),
    #081525;
  border-block: 1px solid var(--line);
}
.split { grid-template-columns: 0.9fr 1.1fr; }
.step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.step-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.step-grid [data-lucide] { color: var(--blue-strong); width: 2rem; height: 2rem; margin-bottom: 0.75rem; }
.visit-grid { grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr); }
.visit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; background: #06101d; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); }
.footer-inner strong { color: var(--ink); }
[data-lucide] { width: 1.1em; height: 1.1em; stroke-width: 2.2; }

@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; padding: 0.75rem 0; }
  .nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero-grid, .split, .visit-grid, .gallery-grid, .proof-strip { grid-template-columns: 1fr; }
  .hero-stats, .step-grid { grid-template-columns: 1fr; }
  h1 { max-width: 11ch; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 1.2rem, 1160px); }
  .brand img { width: min(240px, 72vw); }
  .header-cta { display: none; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; }
  .hero-slide--one { opacity: 1; }
}
