/* ==========================================================================
   Fast Freight Solution Inc. — Design System (Light)
   Clean, precise, high-contrast light theme with brand accents
   Brand: electric blue #29A9E0 · gold #F5B31A on white
   ========================================================================== */

:root {
  /* Core palette — LIGHT */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-elev: #f6f8fa;
  --bg-elev-2: #eef2f6;
  --line: #e4e9ee;
  --line-strong: #cfd7e0;

  --text: #0c1116;
  --text-muted: #4a5561;
  --text-dim: #7c8794;

  --blue: #1786bd;        /* accessible on white — links, eyebrows, primary btn */
  --blue-bright: #29a9e0; /* brand accent / hovers */
  --blue-dim: #9fd3ec;
  --gold: #c6900a;        /* gold text on white */
  --gold-bright: #f5b31a; /* gold fills / buttons */

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, "Roboto Mono", monospace;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(12,17,22,0.04);
  --shadow: 0 8px 30px rgba(12,17,22,0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }

/* Subtle background grid */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--blue); display: inline-block;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); }
.display {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 600;
  line-height: 0.98;
}
h2.headline { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.gold { color: var(--gold); }
.blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(23,134,189,0.25); }
.btn--primary:hover { background: var(--blue-bright); box-shadow: 0 6px 20px rgba(41,169,224,0.3); }
.btn--gold { background: var(--gold-bright); color: #1a1300; box-shadow: 0 4px 14px rgba(245,179,26,0.28); }
.btn--gold:hover { background: #ffc23d; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--text); }
.brand__name span { color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 14.5px; color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--text); background: var(--bg-elev); }
.nav__cta { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }
.nav__toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: var(--bg); padding: var(--gutter);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  border-top: 1px solid var(--line);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block; font-size: 1.4rem; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text);
}
.mobile-menu .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 160px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,169,224,0.10), transparent 60%);
  pointer-events: none; filter: blur(10px);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero .display { margin: 24px 0 28px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 100px; border: 1px solid var(--line); background: var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: var(--bg); padding: 30px 28px; }
.stat__num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.stat__num .gold { color: var(--gold); }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }

/* ---------- Logo ticker ---------- */
.trust { border-block: 1px solid var(--line); padding-block: 34px; background: var(--bg-elev); }
.trust__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); text-align: center; margin-bottom: 24px; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; color: var(--text-muted); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }

/* ---------- Feature grid / cards ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); padding: 40px 34px; position: relative;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--bg-elev); }
.card__icon {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--blue); margin-bottom: 24px; background: #fff;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card__link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-top: 22px; display: inline-flex; gap: 8px; align-items: center; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__media {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--bg-elev), var(--bg)); position: relative; overflow: hidden; box-shadow: var(--shadow);
}

/* Numbered list */
.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step { background: var(--bg); display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 34px 0; align-items: start; }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--gold); letter-spacing: 0.1em; padding-top: 4px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); max-width: 60ch; }

/* CTA band */
.cta-band { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(140deg, var(--bg-elev-2), var(--bg)); padding: clamp(48px, 7vw, 88px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-band .headline { max-width: 20ch; margin: 0 auto 20px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  background: var(--bg-elev); border: 1px solid var(--line-strong); color: var(--text);
  padding: 13px 15px; border-radius: var(--radius); font-family: inherit; font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(23,134,189,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 20px; }
.form__note { font-size: 13px; color: var(--text-dim); }
.form-success {
  display: none; padding: 20px; border: 1px solid var(--blue-dim); border-radius: var(--radius);
  background: rgba(41,169,224,0.08); color: #0f6f9e; font-size: 15px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; background: var(--bg-elev); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { color: var(--text-muted); font-size: 14.5px; margin-top: 18px; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer__col a { display: block; color: var(--text-muted); font-size: 14.5px; padding: 6px 0; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--blue); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__bottom p { font-size: 13px; color: var(--text-dim); }
.footer__legal { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }
.footer__legal span { color: var(--text-dim); }
.footer__legal .gold { color: var(--gold); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: 160px; padding-bottom: 40px; position: relative; }
.page-hero .display { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 20px 0 20px; max-width: 18ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); }
.breadcrumb .blue { color: var(--blue); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.post__thumb { aspect-ratio: 16/9; background: linear-gradient(140deg, var(--bg-elev-2), var(--bg-elev)); border-bottom: 1px solid var(--line); }
.post__body { padding: 24px; }
.post__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.post h3 { font-size: 1.2rem; margin: 12px 0; }
.post p { color: var(--text-muted); font-size: 14px; }
.post__meta { font-size: 12.5px; color: var(--text-dim); margin-top: 16px; }

/* ---------- Careers ---------- */
.role { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease); }
.role:hover { padding-left: 12px; }
.role__meta { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); flex-wrap: wrap; }
.role h3 { font-size: 1.25rem; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid--3, .post-grid { grid-template-columns: 1fr 1fr; }
  .split, .form-wrap { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid--3, .grid--2, .post-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .role { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Illustration panels + blog thumbnails ---------- */
.split__media { display: grid; place-items: center; }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__thumb {
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(41,169,224,0.14), transparent 60%),
    linear-gradient(140deg, var(--bg-elev-2), var(--bg-elev));
}
.post__thumb::before {
  content: ""; position: absolute; width: 66px; height: 66px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(12,17,22,0.05);
}
.post__thumb svg { width: 44px; height: 44px; color: var(--blue); position: relative; z-index: 1; }

/* ---------- Legal / long-form documents ---------- */
.legal { max-width: 820px; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.legal p { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.legal a { color: var(--blue); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .callout { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--bg-elev); padding: 16px 20px; border-radius: var(--radius); margin: 20px 0; font-size: 14px; color: var(--text-muted); }

/* Footer legal links row */
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim); }
.footer__links a:hover { color: var(--blue); }
