/* =====================================================================
   d:ip Solutions — Rental & Fleet-Management Platform (Acquisition)
   Brand system: near-black terminal aesthetic, amber accent.
   Fonts: Space Grotesk (display) · JetBrains Mono (mono) ·
          Baloo 2 (brandmark only). Loaded from Google Fonts — the
   site's single external dependency; everything else is local.
   ===================================================================== */

/* ---- Design tokens ------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg:      #0a0c0d;
  --bg-2:    #0f1113;
  --panel:   #14171a;
  --panel-2: #191d21;
  --line:    rgba(255, 255, 255, .09);
  --line-2:  rgba(255, 255, 255, .16);
  --ink:     #ECEEF1;
  --muted:   #98a1ad;
  --faint:   #6a7280;

  --amber:   #f7a64b;
  --amber-2: #ffb968;
  --amber-ink: #1a1206;           /* text on amber */
  --amber-soft: rgba(247, 166, 75, .09);
  --green:   #63d79a;
  --green-soft: rgba(99, 215, 154, .1);
  --blue:    #6fb2ff;
  --blue-soft: rgba(111, 178, 255, .09);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 24px 60px -30px rgba(0,0,0,.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);

  --maxw: 1120px;
  --disp: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "Consolas", monospace;
  --round: "Baloo 2", system-ui, sans-serif;
}

/* ---- Reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--disp);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Subtle terminal grid + amber glow, fading out down the page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 560px at 80% -10%, rgba(247,166,75,.09), transparent 60%),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px) 0 0 / 40px 100%;
  -webkit-mask-image: linear-gradient(to bottom, black, black 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, black, black 55%, transparent 92%);
}
main, .site-footer { position: relative; z-index: 1; }

img, svg { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.04; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 .6em; text-wrap: balance; }
h3 { font-size: 1.18rem; margin: 0 0 .4em; letter-spacing: -.01em; }
p  { margin: 0 0 1em; color: var(--muted); }
ul, ol { color: var(--muted); }
strong { color: var(--ink); }
code, kbd {
  font-family: var(--mono); font-size: .86em; color: var(--amber-2);
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  padding: .1em .4em;
}
::selection { background: rgba(247,166,75,.3); color: var(--ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--amber-ink); font-weight: 600;
  padding: .6em 1em; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---- Layout -------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 96px) 0; }
.section--tight { padding: 48px 0; }
.section--sunken {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Terminal-style eyebrow: mono, uppercase, amber, leading tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--amber); opacity: .8; flex: none; }
.center .eyebrow, .section-head--center .eyebrow { justify-content: center; }

.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--faint); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Brandmark (d:ip — Baloo 2, p = flipped d) ---------------------- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brandmark {
  font-family: var(--round); font-weight: 800; font-size: 25px; line-height: .8;
  display: inline-flex; align-items: center; letter-spacing: -.015em;
  white-space: nowrap; color: var(--ink);
}
.brandmark .colon {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: .15em; margin: 0 .09em; transform: translateY(.03em);
}
.brandmark .colon i { width: .17em; height: .17em; border-radius: 50%; background: var(--amber); display: block; }
.brandmark .flip {
  display: inline-block; transform-origin: 50% 52%; transform: rotate(180deg);
  transition: transform .8s cubic-bezier(.62, 0, .24, 1);
}
.brandmark.showd .flip { transform: rotate(0deg); }
.brand__word {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ---- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 12, 13, .8);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: 66px; }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .03em;
  color: var(--muted); padding: .55em .6em; border-radius: 7px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--amber); background: var(--amber-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1080px) { .header-actions { margin-left: 10px; } .nav { display: block; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); color: var(--ink); cursor: pointer;
  transition: border-color .15s;
}
.menu-toggle:hover { border-color: var(--ink); }
@media (min-width: 1080px) { .menu-toggle { display: none; } }

.nav-cta { display: none; }
@media (min-width: 1240px) { .nav-cta { display: inline-flex; } }

/* Mobile drawer */
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg-2); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px; display: grid; gap: 2px; }
.mobile-nav a {
  display: block; padding: .7em .8em; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: .86rem; color: var(--muted);
}
.mobile-nav a:hover { color: var(--ink); background: rgba(255,255,255,.04); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--amber); background: var(--amber-soft); }
.mobile-nav .btn { margin-top: 8px; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: .8rem; letter-spacing: .03em;
  line-height: 1; padding: .95em 1.3em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }
.btn--sm { padding: .75em 1em; font-size: .76rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(72px, 9vw, 104px) 0 clamp(56px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% -20%, rgba(247,166,75,.08), transparent 60%),
    radial-gradient(760px 360px at 96% 4%, rgba(111,178,255,.05), transparent 55%);
}
.hero h1 { max-width: 21ch; }
.hero .lead { margin-bottom: 1.7rem; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.badge-strip li {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  color: var(--muted); background: rgba(255,255,255,.02);
  border: 1px solid var(--line); padding: .5em .85em; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.badge-strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); opacity: .8; }

/* ---- Cards --------------------------------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; height: 100%;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(247,166,75,.35); transform: translateY(-2px);
  box-shadow: 0 24px 50px -34px rgba(0,0,0,.9);
}
.card h3 { display: flex; align-items: center; gap: .55em; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .93rem; }
.card__icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(247,166,75,.22);
  margin-bottom: 14px;
}
.card__icon svg { width: 22px; height: 22px; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { position: relative; padding: .32em 0 .32em 1.5em; color: var(--muted); font-size: .93rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: 11px; height: 2px;
  background: var(--amber);
}

/* ---- Stats --------------------------------------------------------- */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; text-align: left;
  transition: border-color .2s;
}
.stat:hover { border-color: var(--line-2); }
.stat__num { font-size: 2.1rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.stat__num small { font-size: 1rem; font-weight: 600; color: var(--amber); }
.stat__label { font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-top: 6px; line-height: 1.5; }

/* ---- Tables -------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 520px; }
caption { text-align: left; color: var(--faint); font-family: var(--mono); font-size: .74rem; padding: 10px 16px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { color: var(--muted); }
td strong { color: var(--ink); }
thead th {
  background: rgba(255,255,255,.03); color: var(--faint); font-weight: 500;
  font-family: var(--mono); position: sticky; top: 0;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(247,166,75,.045); }

/* ---- Pills / tags -------------------------------------------------- */
.pill {
  display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .04em; padding: .3em .75em; border-radius: 999px;
  background: rgba(255,255,255,.03); color: var(--muted); border: 1px solid var(--line);
}
.pill--ok     { background: var(--green-soft); color: var(--green); border-color: rgba(99,215,154,.28); }
.pill--teal   { background: var(--blue-soft);  color: var(--blue);  border-color: rgba(111,178,255,.28); }
.pill--accent { background: var(--amber-soft); color: var(--amber); border-color: rgba(247,166,75,.3); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Steps / journey ---------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 22px 76px; counter-increment: step;
  transition: border-color .2s;
}
.step:hover { border-color: rgba(247,166,75,.35); }
.step::before {
  content: "0" counter(step); position: absolute; left: 20px; top: 22px;
  width: 38px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--amber);
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.step:nth-child(n+10)::before { content: counter(step); }
.step h3 { margin-bottom: .2em; }
.step p { margin-bottom: 0; font-size: .93rem; }

/* ---- Callout / CTA band ------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(247,166,75,.1), var(--panel) 70%);
  border: 1px solid rgba(247,166,75,.4);
  color: var(--ink); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 52px);
  text-align: center; box-shadow: 0 34px 80px -48px rgba(247,166,75,.55);
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--muted); max-width: 58ch; margin-left: auto; margin-right: auto; }

.note {
  border-left: 2px solid var(--blue); background: var(--blue-soft);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: .93rem;
}
.note strong { color: var(--ink); }
.note--warn { border-left-color: var(--amber); background: var(--amber-soft); }

/* ---- Definition rows ---------------------------------------------- */
.deflist {
  display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel);
}
.deflist > div {
  display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.deflist > div:last-child { border-bottom: none; }
@media (min-width: 640px) { .deflist > div { grid-template-columns: 210px 1fr; gap: 20px; align-items: baseline; } }
.deflist dt { font-weight: 600; color: var(--ink); margin: 0; }
.deflist dd { margin: 0; color: var(--muted); }

/* ---- Section heading helper --------------------------------------- */
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: .98rem; }

/* ---- Forms --------------------------------------------------------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono); font-weight: 500; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.field .req { color: var(--amber); }
.field input, .field select, .field textarea {
  font-family: var(--disp); font-size: .95rem; padding: .75em .85em;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); width: 100%;
  transition: border-color .16s, box-shadow .16s;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247,166,75,.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.form__hint { font-family: var(--mono); font-size: .72rem; color: var(--faint); line-height: 1.6; }
.form-success {
  display: none; background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(99,215,154,.3);
  padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500;
}
.form-success.show { display: block; }

/* ---- Chip cloud (buyer categories, NOT customer logos) ------------ */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-cloud span {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 999px;
  padding: .55em 1em; font-family: var(--mono); font-size: .76rem; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.chip-cloud span:hover { border-color: rgba(247,166,75,.4); color: var(--ink); }

/* ---- Footer -------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 52px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: var(--faint); margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--muted); font-size: .9rem; }
.site-footer li a:hover { color: var(--ink); text-decoration: none; }
.site-footer .footer-grid p { font-size: .93rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--faint); font-family: var(--mono); font-size: .72rem; line-height: 1.6;
}
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }

/* ---- Utility spacing ---------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

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