/* ==========================================================================
   Knotscale — design tokens (light / blue palette)
   ========================================================================== */
:root{
  --bg:#ffffff;
  --bg-soft:#f4f7fe;
  --bg-soft-2:#eef3fd;
  --surface:#ffffff;
  --border:#e4e9f5;
  --border-strong:#d3dcf0;

  --ink-900:#0b1220;
  --ink-700:#2b3350;
  --ink-500:#5b6480;
  --ink-400:#8992ab;

  --brand-700:#1e40e0;
  --brand-600:#2f5ff6;
  --brand-500:#4c74ff;
  --brand-100:#e8eefe;
  --brand-050:#f4f8ff;

  --ok-600:#16a34a;
  --ok-100:#dcfce7;
  --warn-600:#d97706;
  --warn-100:#fef3c7;
  --danger-600:#dc2626;
  --danger-100:#fee2e2;
  --purple-600:#7c3aed;
  --purple-100:#ede9fe;

  --font-display:'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body:'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-pill:999px;
  --container:1200px;
  --shadow-card:0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -12px rgba(15,23,42,0.10);
  --shadow-pop:0 12px 32px -8px rgba(47,95,246,0.18);
}

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

body{
  margin:0;
  background:var(--bg);
  color:var(--ink-700);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

::selection{ background:var(--brand-100); color:var(--brand-700); }

:focus-visible{
  outline:2px solid var(--brand-600);
  outline-offset:3px;
}

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- typography ---------- */
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-0.02em;
  margin:0;
  color:var(--ink-900);
}
p{ margin:0; color:var(--ink-500); }

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--brand-600);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:'';
  width:16px;
  height:2px;
  border-radius:2px;
  background:var(--brand-600);
  display:inline-block;
}

.section-title{
  font-size:clamp(26px,3.4vw,40px);
  line-height:1.15;
  max-width:820px;
}
.section-lede{
  font-size:16.5px;
  max-width:640px;
  margin-top:16px;
}

/* ---------- card panel ---------- */
.panel{
  position:relative;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
}

/* ---------- header / nav ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  transition:box-shadow .2s ease;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:19px;
  color:var(--ink-900);
  letter-spacing:-0.01em;
}
.brand .mark{
  width:34px; height:34px;
  border-radius:9px;
  background:linear-gradient(155deg, var(--brand-600), var(--brand-700));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px -3px rgba(47,95,246,0.45);
}
.brand .mark svg{ width:19px; height:19px; display:block; }

.nav-links{
  display:flex;
  gap:32px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-500);
}
.nav-links a{ transition:color .15s ease; }
.nav-links a:hover{ color:var(--ink-900); }

.nav-actions{ display:flex; align-items:center; gap:14px; }

/* language switcher */
.lang-switch{ position:relative; }
.lang-btn{
  display:flex;
  align-items:center;
  gap:6px;
  background:none;
  border:1px solid var(--border);
  color:var(--ink-700);
  font-size:13.5px;
  font-weight:500;
  padding:8px 12px;
  border-radius:var(--radius-pill);
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.lang-btn:hover{ border-color:var(--border-strong); background:var(--bg-soft); }
.lang-btn svg{ width:16px; height:16px; flex:0 0 auto; }
.lang-btn .chev{ width:10px; height:10px; transition:transform .15s ease; }
.lang-menu.open + .lang-btn .chev,
.lang-switch .lang-btn[aria-expanded="true"] .chev{ transform:rotate(180deg); }

.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:168px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card);
  padding:6px;
  display:none;
  flex-direction:column;
  gap:2px;
  z-index:50;
}
.lang-menu.open{ display:flex; }
.lang-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 11px;
  border-radius:6px;
  font-size:14px;
  color:var(--ink-700);
  cursor:pointer;
  transition:background .12s ease;
}
.lang-option:hover{ background:var(--bg-soft); }
.lang-option.active{ color:var(--brand-600); font-weight:600; background:var(--brand-050); }
.lang-option .native{ color:var(--ink-400); font-size:12.5px; }

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  color:var(--ink-700);
  width:38px; height:38px;
  border-radius:var(--radius-sm);
  align-items:center;
  justify-content:center;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-body);
  font-size:14.5px;
  font-weight:600;
  padding:13px 26px;
  border-radius:var(--radius-pill);
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }

.btn-primary{
  background:var(--brand-600);
  color:#fff;
  box-shadow:0 6px 18px -6px rgba(47,95,246,0.5);
}
.btn-primary:hover{
  background:var(--brand-700);
  box-shadow:0 8px 22px -6px rgba(47,95,246,0.6);
}

.btn-ghost{
  background:#fff;
  border-color:var(--border-strong);
  color:var(--ink-700);
}
.btn-ghost:hover{ border-color:var(--brand-500); color:var(--brand-600); }

.btn-sm{ padding:9px 18px; font-size:13.5px; }
.btn-block{ width:100%; }

/* ---------- hero ---------- */
.hero{
  padding:156px 0 140px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 640px at 82% 30%, var(--bg-soft-2), transparent 62%);
}
.hero.hero-mapbg{
  min-height:680px;
  display:flex;
  align-items:center;
  background-image:url('/images/hero-map.png');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  background-repeat:no-repeat;
}
.hero-scrim{
  position:absolute;
  inset:0;
  background:linear-gradient(100deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 30%, rgba(255,255,255,0.45) 55%, rgba(255,255,255,0.08) 75%, rgba(255,255,255,0) 100%);
  z-index:1;
}
.hero-mapbg .wrap{ position:relative; z-index:2; }
.hero .wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
.hero-copy{ max-width:620px; }
.hero-copy h1{
  font-size:clamp(38px,5vw,60px);
  line-height:1.06;
}
.hero-copy h1 .line2{ color:var(--brand-600); }
.hero-copy .sub{
  font-size:18px;
  color:var(--ink-500);
  margin-top:20px;
  max-width:480px;
}
.hero-cta{
  display:flex;
  gap:14px;
  margin-top:32px;
  flex-wrap:wrap;
}
.btn-white{
  background:#fff;
  color:var(--ink-900);
  box-shadow:0 6px 18px -6px rgba(15,23,42,0.25);
}
.btn-white:hover{ background:#f3f6fc; box-shadow:0 8px 22px -6px rgba(15,23,42,0.3); }
.hero-values{
  display:flex;
  flex-wrap:wrap;
  gap:26px;
  margin-top:38px;
}
.value-point{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink-700);
}
.value-point svg{ width:19px; height:19px; color:var(--brand-600); flex:0 0 auto; }

/* ---------- hero fleet map (retained for reference, unused after mapbg redesign) ---------- */
.fleet-map-wrap{
  position:relative;
  max-width:600px;
  margin:0 auto;
}
.fleet-map-wrap svg{ width:100%; height:auto; display:block; }

.map-live-chip{
  position:absolute;
  top:10px; left:10px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:7px;
  background:#fff;
  border:1px solid var(--border);
  padding:7px 13px;
  border-radius:var(--radius-pill);
  font-size:12px;
  font-weight:600;
  color:var(--ink-700);
  box-shadow:var(--shadow-card);
}
.map-live-chip .dot{
  width:7px; height:7px;
  border-radius:50%;
  background:#16a34a;
  animation:mapDotPulse 2s ease-in-out infinite;
}
@keyframes mapDotPulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

.map-land{
  fill:var(--bg-soft-2);
  stroke:var(--border-strong);
  stroke-width:1.3;
}
.map-route{
  fill:none;
  stroke:var(--border-strong);
  stroke-width:1.4;
  stroke-dasharray:4 5;
}
.map-port{ fill:var(--brand-600); }
.map-port-ring{
  fill:none;
  stroke:var(--brand-500);
  stroke-width:1.5;
  transform-origin:center;
  transform-box:fill-box;
  animation:mapPortPulse 2.6s ease-out infinite;
}
@keyframes mapPortPulse{
  0%{ r:4; opacity:0.55; }
  100%{ r:16; opacity:0; }
}
.map-ship-glow{ fill:var(--brand-100); opacity:0.9; }
.map-ship use{ color:var(--brand-600); }

.map-caption{
  text-align:center;
  margin-top:14px;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  color:var(--ink-400);
  letter-spacing:0.03em;
}

/* ---------- compliance strip ---------- */
.strip{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--bg-soft);
  padding:26px 0;
  text-align:center;
}
.strip-eyebrow{
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ink-400);
  margin-bottom:14px;
}
.strip-tags{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.strip-tags .tag-item{
  font-size:13px;
  font-weight:600;
  color:var(--ink-700);
  background:#fff;
  border:1px solid var(--border);
  padding:6px 14px;
  border-radius:var(--radius-pill);
}

/* ---------- generic section ---------- */
.section{ padding:96px 0; }
.section.tight{ padding:70px 0; }
.section-head{ margin-bottom:52px; }
.section-head.center{ text-align:center; margin-left:auto; margin-right:auto; }
.section-head.center .section-title,
.section-head.center .section-lede{ margin-left:auto; margin-right:auto; }

.on-soft{ background:var(--bg-soft); }

/* ---------- problem/solution two-up ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:start;
}
.split .col p + p{ margin-top:14px; }
.callout{
  margin-top:22px;
  font-size:14.5px;
  font-weight:600;
  color:var(--brand-600);
}

/* ---------- flow diagram ---------- */
.flow{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  align-items:center;
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:500;
  margin-top:30px;
  padding:20px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg-soft);
}
.flow .node{
  padding:7px 12px;
  color:var(--ink-700);
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  white-space:nowrap;
  margin:3px;
}
.flow .arrow{ color:var(--ink-400); padding:0 2px; }

/* ---------- module grid ---------- */
.modules-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:8px;
}
.module-card{
  padding:26px 24px;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.module-card:hover{ border-color:var(--brand-500); transform:translateY(-3px); box-shadow:var(--shadow-pop); }
.module-card .mid{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  color:var(--brand-600);
  letter-spacing:0.08em;
  margin-bottom:12px;
}
.module-card h3{
  font-size:17px;
  margin-bottom:10px;
  line-height:1.3;
}
.module-card p{ font-size:14px; }

/* ---------- AI section ---------- */
.ai-section{
  background:
    radial-gradient(ellipse 700px 420px at 82% 20%, var(--bg-soft-2), transparent 62%),
    var(--bg-soft);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.ai-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
  align-items:start;
}
.ai-list{
  list-style:none;
  margin:26px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 20px;
}
.ai-list li{
  font-size:14px;
  font-weight:500;
  color:var(--ink-700);
  padding-left:18px;
  position:relative;
}
.ai-list li::before{
  content:'';
  position:absolute;
  left:0; top:8px;
  width:8px; height:2px;
  border-radius:2px;
  background:var(--brand-600);
}
.ai-source{
  margin-top:26px;
  font-size:13px;
  color:var(--ink-400);
}

.ai-trace{ padding:22px; }
.trace-row{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:14px;
  padding:12px 0;
  border-bottom:1px dashed var(--border-strong);
  align-items:baseline;
}
.trace-row:last-child{ border-bottom:none; }
.trace-row .tlabel{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  color:var(--brand-600);
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.trace-row .tval{ font-size:13.5px; color:var(--ink-500); }
.trace-row .tval b{ color:var(--ink-900); font-weight:600; }

/* ---------- knowledge base pills ---------- */
.kb-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}
.kb-pills span{
  font-size:13px;
  font-weight:500;
  color:var(--ink-700);
  border:1px solid var(--border);
  background:#fff;
  padding:9px 15px;
  border-radius:var(--radius-pill);
}
.kb-note{
  margin-top:26px;
  padding:16px 18px;
  border-left:3px solid var(--brand-500);
  background:var(--brand-050);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  font-size:13.5px;
  color:var(--ink-700);
}

/* ---------- mobile execution ---------- */
.job-anatomy{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
  align-items:center;
}
.job-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:job;
}
.job-list li{
  counter-increment:job;
  display:flex;
  gap:14px;
  padding:11px 0;
  border-bottom:1px solid var(--border);
  font-size:14.5px;
  color:var(--ink-700);
}
.job-list li:last-child{ border-bottom:none; }
.job-list li::before{
  content:counter(job, decimal-leading-zero);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  color:var(--brand-600);
  flex:0 0 auto;
  padding-top:2px;
}

.phone-mock{
  justify-self:center;
  width:270px;
  padding:18px;
}
.phone-mock .pm-top{
  display:flex;
  justify-content:space-between;
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--ink-400);
  margin-bottom:12px;
}
.pm-job-title{ font-size:15px; font-weight:700; color:var(--ink-900); margin-bottom:4px; }
.pm-job-sub{ font-family:var(--font-mono); font-size:11px; color:var(--brand-600); margin-bottom:16px; }
.pm-field{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:10px 12px;
  margin-bottom:10px;
}
.pm-field .fl{ font-family:var(--font-mono); font-size:9.5px; color:var(--ink-400); text-transform:uppercase; letter-spacing:0.07em; }
.pm-field .fv{ font-family:var(--font-mono); font-size:16px; color:var(--ink-900); margin-top:4px; font-weight:600; }
.pm-field .fv.amber{ color:var(--warn-600); }
.pm-status{
  margin-top:14px;
  font-size:12px;
  font-weight:600;
  color:var(--warn-600);
  display:flex;
  align-items:flex-start;
  gap:6px;
}
.pm-status::before{ content:'●'; font-size:8px; padding-top:5px; }

/* ---------- budget dashboard mock ---------- */
.budget-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
.budget-list{
  columns:2;
  column-gap:24px;
  list-style:none;
  margin:0; padding:0;
}
.budget-list li{
  font-size:14px;
  color:var(--ink-700);
  padding:8px 0;
  break-inside:avoid;
  border-bottom:1px solid var(--border);
}
.budget-list li:last-child{ border-bottom:none; }

.bars{ padding:24px; }
.bar-row{ margin-bottom:16px; }
.bar-row:last-child{ margin-bottom:0; }
.bar-row .blabel{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  font-weight:500;
  color:var(--ink-700);
  margin-bottom:6px;
}
.bar-track{
  height:9px;
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:5px;
  overflow:hidden;
}
.bar-fill{
  height:100%;
  border-radius:5px;
  transform-origin:left;
  transform:scaleX(0);
  transition:transform 1.1s cubic-bezier(.2,.7,.2,1);
  background:linear-gradient(90deg,var(--brand-500),var(--brand-600));
}
.bars.in-view .bar-fill[data-w="94"]{ transform:scaleX(0.94); }
.bars.in-view .bar-fill[data-w="61"]{ transform:scaleX(0.61); }
.bars.in-view .bar-fill[data-w="78"]{ transform:scaleX(0.78); }

/* ---------- chip grid ---------- */
.chip-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
  margin-top:8px;
}
.chip{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  background:#fff;
}
.chip .dot{
  width:8px; height:8px;
  border-radius:50%;
  background:var(--brand-600);
  margin-top:6px;
  flex:0 0 auto;
}
.chip span{ font-size:14px; font-weight:500; color:var(--ink-700); }

/* ---------- differentiator ---------- */
.diff-section{ text-align:center; }
.diff-section .section-title{ margin:0 auto; }
.diff-compare{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:24px;
  align-items:center;
  max-width:780px;
  margin:44px auto 0;
  text-align:left;
}
.diff-compare .old,.diff-compare .new{ padding:22px 24px; }
.diff-compare .old{ opacity:0.75; background:var(--bg-soft); }
.diff-compare .old p, .diff-compare .new p{ font-size:14.5px; }
.diff-compare .arrow-sep{
  color:var(--brand-600);
  font-size:22px;
  font-weight:700;
}
.diff-tag{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:10px;
  display:block;
}
.diff-tag.old-tag{ color:var(--ink-400); }
.diff-tag.new-tag{ color:var(--brand-600); }
.diff-line{
  margin-top:46px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(20px,2.6vw,28px);
  color:var(--ink-900);
}

/* ---------- safety / human control ---------- */
.safety-section .wrap{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:40px;
  align-items:center;
}
.safety-icon{ width:64px; height:64px; flex:0 0 auto; }
.authority-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  margin-top:18px;
}
.authority-row span{
  font-size:12.5px;
  font-weight:600;
  color:var(--brand-600);
  background:var(--brand-050);
  border:1px solid var(--brand-100);
  padding:6px 13px;
  border-radius:var(--radius-pill);
}

/* ---------- CTA (login) ---------- */
.cta-section{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, var(--bg-soft-2), transparent 62%),
    var(--bg-soft);
  border-top:1px solid var(--border);
  text-align:center;
}
.cta-section .section-title{ margin:0 auto; }
.cta-section .section-lede{ margin:16px auto 0; }
.cta-roles{
  margin:28px auto 0;
  max-width:520px;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:500;
  color:var(--ink-400);
  line-height:2;
}
.cta-actions{
  margin-top:34px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ---------- footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:56px 0 34px;
  background:#fff;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  margin-bottom:34px;
}
.footer-brand p{
  margin-top:12px;
  max-width:300px;
  font-size:13.5px;
}
.footer-address{
  margin-top:18px;
}
.footer-address .label{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--ink-400);
  margin-bottom:6px;
}
.footer-address address{
  font-style:normal;
  font-size:13.5px;
  color:var(--ink-500);
  max-width:280px;
  line-height:1.6;
}
.footer-modules{
  font-size:12.5px;
  color:var(--ink-500);
  max-width:480px;
  line-height:2;
}
.footer-modules b{ color:var(--ink-900); font-weight:700; display:block; margin-bottom:8px; font-size:12.5px; letter-spacing:0.03em; text-transform:uppercase; }
.footer-bottom{
  padding-top:22px;
  border-top:1px solid var(--border);
  font-size:12.5px;
  color:var(--ink-400);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer-bottom a{ color:var(--ink-500); transition:color .15s ease; }
.footer-bottom a:hover{ color:var(--brand-600); }

/* ---------- scroll reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- nav dropdown (Product) ---------- */
.nav-dropdown{ position:relative; }
.nav-dropdown-btn{
  display:flex; align-items:center; gap:5px;
  background:none; border:none; cursor:pointer;
  font-family:inherit; font-size:14.5px; font-weight:500; color:var(--ink-500);
  padding:0;
}
.nav-dropdown-btn:hover{ color:var(--ink-900); }
.nav-dropdown-btn .chev{ width:9px; height:9px; }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 16px); left:50%; transform:translateX(-50%);
  min-width:160px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card); padding:6px; display:none; flex-direction:column; gap:1px; z-index:50;
}
.nav-dropdown:hover .nav-dropdown-menu{ display:flex; }
.nav-dropdown-menu a{ padding:8px 11px; border-radius:6px; font-size:13.5px; color:var(--ink-700); }
.nav-dropdown-menu a:hover{ background:var(--bg-soft); color:var(--brand-600); }

/* ---------- hero value points ---------- */
.hero-values{ display:flex; flex-wrap:wrap; gap:22px; margin-top:34px; }
.hv{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:500; color:var(--ink-700); }
.hv svg{ width:18px; height:18px; color:var(--brand-600); flex:0 0 auto; }

/* ---------- hero map frame (dark rail + zoom controls) ---------- */
.map-frame{
  position:relative;
  display:flex;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow-card);
  border:1px solid var(--border);
}
.map-rail{
  flex:0 0 44px;
  background:linear-gradient(180deg,#0b1830,#12224d);
  display:flex; flex-direction:column; align-items:center;
  gap:16px; padding:18px 0;
}
.rail-dot{
  width:8px; height:8px; border-radius:50%;
  background:rgba(255,255,255,0.25);
}
.rail-dot.active{ background:var(--brand-500); box-shadow:0 0 8px rgba(76,116,255,0.7); }
.map-frame .fleet-map-wrap{ flex:1; margin:0; max-width:none; }
.map-frame .fleet-map-wrap svg{ background:linear-gradient(160deg,var(--bg-soft-2),#fff); }
.map-zoom{
  position:absolute; bottom:14px; right:14px; z-index:2;
  display:flex; flex-direction:column; gap:6px;
}
.map-zoom button{
  width:30px; height:30px; border-radius:8px; border:1px solid var(--border);
  background:#fff; color:var(--ink-700); font-size:16px; line-height:1; cursor:pointer;
  box-shadow:var(--shadow-card); display:flex; align-items:center; justify-content:center;
}
.map-zoom button svg{ width:15px; height:15px; }

/* ---------- compliance strip (updated layout) ---------- */
.strip-wrap{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.strip-title{
  font-family:var(--font-mono); font-size:11.5px; font-weight:600; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--ink-400);
}
.strip-tags{ display:flex; flex-wrap:wrap; gap:18px 20px; justify-content:center; }

/* ---------- circular ERP diagram ---------- */
.erp-circle-wrap{
  position:relative;
  max-width:640px;
  aspect-ratio:1/1;
  margin:56px auto 0;
}
.erp-svg{ position:absolute; inset:0; width:100%; height:100%; }
.erp-spoke{ stroke:var(--border-strong); stroke-width:1.2; stroke-dasharray:2 5; }

.erp-center{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:23%; aspect-ratio:1/1;
  background:radial-gradient(circle at 35% 30%, #16305e, #0b1830);
  border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  box-shadow:0 10px 30px -10px rgba(11,24,48,0.5);
  z-index:3;
}
.erp-center svg{ width:22%; height:22%; }
.erp-center span{ color:#fff; font-size:13px; font-weight:700; }

.erp-budget{
  position:absolute; transform:translate(-50%,-50%);
  display:flex; align-items:center; gap:6px;
  background:#fff; border:1.5px solid var(--brand-500); color:var(--brand-600);
  padding:8px 16px; border-radius:var(--radius-pill);
  font-size:12.5px; font-weight:700; box-shadow:var(--shadow-card);
  z-index:3; white-space:nowrap;
}
.erp-budget svg{ width:15px; height:15px; }

.erp-node{
  position:absolute; transform:translate(-50%,-50%);
  display:flex; align-items:center; gap:7px;
  background:#fff; border:1px solid var(--border);
  padding:7px 13px 7px 7px; border-radius:var(--radius-pill);
  font-size:11.5px; font-weight:600; color:var(--ink-700);
  box-shadow:var(--shadow-card); white-space:nowrap;
  z-index:2;
  transition:transform .2s ease, box-shadow .2s ease;
}
.erp-node:hover{ transform:translate(-50%,-50%) scale(1.06); box-shadow:var(--shadow-pop); z-index:4; }

.icon-chip{
  display:flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:8px; flex:0 0 auto;
}
.icon-chip svg{ width:15px; height:15px; }
.icon-blue{ background:var(--brand-100); color:var(--brand-600); }
.icon-red{ background:var(--danger-100); color:var(--danger-600); }
.icon-green{ background:var(--ok-100); color:var(--ok-600); }
.icon-amber{ background:var(--warn-100); color:var(--warn-600); }
.icon-purple{ background:var(--purple-100); color:var(--purple-600); }

.erp-footer{
  max-width:680px; margin:56px auto 0; text-align:center;
  font-size:14.5px; color:var(--ink-500);
}

/* ---------- module grid 4-col + icon chip cards ---------- */
.modules-grid-4{ grid-template-columns:repeat(4,1fr); }
.modules-grid-4 .module-card .icon-chip{ width:40px; height:40px; border-radius:10px; margin-bottom:14px; }
.modules-grid-4 .module-card .icon-chip svg{ width:20px; height:20px; }

/* ---------- check list (AI + budget bullets) ---------- */
.check-list{ list-style:none; margin:22px 0 0; padding:0; display:flex; flex-direction:column; gap:11px; }
.check-list li{
  position:relative; padding-left:26px; font-size:14px; font-weight:500; color:var(--ink-700);
}
.check-list li::before{
  content:''; position:absolute; left:0; top:3px;
  width:16px; height:16px; border-radius:50%;
  background:var(--ok-100);
}
.check-list li::after{
  content:''; position:absolute; left:4.5px; top:6.5px;
  width:7px; height:4px; border-left:2px solid var(--ok-600); border-bottom:2px solid var(--ok-600);
  transform:rotate(-45deg);
}

/* ---------- AI section (redesigned) ---------- */
.ai-layout{ grid-template-columns:1.15fr 0.85fr; align-items:stretch; }
.ai-copy{ padding:34px; }
.ai-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.ai-badge{
  flex:0 0 auto; background:var(--brand-600); color:#fff; font-size:11px; font-weight:700;
  padding:4px 10px; border-radius:var(--radius-pill); letter-spacing:0.04em;
}
.ai-tagline{ font-size:15px; font-weight:600; color:var(--brand-600); margin-top:6px; }
.ai-note{ margin-top:22px; padding:14px 16px; background:var(--brand-050); border-left:3px solid var(--brand-500); border-radius:0 var(--radius-sm) var(--radius-sm) 0; font-size:13px; color:var(--ink-500); }

.ai-orb-wrap{ display:flex; align-items:center; justify-content:center; }
.ai-orb-wrap svg{ width:100%; max-width:340px; }
.orb-line{ stroke:#c7d6fb; stroke-width:1.2; }
.orb-node{ fill:#fff; stroke:var(--brand-500); stroke-width:1.8; }
.orb-pulse{ transform-origin:center; transform-box:fill-box; animation:orbPulse 2.4s ease-out infinite; }
@keyframes orbPulse{ 0%{ r:48; opacity:0.45; } 100%{ r:80; opacity:0; } }

/* ---------- budget chart card ---------- */
.budget-chart-card{ padding:26px; }
.opex-chart{ width:100%; height:auto; display:block; }
.sparkline{ display:flex; align-items:flex-end; gap:6px; height:44px; margin-top:16px; }
.sparkline span{ flex:1; background:linear-gradient(180deg,var(--brand-500),var(--brand-600)); border-radius:3px 3px 0 0; }

.center-callout{ text-align:center; margin-top:34px; font-size:16px; }

/* ---------- final CTA (dark banner) ---------- */
.cta-dark{
  background:linear-gradient(120deg,#0b1830,#16305e 60%,#1e3f7a);
  padding:64px 0;
  overflow:hidden;
}
.cta-dark-wrap{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.cta-dark-copy{ max-width:520px; }
.cta-dark-copy h2{ color:#fff; font-size:clamp(24px,3vw,32px); }
.cta-dark-copy p{ color:rgba(255,255,255,0.72); margin-top:12px; font-size:15px; }
.cta-dark-copy .hero-cta{ margin-top:26px; }
.btn-ghost-dark{
  background:transparent; border:1px solid rgba(255,255,255,0.35); color:#fff;
}
.btn-ghost-dark:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.cta-ship{ width:280px; flex:0 0 auto; opacity:0.95; }
.cta-actions-left{ justify-content:flex-start; }

/* ---------- footer links row ---------- */
.footer-links-row{
  display:flex; gap:26px; flex-wrap:wrap;
  padding-top:22px; margin-top:8px; border-top:1px solid var(--border);
  font-size:13px; color:var(--ink-500);
}
.footer-links-row a:hover{ color:var(--brand-600); }
.footer-bottom{ border-top:none; padding-top:14px; }


@media (max-width:980px){
  .hero .wrap{ grid-template-columns:1fr; }
  .fleet-map-wrap{ margin-top:20px; max-width:440px; }
  .ai-layout,.job-anatomy,.budget-layout{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; gap:40px; }
  .modules-grid{ grid-template-columns:repeat(2,1fr); }
  .phone-mock{ justify-self:start; }
  .safety-section .wrap{ grid-template-columns:1fr; text-align:left; }
  .ai-orb-wrap{ display:none; }
  .cta-ship{ display:none; }
  .erp-circle-wrap{ max-width:480px; }
  .erp-node{ font-size:10px; padding:5px 10px 5px 5px; gap:5px; }
  .icon-chip{ width:20px; height:20px; }
  .icon-chip svg{ width:12px; height:12px; }
}
@media (max-width:720px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .modules-grid{ grid-template-columns:1fr; }
  .ai-list{ grid-template-columns:1fr; }
  .diff-compare{ grid-template-columns:1fr; text-align:left; }
  .diff-compare .arrow-sep{ display:none; }
  .hero{ padding-top:120px; }
  .hero.hero-mapbg{ min-height:560px; background-attachment:scroll; }
  .hero-scrim{ background:linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0.55) 75%, rgba(255,255,255,0.15) 100%); }
  .section{ padding:64px 0; }
  .budget-list{ columns:1; }
  .footer-bottom{ flex-direction:column; }
  .map-rail{ display:none; }
  .erp-circle-wrap{ max-width:360px; margin-top:40px; }
  .erp-node{ font-size:8.5px; padding:4px 8px 4px 4px; }
  .erp-node span:not(.icon-chip){ display:none; }
  .icon-chip{ width:22px; height:22px; }
  .erp-budget{ font-size:11px; padding:6px 12px; }
  .erp-center span{ font-size:11px; }
  .cta-dark-wrap{ justify-content:center; text-align:center; }
  .cta-dark-copy .cta-actions{ justify-content:center; }
}

