/* Fleetfold marketing site - shared */
:root {
  --ink: #14181f;
  --ink-soft: #3a4352;
  --muted: #5c6573;
  --ivory: #f4f1ea;
  --paper: #ebe6dc;
  --cobalt: #1d4ed8;
  --cobalt-deep: #1e3a8a;
  --line: rgba(20, 24, 31, 0.12);
  --glow: rgba(29, 78, 216, 0.16);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--ivory);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* -- Site header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.1rem, 3.5vw, 2.75rem);
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hero {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #f8fafc;
  backdrop-filter: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  opacity: 0.9;
}
.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  background: rgba(20, 24, 31, 0.06);
}
.site-header.is-hero .nav a:hover,
.site-header.is-hero .nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--cobalt); color: #fff; }
.btn-solid:hover { background: var(--cobalt-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.9;
}
.site-header.is-hero .btn-on-dark {
  background: #fff;
  color: var(--ink);
}
.site-header.is-hero .btn-on-dark:hover { background: var(--paper); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
}
.site-header.is-hero .menu-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* -- Hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f8fafc;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Darken left for text readability; keep right devices bright and shiny */
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.82) 0%, rgba(8, 12, 20, 0.45) 42%, rgba(8, 12, 20, 0.08) 68%, rgba(8, 12, 20, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.25) 0%, transparent 35%, rgba(8, 12, 20, 0.55) 100%),
    radial-gradient(ellipse 55% 45% at 78% 40%, rgba(56, 120, 255, 0.18), transparent 70%);
}
.hero-inner {
  padding: calc(var(--header-h) + 3rem) clamp(1.1rem, 3.5vw, 2.75rem) clamp(2.4rem, 6vh, 3.75rem);
  max-width: 44rem;
  animation: riseIn 0.85s ease-out both;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
}
.hero-line {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.hero-sub {
  margin: 0 0 1.6rem;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  color: rgba(248, 250, 252, 0.88);
  max-width: 38ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

/* -- Page shell (inner pages) -- */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) clamp(1.1rem, 3.5vw, 2.75rem) 2.5rem;
  background:
    linear-gradient(135deg, #f7f4ee 0%, #e7eef8 50%, #f4f1ea 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.7rem;
  max-width: 18ch;
}
.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 42ch;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.1rem, 3.5vw, 2.75rem);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4.5vw, 3.25rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.split:last-child { margin-bottom: 0; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}
.copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 40ch;
}
.visual {
  overflow: hidden;
  min-height: clamp(220px, 38vw, 400px);
  background: var(--paper);
  animation: fadeUp 0.9s ease both;
}
.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.band {
  background: linear-gradient(135deg, #f7f4ee 0%, #e8eef8 55%, #f4f1ea 100%);
  border-block: 1px solid var(--line);
}
.band .wrap { max-width: 760px; }
.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.band p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: 1.05rem; }
.path-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.path-note code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  background: var(--paper);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}
.step h3 {
  font-family: var(--font-display);
  margin: 0.15rem 0 0.35rem;
  font-size: 1.2rem;
}
.step p { margin: 0; color: var(--ink-soft); }

/* -- Footer -- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.88);
  padding: 3rem clamp(1.1rem, 3.5vw, 2.75rem) 2rem;
  margin-top: 0;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.5rem;
}
.footer-brand-desc {
  margin: 0;
  font-size: 0.95rem;
  max-width: 28ch;
  color: rgba(244, 241, 234, 0.7);
}
.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.55);
  font-weight: 600;
}
.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: rgba(244, 241, 234, 0.9);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1120px;
  margin: 2.25rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(244, 241, 234, 0.55);
}

@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(-1.2%, 0.8%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .site-header.is-hero .nav { background: #111827; color: #f8fafc; }
  .site-header.nav-open .nav { display: flex; }
  .nav a { padding: 0.75rem 0.5rem; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .hero-inner, .visual { animation: none; }
}
