/* UptrendMinds TMS — brokerage landing
   Palette matches the shipper portal: cobalt #2563EB on white. */

:root {
  --blue: #2563eb;          /* portal --primary: hsl(221.2 83.2% 53.3%) */
  --blue-deep: #1d4ed8;
  --blue-ink: #0b1b3a;
  --blue-tint: #eff6ff;
  --blue-tint-2: #dbeafe;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(37, 99, 235, 0.18);
  --shadow-pop: 0 2px 4px rgba(15, 23, 42, 0.06), 0 24px 48px -16px rgba(37, 99, 235, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--blue-ink);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.muted { color: var(--slate-light); }
.accent { color: var(--blue); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--blue-tint-2); }

.lede { font-size: 1.13rem; color: var(--slate); max-width: 34rem; }
.lede--light { color: rgba(255, 255, 255, 0.82); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.62rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--lg { padding: 0.85rem 1.7rem; font-size: 1rem; border-radius: 12px; }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
}
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(37, 99, 235, 0.6); }
.btn--ghost { color: var(--blue-ink); }
.btn--ghost:hover { color: var(--blue); }
.btn--outline { border-color: var(--line); color: var(--blue-ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--blue-deep); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(11, 27, 58, 0.45); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--blue-ink);
  letter-spacing: -0.01em;
}
.brand__name em { font-style: normal; color: var(--blue); }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--blue); }
.nav__actions { display: flex; gap: 0.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--blue-tint-2) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 75% at 70% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 70% 20%, black 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero__cta { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__copy .lede { margin-top: 1.4rem; }
.hero__points {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.2rem;
  list-style: none;
  flex-wrap: wrap;
}
.hero__points li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint-2);
}

/* hero visual — load card stack */
.hero__visual { position: relative; min-height: 430px; }
.load-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 1.4rem 1.5rem;
  max-width: 430px;
}
.load-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}
.load-card__head .mono { color: var(--slate); font-weight: 600; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chip--live { background: var(--blue-tint); color: var(--blue-deep); }
.chip--live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.6s ease-in-out infinite;
}
.chip--won { background: #ecfdf5; color: #047857; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  55% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0); }
}

.route { position: relative; }
.route__city { display: flex; gap: 0.7rem; align-items: flex-start; }
.route__city strong { display: block; font-size: 0.95rem; color: var(--blue-ink); }
.route__city .mono { display: block; margin-top: 0.1rem; }
.route__city--end { justify-content: flex-end; text-align: right; }
.route__city--end .route__node { order: 2; }
.route__node {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.route__node--a { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint-2); }
.route__node--b { border: 3px solid var(--blue); background: #fff; box-sizing: border-box; }
.route__line { width: 100%; height: 60px; margin: 0.3rem 0; display: block; }
.route__path-bg { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.route__path {
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-route 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.6s forwards;
}
.route__truck {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
  offset-path: path("M8 52 C 70 8, 150 8, 212 52");
  offset-distance: 0%;
  animation: ride-route 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.6s forwards;
}
@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes ride-route { to { offset-distance: 62%; } }

.load-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.load-card__meta span { display: block; font-size: 0.72rem; }
.load-card__meta strong { font-size: 0.92rem; color: var(--blue-ink); }

.bid-card {
  position: absolute;
  z-index: 3;
  right: -36px;
  top: 63%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.1rem;
  width: 300px;
  animation: float-slow 5.5s ease-in-out infinite;
}
.bid-card__title { color: var(--slate-light); font-weight: 600; margin-bottom: 0.6rem; }
.bid {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}
.bid:last-child { border-bottom: none; }
.bid span:first-child { flex: 1; color: var(--slate); }
.bid strong { font-family: var(--font-mono); font-size: 0.84rem; color: var(--blue-ink); }

.pod-card {
  position: absolute;
  z-index: 1;
  left: 6px;
  bottom: -14px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.8rem 1.1rem;
  animation: float-slow 6.5s ease-in-out 1s infinite;
}
.pod-card strong { display: block; font-size: 0.86rem; color: var(--blue-ink); }
.pod-card__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- capability strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.strip__item { text-align: center; }
.strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.strip__item span { font-size: 0.85rem; color: var(--slate); }

/* ---------- sections ---------- */
.section__head { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.how, .features { padding: 5.5rem 0; }

.steps {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--blue-tint-2); }
.step__num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 1.1rem;
}
.step p { font-size: 0.93rem; color: var(--slate); margin-top: 0.5rem; }

.features { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features__grid {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature__icon svg {
  width: 21px; height: 21px;
  stroke: var(--blue);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p { font-size: 0.91rem; color: var(--slate); margin-top: 0.45rem; }

/* ---------- carriers ---------- */
.carriers {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.carriers::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, black 20%, transparent 70%);
}
.carriers__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.carriers h2 { color: #fff; }
.carriers .lede { margin: 1.4rem 0 2.2rem; }
.carriers__list { list-style: none; display: grid; gap: 0.9rem; }
.carriers__list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.carriers__list .mono { color: var(--blue-tint-2); }

/* ---------- CTA ---------- */
.cta { padding: 6rem 1.5rem; }
.cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta p { color: var(--slate); margin: 1rem 0 2rem; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand--footer .brand__name { font-size: 0.95rem; }
.footer__links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer__links a { color: var(--slate); text-decoration: none; font-size: 0.88rem; }
.footer__links a:hover { color: var(--blue); }
.footer__legal { width: 100%; color: var(--slate-light); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .route__path { animation: none; stroke-dashoffset: 0; }
  .route__truck, .bid-card, .pod-card, .chip--live .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .carriers__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 470px; min-height: 0; }
  .bid-card { position: static; width: 100%; margin-top: 1rem; animation: none; }
  .pod-card { position: static; margin-top: 1rem; animation: none; }
  .steps, .features__grid { grid-template-columns: 1fr 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .steps, .features__grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 3.5rem 1.25rem 4.5rem; }
  .nav__actions .btn--ghost { display: none; }
}
