:root {
  --bg: #102830;
  --bg-deep: #0b1d23;
  --panel: #ffffff;
  --panel-soft: #f3f7f8;
  --text: #102830;
  --muted: #657b82;
  --line: #dce7ea;
  --accent: #0787db;
  --accent-dark: #0767a4;
  --accent-soft: #e8f5fd;
  --success: #0f8a5f;
  --success-soft: #eaf8f2;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow: 0 24px 70px rgba(2, 22, 30, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #f8fbfc;
  background:
    radial-gradient(circle at 18% 8%, rgba(7, 135, 219, 0.23), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(116, 151, 159, 0.16), transparent 28%),
    linear-gradient(145deg, var(--bg-deep) 0%, var(--bg) 48%, #315762 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.logo {
  display: block;
  width: min(390px, 66vw);
  height: auto;
}

.service-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 86px rgba(7, 135, 219, 0.035);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(82, 188, 255, 0.26);
  border-radius: 999px;
  background: rgba(7, 135, 219, 0.13);
  color: #bfe7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(46px, 6.3vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: 19px;
  line-height: 1.58;
  color: rgba(248, 251, 252, 0.72);
}

.benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 42px;
}

.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 620px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  font-weight: 700;
}

.benefit-number {
  color: #66c5ff;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.access-card {
  align-self: stretch;
  padding: 34px;
  border-radius: 34px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.access-card__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.access-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 900;
}

.access-card h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.access-card__header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.access-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 800;
  color: #314b54;
}

.field input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid #cad9dd;
  border-radius: 16px;
  outline: none;
  background: #f8fbfc;
  color: var(--text);
  font-size: 17px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(7, 135, 219, 0.13);
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  font-weight: 900;
}

.primary-button {
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 16px 30px rgba(7, 103, 164, 0.23);
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.security-note {
  margin-top: 18px;
  padding: 14px 15px;
  border-radius: 15px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.message.loading {
  display: block;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.message.error {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
}

.results {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 34px;
  background: #edf4f6;
  color: var(--text);
  box-shadow: var(--shadow);
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 95% 0%, rgba(7, 135, 219, 0.15), transparent 34%),
    #ffffff;
}

.results-kicker {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.results-header h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.results-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.results-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #bfd2d8;
  border-radius: 13px;
  background: #ffffff;
  color: #294a55;
}

.text-button {
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfc;
}

.filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-field span {
  color: #314b54;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cad9dd;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7, 135, 219, 0.12);
}

.filter-field--range {
  grid-column: span 1;
}

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

.filter-reset {
  align-self: end;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #bfd2d8;
  border-radius: 12px;
  background: #ffffff;
  color: #294a55;
  font-weight: 900;
}

.shipments {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.shipment-card {
  padding: 25px;
  border: 1px solid #dce7ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 48, 0.06);
}

.shipment-card.verification {
  border-color: rgba(7, 135, 219, 0.52);
  box-shadow: 0 12px 32px rgba(7, 135, 219, 0.10);
}

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

.shipment-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shipment-act {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.stage-pill {
  max-width: 340px;
  padding: 10px 14px;
  border: 1px solid #aee5cf;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.shipment-route-wrap {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.shipment-route {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.shipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.shipment-field {
  min-height: 92px;
  padding: 16px;
  background: #ffffff;
}

.shipment-field--wide {
  grid-column: span 4;
}

.shipment-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shipment-field strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  word-break: break-word;
}

.empty-state {
  padding: 38px;
  border: 1px dashed #b8cbd1;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

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

  .shipment-field--wide {
    grid-column: span 2;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .topbar,
  .results-header,
  .shipment-card__top,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-label {
    font-size: 11px;
  }

  .hero-copy,
  .access-card {
    padding: 24px;
    border-radius: 26px;
  }

  h1 {
    font-size: 43px;
  }

  .lead {
    font-size: 16px;
  }

  .results {
    border-radius: 26px;
  }

  .results-header {
    padding: 24px;
  }

  .results-actions {
    width: 100%;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .secondary-button,
  .text-button {
    flex: 1;
  }

  .shipments {
    padding: 14px;
  }

  .shipment-card {
    padding: 18px;
  }

  .stage-pill {
    max-width: 100%;
  }

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

  .shipment-field--wide {
    grid-column: span 1;
  }
}
