:root {
  --ink: #102033;
  --muted: #65748a;
  --line: #d8e1ee;
  --blue: #083b73;
  --blue-2: #0a5e93;
  --cyan: #0d8ba8;
  --green: #13795b;
  --orange: #e56b22;
  --bg: #eef4fb;
  --panel: #ffffff;
  --shadow: 0 24px 70px rgba(10, 37, 64, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 139, 168, 0.14), transparent 32rem),
    linear-gradient(135deg, #f8fbff, var(--bg));
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 225, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.brand,
.header-actions,
.hero-actions,
.result-actions,
.tracking-card-head,
.tracking-meta {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 78px;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 12px;
}

.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.header-actions a,
.button-link,
.submit-button,
.tracking-search button,
.request-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.header-actions a:hover,
.button-link:hover,
.submit-button:hover,
.tracking-search button:hover,
.request-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(10, 37, 64, 0.12);
}

.header-actions .action-primary,
.button-link,
.submit-button,
.tracking-search button {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
}

.request-button.light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(6, 31, 58, 0.92), rgba(8, 83, 125, 0.78)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.customer-app-hero {
  background:
    radial-gradient(circle at 80% 12%, rgba(13, 139, 168, 0.38), transparent 28rem),
    linear-gradient(120deg, rgba(4, 25, 48, 0.94), rgba(8, 59, 115, 0.84)),
    url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.app-phone-card {
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  gap: 32px;
  align-items: center;
  padding: 72px 0;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(36px, 6vw, 76px);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.hero-text,
.page-title p,
.panel p,
.auth-card p,
.result-item span,
.tracking-meta,
.tracking-tree p,
.tracking-tree small {
  color: var(--muted);
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 18px;
}

.tracking-search {
  display: grid;
  grid-template-columns: 1fr 180px 130px;
  gap: 8px;
  margin: 30px 0 0;
  max-width: 900px;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tracking-search-page {
  max-width: none;
  margin-bottom: 24px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 11px 14px;
}

.tracking-search input {
  border: 0;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-card,
.panel,
.auth-card,
.tracking-card,
.result-item {
  border: 1px solid rgba(216, 225, 238, 0.96);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  padding: 28px;
}

.live-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #23c483;
  box-shadow: 0 0 0 8px rgba(35, 196, 131, 0.15);
}

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.service-list span {
  border-radius: 14px;
  background: #eef6fb;
  padding: 11px 12px;
  font-weight: 800;
}

.section,
.page-main {
  padding: 54px 0;
}

.page-title {
  margin-bottom: 24px;
  max-width: 780px;
}

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

.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.panel,
.auth-card,
.tracking-card,
.result-item {
  padding: 22px;
}

.section-title {
  margin-bottom: 16px;
}

.result-list {
  display: grid;
  gap: 14px;
}

.tracking-card {
  display: grid;
  gap: 18px;
}

.tracking-card-head {
  justify-content: space-between;
  gap: 18px;
}

.status-pill {
  border-radius: 999px;
  background: #eaf7f2;
  color: var(--green);
  padding: 8px 12px;
  font-weight: 900;
}

.tracking-meta {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.tracking-meta span {
  border-radius: 999px;
  background: #f0f5fb;
  padding: 7px 11px;
}

.tracking-tree {
  position: relative;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracking-tree li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 0 0 22px;
}

.tracking-tree li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}

.tracking-tree li:last-child::before {
  display: none;
}

.tree-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: #a7b4c5;
  box-shadow: 0 0 0 2px var(--line);
}

.tracking-tree li.done .tree-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(19, 121, 91, 0.35);
}

.tracking-tree li.current .tree-dot {
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(229, 107, 34, 0.12);
}

.tracking-tree strong {
  display: block;
  font-size: 17px;
}

.tracking-tree p {
  margin: 4px 0;
}

.tracking-tree small {
  font-weight: 800;
}

.result-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.result-actions a,
.result-actions button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.request-button {
  color: var(--blue);
}

.form-grid,
.auth-form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.field-full,
.submit-button {
  grid-column: 1 / -1;
}

.auth-main {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.auth-card {
  width: min(100%, 520px);
}

.auth-card h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.status-box {
  margin-top: 12px;
  border-radius: 16px;
  padding: 13px 15px;
  background: #eef8f4;
  color: #0f624b;
  font-weight: 800;
}

.status-error {
  background: #fff1f1;
  color: #a32222;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero-grid,
  .tracking-layout,
  .feature-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tracking-search {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100vw - 20px, 1180px);
  }

  .header-actions a {
    flex: 1 1 calc(50% - 8px);
    font-size: 13px;
    padding-inline: 10px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-grid,
  .page-main {
    padding: 34px 0;
  }

  .panel,
  .auth-card,
  .tracking-card,
  .result-item,
  .hero-card {
    border-radius: 20px;
    padding: 18px;
  }
}
