:root {
  --bg: #0b1114;
  --panel: #11191d;
  --panel-2: #172126;
  --paper: #f4f6f2;
  --white: #ffffff;
  --muted: #9ca8ad;
  --line: rgba(255, 255, 255, 0.12);
  --dark-line: rgba(12, 17, 20, 0.12);
  --teal: #00a39a;
  --cyan: #65ded5;
  --gold: #d9a441;
  --rust: #b35d43;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --header: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}
section { scroll-margin-top: calc(var(--header) + 36px); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.42; background: radial-gradient(circle at 20% 10%, rgba(0,163,154,0.18), transparent 32%), radial-gradient(circle at 80% 18%, rgba(217,164,65,0.1), transparent 28%), linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 68px); }

.header { position: fixed; top: 16px; left: clamp(14px, 4vw, 54px); right: clamp(14px, 4vw, 54px); z-index: 50; min-height: var(--header); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; padding: 12px 14px 12px 16px; color: var(--white); background: rgba(12,17,20,0.72); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(20px); box-shadow: 0 16px 50px rgba(0,0,0,0.16); }
.header.scrolled, .header.menu-open { background: rgba(244,246,242,0.96); color: #101417; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: var(--white); background: var(--teal); font-weight: 950; }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 0.96rem; }
.brand small { margin-top: 2px; opacity: 0.65; font-size: 0.72rem; }
.nav { justify-self: center; display: flex; gap: clamp(18px, 3vw, 38px); font-size: 0.86rem; font-weight: 850; }
.header-action, .primary, .secondary, .menu, .mode { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; border: 0; font-weight: 900; cursor: pointer; }
.header-action { min-height: 46px; padding: 0 16px; color: var(--white); background: #101417; }
.menu { display: none; width: 46px; height: 46px; color: currentColor; background: transparent; border: 1px solid currentColor; }
svg { width: 19px; height: 19px; stroke-width: 2.2; }

.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.92fr); gap: clamp(28px, 5vw, 82px); align-items: center; padding: calc(var(--header) + 86px) clamp(18px, 5vw, 78px) 72px; }
.hero-copy { max-width: 850px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 0.78rem; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 7.4vw, 8.4rem); line-height: 0.88; letter-spacing: 0; }
.lead { max-width: 720px; margin-bottom: 30px; color: rgba(255,255,255,0.72); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary, .secondary { min-height: 48px; padding: 0 18px; }
.primary { color: var(--bg); background: var(--cyan); box-shadow: 0 18px 48px rgba(101,222,213,0.22); }
.secondary { color: var(--white); background: rgba(255,255,255,0.08); border: 1px solid var(--line); }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; max-width: 720px; }
.proof-row div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.06); }
.proof-row strong, .proof-row span { display: block; }
.proof-row span { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }

.hero-visual { position: relative; min-height: 660px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #10191d, #1a252b); box-shadow: var(--shadow); }
#mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.terminal-card { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 20px; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; background: rgba(11,17,20,0.82); backdrop-filter: blur(18px); }
.terminal-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; }
.terminal-head strong { color: var(--cyan); }
.route-board { display: grid; gap: 10px; margin: 18px 0; }
.route-row {
  display: grid;
  grid-template-columns: minmax(74px, 0.7fr) 1fr minmax(96px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.055);
}
.route-row span,
.route-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.route-row strong { font-size: 0.92rem; }
.route-row i {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.route-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  animation: routeLoad 5.6s ease-in-out infinite;
}
.route-row.active {
  border-color: rgba(101,222,213,0.36);
  background: rgba(101,222,213,0.08);
}
.terminal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.terminal-meta div { padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.07); }
.terminal-meta small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.terminal-meta strong { display: block; line-height: 1.25; }

.ticker { width: 100%; max-width: 100vw; overflow: hidden; border-block: 1px solid var(--line); background: #0f171b; contain: paint; }
.ticker-track { display: flex; width: max-content; animation: marquee 58s linear infinite; }
.ticker span { min-height: 74px; display: inline-flex; align-items: center; padding: 0 34px; color: rgba(255,255,255,0.74); border-right: 1px solid var(--line); font-weight: 900; text-transform: uppercase; font-size: 0.78rem; }

.section { padding: clamp(74px, 9vw, 130px) clamp(18px, 5vw, 78px); }
.section-head { display: grid; grid-template-columns: minmax(150px, 0.32fr) minmax(0, 0.68fr); gap: clamp(22px, 5vw, 76px); margin-bottom: 42px; }
.section-head h2, .control-copy h2, .contact-copy h2 { margin-bottom: 0; font-size: clamp(2.15rem, 4.6vw, 5rem); line-height: 0.98; letter-spacing: 0; }
.section-head p:not(.eyebrow), .control-copy p { color: var(--muted); line-height: 1.7; }
.solutions { background: var(--paper); color: #101417; }
.solutions .eyebrow { color: var(--teal); }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.solution { min-height: 330px; display: grid; align-content: start; padding: 22px; border: 1px solid var(--dark-line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 38px rgba(12,17,20,0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.solution:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(12,17,20,0.12); }
.solution svg { width: 34px; height: 34px; color: var(--teal); }
.solution h3 { margin: 28px 0 12px; font-size: 1.25rem; }
.solution p { color: #5b686e; line-height: 1.58; }
.solution ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; color: #29353a; font-size: 0.88rem; font-weight: 750; }
.solution li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 999px; background: var(--teal); }
.solution.highlight { color: var(--white); background: #101417; }
.solution.highlight p, .solution.highlight a { color: rgba(255,255,255,0.72); }
.solution.highlight a { margin-top: 20px; font-weight: 950; color: var(--cyan); }

.control { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(76px, 9vw, 132px) clamp(18px, 5vw, 78px); background: #0d1418; }
.control-copy { max-width: 640px; }
.desk { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.06); box-shadow: var(--shadow); overflow: hidden; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.mode { min-height: 68px; color: rgba(255,255,255,0.68); background: #121b20; border-radius: 0; }
.mode.active { color: var(--bg); background: var(--cyan); }
.desk-body { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 0; }
.route-diagram { position: relative; min-height: 460px; background: linear-gradient(135deg, rgba(0,163,154,0.14), rgba(217,164,65,0.08)), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; }
.route-diagram::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold)); transform: rotate(-8deg); transform-origin: center; }
.node { position: absolute; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 999px; border: 1px solid var(--line); color: var(--white); background: rgba(11,17,20,0.72); font-size: 0.78rem; font-weight: 950; }
.origin { left: 8%; top: 62%; } .hub { left: 34%; top: 34%; } .customs { right: 28%; top: 48%; } .destination { right: 8%; top: 22%; }
.moving-unit { position: absolute; left: 12%; top: 50%; color: var(--cyan); filter: drop-shadow(0 0 18px rgba(101,222,213,0.8)); animation: unitMove 7.5s ease-in-out infinite; }
.moving-unit svg { width: 34px; height: 34px; }
.desk-info { display: grid; align-content: center; padding: clamp(26px, 4vw, 48px); }
.desk-info span { color: var(--cyan); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; }
.desk-info h3 { margin: 12px 0 14px; font-size: clamp(1.9rem, 3.4vw, 3.8rem); line-height: 0.98; }
.desk-info p { color: rgba(255,255,255,0.72); line-height: 1.66; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.kpi-grid div { min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.06); }
.kpi-grid small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.kpi-grid strong { display: block; line-height: 1.22; }

.workflow { background: var(--paper); color: #101417; }
.workflow .eyebrow { color: var(--teal); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { min-height: 280px; padding: 24px; border: 1px solid var(--dark-line); border-radius: 14px; background: var(--white); }
.step span { color: var(--teal); font-weight: 950; }
.step h3 { margin: 64px 0 12px; font-size: 1.42rem; }
.step p { margin-bottom: 0; color: #5b686e; line-height: 1.62; }

.contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr); gap: 18px; padding: clamp(76px, 9vw, 132px) clamp(18px, 5vw, 78px); }
.contact-copy, .contact-form { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.06); }
address { display: grid; gap: 14px; margin: 28px 0 0; color: rgba(255,255,255,0.7); font-style: normal; line-height: 1.58; }
address strong { color: var(--white); }
address a { color: var(--cyan); font-weight: 950; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 8px; color: rgba(255,255,255,0.72); font-size: 0.84rem; font-weight: 900; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px 16px; color: var(--white); border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,0.08); outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(101,222,213,0.12); }
.full { width: 100%; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 5vw, 78px); color: rgba(255,255,255,0.66); border-top: 1px solid var(--line); }
.footer a { color: var(--cyan); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes unitMove { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(74%, -120px) rotate(-8deg); } }
@keyframes routeLoad { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(135%); } }

@media (max-width: 1160px) {
  .hero, .control, .contact { grid-template-columns: 1fr; }
  .hero-visual { min-height: 620px; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header: 66px; }
  .header { top: 10px; left: 10px; right: 10px; grid-template-columns: auto 1fr auto; }
  .nav, .header-action { display: none; }
  .menu { display: inline-flex; justify-self: end; }
  .header.menu-open .nav {
    position: absolute;
    z-index: 80;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    width: 100%;
    max-width: none;
    justify-self: unset;
    padding: 8px;
    color: #101417;
    background: #f4f6f2;
    border: 1px solid var(--dark-line);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.24);
    backdrop-filter: blur(18px);
  }
  .header.menu-open { margin-bottom: 0; }
  .header.menu-open .nav a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--dark-line);
    font-size: 0.95rem;
    font-weight: 900;
  }
  .header.menu-open .nav a::after {
    content: "→";
    color: var(--teal);
    font-weight: 950;
  }
  .header.menu-open .nav a:last-child { border-bottom: 0; }
  .hero {
    min-height: auto;
    align-items: start;
    padding: calc(var(--header) + 44px) 14px 38px;
    gap: 18px;
  }
  h1 { font-size: clamp(2.25rem, 9.8vw, 3.35rem); line-height: 0.98; margin-bottom: 16px; }
  .lead {
    max-width: 34rem;
    margin-bottom: 22px;
    font-size: 0.94rem;
    line-height: 1.5;
  }
  .hero-actions, .primary, .secondary { width: 100%; }
  .proof-row { display: none; }
  .hero-visual { margin-top: 6px; }
  .hero-visual {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }
  #mapCanvas {
    position: relative;
    inset: auto;
    display: block;
    height: 170px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .terminal-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 12px;
  }
  .route-board { display: none; }
  .terminal-head { padding-bottom: 10px; }
  .terminal-meta { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .terminal-meta div { padding: 10px; }
  .terminal-meta small { margin-bottom: 4px; font-size: 0.62rem; }
  .terminal-meta strong { font-size: 0.78rem; }
  .ticker { display: none; }
  .section, .control, .contact { padding: 64px 14px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head h2, .control-copy h2, .contact-copy h2 { font-size: clamp(2rem, 9vw, 3.25rem); }
  .solution-grid, .workflow-grid { grid-template-columns: 1fr; }
  .solution { min-height: auto; }
  .desk-body { grid-template-columns: 1fr; }
  .route-diagram { min-height: 340px; }
  .node { width: 66px; height: 66px; font-size: 0.66rem; }
  .kpi-grid { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .step h3 { margin-top: 44px; }
  .footer { display: grid; }
}

@media (max-width: 420px) {
  .brand strong { font-size: 0.84rem; }
  .brand small { font-size: 0.66rem; }
  h1 { font-size: clamp(2.05rem, 9.5vw, 2.8rem); }
  .hero { padding-top: calc(var(--header) + 28px); gap: 16px; }
  .hero-visual { margin-top: 0; }
  .lead { margin-bottom: 18px; }
  #mapCanvas { height: 145px; }
  .terminal-meta { grid-template-columns: 1fr; }
  .terminal-meta div { padding: 9px 10px; }
  .mode { min-height: 58px; }
}

@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; }
}