/* ==========================================================================
   UpfitOS marketing site — www.upfitos.com
   Single committed dark theme (deliberate: the incumbents are all light
   corporate SaaS; this page lives in the vertical's own visual world).
   No frameworks, no webfonts, no external requests.
   ========================================================================== */

:root {
  /* color — cool steel-black ground, one anodized-amber accent */
  --ground: #0b0d10;
  --panel: #12161b;
  --panel-2: #161c22;
  --edge: #242c35;
  --edge-soft: #1a2027;
  --ink: #e9edf1;
  --muted: #9aa6b2;
  --dim: #66727d;
  --accent: #f08a24;
  --accent-dim: #b8681a;
  --accent-ink: #0b0d10;

  /* type */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* layout */
  --w: 1080px;
  --pad: clamp(20px, 5vw, 48px);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* --------------------------------------------------------------------------
   Shared type roles
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 { font-size: clamp(26px, 4vw, 38px); }

.lede {
  color: var(--muted);
  max-width: 62ch;
}

.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-solid:hover { background: #ff9c3a; }

.btn-ghost {
  border-color: var(--edge);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { font-size: 14px; padding: 10px 16px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--edge-soft);
}

.hero .wrap {
  position: relative;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 110px);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  max-width: 17ch;
  margin: 18px 0 22px;
}

.hero .lede { font-size: clamp(17px, 2vw, 20px); margin: 0 0 34px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-note {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  max-width: 52ch;
}
.hero-note strong { color: var(--muted); font-weight: 600; }

/* faint bolt-head echo behind the hero, right side */
.hero-hex {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  pointer-events: none;
  color: var(--edge-soft);
}

@media (max-width: 820px) {
  .hero-hex { width: 380px; height: 380px; right: -180px; opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--edge-soft); }

.section-head { max-width: 62ch; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Wedge — built for upfit shops
   -------------------------------------------------------------------------- */

.wedge-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.wedge-cols p { margin: 0 0 1em; color: var(--muted); }
.wedge-cols p:last-child { margin-bottom: 0; }
.wedge-cols strong { color: var(--ink); font-weight: 600; }

.trades {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trades li {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 7px 14px;
}

/* --------------------------------------------------------------------------
   Feature grid — spec cards
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--edge-soft);
  border-radius: 8px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 140ms ease;
}
.feature:hover { border-color: var(--edge); }

.feature .tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.feature h3 { font-size: 18px; letter-spacing: -0.01em; }

.feature p { margin: 0; font-size: 15px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Comparison ledger — the old guys vs UpfitOS
   -------------------------------------------------------------------------- */

.vs { border: 1px solid var(--edge-soft); border-radius: 10px; overflow: hidden; }

.vs-head, .vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vs-head > div {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--edge-soft);
}
.vs-head .vs-them { color: var(--dim); }
.vs-head .vs-us { color: var(--accent); border-left: 1px solid var(--edge-soft); }

.vs-row > div { padding: 18px 24px; font-size: 15.5px; }
.vs-row + .vs-row > div { border-top: 1px solid var(--edge-soft); }
.vs-row .vs-them { color: var(--dim); }
.vs-row .vs-us { color: var(--ink); border-left: 1px solid var(--edge-soft); background: var(--panel); }

.vs-tag { display: none; }

@media (max-width: 640px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { padding: 14px 18px; }
  .vs-row .vs-them { border-top: 1px solid var(--edge-soft); }
  .vs-row:first-of-type .vs-them { border-top: 0; }
  .vs-row .vs-us { border-left: 0; border-top: 0; }
  .vs-tag {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--dim);
  }
  .vs-us .vs-tag { color: var(--accent); }
}

.vs-footnote {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--dim);
  max-width: 66ch;
}

/* --------------------------------------------------------------------------
   Founding shops
   -------------------------------------------------------------------------- */

.founding {
  background: var(--panel);
  border: 1px solid var(--edge-soft);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 56px);
}

.founding h2 { margin: 14px 0 16px; }
.founding p { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }
.founding .hero-cta { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--edge-soft);
  padding: 40px 0 48px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.site-footer img { height: 22px; width: auto; display: block; opacity: 0.85; }

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.footer-spacer { flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }  /* nav collapses to logo + CTA */
  body { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Motion respect
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
