/* ============================================================
   Meridian Express Trucking LLC — styles
   Dark navy · thematic · accent = amber (--accent)
   ============================================================ */

:root {
  --bg:        #0A1626;
  --bg-2:      #0C1B30;
  --panel:     #10233E;
  --surface:   #122A49;
  --line:      rgba(150, 182, 224, 0.14);
  --line-2:    rgba(150, 182, 224, 0.30);
  --text:      #E9EFF8;
  --muted:     #92A7C6;
  --accent:    #F6A821;
  --accent-2:  #5B9BFF;
  --accent-ink:#0A1626;

  --font-disp: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --pad: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-disp);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.07;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }

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

.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- ambient background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx .glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.bg-fx .glow--a {
  width: 620px; height: 620px; top: -240px; right: -140px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  animation: drift 20s ease-in-out infinite alternate;
}
.bg-fx .glow--b {
  width: 540px; height: 540px; top: 40%; left: -240px;
  background: color-mix(in srgb, var(--accent-2) 20%, transparent);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
.bg-fx .grain {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ---------- buttons: style A — fill sweep + arrow ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 6px;
  font-family: var(--font-disp);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  background: transparent;
  transition: box-shadow .25s ease, transform .25s ease, color .25s ease;
}
.btn__bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  z-index: -1;
  transition: transform .34s cubic-bezier(.2, .7, .2, 1);
}
.btn .ico { transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.btn:hover { color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(-1px); }
.btn:hover .btn__bg { transform: translateX(-100%); }
.btn:hover .ico { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost .btn__bg { background: var(--surface); transform: translateX(0); }
.btn--ghost:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.btn--ghost:hover .btn__bg { transform: translateX(0); }

.btn--sm { height: 44px; padding: 0 22px; }
.btn--block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn__bg, .btn .ico { transition: none; }
  .btn:hover { transform: none; }
  .btn:hover .btn__bg { transform: translateX(-100%); }
}

.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  transition: height .3s;
}
.site-header.is-scrolled .wrap { height: 66px; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }

.wordmark { display: flex; flex-direction: column; gap: 3px; color: var(--text); }
.wordmark__name { font-family: var(--font-disp); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.wordmark__sub  { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.nav a:not(.btn):hover,
.nav a[aria-current="true"] { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- sections ---------- */
main { position: relative; z-index: 1; }

.section {
  padding: 116px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
  margin-bottom: 60px;
}
.section__head--center { text-align: center; align-items: center; max-width: none; }
.section__head h2 { font-size: 42px; }
.section__head p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 128px 0 104px; }
.hero__routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; pointer-events: none; }
.hero__routes path { stroke-dasharray: 6 10; animation: roll 2.6s linear infinite; }
.hero__routes path:nth-child(2) { animation-duration: 3.8s; }
@keyframes roll { to { stroke-dashoffset: -160; } }
@media (prefers-reduced-motion: reduce) {
  .hero__routes path { animation: none; }
  .bg-fx .glow { animation: none; }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 76px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: 66px; font-weight: 800; }
.hero__title .accent { color: var(--accent); }
.hero__lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 32em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }

.board {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  overflow: hidden;
}
.board__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.board__live { display: inline-flex; align-items: center; gap: 7px; }
.board__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.board__row { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; }
.board__row + .board__row { border-top: 1px solid var(--line); }
.board__val { font-family: var(--font-disp); font-weight: 700; font-size: 32px; }
.board__lbl { font-size: 12.5px; color: var(--muted); }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 44px;
  padding: 13px 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}
.ticker__item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55);
}
.card h3 { font-size: 23px; }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; color: var(--muted); font-size: 15px; }

.ico-lg { width: 30px; height: 30px; stroke: var(--accent); stroke-width: 1.6; fill: none; transition: transform .3s ease; }
.card:hover .ico-lg { transform: scale(1.12) rotate(-4deg); }

.tile {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 32px 26px;
  background: var(--panel);
  transition: background .3s ease;
}
.tile:hover { background: var(--surface); }
.tile h3 { font-size: 16px; }
.tile p { margin: 0; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card, .card .ico-lg, .tile { transition: none; }
  .card:hover { transform: none; }
  .card:hover .ico-lg { transform: none; }
}

/* ---------- requirements ---------- */
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 44px; }
.req { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.req__n { font-family: var(--font-mono); color: var(--accent); font-size: 13px; padding-top: 2px; }
.req p { margin: 0; font-size: 15px; }
.req strong { font-weight: 600; }
.req span { color: var(--muted); }

/* ---------- process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps__line {
  position: absolute; top: 7px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px);
}
.step { display: flex; flex-direction: column; gap: 14px; position: relative; }
.step__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); }
.step--active .step__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.step__k { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.step--active .step__k { color: var(--accent); }
.step h3 { font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { stroke: var(--accent); transition: transform .28s; }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__item p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .faq__item summary .ico { transition: none; }
}

/* ---------- apply form ---------- */
.apply { border-top: 1px solid var(--line-2); }
.apply .wrap { max-width: 780px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 40px;
  background: linear-gradient(180deg, var(--surface), var(--panel));
}
.fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fld--full { grid-column: 1 / -1; }
.fld input,
.fld select,
.fld textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(10, 22, 38, 0.55);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 14px;
  height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.fld textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 92px; }
.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.fld[data-error] input,
.fld[data-error] select { border-color: #E5484D; }
.fld__err { font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #FF8A8D; min-height: 0; }

/* honeypot — visually hidden, off-screen, not display:none (bots skip display:none) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__note { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  font-size: 14px;
  text-align: center;
}
.form__status:not(:empty) { padding: 14px 16px; border-radius: 8px; }
.form__status[data-tone="ok"]  { background: color-mix(in srgb, #30A46C 16%, transparent); color: #7EE2B8; }
.form__status[data-tone="err"] { background: color-mix(in srgb, #E5484D 16%, transparent); color: #FF9EA1; }

.noscript-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 68px 0 52px;
  background: var(--bg-2);
  position: relative;
  z-index: 1;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 44px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.site-footer__col a { color: var(--text); }
.site-footer__col span { color: var(--muted); }
.site-footer__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.site-footer__legal { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  :root { --pad: 32px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }
  .section__head h2 { font-size: 34px; }

  .hero { padding: 84px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__title { font-size: 46px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .reqs { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps__line { display: none; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .form { grid-template-columns: 1fr; padding: 28px; }

  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--pad) 24px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: inline-flex; }
  @media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
}

@media (max-width: 560px) {
  .hero__title { font-size: 38px; }
  .section__head h2 { font-size: 28px; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
