/* =========================================================
   STS – STranSafe Logistics Global · Landing page styles
   Plain CSS, no build step. Tokens first, then layout, then sections.
   ========================================================= */

:root {
  --navy-950: #060E1A;
  --navy-900: #0B192C;   /* Deep Navy (brand) */
  --navy-800: #11243D;
  --slate-700: #1E3E62;  /* Slate Blue (brand) */
  --amber: #D97706;      /* Safety Amber (brand) */
  --amber-deep: #B45309; /* Warm Ochre (brand) */
  --amber-bright: #F59E0B;
  --logo-orange: #F98D08;
  --cyan: #38BDF8;
  --green: #22C55E;
  --red: #EF4444;

  --grey-50: #F8FAFC;
  --grey-100: #F1F5F9;
  --grey-200: #E2E8F0;
  --grey-400: #94A3B8;
  --grey-500: #64748B;
  --grey-600: #475569;
  --ink: #0F172A;
  --white: #FFFFFF;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 72px;
  --shadow: 0 10px 30px -12px rgb(11 25 44 / .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
sub { font-size: .7em; }
code, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-grey { background: var(--grey-50); }
.dark { color: #E2E8F0; }
.dark h2, .dark h3, .dark h4 { color: var(--white); }
.section-navy { background: var(--navy-900); position: relative; isolation: isolate; }
.section-navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgb(56 189 248 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(56 189 248 / .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-sub { font-size: 1.08rem; color: var(--grey-600); }
.dark .section-sub { color: var(--grey-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-bright); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--amber-deep); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(34 197 94 / .2); animation: pulse 2s infinite; }
.accent { color: var(--amber-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 8px 22px -8px rgb(217 119 6 / .7); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .04); }
.btn-ghost:hover { border-color: var(--amber-bright); color: var(--amber-bright); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgb(11 25 44 / .82);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 1px solid rgb(255 255 255 / .2); }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.brand-text span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-400); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 9px; color: #CBD5E1; text-decoration: none; font-size: .85rem; font-weight: 500; border-radius: 6px; transition: color .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { color: var(--amber-bright); }
.main-nav .nav-cta-mobile { display: none; }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

@media (max-width: 1280px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 10px;
    background: rgb(255 255 255 / .08); cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0; padding: 12px 20px 24px;
    background: var(--navy-900); border-top: 1px solid rgb(255 255 255 / .06); box-shadow: 0 20px 40px -10px rgb(0 0 0 / .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-header.is-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 1rem; padding: 13px 4px; border-bottom: 1px solid rgb(255 255 255 / .06); border-radius: 0; }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 16px; padding: 14px 20px; border-bottom: 0; border-radius: 10px; color: #fff; font-size: 1rem; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-950);
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(40px, 5vw, 64px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 75% 45%, rgb(30 62 98 / .75), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgb(217 119 6 / .14), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(56 189 248 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(56 189 248 / .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 800; color: #fff; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: #B6C2D2; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { position: relative; }
.gantry {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 6% -6px; padding: 6px 10px; border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #24364F, #172537); border: 1px solid rgb(255 255 255 / .08);
  box-shadow: 0 6px 20px -6px rgb(0 0 0 / .6); position: relative; z-index: 2;
}
.gantry-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--grey-400); }
.gantry-cam { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.6s infinite; }

.scan-stage { position: relative; aspect-ratio: 948 / 550; }
.truck-img {
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(120% 115% at 45% 55%, #000 58%, transparent 80%);
          mask-image: radial-gradient(120% 115% at 45% 55%, #000 58%, transparent 80%);
}
.scan-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lidar-sweep { animation: sweep 3.6s var(--ease) infinite; }
.lidar-grid { animation: fade 3.6s infinite; }
.id-box path { stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.id-box-1 { color: var(--amber-bright); animation: lock 4.8s infinite; }
.id-box-2 { color: var(--cyan); animation: lock 4.8s .5s infinite; }
.plate-box { animation: plate 4.8s infinite; filter: drop-shadow(0 0 6px var(--green)); }

.hud {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 12px; border-radius: 10px; min-width: 150px;
  background: rgb(11 25 44 / .62); border: 1px solid rgb(255 255 255 / .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .6);
  font-size: .72rem; color: #CBD5E1; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.hud-k { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); }
.hud-v { font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: #fff; display: flex; gap: 8px; align-items: baseline; }
.hud-v em { font-style: normal; font-size: .68rem; padding: 1px 6px; border-radius: 4px; }
.hud-v .ok { background: rgb(34 197 94 / .18); color: #4ADE80; }
.hud-s { color: var(--grey-400); }
.hud-anpr { left: -3%; top: 9%; border-color: rgb(245 158 11 / .45); }
.hud-lidar { right: -1%; top: 4%; border-color: rgb(56 189 248 / .45); animation-delay: -2s; }
.hud-trip { right: 3%; bottom: -2%; animation-delay: -4s; }

.sim-note { margin: 10px 0 0; font-size: .72rem; color: var(--grey-500); text-align: right; }
.sim-note-dark { text-align: left; color: var(--grey-500); }

.proof-badges {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .08); border-radius: var(--radius); overflow: hidden;
}
.proof-badges li { background: rgb(11 25 44 / .85); padding: 22px 22px 18px; }
.proof-badges strong { display: inline-flex; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-badges .unit { display: inline-block; margin-left: 8px; font-family: var(--font-head); font-weight: 700; color: var(--amber-bright); font-size: .95rem; }
.proof-badges p { margin: 10px 0 0; font-size: .84rem; color: var(--grey-400); line-height: 1.5; }

/* ---------- S2 JOURNEY ---------- */
.journey-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.journey-copy > p { color: var(--grey-600); }
.route { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.route::before { content: ""; position: absolute; left: 30px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(180deg, var(--amber) 0 6px, transparent 6px 12px); }
.route li { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; position: relative; }
.route-tag {
  flex: 0 0 62px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy-900); color: #fff; padding: 6px 0; border-radius: 6px; position: relative; z-index: 1;
}
.route-tag-accent { background: var(--amber); }
.route li div { display: flex; flex-direction: column; }
.route li strong { font-family: var(--font-head); font-size: .98rem; }
.route li span:not(.route-tag) { font-size: .88rem; color: var(--grey-500); }

.journey-photo { margin: 0; position: relative; }
.photo-frame img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.photo-frame { position: relative; }
.photo-frame::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--amber) 0 12px, transparent 12px 24px); opacity: .25;
}
.journey-photo figcaption { margin-top: 12px; font-size: .82rem; color: var(--grey-500); }

/* ---------- 6S ---------- */
.big-s { color: var(--amber); font-size: 1.25em; }
.six-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 26px 24px 22px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background-color .3s;
}
.s-card .s-letter {
  position: absolute; right: -6px; top: -26px; font-family: var(--font-head); font-weight: 800; font-size: 8rem; line-height: 1;
  color: var(--grey-100); transition: color .3s, transform .4s var(--ease); pointer-events: none;
}
.s-card h3 { position: relative; font-size: 1.35rem; margin-bottom: 2px; }
.s-card h3::first-letter { color: var(--amber); }
.s-card .s-sub { position: relative; font-weight: 600; color: var(--amber-deep); font-size: .88rem; margin-bottom: 12px; }
.s-card p:last-child { position: relative; margin: 0; color: var(--grey-600); font-size: .95rem; }
.s-card:hover { transform: translateY(-6px); border-color: var(--navy-900); background: var(--navy-900); box-shadow: 0 24px 40px -20px rgb(11 25 44 / .6); }
.s-card:hover .s-letter { color: rgb(245 158 11 / .14); transform: scale(1.08) rotate(-4deg); }
.s-card:hover h3 { color: #fff; }
.s-card:hover .s-sub { color: var(--amber-bright); }
.s-card:hover p:last-child { color: #B6C2D2; }

/* ---------- S3 MATRIX ---------- */
.matrix { display: flex; flex-direction: column; gap: 10px; }
.matrix-row {
  display: grid; grid-template-columns: 1fr 1.25fr 1.15fr 1.6fr; gap: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: rgb(255 255 255 / .03); border: 1px solid rgb(255 255 255 / .08);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.matrix-row > span { padding: 16px 18px; font-size: .9rem; line-height: 1.55; }
.matrix-row:not(.matrix-head):hover { border-color: rgb(245 158 11 / .55); background: rgb(255 255 255 / .06); transform: translateX(4px); }
.matrix-head { background: transparent; border-color: transparent; }
.matrix-head > span { padding-block: 4px; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); }
.m-issue { font-family: var(--font-head); font-weight: 700; color: #fff; display: flex; gap: 12px; align-items: baseline; }
.m-issue b { color: var(--amber-bright); font-size: .8rem; }
.m-blind { color: #FCA5A5; background: rgb(239 68 68 / .06); }
.m-sol { font-family: var(--font-head); font-weight: 700; color: var(--cyan); background: rgb(56 189 248 / .06); }
.m-mech { color: #CBD5E1; }
.f { font-style: normal; font-family: var(--font-mono); font-size: .84em; color: #fff; background: rgb(255 255 255 / .08); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

/* ---------- S4 FLOW ---------- */
.flow-tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.flow-tabs button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; cursor: pointer;
  font: 600 .9rem/1.3 var(--font-body); color: var(--grey-600);
  background: var(--grey-50); border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, color .2s;
}
.flow-tabs button .t { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--grey-200); font: 800 1rem var(--font-head); color: var(--navy-900); transition: background-color .2s, color .2s; }
.flow-tabs button:hover { border-color: var(--slate-700); }
.flow-tabs button[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.flow-tabs button[aria-selected="true"] .t { background: var(--amber); color: #fff; }
.flow-progress { position: absolute; left: 0; right: 0; bottom: -12px; height: 3px; background: var(--grey-200); border-radius: 3px; overflow: hidden; }
.flow-progress span { display: block; height: 100%; width: 25%; background: var(--amber); transition: width .5s var(--ease); }

.flow-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.flow-panels { display: grid; }
.flow-panel[hidden] { display: block; visibility: hidden; }
.flow-panel { grid-area: 1 / 1; background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px; height: 100%; }
.flow-panel:not([hidden]) { animation: panelIn .45s var(--ease); }
.flow-panel h3 { font-size: 1.4rem; }
.flow-panel p { color: var(--grey-600); }
.flow-kicker { font: 700 .74rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep) !important; margin-bottom: 8px; }
.flow-alert { border-left: 3px solid var(--red); padding: 8px 12px; background: rgb(239 68 68 / .06); border-radius: 0 6px 6px 0; color: #B91C1C !important; font-weight: 500; }
.tag { font: 700 .72rem var(--font-mono); padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; }
.tag-empty { background: var(--grey-200); color: var(--navy-900); }
.tag-loaded { background: rgb(217 119 6 / .15); color: var(--amber-deep); }
.tag-success { background: rgb(34 197 94 / .15); color: #15803D; }
.flow-panel code { background: var(--grey-200); padding: 1px 6px; border-radius: 4px; font-size: .88em; }

.flow-console { background: var(--navy-900); color: #CBD5E1; border-radius: var(--radius); padding: 0 0 20px; overflow: hidden; box-shadow: var(--shadow); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgb(255 255 255 / .04); border-bottom: 1px solid rgb(255 255 255 / .06); }
.console-bar span { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.console-bar b { margin-left: 8px; font: 600 .75rem var(--font-mono); color: var(--grey-400); }
.console-route { display: flex; align-items: center; gap: 12px; padding: 22px 20px 10px; font-size: .78rem; }
.node { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--grey-400); }
.node i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--grey-500); transition: all .3s; }
.node.is-on i { border-color: var(--amber-bright); background: var(--amber-bright); box-shadow: 0 0 0 5px rgb(245 158 11 / .2); }
.route-line { flex: 1; height: 2px; position: relative; background: repeating-linear-gradient(90deg, #334155 0 8px, transparent 8px 14px); margin-bottom: 20px; }
.truck-dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px; background: var(--amber-bright); box-shadow: 0 0 14px var(--amber-bright); transition: left 1s var(--ease); }
.console-data { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 8px 20px 0; background: rgb(255 255 255 / .06); border-radius: 8px; overflow: hidden; }
.console-data div { background: var(--navy-900); padding: 10px 12px; }
.console-data dt { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); }
.console-data dd { margin: 2px 0 0; font-weight: 600; color: #fff; font-size: .9rem; min-height: 1.4em; }
.console-data dd.is-warn { color: #FCA5A5; }
.console-data dd.is-ok { color: #4ADE80; }
.console-qr { display: flex; align-items: center; gap: 14px; margin: 16px 20px 0; padding: 12px; border: 1px dashed rgb(255 255 255 / .14); border-radius: 8px; font-size: .82rem; opacity: .3; transition: opacity .4s; }
.console-qr.is-on { opacity: 1; border-color: var(--green); }
.qr { width: 52px; height: 52px; color: #fff; background: var(--navy-950); padding: 4px; border-radius: 4px; }

/* ---------- S5 UTILITIES ---------- */
.util-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.bot-card { background: var(--navy-900); color: #CBD5E1; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.bot-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.bot-head strong { display: block; color: #fff; font-family: var(--font-head); }
.bot-head span { font-size: .78rem; color: var(--grey-400); }
.bot-avatar { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #229ED9; color: #fff; }
.bot-avatar svg { width: 22px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 6px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.msg b { color: #fff; }
.msg-bot { background: rgb(255 255 255 / .07); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--slate-700); color: #fff; border-bottom-right-radius: 4px; }
.msg-queue { border: 1px solid rgb(245 158 11 / .4); }
.msg-tag { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 3px; font-weight: 600; }

.util-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.util-item { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 20px; transition: border-color .25s, box-shadow .25s; }
.util-item:hover { border-color: var(--amber); box-shadow: 0 12px 30px -18px rgb(217 119 6 / .6); }
.util-item h3 { font-size: 1rem; margin-bottom: 6px; }
.util-item h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--amber); margin-bottom: 12px; }
.util-item p { margin: 0; font-size: .9rem; color: var(--grey-600); }
.util-item:last-child { grid-column: 1 / -1; }

/* ---------- S6 LEGAL ---------- */
.compliance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.law { position: relative; padding: 24px 22px 20px 22px; border-radius: var(--radius); background: var(--grey-50); border: 1px solid var(--grey-200); }
.law::before { content: "§"; position: absolute; right: 18px; top: 10px; font: 800 2.4rem var(--font-head); color: var(--grey-200); }
.law-code { font: 800 .95rem var(--font-head); color: var(--navy-900); margin-bottom: 10px; padding-right: 36px; }
.law p:last-child { margin: 0; color: var(--grey-600); font-size: .92rem; }
.sub-title { margin-top: clamp(40px, 5vw, 64px); font-size: 1.35rem; }
.stakeholders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stake { border-radius: var(--radius); padding: 26px 24px; background: #fff; border: 1px solid var(--grey-200); border-top: 4px solid var(--slate-700); }
.stake-accent { border-top-color: var(--amber); background: var(--navy-900); color: #CBD5E1; border-color: var(--navy-900); }
.stake-accent h4 { color: #fff; }
.stake-accent b { color: var(--amber-bright); }
.stake h4 { font-size: 1.1rem; margin-bottom: 14px; }
.stake ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stake li { position: relative; padding-left: 26px; font-size: .95rem; }
.stake li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: rgb(34 197 94 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- S7 PROJECTS ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .1);
  transition: transform .3s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-6px); border-color: rgb(245 158 11 / .6); }
.p-region { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; font-weight: 600; }
.project h3 { font-size: 1.12rem; }
.p-desc { font-size: .9rem; color: var(--grey-400); }
.p-desc b { color: #fff; }
.p-money { font: 800 clamp(1.35rem, 1.1rem + .8vw, 1.7rem) var(--font-head); color: var(--amber-bright); margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.p-money small { font-size: .55em; color: var(--grey-400); font-weight: 700; }
.p-partner { margin: 0; font-size: .84rem; color: #CBD5E1; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .08); }
.project-total { background: linear-gradient(135deg, var(--amber-deep), var(--amber)); border-color: transparent; }
.project-total .p-region, .project-total .p-desc { color: rgb(255 255 255 / .85); }
.project-total .p-money { color: #fff; }
.project-total .p-money small { color: rgb(255 255 255 / .8); }

/* ---------- S8 CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(50% 70% at 85% 30%, rgb(217 119 6 / .28), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgb(30 62 98 / .9), transparent 70%),
    var(--navy-950);
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-copy p { color: #B6C2D2; }
.cta-contacts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.cta-contacts li { display: flex; flex-direction: column; }
.cta-contacts span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--grey-400); }
.cta-contacts a { font: 700 1.15rem var(--font-head); color: #fff; text-decoration: none; }
.cta-contacts a:hover { color: var(--amber-bright); }

.lead-form {
  padding: clamp(22px, 3vw, 34px); border-radius: 20px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 600; color: #CBD5E1; padding: 0; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; font: 500 1rem var(--font-body); color: #fff; padding: 12px 14px; border-radius: 10px;
  background: rgb(6 14 26 / .55); border: 1.5px solid rgb(255 255 255 / .14); transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--amber-bright); box-shadow: 0 0 0 4px rgb(245 158 11 / .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; height: 100%; padding: 11px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: #CBD5E1; background: rgb(6 14 26 / .45); border: 1.5px solid rgb(255 255 255 / .14); transition: all .2s; }
.choice input:checked + span { border-color: var(--amber-bright); color: #fff; background: rgb(217 119 6 / .2); }
.choice input:focus-visible + span { outline: 3px solid var(--amber-bright); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; color: #CBD5E1; }
.form-status.is-ok { color: #4ADE80; }
.form-status.is-err { color: #FCA5A5; }
.form-status a { color: var(--amber-bright); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-950); color: var(--grey-400); padding: 56px 0 24px; border-top: 1px solid rgb(255 255 255 / .06); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-name { font: 800 .95rem var(--font-head); color: #fff; margin-bottom: 4px; }
.footer-tag { font-size: .8rem; letter-spacing: .06em; }
.footer-legal { margin: 0; display: grid; gap: 12px; }
.footer-legal div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.footer-legal dt { color: var(--grey-500); font-size: .8rem; }
.footer-legal dd { margin: 0; color: #CBD5E1; }
.footer-legal a { color: #CBD5E1; text-decoration: none; }
.footer-legal a:hover { color: var(--amber-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--grey-400); text-decoration: none; }

/* ---------- reveal (content visible by default; JS opts in) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes sweep { 0% { transform: translateX(0); } 50% { transform: translateX(440px); } 100% { transform: translateX(0); } }
@keyframes fade { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes lock { 0%, 8% { opacity: 0; transform: scale(1.04); } 18%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes plate { 0%, 20% { opacity: 0; } 28%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.id-box { transform-box: fill-box; transform-origin: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 760px; margin-inline: auto; width: 100%; }
  .proof-badges { grid-template-columns: repeat(2, 1fr); }
  .journey-grid, .util-grid, .cta-grid { grid-template-columns: 1fr; }
  .flow-body { grid-template-columns: 1fr; }
  .six-grid, .projects { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .matrix-head { display: none; }
  .matrix-row { grid-template-columns: 1fr; }
  .matrix-row > span { padding: 10px 16px; }
  .matrix-row > span[data-label]:not(.m-issue)::before {
    content: attr(data-label); display: block; font: 700 .64rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 2px;
  }
  .m-issue { padding-top: 16px !important; font-size: 1.02rem; }
  .matrix-row:not(.matrix-head):hover { transform: none; }
  .compliance, .stakeholders { grid-template-columns: 1fr; }
  .flow-tabs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  :root { --header-h: 64px; }
  .brand-logo { height: 28px; }
  .brand-text strong { font-size: .85rem; }
  .brand-text span { font-size: .58rem; letter-spacing: .16em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .proof-badges { grid-template-columns: 1fr 1fr; }
  .proof-badges li { padding: 16px 14px; }
  .proof-badges p { font-size: .76rem; }
  .hud { min-width: 0; padding: 5px 8px; font-size: .6rem; }
  .hud-v { font-size: .74rem; }
  .hud-k { font-size: .52rem; }
  .hud-s { display: none; }
  .hud-anpr { left: 0; top: 6%; }
  .hud-lidar { right: 0; top: 9%; }
  .hud-trip { right: 0; bottom: -4%; }
  .gantry-label { font-size: .56rem; }
  .six-grid, .projects, .util-list { grid-template-columns: 1fr; }
  .flow-tabs button { padding: 10px; font-size: .8rem; gap: 8px; }
  .flow-tabs button .t { width: 32px; height: 32px; font-size: .88rem; }
  .flow-panel { padding: 22px 18px; }
  .choices { grid-template-columns: 1fr; }
  .footer-legal div { grid-template-columns: 1fr; gap: 2px; }
  .f { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .id-box, .plate-box { opacity: 1; }
}
