/* ============================================================================
   Design tokens — RevDaddy
   Palette: matte asphalt black, brushed chrome, Hemi Orange — a dealership
   window sticker, not a ledger. A domain here is a car on the lot: it gets
   a spec card (price, status stamped like SOLD/AVAILABLE), and the racing
   stripe is the one recurring graphic device tying every page together.
   ============================================================================ */
:root {
  --asphalt: #0d0d0e;
  --asphalt-2: #19191b;
  --asphalt-3: #212124;
  --line: #2d2d31;
  --chrome: #b9bcc2;
  --chrome-bright: #e7e9ec;
  --orange: #e0521c;
  --orange-bright: #ff7038;
  --stripe: #f2ede0;
  --go: #3f9142;
  --stop: #c1272d;
  --radius: 2px;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--asphalt);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(224, 82, 28, 0.10), transparent),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 4px);
  color: var(--chrome-bright);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange-bright); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 400; margin: 0 0 0.3em;
  letter-spacing: 0.01em; text-transform: uppercase; line-height: 0.95;
}
h1 { font-size: clamp(2.6rem, 6vw + 1rem, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw + 1rem, 2.3rem); }
p { color: var(--chrome); margin: 0 0 1em; }
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- Racing stripe — the one recurring signature device -------------------
   A two-tone bar (orange over stripe-white) used sparingly: under the nav,
   through the hero, and as the left edge of every spec card. Never more
   than one per view unless it's echoing the card edge. */
.stripe {
  height: 6px; width: 100%;
  background: linear-gradient(90deg, var(--orange) 0 60%, var(--stripe) 60% 100%);
}
.stripe-thin { height: 3px; }

/* --- Nav --------------------------------------------------------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 18px;
}
.brand {
  font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.03em;
  text-decoration: none; color: var(--chrome-bright); display: inline-flex; align-items: baseline; gap: 2px;
}
.brand .mark { color: var(--orange); }
.nav-links { display: flex; gap: 22px; align-items: center; font-family: var(--font-label); font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--chrome); }
.nav-links a:hover { color: var(--orange-bright); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-label); font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--orange); color: #140a05; }
.btn-gold:hover { background: var(--orange-bright); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--chrome-bright); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-bright); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 15px; font-size: 0.88rem; }
.btn-danger { background: transparent; border-color: var(--stop); color: var(--stop); }
.btn-danger:hover { background: rgba(193, 39, 45, 0.12); }

/* --- Search bar ----------------------------------------------------------*/
.search-row { display: flex; gap: 10px; margin: 32px 0; }
.search-row input {
  flex: 1; font-family: var(--font-mono); font-size: 1.05rem;
  background: var(--asphalt-2); border: 1px solid var(--line); color: var(--chrome-bright);
  border-radius: var(--radius); padding: 14px 16px;
}
.search-row input:focus { border-color: var(--orange); }
.search-row input::placeholder { color: var(--chrome); opacity: 0.5; }

/* --- The "sticker" card — signature element --------------------------------
   Styled like a dealership window sticker: a stripe down the left edge,
   a stamped status badge, price set like an MSRP figure. */
.sticker {
  position: relative;
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 22px 20px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  overflow: hidden;
}
.sticker.available { border-left-color: var(--go); }
.sticker .name { font-family: var(--font-mono); font-size: 1.15rem; color: var(--chrome-bright); }
.sticker .price { font-family: var(--font-mono); color: var(--orange-bright); font-size: 0.95rem; }
.sticker .status {
  font-family: var(--font-label); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 100px; border: 1px solid currentColor;
}
.sticker .status.available { color: var(--go); }
.sticker .status.taken { color: var(--stop); }
.sticker .status.unknown { color: var(--chrome); }
.sticker-grid { display: grid; gap: 12px; }

/* --- Cards / sections ----------------------------------------------------*/
.card {
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.section { padding: 56px 0; }
.eyebrow {
  font-family: var(--font-label); font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--orange); margin-bottom: 10px; display: block;
}

/* --- Forms --------------------------------------------------------------- */
label {
  display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.88rem; color: var(--chrome); margin: 14px 0 6px;
}
input, select {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem;
  background: var(--asphalt-3); border: 1px solid var(--line); color: var(--chrome-bright);
  border-radius: var(--radius); padding: 11px 13px;
}
input:focus, select:focus { border-color: var(--orange); }
.field-error { color: var(--stop); font-size: 0.85rem; margin-top: 6px; }
.form-error { background: rgba(193, 39, 45, 0.1); border: 1px solid var(--stop); color: var(--chrome-bright);
  padding: 12px 14px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.form-note { color: var(--chrome); font-size: 0.85rem; margin-top: 6px; }

/* --- Table (DNS records) --------------------------------------------------*/
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th {
  color: var(--chrome); font-family: var(--font-label); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
td.mono { color: var(--orange-bright); }

/* --- Utility --------------------------------------------------------------*/
.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--chrome); font-size: 0.88rem; }
.hidden { display: none !important; }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag {
  display: inline-block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.78rem; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line); color: var(--chrome);
}
footer {
  border-top: 3px solid var(--line); padding: 28px 0 40px; color: var(--chrome);
  font-family: var(--font-label); letter-spacing: 0.03em; text-transform: uppercase;
  font-size: 0.85rem; margin-top: 64px;
}

@media (max-width: 640px) {
  .sticker { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 14px; font-size: 0.88rem; }
}
