:root {
  --landing-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --landing-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --landing-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --landing-bg: #030303;
  --landing-surface: #080808;
  --landing-surface-2: #0d0d0d;
  --landing-line: rgba(255, 255, 255, 0.13);
  --landing-line-strong: rgba(255, 100, 0, 0.42);
  --landing-text: #f8f7f4;
  --landing-muted: #9f9f9b;
  --landing-orange: #ff6400;
  --landing-amber: #ffa500;
  --landing-green: #57d99b;
  --landing-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--landing-text);
  background:
    radial-gradient(circle at 76% 8%, rgba(255, 100, 0, 0.12), transparent 29rem),
    var(--landing-bg);
  font-family: var(--landing-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: black;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.landing-footer {
  width: min(var(--landing-max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--landing-line);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.landing-brand-logo {
  display: block;
  width: 185px;
  height: auto;
}

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a,
.header-sign-in,
.header-login-link {
  color: #b6b6b3;
  font-family: var(--landing-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover,
.header-sign-in:hover,
.header-login-link:hover { color: white; }
.header-account-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}
.header-login-link { text-decoration: none; }
.header-sign-in {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 13px;
  padding: 11px 15px;
  border: 1px solid var(--landing-line);
  border-radius: 9px;
  transition: border-color 180ms ease, color 180ms ease;
}
.header-sign-in:hover { border-color: rgba(255, 100, 0, .55); }

.forward-arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}
.header-sign-in:hover .forward-arrow,
.header-sign-in:focus-visible .forward-arrow,
.text-cta:hover .forward-arrow,
.text-cta:focus-visible .forward-arrow,
.primary-cta:hover .forward-arrow,
.primary-cta:focus-visible .forward-arrow { transform: translateX(4px); }

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
  width: min(var(--landing-max), calc(100% - 48px));
  min-height: min(790px, calc(100vh - 86px));
  margin: 0 auto;
  padding: 100px 0 110px;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #d3cec8;
  font-family: var(--landing-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.landing-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--landing-orange); box-shadow: 0 0 18px rgba(255, 100, 0, 0.85); }

.hero-copy h1,
.section-heading h2,
.workflow-copy h2,
.landing-cta h2 {
  margin: 0;
  font-family: var(--landing-serif);
  font-weight: 300;
  letter-spacing: -0.055em;
}

.hero-copy h1 { max-width: 760px; font-size: clamp(67px, 8vw, 118px); line-height: 0.83; }
.hero-copy h1 em { display: block; color: var(--landing-orange); font-weight: 300; }
.hero-summary { max-width: 650px; margin: 34px 0 0; color: #aaa5a0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.7; }

.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 37px; }
.primary-cta,
.text-cta { display: inline-flex; align-items: center; justify-content: center; gap: 15px; text-decoration: none; }
.primary-cta {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--landing-orange);
  border-radius: 9px;
  background: var(--landing-orange);
  color: #110703;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(255, 100, 0, 0);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255, 100, 0, 0.22); }
.text-cta { color: #cbc6c0; font-size: 14px; font-weight: 600; }
.text-cta:hover { color: white; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 680px;
  margin: 56px 0 0;
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
}
.hero-facts div { padding: 18px 18px 18px 0; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--landing-line); }
.hero-facts dt { margin-bottom: 7px; color: #777774; font-family: var(--landing-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.hero-facts dd { margin: 0; color: #e7e3de; font-size: 12px; line-height: 1.45; }

.hero-system {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--landing-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 13, 12, 0.94), rgba(5, 5, 5, 0.9));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.tech-corner { position: absolute; width: 28px; height: 28px; border-color: var(--landing-orange); opacity: .78; }
.tech-corner.top-left { top: -7px; left: -7px; border-top: 1px solid; border-left: 1px solid; }
.tech-corner.top-right { top: -7px; right: -7px; border-top: 1px solid; border-right: 1px solid; }
.tech-corner.bottom-left { bottom: -7px; left: -7px; border-bottom: 1px solid; border-left: 1px solid; }
.tech-corner.bottom-right { right: -7px; bottom: -7px; border-right: 1px solid; border-bottom: 1px solid; }

.system-topline,
.shipment-id,
.trace-list li,
.recovery-result { display: flex; align-items: center; }
.system-topline { justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--landing-line); color: #777774; font-family: var(--landing-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.system-live { display: inline-flex; align-items: center; gap: 7px; color: #aaa5a0; }
.system-live i,
.ready-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--landing-green); box-shadow: 0 0 12px rgba(87, 217, 155, .74); }

.shipment-id { gap: 12px; padding: 22px 0; }
.shipment-icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border: 1px solid var(--landing-line-strong); border-radius: 11px; background: rgba(255, 100, 0, .08); color: var(--landing-orange); }
.shipment-icon svg { width: 21px; height: 21px; }
.shipment-id small,
.shipment-id strong { display: block; }
.shipment-id small { margin-bottom: 4px; color: #777774; font-family: var(--landing-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.shipment-id strong { font-family: var(--landing-mono); font-size: 13px; font-weight: 500; }
.service-chip { margin-left: auto; padding: 6px 8px; border: 1px solid var(--landing-line); border-radius: 6px; color: #aaa9a5; font-family: var(--landing-mono); font-size: 9px; letter-spacing: .1em; }

.trace-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trace-list li { position: relative; gap: 12px; min-height: 62px; padding: 12px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.trace-list li.active { border-color: rgba(255, 100, 0, .45); background: rgba(255, 100, 0, .07); }
.trace-marker { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border: 1px solid var(--landing-line); border-radius: 50%; color: #777774; font-family: var(--landing-mono); font-size: 9px; }
.trace-list .complete .trace-marker { color: var(--landing-green); border-color: rgba(87, 217, 155, .35); }
.trace-list .active .trace-marker { color: var(--landing-orange); border-color: var(--landing-line-strong); }
.trace-copy { min-width: 0; }
.trace-copy small,
.trace-copy strong { display: block; }
.trace-copy small { margin-bottom: 4px; color: #6f6a66; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.trace-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.trace-state { margin-left: auto; color: #8f8f8c; font-family: var(--landing-mono); font-size: 9px; text-transform: uppercase; }
.trace-list .active .trace-state { color: var(--landing-orange); }

.recovery-result { justify-content: space-between; margin-top: 16px; padding: 18px; border: 1px solid rgba(255, 100, 0, .22); border-radius: 11px; background: linear-gradient(110deg, rgba(255, 100, 0, .09), rgba(255, 165, 0, .025)); }
.recovery-result small,
.recovery-result strong { display: block; }
.recovery-result small { margin-bottom: 5px; color: #8d8d8a; font-family: var(--landing-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.recovery-result strong { color: var(--landing-text); font-family: var(--landing-serif); font-size: 38px; font-weight: 400; }
.ready-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(87, 217, 155, .28); border-radius: 999px; color: var(--landing-green); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.signal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 66px;
  padding: 16px 24px;
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  color: #77736f;
  font-family: var(--landing-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.signal-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--landing-orange); }

.landing-section { width: min(var(--landing-max), calc(100% - 48px)); margin: 0 auto; padding: 132px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, .5fr); align-items: end; gap: 70px; margin-bottom: 58px; }
.section-heading .landing-kicker { grid-column: 1 / -1; margin-bottom: -32px; }
.section-heading h2,
.workflow-copy h2 { font-size: clamp(48px, 6vw, 78px); line-height: .98; }
.section-heading > p:last-child { margin: 0; color: var(--landing-muted); line-height: 1.75; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card { position: relative; min-height: 360px; overflow: hidden; padding: 32px; border: 1px solid var(--landing-line); border-radius: 16px; background: linear-gradient(145deg, rgba(11, 11, 11, .96), rgba(5, 5, 5, .96)); }
.feature-card::after { position: absolute; content: ""; inset: auto -20% -50% 20%; height: 70%; background: radial-gradient(circle, rgba(255, 100, 0, .08), transparent 66%); pointer-events: none; }
.feature-wide { grid-column: 1 / -1; min-height: 400px; }
.feature-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 70px;
  color: var(--landing-orange);
}
.feature-icon svg { display: block; width: 44px; height: 44px; }
.card-label { margin: 0 0 13px; color: #777774; font-family: var(--landing-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.feature-card h3 { max-width: 760px; margin: 0; font-family: var(--landing-serif); font-size: clamp(31px, 4vw, 52px); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; }
.feature-card > p:last-of-type { max-width: 690px; margin: 20px 0 0; color: var(--landing-muted); line-height: 1.7; }
.feature-accent { border-color: rgba(255, 100, 0, .38); background: linear-gradient(150deg, rgba(44, 18, 6, .62), rgba(8, 6, 5, .96)); }

.scan-meter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; margin-top: 48px; }
.scan-meter span { height: 42px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: rgba(255, 255, 255, .035); animation: meterPulse 3s calc(var(--delay) * 100ms) infinite ease-in-out; }
.scan-meter .alert { border-color: rgba(255, 100, 0, .55); background: rgba(255, 100, 0, .17); }
.scan-meter .verified { border-color: rgba(87, 217, 155, .42); background: rgba(87, 217, 155, .13); }

.coverage-card { display: flex; min-height: 430px; flex-direction: column; }
.coverage-range { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(90px, 1fr) auto; align-items: center; gap: 18px; margin-top: auto; padding-top: 36px; border-top: 1px solid var(--landing-line); }
.coverage-endpoint { display: flex; align-items: center; gap: 10px; color: #8e8e8b; font-family: var(--landing-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.coverage-endpoint i { width: 10px; height: 10px; border: 2px solid #26150c; border-radius: 50%; background: var(--landing-orange); box-shadow: 0 0 14px rgba(255, 100, 0, .58); }
.coverage-endpoint-right { align-items: flex-end; flex-direction: column; gap: 4px; text-align: right; }
.coverage-endpoint-right strong { color: var(--landing-text); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.coverage-track { position: relative; display: flex; align-items: center; justify-content: space-around; min-width: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 100, 0, .2), rgba(255, 100, 0, .72), rgba(255, 100, 0, .2)); }
.coverage-track i { width: 7px; height: 7px; border: 1px solid rgba(255, 100, 0, .55); border-radius: 50%; background: #120a06; box-shadow: 0 0 0 4px rgba(255, 100, 0, .035); }

.workflow-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr); align-items: start; gap: 90px; border-top: 1px solid var(--landing-line); }
.workflow-copy { position: sticky; top: 40px; }
.workflow-steps { margin: 0; padding: 0; border-top: 1px solid var(--landing-line); list-style: none; }
.workflow-steps li { display: grid; grid-template-columns: 62px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--landing-line); }
.workflow-steps > li > span { color: var(--landing-orange); font-family: var(--landing-mono); font-size: 11px; }
.workflow-steps h3 { margin: 0 0 8px; font-family: var(--landing-serif); font-size: 31px; font-weight: 300; }
.workflow-steps p { margin: 0; color: var(--landing-muted); line-height: 1.65; }

.landing-cta { position: relative; margin-bottom: 120px; padding: 82px 60px; border: 1px solid var(--landing-line-strong); border-radius: 17px; background: radial-gradient(circle at 80% 25%, rgba(255, 100, 0, .19), transparent 32rem), var(--landing-surface); }
.landing-cta h2 { max-width: 800px; margin-bottom: 36px; font-size: clamp(56px, 8vw, 100px); line-height: .87; }

.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 130px; border-top: 1px solid var(--landing-line); color: #777774; font-size: 12px; }
.landing-footer p { margin: 0; }
.landing-footer-links { display: flex; align-items: center; gap: 24px; }
.landing-footer-links a { color: #c9c9c6; font-family: var(--landing-mono); text-decoration: none; text-transform: uppercase; }
.landing-footer-links a:hover { color: var(--landing-orange); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes meterPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .hero-system { width: min(620px, 100%); }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-heading .landing-kicker { margin-bottom: 0; }
  .workflow-section { grid-template-columns: 1fr; gap: 50px; }
  .workflow-copy { position: static; }
}

@media (max-width: 680px) {
  .site-header,
  .landing-footer,
  .landing-hero,
  .landing-section { width: min(100% - 28px, var(--landing-max)); }
  .site-header { min-height: 72px; }
  .landing-brand-logo { width: 160px; }
  .header-sign-in { padding: 9px 11px; font-size: 10px; }
  .landing-hero { padding: 70px 0 82px; }
  .hero-copy h1 { font-size: clamp(58px, 20vw, 82px); }
  .hero-summary { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-cta { justify-content: flex-start; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div + div { padding-left: 0; border-top: 1px solid var(--landing-line); border-left: 0; }
  .hero-system { padding: 15px; }
  .trace-state { display: none; }
  .signal-bar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .signal-bar i { display: none; }
  .landing-section { padding: 92px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature-card { min-height: 0; padding: 25px; }
  .feature-icon { margin-bottom: 46px; }
  .scan-meter { grid-template-columns: repeat(6, 1fr); }
  .coverage-card { min-height: 430px; }
  .coverage-range { grid-template-columns: auto 1fr; row-gap: 22px; }
  .coverage-endpoint-right { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .05); text-align: left; }
  .workflow-section { grid-template-columns: 1fr; }
  .landing-cta { margin-bottom: 78px; padding: 58px 27px; }
  .landing-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 34px 0; }
  .landing-footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-meter span { animation: none; }
  .primary-cta,
  .header-sign-in,
  .forward-arrow { transition: none; }
}
