:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #69b1ff;
  --ink: #0f1621;
  --ink-soft: #475569;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e6ebf2;
  --radius: 14px;
  --max-width: 1120px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3, .brand-name { font-family: var(--font-display); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reusable background texture ---------- */
.dot-grid {
  background-image: radial-gradient(circle, rgba(15, 22, 33, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { height: 46px; width: auto; display: block; }

.brand-name {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-name .load { color: var(--primary); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

nav.main-nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 11px 22px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.28);
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid #bcd6ff;
}

.btn-ghost:hover { background: #eef5ff; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 100px;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* Real freight photography, bled in from the right edge and faded back to white under the
   headline column so the existing dark-on-white text treatment needs no rework. Two layers:
   the photo itself, then a gradient wash (white -> transparent -> a faint brand-blue tint)
   that also doubles as the hero's old radial-gradient accent. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("hero-trucks.jpg?v=3");
  background-image: image-set(url("hero-trucks.webp?v=3") type("image/webp"), url("hero-trucks.jpg?v=3") type("image/jpeg"));
  background-size: cover;
  background-position: center 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 440px at 88% -12%, rgba(22, 119, 255, 0.14), transparent 60%),
    linear-gradient(100deg,
      var(--bg) 0%, var(--bg) 40%,
      rgba(255, 255, 255, 0.93) 50%,
      rgba(255, 255, 255, 0.55) 62%,
      rgba(15, 22, 33, 0.1) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: 47px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h1 .accent { color: var(--primary); }

.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 32px;
}

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

.trust-note { margin: 18px 0 0; font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.trust-note svg { color: var(--primary); flex-shrink: 0; }

/* ---------- Hero visual: browser-chrome mockup + decorative illustration + floating chips --- */
.hero-visual {
  position: relative;
  padding: 36px 8px 8px;
}

.hero-blob {
  position: absolute;
  inset: -40px -20px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.16), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(2px);
}

.browser-mock {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 32px 70px -28px rgba(15, 22, 33, 0.25);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--border);
}

.browser-chrome .dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.browser-chrome .dot:nth-child(1) { background: #fca5a5; }
.browser-chrome .dot:nth-child(2) { background: #fcd34d; }
.browser-chrome .dot:nth-child(3) { background: #86efac; }

.browser-chrome .url-pill {
  margin-left: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: #94a3b8;
  padding: 4px 14px;
  flex: 1;
  max-width: 220px;
}

.browser-body { padding: 22px; }

.flow-card {
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.flow-card:last-child { margin-bottom: 0; }

.flow-card .num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.flow-card .status {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
}

.flow-arrow { text-align: center; color: #cbd5e1; font-size: 16px; margin: -2px 0; }

/* Floating UI "chip" callouts — the small overlapping notification cards common on modern
   SaaS landing pages; built entirely from real product language (no fabricated metrics). */
.float-chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 36px -16px rgba(15, 22, 33, 0.22);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip .chip-icon {
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.float-chip.chip-top {
  top: -18px;
  left: -26px;
}
.float-chip.chip-top .chip-icon { background: #eef5ff; color: var(--primary); }

.float-chip.chip-bottom {
  bottom: -16px;
  right: -22px;
}
.float-chip.chip-bottom .chip-icon { background: #f0fdf4; color: #15803d; }

/* Decorative route illustration — a low-opacity ambient background motif behind the
   whole hero (not tucked behind the mockup card, which hid most of it under an opaque
   white card and left only a stray corner visible — see docs/DECISIONS.md 2026-10-14). */
.hero-illustration {
  position: absolute;
  z-index: 0;
  top: 64px;
  left: -50px;
  width: 300px;
  opacity: 0.1;
  pointer-events: none;
}

/* ---------- Section shell ---------- */
section { padding: 92px 0; position: relative; }
section.soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: 35px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Product ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  transform: translateY(-50%) rotate(45deg);
}

.product-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 22, 33, 0.22);
}

.product-step .step-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.product-step .step-no {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.product-step h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.product-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.product-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #cbd5e1;
}

/* ---------- Inside iGoload (screenshot gallery) ---------- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.screen-card { margin: 0; }

.screen-card .screen-mock {
  position: relative;
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.screen-card .screen-mock:hover,
.screen-card .screen-mock:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -24px rgba(15, 22, 33, 0.3);
}

.screen-card .screen-mock:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; }

.screen-card .screen-mock picture,
.screen-card .screen-mock img {
  display: block;
  width: 100%;
  height: auto;
}

/* "Click to enlarge" hint — invisible until hover/keyboard-focus, so the screenshots read
   as plain product imagery at rest and only reveal the affordance on intent. */
.screen-card .zoom-hint {
  position: absolute;
  inset: 0;
  top: 41px; /* leave the browser-chrome dots bar outside the dimmed region */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 22, 33, 0.38);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.screen-card .screen-mock:hover .zoom-hint,
.screen-card .screen-mock:focus-visible .zoom-hint {
  opacity: 1;
}

.screen-card figcaption h3 { font-size: 16.5px; margin: 0 0 6px; font-weight: 700; }
.screen-card figcaption p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Screenshot lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 14, 20, 0.86);
  display: none;
  align-items: center; justify-content: center;
  z-index: 110;
  padding: 36px 20px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

.lightbox-figure figcaption {
  margin-top: 18px;
  color: #fff;
  font-size: 14.5px;
  text-align: center;
  max-width: 560px;
  opacity: 0.92;
}

.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 22, 33, 0.18);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: #eef5ff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Proof / stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 16px;
}

.stat-card .stat-value { font-size: 29px; font-weight: 700; color: var(--primary); font-family: var(--font-display); }
.stat-card .stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #4096ff);
  border-radius: 22px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.6;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 { font-size: 29px; font-weight: 700; margin: 0 0 10px; }
.cta-banner p { margin: 0 0 28px; opacity: 0.92; }
.cta-banner .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-banner .btn-primary:hover { background: #f0f6ff; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-item .value { font-size: 15.5px; font-weight: 700; }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px -28px rgba(15, 22, 33, 0.16);
}

.contact-card .brand-mark { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }

/* ---------- Header actions ---------- */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(15, 22, 33, 0.16);
  overflow: hidden;
}

.pricing-body { padding: 36px; }
.pricing-body h3 { font-size: 20px; font-weight: 700; margin: 0 0 18px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #eef5ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pricing-cta {
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.pricing-cta p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.pricing-note {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.pricing-note a { color: var(--primary); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Legal / policy pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 34px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: #94a3b8; font-size: 13px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--primary); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--ink); }
.legal .table-wrap { overflow-x: auto; }
.header-back { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.header-back:hover { color: var(--primary); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 22, 33, 0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 18px;
  cursor: pointer;
}

.modal h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.modal p.modal-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.form-msg { font-size: 13px; margin-top: 14px; display: none; padding: 10px 12px; border-radius: 8px; }
.form-msg.success { display: block; background: #f0fdf4; color: #15803d; }
.form-msg.error { display: block; background: #fef2f2; color: #b91c1c; }

.modal button[type="submit"] { width: 100%; margin-top: 4px; }
.modal button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .product-grid, .feature-grid, .screens-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-cta { border-left: none; border-top: 1px solid var(--border); }
  .hero-illustration { display: none; }
  .float-chip { display: none; }
  .hero-visual { padding-top: 8px; }
  .product-step::after { display: none; }
  /* A busy photo under a 2-column hero reads as clutter rather than depth on smaller
     screens — fall back to the plain white/blue-wash background instead of hiding the whole
     image (which would leave the gradient's darker right edge with nothing to fade from). */
  .hero::before { display: none; }
  .hero::after { background: radial-gradient(900px 440px at 88% -12%, rgba(22, 119, 255, 0.1), transparent 60%); }
}

@media (max-width: 520px) {
  .product-grid, .feature-grid, .stats-grid, .screens-grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  section { padding: 56px 0; }
  .cta-banner { padding: 40px 24px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 20px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 13px; font-size: 13px; }
  .pricing-body, .pricing-cta { padding: 26px 22px; }
  .legal h1 { font-size: 28px; }
}
