:root {
  --ink: #102132;
  --muted: #64748b;
  --line: #d9e2ea;
  --paper: #f7fafc;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #d97706;
  --red: #b42318;
  --navy: #13293d;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: rgba(10, 24, 38, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled,
.admin-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8, 24, 40, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: currentColor;
  opacity: 0.68;
  font-size: 12px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: currentColor;
  font-size: 14px;
}

.main-nav a {
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 40px;
  padding: 0 12px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled .language-toggle,
.admin-header .language-toggle {
  background: #f2f7f8;
  border-color: var(--line);
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-action,
.tracking-control button,
.admin-form button,
.admin-title button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-action:hover,
.tracking-control button:hover,
.admin-form button:hover,
.admin-title button:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
}

.header-action svg,
.tracking-control button svg,
.admin-form button svg,
.admin-title button svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 6vw, 80px) 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 20, 34, 0.9), rgba(6, 20, 34, 0.5) 52%, rgba(6, 20, 34, 0.22)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=82") center/cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
  transform: scale(1.03);
  transform-origin: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  animation: heroIn 780ms var(--ease) both;
}

.hero-routes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
}

.route-line {
  position: absolute;
  left: 48%;
  width: min(42vw, 560px);
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform-origin: left center;
}

.route-line i {
  position: absolute;
  top: -4px;
  left: -12px;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.78);
  animation: routeDot 4.8s linear infinite;
}

.line-one {
  top: 28%;
  transform: rotate(-10deg);
}

.line-two {
  top: 43%;
  transform: rotate(8deg);
}

.line-two i {
  animation-delay: 1.2s;
}

.line-three {
  top: 59%;
  transform: rotate(-4deg);
}

.line-three i {
  animation-delay: 2.4s;
}

.eyebrow,
.section-heading span,
.image-band span,
.admin-hero span {
  display: inline-flex;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(19px, 2.6vw, 28px);
}

.tracking-panel {
  width: min(100%, 720px);
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: panelIn 900ms var(--ease) 120ms both;
}

.tracking-panel label,
.tracking-card label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.tracking-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.tracking-control input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.tracking-control input:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.tracking-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-routes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: -42px auto 0;
}

.route-card {
  min-height: 260px;
  display: grid;
  align-content: end;
  padding: 22px;
  overflow: hidden;
  position: relative;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.68s var(--ease), opacity 0.68s var(--ease), box-shadow 0.25s ease;
}

.route-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.28s ease;
}

.route-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.route-card:hover img {
  transform: scale(1.05);
}

.route-card:hover {
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.22);
  transform: translateY(-3px);
}

.route-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--reveal-delay, 0ms);
}

.route-card h3,
.route-card p {
  position: relative;
  z-index: 1;
}

.route-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.route-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.section-heading h2,
.image-band h2,
.admin-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-band > p {
  color: var(--muted);
  font-size: 18px;
}

.stats-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card,
.service-card,
.tracking-card,
.tracking-result,
.about-card,
.admin-section,
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card {
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.stat-card:hover,
.service-card:hover,
.news-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  transform: translateY(-3px);
}

.stat-card strong {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
}

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

.service-card {
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card .icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--teal-dark);
  background: #dff5f1;
  border-radius: 8px;
}

.service-card svg {
  width: 22px;
  height: 22px;
}

.service-card h3,
.news-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.22;
}

.service-card p,
.news-card p,
.process-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-section {
  width: 100%;
  padding: 88px clamp(20px, 6vw, 80px);
  color: var(--white);
  background: var(--navy);
}

.process-section .section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 32px;
}

.process-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: transform 0.22s ease, background 0.22s ease;
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.process-card strong {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--navy);
  background: var(--white);
  border-radius: 8px;
}

.process-card h3 {
  margin-bottom: 8px;
}

.process-card p {
  color: rgba(255, 255, 255, 0.74);
}

.tracking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  margin-top: 28px;
}

.tracking-card,
.tracking-result {
  padding: 24px;
}

.empty-state {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 38px;
  height: 38px;
  color: var(--teal);
}

.shipment-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.shipment-head h3 {
  margin: 0;
  font-size: 26px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  color: var(--teal-dark);
  background: #dff5f1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.shipment-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.shipment-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.shipment-meta strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--teal);
  border: 3px solid #dff5f1;
  border-radius: 999px;
}

.timeline time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.timeline strong {
  display: block;
  margin-top: 2px;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  background: #eef5f7;
  font-size: 13px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.image-band {
  width: 100%;
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
  align-items: end;
  gap: 48px;
  padding: 96px clamp(20px, 6vw, 80px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 24, 40, 0.84), rgba(8, 24, 40, 0.42)),
    url("https://images.unsplash.com/photo-1587293852726-70cdb56c2866?auto=format&fit=crop&w=2200&q=82") center/cover;
}

.image-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.news-card {
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.empty-content,
.admin-empty {
  padding: 26px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.empty-table-cell {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.news-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.about-card {
  margin-top: 28px;
  padding: 8px 24px;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 40px;
  padding: 56px clamp(20px, 6vw, 80px);
  color: var(--white);
  background: #081828;
}

.site-footer p,
.site-footer address {
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
  min-width: 0;
  margin-bottom: 18px;
}

.footer-links,
.site-footer address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.admin-body {
  background: #eef4f6;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 124px 0 80px;
}

.admin-hero {
  padding: 34px 0 24px;
}

.admin-hero p {
  max-width: 620px;
  color: var(--muted);
}

.admin-section {
  padding: 24px;
  margin-top: 20px;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-title h2 {
  margin: 0;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.admin-form .wide {
  grid-column: 1 / -1;
}

.admin-form button {
  align-self: end;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item strong,
.admin-item span {
  display: block;
}

.admin-item span {
  color: var(--muted);
  font-size: 13px;
}

.admin-item button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--red);
  background: #fff1f0;
  border-radius: 8px;
  font-weight: 800;
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--teal-dark);
  background: #dff5f1;
  border-radius: 8px;
}

.error {
  color: var(--red);
  background: #fff1f0;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.route-card.is-visible:hover,
.stat-card.reveal-item.is-visible:hover,
.service-card.reveal-item.is-visible:hover,
.news-card.reveal-item.is-visible:hover,
.process-card.reveal-item.is-visible:hover {
  transform: translateY(-3px);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-16px, -8px, 0);
  }
}

@keyframes routeDot {
  from {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  to {
    transform: translateX(560px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
  }

  .main-nav {
    display: none;
  }

  .header-action {
    min-width: 44px;
    padding: 0;
  }

  .header-action span {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding-top: 82px;
  }

  .hero-routes {
    opacity: 0.38;
  }

  .quick-routes,
  .intro-band,
  .split,
  .tracking-layout,
  .image-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .process-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .quick-routes,
  .section,
  .admin-shell {
    width: calc(100% - 32px);
  }

  .stats-grid,
  .service-grid,
  .process-grid,
  .news-grid,
  .shipment-meta,
  .admin-form,
  .admin-form.compact {
    grid-template-columns: 1fr;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
