:root {
  --ink: #17212b;
  --muted: #5c6b78;
  --line: #d8e0e7;
  --paper: #f5f7f8;
  --white: #ffffff;
  --navy: #07375d;
  --red: #d9471f;
  --teal: #168079;
  --amber: #d89b2b;
  --shadow: 0 20px 60px rgba(16, 35, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(20, 34, 46, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 118px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

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

.brand-text {
  min-width: 0;
}

.brand small {
  max-width: 280px;
  color: currentColor;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.78;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

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

.header-action,
.language-toggle,
.button,
.contact-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle {
  min-width: 56px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.site-header.scrolled .brand-logo {
  filter: none;
}

.header-action {
  background: var(--red);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

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

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 23, 36, 0.88) 0%, rgba(11, 36, 52, 0.66) 43%, rgba(10, 32, 44, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 18, 28, 0.35), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb04d;
}

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

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

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 30px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 560px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
  border-left: 1px solid var(--line);
}

.hero-panel div:first-child {
  border-left: 0;
}

.hero-panel strong,
.metric-stack strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.hero-panel span,
.metric-stack span,
.metric-stack small {
  color: var(--muted);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip span {
  padding: 20px 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.trust-strip span:first-child {
  border-left: 0;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  align-self: start;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.service-card {
  min-height: 260px;
  padding: 30px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.service-card:nth-child(3n + 1) {
  border-left: 0;
}

.service-card:nth-child(-n + 3) {
  border-top: 0;
}

.card-number {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.service-card p,
.network-copy p,
.contact p,
.process-step p {
  color: var(--muted);
  line-height: 1.7;
}

.network {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 92px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: var(--white);
}

.network-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.lane-board {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.lane {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(150px, 0.8fr) minmax(180px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.lane:first-child {
  border-top: 0;
}

.lane.active {
  background: var(--red);
}

.lane span,
.lane small {
  color: rgba(255, 255, 255, 0.76);
}

.platform {
  background: var(--white);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 0.36fr);
  gap: 20px;
  max-width: 1100px;
}

.status-column,
.metric-stack {
  border: 1px solid var(--line);
}

.status-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.status-row:first-child {
  border-top: 0;
}

.status-row strong,
.status-row small {
  display: block;
}

.status-row small {
  margin-top: 6px;
  color: var(--muted);
}

.dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dot.green {
  background: var(--teal);
}

.dot.blue {
  background: #327ba7;
}

.dot.amber {
  background: var(--amber);
}

.metric-stack {
  display: grid;
}

.metric-stack div {
  padding: 26px;
  border-top: 1px solid var(--line);
}

.metric-stack div:first-child {
  border-top: 0;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 clamp(20px, 5vw, 72px) 92px;
  background: linear-gradient(90deg, transparent clamp(20px, 5vw, 72px), var(--line) clamp(20px, 5vw, 72px), var(--line) calc(100% - clamp(20px, 5vw, 72px)), transparent calc(100% - clamp(20px, 5vw, 72px)));
}

.process-step {
  min-height: 220px;
  padding: 30px;
  background: var(--paper);
}

.process-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.login-portal {
  background: var(--white);
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.login-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 380px;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--paper);
}

.login-card .button {
  width: fit-content;
  min-width: 118px;
  margin-top: 10px;
}

.login-visual {
  height: 150px;
  border: 1px solid rgba(7, 55, 93, 0.16);
  background:
    linear-gradient(135deg, rgba(7, 55, 93, 0.88), rgba(7, 55, 93, 0.22)),
    linear-gradient(90deg, rgba(217, 71, 31, 0.88) 0 12%, transparent 12% 100%);
}

.warehouse-login .login-visual {
  background:
    linear-gradient(135deg, rgba(7, 55, 93, 0.82), rgba(22, 128, 121, 0.35)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0 18px, transparent 18px 54px),
    linear-gradient(#d8e0e7, #ffffff);
}

.ecommerce-login .login-visual {
  background:
    radial-gradient(circle at 30% 35%, rgba(217, 71, 31, 0.9) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 58%, rgba(22, 128, 121, 0.85) 0 7%, transparent 8%),
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.85) 0 6%, transparent 7%),
    linear-gradient(135deg, #07375d, #0d2234);
}

.staff-login .login-visual {
  background:
    linear-gradient(90deg, rgba(245, 247, 248, 0.94), rgba(245, 247, 248, 0.45)),
    linear-gradient(135deg, rgba(7, 55, 93, 0.85), rgba(217, 71, 31, 0.38));
}

.login-card h3 {
  margin-bottom: 0;
}

.login-card p {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(320px, 0.66fr);
  gap: clamp(28px, 7vw, 96px);
  padding: 92px clamp(20px, 5vw, 72px);
  background: #e7ecef;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(20, 34, 46, 0.1);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form button {
  background: var(--navy);
  color: var(--white);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #111b23;
  color: var(--white);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .nav,
  .header-action {
    display: none;
  }

  .header-tools {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .site-header.nav-open .nav {
    position: absolute;
    top: 80px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav a {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 820px;
    align-items: start;
  }

  .hero-content {
    padding-top: 34px;
  }

  .hero-panel,
  .trust-strip,
  .service-grid,
  .network,
  .dashboard,
  .process,
  .contact,
  .login-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .service-card,
  .service-card:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 220px;
  }

  .service-card:first-child,
  .service-card:nth-child(-n + 3) {
    border-top: 0;
  }

  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .card-number {
    margin-bottom: 36px;
  }

  .lane {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 20px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 92px;
    height: 42px;
  }

  .language-toggle {
    min-width: 48px;
    min-height: 40px;
    padding: 0 10px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.1;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 900px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 56px;
  }

  .hero-panel div,
  .hero-panel div:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-panel div:first-child {
    border-top: 0;
  }

  h1 {
    font-size: 40px;
  }

  .section,
  .network,
  .platform,
  .login-portal,
  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
