:root {
  --page-width: 1400px;
  --bg: #07131c;
  --bg-soft: #10212d;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.14);
  --panel-line: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --ink: #111111;
  --ink-soft: #4e4e4e;
  --surface: #edf2f6;
  --surface-line: #d8e1e8;
  --accent: #ff2ea6;
  --accent-strong: #ff0f8f;
  --accent-soft: rgba(255, 15, 143, 0.14);
  --teal: #ff0f8f;
  --shadow: 0 24px 80px rgba(3, 11, 18, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-shell {
  min-height: 100vh;
  padding: 24px 24px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  width: min(var(--page-width), 100%);
  min-height: clamp(340px, 44vw, 560px);
  margin: 0 auto;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.1);
  transform: translateX(0) scale(1.05);
  transform-origin: center center;
}

.hero__shade {
  background:
    linear-gradient(120deg, rgba(7, 19, 28, 0.92) 12%, rgba(7, 19, 28, 0.56) 58%, rgba(7, 19, 28, 0.22) 100%),
    radial-gradient(circle at top right, rgba(255, 46, 166, 0.22), transparent 32%),
    radial-gradient(circle at 20% 10%, rgba(255, 15, 143, 0.24), transparent 28%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 72px clamp(28px, 5vw, 76px);
  color: var(--text);
}

.hero__eyebrow,
.section-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.results-head h2,
.detail-panel h2,
.state-card h2,
.empty-state h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.06;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(40px, 6vw, 78px);
  color: #f8fbfd;
}

.hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
}

.empty-state .section-kicker {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.empty-state__summary {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.45;
}

.searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
}

.searchbar__field {
  min-width: 0;
}

.searchbar input {
  width: 100%;
  height: 66px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.1);
  color: #f8fbfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.searchbar input::placeholder {
  color: rgba(238, 243, 247, 0.58);
}

.searchbar__button {
  min-width: 180px;
  height: 66px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2ea6, #ff0f8f);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 18px 48px rgba(255, 15, 143, 0.3);
}

.searchbar__button:hover {
  transform: translateY(-1px);
}

.searchbar__button.is-loading {
  opacity: 0.74;
  cursor: progress;
}

.search-strip {
  padding: 22px 0 0;
}

.search-strip__inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
}

.searchbar--surface {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(14, 36, 52, 0.1);
}

.searchbar--surface input {
  border: 1px solid var(--surface-line);
  background: #f7fafc;
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
}

.searchbar--surface input::placeholder {
  color: var(--ink-soft);
}

.hero--compact {
  min-height: 300px;
  grid-template-columns: 1fr;
}

.hero--compact .hero__content {
  padding-bottom: 48px;
}

.results-band {
  position: relative;
  margin-top: 0;
  padding: 24px 0 56px;
}

.results-shell {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.results-head,
.state-card,
.empty-state,
.detail-layout,
.detail-note {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.results-head,
.state-card,
.empty-state,
.detail-panel,
.detail-note,
.shipment-card {
  background: var(--panel);
}

.results-head,
.state-card,
.empty-state {
  padding: 32px;
}

.results-head h2,
.state-card h2,
.empty-state h2,
.detail-panel h2 {
  font-size: clamp(28px, 3vw, 46px);
  color: var(--ink);
}

.results-copy,
.state-card p,
.empty-state p,
.detail-client {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.shipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shipment-card {
  padding: 24px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
}

.shipment-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.shipment-card--link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 15, 143, 0.35);
  box-shadow: 0 18px 44px rgba(14, 36, 52, 0.12);
}

.shipment-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.shipment-card__index {
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.shipment-card__status,
.status-ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.shipment-card h3 {
  margin: 18px 0 16px;
  font-size: 22px;
  line-height: 1.35;
}

.shipment-card__cta {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.shipment-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.shipment-card__meta div {
  display: grid;
  gap: 6px;
}

.shipment-card__meta dt,
.meta-cell span {
  color: var(--ink-soft);
  font-size: 13px;
}

.shipment-card__meta dd,
.meta-cell strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.detail-layout {
  overflow: hidden;
  background: var(--panel);
}

.detail-panel {
  padding: 34px;
}

.detail-panel--single {
  padding: 32px;
}

.detail-client {
  font-size: 18px;
}

.status-ribbon {
  margin-top: 18px;
}

.progress-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 24px;
}

.progress-step {
  display: grid;
  gap: 10px;
}

.progress-step span {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #dde5ec;
}

.progress-step span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
}

.progress-step small {
  color: var(--ink-soft);
  font-size: 12px;
}

.progress-step.is-complete span::after,
.progress-step.is-current span::after {
  background: linear-gradient(90deg, var(--teal), #ff78ca);
}

.progress-step.is-current small,
.progress-step.is-complete small {
  color: var(--ink);
  font-weight: 700;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.meta-cell {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6f9fb);
}

.meta-cell strong {
  display: block;
  margin-top: 6px;
  word-break: break-word;
}

.meta-label {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 13px;
}

.meta-label--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-label--icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

.detail-note {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--surface-line);
}

.cargo-photo {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: #f3f7fa;
}

.cargo-photo img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: linear-gradient(180deg, #f8fbfd, #eef4f8);
}

.detail-note p:last-child {
  margin-bottom: 0;
  color: var(--ink);
}

.empty-state {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.empty-state__copy {
  max-width: none;
}

.site-footer {
  padding: 0 0 36px;
}

.site-footer__inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  box-shadow: 0 12px 32px rgba(14, 36, 52, 0.08);
}

.site-footer__inner a {
  color: #ff0f8f;
  font-weight: 800;
  text-decoration: none;
}

.site-footer__inner a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

  .shipment-grid,
  .meta-grid,
  .detail-layout,
  .empty-state {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px 14px 0;
  }

  .hero__content {
    padding: 48px 20px 28px;
  }

  .searchbar {
    grid-template-columns: 1fr;
  }

  .searchbar__button {
    width: 100%;
    min-width: 0;
  }

  .results-band {
    margin-top: 0;
    padding: 18px 0 36px;
  }

  .site-footer {
    padding: 0 0 28px;
  }

  .results-head,
  .state-card,
  .empty-state,
  .detail-panel {
    padding: 24px 18px;
  }

  .shipment-card {
    padding: 18px;
  }

  .shipment-card__meta {
    grid-template-columns: 1fr;
  }

  .progress-rail {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
