* { box-sizing: border-box; }

:root {
  --navy: #0f2a3f;
  --navy-2: #12324a;
  --navy-3: #1b4664;
  --orange: #e2832b;
  --orange-2: #c96d18;
  --ink: #1d2733;
  --muted: #6a7785;
  --line: #dde3e9;
  --bg: #f4f6f8;
  --ok: #1f8a4c;
  --warn: #b3261e;
  --radius: 10px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--navy-3); }
img, svg { max-width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 42, 63, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  font-size: 18px;
}

.brand svg { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.site-nav a { color: #cfe3f2; text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; }
.site-nav .nav-login {
  padding: 6px 14px;
  border: 1px solid rgba(207, 227, 242, .35);
  border-radius: 999px;
}
.site-nav .nav-login:hover { border-color: #fff; }

/* ---------- layout ---------- */

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
section { padding-block: 72px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.error { color: var(--warn); }

/* ---------- buttons & inputs ---------- */

button, .btn {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--orange-2); }
.btn-ghost { background: transparent; color: var(--navy-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c3ccd5;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(226, 131, 43, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(62, 132, 181, .35), transparent 60%),
    linear-gradient(160deg, #0b2133 0%, #12324a 55%, #18405e 100%);
  padding-block: 88px 120px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #c3d6e6; }

.track-card {
  margin-top: 28px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  max-width: 560px;
}
.track-card form { display: flex; gap: 10px; }
.track-card input { flex: 1; font-size: 17px; letter-spacing: .5px; }
.track-card .hint { font-size: 13px; margin: 10px 0 0; }

.hero-map { position: relative; }
.hero-map svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3)); }
.route { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pulse { animation: pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) { .route, .pulse { animation: none; } }

/* ---------- tracking result ---------- */

#result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.result-head h2 { font-size: 20px; margin: 0; letter-spacing: .5px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #e7eef5;
  color: var(--navy-2);
}
.badge.delivered { background: #dff3e7; color: var(--ok); }
.badge.exception { background: #fbe4e2; color: var(--warn); }
.badge.out_for_delivery { background: #fdeedd; color: var(--orange-2); }

.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 24px; font-size: 14px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7c4d0;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 17px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline li:first-child::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(226, 131, 43, .2); }
.timeline strong { display: block; }
.timeline time { color: var(--muted); font-size: 13px; }

/* ---------- stats strip ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 42, 63, .12);
  padding: 0;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 30px; color: var(--navy-2); letter-spacing: -.5px; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 42, 63, .08); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fdeedd;
  color: var(--orange-2);
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin: 0; }
.card .from { margin-top: 14px; font-size: 14px; color: var(--navy-3); font-weight: 600; }

/* ---------- split / coverage ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.depots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; padding: 0; list-style: none; margin: 22px 0 0; }
.depots li { display: flex; align-items: center; gap: 10px; }
.depots li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.panel {
  background: var(--navy-2);
  color: #fff;
  border-radius: 14px;
  padding: 32px;
}
.panel p { color: #c3d6e6; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ---------- CTA band ---------- */

.cta {
  background: linear-gradient(120deg, var(--orange) 0%, #ef9a45 100%);
  color: #fff;
  padding-block: 56px;
}
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.cta .btn { background: var(--navy-2); }
.cta .btn:hover { background: var(--navy); }

/* ---------- page header (inner pages) ---------- */

.page-head {
  background: linear-gradient(160deg, #0b2133 0%, #12324a 60%, #18405e 100%);
  color: #fff;
  padding-block: 64px 56px;
}
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.5px; }
.page-head .lead { color: #c3d6e6; margin: 0; }

/* ---------- rates ---------- */

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: #f0f4f7; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.quote {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 28px;
}
.quote-out {
  margin-top: 14px;
  font-size: 15px;
}
.quote-out b { font-size: 26px; color: var(--navy-2); }

/* ---------- prose (privacy, about) ---------- */

.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p, .prose li { color: #37434f; }
.prose ul { padding-left: 20px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-3);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.person h3 { font-size: 17px; margin-bottom: 2px; }
.person p { margin: 0; font-size: 14px; color: var(--muted); }

.timeline-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.timeline-h div { border-top: 3px solid var(--orange); padding-top: 14px; }
.timeline-h b { display: block; font-size: 22px; color: var(--navy-2); }

/* ---------- login ---------- */

.login-shell {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(226, 131, 43, .3), transparent 60%),
    linear-gradient(160deg, #0b2133 0%, #12324a 60%, #18405e 100%);
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.login-art p { color: #c3d6e6; max-width: 420px; }
.login-pane { display: grid; place-items: center; padding: 48px 20px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-size: 28px; }
.field { margin-bottom: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 20px; }
.row label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.row input[type="checkbox"] { width: auto; }
.login-box button { width: 100%; }
.notice {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  background: #fbe4e2;
  color: var(--warn);
}
.notice.ok { background: #dff3e7; color: var(--ok); }
.small { font-size: 13px; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: #9fb6c9; padding-block: 48px 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9fb6c9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .login-shell { grid-template-columns: 1fr; }
  .hero-map { max-width: 420px; margin: 0 auto; }
  .cards, .team { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quote { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .timeline-h { grid-template-columns: 1fr 1fr; }
  .login-art { padding: 40px 24px; }
}

@media (max-width: 560px) {
  section { padding-block: 52px; }
  .hero { padding-block: 56px 100px; }
  .track-card form { flex-direction: column; }
  .cards, .team, .depots, .quote, .timeline-h { grid-template-columns: 1fr; }
  .site-nav { gap: 4px 14px; }
  .site-nav a { font-size: 14px; }
}
