/* M-apperò — Site v0.1
   Tokens + base
--------------------------------------------------------------- */
:root {
  --color-midnight: #070A26;
  --color-road-navy: #11163D;
  --color-civic-blue: #1B245C;

  --color-signal-teal: #78D8CF;
  --color-clean-mint: #B8EFE7;
  --color-decision-coral: #F25D7A;

  --color-white: #F7F8FB;
  --color-slate: #A8B0C7;
  --color-ink: #101633;
  --color-muted: #64708A;

  --status-low: #4FD6A3;
  --status-medium: #F6C85F;
  --status-high: #F05A78;
  --status-info: #57C7F3;
  --status-ai: #8D7CFF;

  --bg-soft: #EEF7F6;
  --bg-map: #DDEDEA;
  --bg-pale-teal: #D8F5F1;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --maxw: 1280px;
  --pad-x: clamp(24px, 5vw, 80px);
  --floating-edge: clamp(16px, 3vw, 28px);
  --floating-cookie-height: 42px;
  --floating-stack-gap: 14px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--color-midnight);
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
.keep-together { white-space: nowrap; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-signal-teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-signal-teal);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-decision-coral);
  color: #fff;
}
.btn-primary:hover { background: #e04a68; }
.btn-secondary {
  background: transparent;
  color: var(--color-signal-teal);
  border: 1px solid rgba(120, 216, 207, 0.55);
}
.btn-secondary:hover {
  background: rgba(120, 216, 207, 0.08);
  border-color: var(--color-signal-teal);
}
.btn-light {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn-light:hover { background: #1d2645; }
.btn .arrow {
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.linkish {
  color: var(--color-signal-teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.linkish:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(120, 216, 207, 0.10);
  border: 1px solid rgba(120, 216, 207, 0.30);
  color: var(--color-clean-mint);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-signal-teal); }
.badge--ai { color: #d6cffd; background: rgba(141, 124, 255, 0.10); border-color: rgba(141, 124, 255, 0.35); }
.badge--ai .dot { background: var(--status-ai); }
.badge--info { color: #cfeefc; background: rgba(87, 199, 243, 0.10); border-color: rgba(87, 199, 243, 0.30); }
.badge--info .dot { background: var(--status-info); }
.badge--light {
  background: rgba(16, 22, 51, 0.06);
  border-color: rgba(16, 22, 51, 0.14);
  color: var(--color-ink);
}
.badge--light .dot { background: var(--color-ink); }

/* Sections */
section { padding: var(--space-7) 0; }
section[id] { scroll-margin-top: 88px; }
.section-light {
  background: var(--bg-soft);
  color: var(--color-ink);
}
.section-light h2, .section-light h3 { color: var(--color-ink); }

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: clamp(36px, 4.4vw, 56px);
}
.section-head p {
  font-size: 18px;
  color: var(--color-slate);
  max-width: 56ch;
}
.section-light .section-head p { color: var(--color-muted); }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Nav
--------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 38, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(119, 230, 213, 0.18);
}
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex;
  gap: clamp(18px, 2.2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--color-slate);
}
.nav-links a:hover { color: var(--color-white); }
.nav-links a.is-active { color: var(--color-signal-teal); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-row { gap: 12px; }
  .brand {
    gap: 8px;
    font-size: 16px;
  }
  .brand > span:last-child { white-space: nowrap; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-secondary { display: none; }
  .nav-cta .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
}

/* Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0 var(--space-8);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(120, 216, 207, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(141, 124, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #070A26 0%, #11163D 48%, #143B50 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #78D8CF 0%, #57C7F3 55%, #8D7CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .nowrap { white-space: nowrap; }
.hero-lede {
  margin-top: 24px;
  color: var(--color-slate);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 56ch;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 48px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-meta .stat {
  font-family: var(--font-display);
}
.hero-meta .stat .num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-meta .stat .lbl {
  color: var(--color-slate);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Hero map visual */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0e1336 0%, #1B245C 100%);
  border: 1px solid rgba(120, 216, 207, 0.18);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.hero-stage .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-stage .stage-overlay {
  position: absolute;
  inset: auto auto 18px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 36px);
}
.hero-stage .legend-chip {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 10, 38, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-slate);
  backdrop-filter: blur(6px);
}
.hero-stage .legend-chip .pip { width: 8px; height: 8px; border-radius: 50%; }
.pip-low { background: var(--status-low); }
.pip-med { background: var(--status-medium); }
.pip-high { background: var(--status-high); box-shadow: 0 0 0 4px rgba(240, 90, 120, 0.22); }
.pip-info { background: var(--status-info); }

.hero-stage .vehicle-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 10, 38, 0.6);
  border: 1px solid rgba(120, 216, 207, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}
.vehicle-tag .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-signal-teal);
  position: relative;
}
.vehicle-tag .pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(120, 216, 207, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.vehicle-tag .vt-text {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vehicle-tag .vt-text .vt-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-slate);
  text-transform: none;
  margin-top: 2px;
}

.hero-stage .priority-card {
  position: absolute;
  top: 28%;
  right: 16px;
  width: 220px;
  background: rgba(11, 14, 46, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
}
.priority-card .pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 10px;
}
.priority-card .pc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.priority-card .pc-meta {
  font-size: 12px;
  color: var(--color-slate);
  margin-bottom: 10px;
}
.priority-card .pc-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.priority-card .pc-bar > span {
  display: block;
  height: 100%;
  width: 76%;
  background: linear-gradient(90deg, var(--status-high), var(--status-medium));
}

/* Reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Problem section
--------------------------------------------------------------- */
.problem {
  background: var(--color-road-navy);
  padding: var(--space-7) 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(120, 216, 207, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.problem-card .pc-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #78D8CF, #57C7F3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.problem-card h3 {
  font-size: 20px;
  font-weight: 600;
}
.problem-card p {
  color: var(--color-slate);
  font-size: 15px;
}

/* How it works
--------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(16,22,51,0.06) 0%,
    rgba(16,22,51,0.20) 10%,
    rgba(16,22,51,0.20) 90%,
    rgba(16,22,51,0.06) 100%);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
.step {
  padding: 0 22px;
  position: relative;
}
.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }
.step-marker {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(16,22,51,0.10);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-ink);
  box-shadow: 0 8px 24px rgba(7, 10, 38, 0.06);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.step:nth-child(1) .step-marker { color: var(--color-ink); }
.step:nth-child(2) .step-marker { color: var(--status-info); border-color: rgba(87, 199, 243, 0.30); }
.step:nth-child(3) .step-marker { color: var(--status-ai); border-color: rgba(141, 124, 255, 0.30); }
.step:nth-child(4) .step-marker { color: var(--color-decision-coral); border-color: rgba(242, 93, 122, 0.30); }
.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  color: var(--color-muted);
  font-size: 14.5px;
}
.step .step-tag {
  margin-bottom: 14px;
}

/* Tecnologia
--------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tech-grid { grid-template-columns: 1fr; } }
.tech-card {
  position: relative;
  background: var(--color-civic-blue);
  border: 1px solid rgba(120, 216, 207, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}
.tech-card:hover {
  border-color: rgba(120, 216, 207, 0.5);
  transform: translateY(-2px);
}
.tech-card .tc-illustration {
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(7,10,38,0) 0%, rgba(7,10,38,0.35) 100%),
    radial-gradient(circle at 30% 30%, rgba(120, 216, 207, 0.18), transparent 60%),
    rgba(7, 10, 38, 0.45);
  position: relative;
  overflow: hidden;
}
.tech-card h3 { font-size: 19px; font-weight: 650; }
.tech-card p  { font-size: 14.5px; color: var(--color-slate); }
.tech-card .tc-num {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-slate);
  letter-spacing: 0.08em;
}

/* Platform tabs
--------------------------------------------------------------- */
.platform { padding: var(--space-7) 0; }
.platform .tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(16,22,51,0.10);
  margin-bottom: 36px;
  overflow-x: auto;
}
.platform .tab {
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 180ms ease, border-color 180ms ease;
}
.platform .tab[aria-selected="true"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-decision-coral);
}
.platform .tab:hover { color: var(--color-ink); }

.platform-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}
.platform-panel.is-active { display: grid; }
@media (max-width: 1000px) { .platform-panel { grid-template-columns: 1fr; gap: 36px; } }

.platform-copy h3 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 18px;
}
.platform-copy p {
  color: var(--color-muted);
  font-size: 17px;
  margin-bottom: 22px;
  max-width: 50ch;
}
.platform-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.platform-copy li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--color-ink);
}
.platform-copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--color-signal-teal);
  box-shadow: inset 0 0 0 4px var(--bg-soft);
}

/* Mock device frame */
.mock {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(16, 22, 51, 0.08);
  box-shadow: 0 30px 60px rgba(7, 10, 38, 0.10);
  overflow: hidden;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(16,22,51,0.06);
}
.mock-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E6EE; }
.mock-head .lbl {
  margin-left: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--color-muted);
}
.mock-body {
  background: var(--bg-map);
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

/* Map mock */
.map-mock {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
}
.map-mock svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-mock .map-pop {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(16,22,51,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 36px rgba(7, 10, 38, 0.10);
  width: 220px;
}
.map-mock .map-pop .row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted);
}
.map-mock .map-pop h4 {
  font-family: var(--font-display);
  font-size: 14px;
  margin: 4px 0 10px;
  color: var(--color-ink);
}
.map-mock .map-pop .tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.map-mock .map-pop .tag {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-pale-teal);
  color: #0d4541;
}
.map-mock .map-pop .tag--high {
  background: #FFE1E8; color: #8a2240;
}

@media (max-width: 640px) {
  .map-mock .map-pop {
    left: auto !important;
    right: 12px;
    top: 70px !important;
    width: min(208px, calc(100% - 24px));
  }
}

/* Dashboard mock */
.dash {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  gap: 14px;
  background: #fff;
  height: 100%;
  min-height: 460px;
}
.dash .kpi {
  background: #fff;
  border: 1px solid rgba(16,22,51,0.08);
  border-radius: 16px;
  padding: 18px;
}
.dash .kpi .lbl {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dash .kpi .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.dash .kpi .delta {
  font-family: var(--font-display);
  font-size: 12px;
  margin-top: 6px;
}
.dash .kpi .delta.up { color: #1d8a59; }
.dash .kpi .delta.down { color: #b13657; }

.dash .chart {
  grid-column: span 3;
  background: #fff;
  border: 1px solid rgba(16,22,51,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.dash .chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.dash .chart-head h4 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--color-ink);
}
.dash .chart-head .legend {
  display: flex; gap: 14px; font-size: 11.5px; color: var(--color-muted);
}
.dash .chart-head .legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash .chart-head .legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.dash .chart-svg { flex: 1; }

/* Segnalazioni list mock */
.list-mock {
  background: #fff;
  height: 100%;
  min-height: 460px;
  padding: 8px 0 0;
}
.list-mock .list-head {
  display: grid;
  grid-template-columns: 80px 1fr 110px 100px 90px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid rgba(16,22,51,0.06);
}
.list-mock .list-row {
  display: grid;
  grid-template-columns: 80px 1fr 110px 100px 90px;
  padding: 14px 22px;
  align-items: center;
  border-bottom: 1px solid rgba(16,22,51,0.05);
  font-size: 13.5px;
  color: var(--color-ink);
}
.list-mock .list-row:hover { background: #f5f7fb; }
.list-mock .id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--color-muted);
  font-size: 12px;
}
.list-mock .pri {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}
.pri-high { background: #FFE1E8; color: #8a2240; }
.pri-med  { background: #FFF2D5; color: #7a5310; }
.pri-low  { background: #D8F5E5; color: #15613e; }
.list-mock .status {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-muted);
}
.list-mock .when { color: var(--color-muted); font-size: 12px; }

/* Mobile (app) mock */
.phone {
  width: 270px;
  margin: 0 auto;
  background: #0b0e2e;
  padding: 14px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px rgba(7,10,38,0.18);
}
.phone-screen {
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  position: relative;
}

/* Product evidence screenshots
--------------------------------------------------------------- */
.product-evidence {
  background: linear-gradient(180deg, #EEF7F6 0%, #F7F8FB 100%);
  padding: var(--space-7) 0;
  color: var(--color-ink);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.evidence-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(16,22,51,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(7, 10, 38, 0.09);
}
.evidence-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  background: #EEF2F7;
}
.evidence-card figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 20px 20px;
}
.evidence-card strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-ink);
}
.evidence-card span {
  font-size: 14.5px;
  color: var(--color-muted);
}
@media (max-width: 820px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

/* Benefits
--------------------------------------------------------------- */
.benefits {
  background: var(--color-midnight);
  padding: var(--space-7) 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
@media (max-width: 1000px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(120,216,207,0.04), rgba(120,216,207,0)) ,
    var(--color-road-navy);
  border: 1px solid rgba(120, 216, 207, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}
.benefit-card h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.benefit-card ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.benefit-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--color-slate);
}
.benefit-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 2px;
  background: var(--color-signal-teal);
}
.benefit-card .b-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-signal-teal);
}
.benefit-card .b-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(120, 216, 207, 0.10);
  border: 1px solid rgba(120, 216, 207, 0.30);
  display: grid; place-items: center;
  color: var(--color-signal-teal);
}

/* Context / network
--------------------------------------------------------------- */
.context {
  background: var(--bg-soft);
  padding: var(--space-7) 0;
  color: var(--color-ink);
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 900px) { .network-grid { grid-template-columns: 1fr; } }
.network-card {
  background: #fff;
  border: 1px solid rgba(16,22,51,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.network-card .badge {
  align-self: flex-start;
  height: auto;
  min-height: 30px;
  max-width: 100%;
  line-height: 1.2;
}
.network-card .nc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.network-card p {
  color: var(--color-muted);
  font-size: 15px;
}
.network-card .stats {
  display: flex; gap: 18px; margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(16,22,51,0.08);
  flex-wrap: wrap;
}
.network-card .stats .stat .num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  display: block; letter-spacing: -0.02em;
}
.network-card .stats .stat .lbl {
  font-size: 11.5px; color: var(--color-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Team
--------------------------------------------------------------- */
.team {
  background: var(--color-midnight);
  padding: var(--space-7) 0;
  color: var(--color-white);
}
.team .section-head p {
  color: var(--color-slate);
}
.team-groups {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
.team-company-group {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 0;
}
.team-company-group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(120, 216, 207, 0.28);
}
.team-company-group__logo {
  display: block;
  flex: 0 0 104px;
  width: 104px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}
.team-company-group__head h3 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.team-card {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(120, 216, 207, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #0F153A;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.team-card::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--color-signal-teal), rgba(239, 92, 117, 0.78));
}
.team-card__body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  padding: 0 24px 24px;
  box-sizing: border-box;
}
.team-card__summary {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 24px 52px 24px 24px;
  cursor: pointer;
  list-style: none;
}
.team-card__summary::-webkit-details-marker {
  display: none;
}
.team-card__summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--color-signal-teal);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}
.team-card[open] .team-card__summary::after {
  content: "−";
}
.team-card__name {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}
.team-card__role {
  color: var(--color-signal-teal);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.team-card__body > p:last-child {
  color: var(--color-slate);
  font-size: 14.5px;
  line-height: 1.45;
  margin: 0;
}
.team-card.is-typing .team-card__body > p::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.14em;
  vertical-align: -0.14em;
  background: var(--color-signal-teal);
  animation: team-typewriter-caret 700ms steps(1, end) infinite;
}
@keyframes team-typewriter-caret {
  50% { opacity: 0; }
}
.team-card:hover,
.team-card:focus-within {
  border-color: rgba(120, 216, 207, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  transform: translateY(-3px);
}
.team-card__summary:focus-visible {
  outline: 3px solid var(--color-signal-teal);
  outline-offset: -3px;
}
@media (max-width: 1180px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .team-groups { gap: 22px; }
  .team-company-group { gap: 12px; }
  .team-company-group__head { gap: 12px; }
  .team-company-group__logo {
    flex-basis: 88px;
    width: 88px;
    height: 28px;
  }
  .team-grid { grid-template-columns: 1fr; }
  .team-card {
    min-height: 0;
  }
  .team-card__summary { padding: 18px 48px 18px 18px; }
  .team-card__summary::after { right: 18px; }
  .team-card__body { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card__body {
    transition: none;
  }
  .team-card.is-typing .team-card__body > p::after {
    animation: none;
  }
}

/* CTA final
--------------------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, #070A26 0%, #11163D 50%, #1B245C 100%);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(120, 216, 207, 0.18), transparent 60%),
    radial-gradient(600px 380px at 0% 100%, rgba(242, 93, 122, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; } }
.cta-card h2 {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
}
.cta-card h2 .accent {
  background: linear-gradient(135deg, #78D8CF, #57C7F3 60%, #8D7CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-card p {
  color: var(--color-slate);
  margin-top: 16px;
  font-size: 18px;
  max-width: 56ch;
}
.cta-form,
.contact-panel {
  background: rgba(11, 14, 46, 0.55);
  border: 1px solid rgba(120, 216, 207, 0.20);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
  backdrop-filter: blur(10px);
}
.cta-form {
  position: relative;
  overflow: hidden;
  transition: min-height 260ms ease, border-color 260ms ease, background 260ms ease;
}
.cta-form.is-success {
  min-height: 430px;
  align-content: center;
  overflow: visible;
  border-color: rgba(79, 214, 163, 0.42);
  background:
    radial-gradient(260px 180px at 50% 18%, rgba(79, 214, 163, 0.18), transparent 70%),
    rgba(11, 14, 46, 0.62);
  overscroll-behavior: auto;
  touch-action: pan-y;
}
.contact-form-fields {
  display: grid;
  gap: 14px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 240ms ease, transform 320ms ease;
}
.cta-form.is-success .contact-form-fields {
  position: absolute;
  inset: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
}
.contact-success {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 360px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 320ms ease 120ms, transform 420ms cubic-bezier(.2,.8,.2,1) 120ms;
  overscroll-behavior: auto;
  touch-action: pan-y;
}
.contact-success[hidden] {
  display: none;
}
.cta-form.is-success .contact-success {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.contact-success:focus {
  outline: none;
}
.contact-success__mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(79, 214, 163, 0.10);
  box-shadow: 0 0 0 1px rgba(79, 214, 163, 0.24), 0 18px 60px rgba(79, 214, 163, 0.18);
}
.contact-success__mark svg {
  width: 78px;
  height: 78px;
}
.contact-success__circle,
.contact-success__check {
  fill: none;
  stroke: var(--status-low);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-success__circle {
  opacity: 0.28;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
}
.contact-success__check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.cta-form.is-success .contact-success__circle {
  animation: success-draw 620ms ease forwards 180ms;
}
.cta-form.is-success .contact-success__check {
  animation: success-draw 520ms ease forwards 520ms;
}
.contact-success__eyebrow {
  margin: 8px 0 0 !important;
  font-family: var(--font-display);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--status-low) !important;
}
.contact-success h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}
.contact-success p {
  max-width: 34ch;
  margin: 0;
  color: var(--color-slate);
  font-size: 16px;
}
@keyframes success-draw {
  to { stroke-dashoffset: 0; }
}
.contact-panel__head h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 14px;
}
.contact-panel > p {
  font-size: 15.5px;
  color: var(--color-slate);
  margin: 0;
}
.contact-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.contact-actions .btn {
  justify-content: center;
}
.contact-note {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px !important;
}
.cta-form label {
  display: grid;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate);
}
.cta-form input, .cta-form select, .cta-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(7, 10, 38, 0.5);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--color-white);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  border-color: var(--color-signal-teal);
  background: rgba(7, 10, 38, 0.7);
}
.cta-form .btn { justify-content: center; margin-top: 4px; }
.cta-form .hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.privacy-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
  color: var(--color-slate) !important;
}
.privacy-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--color-signal-teal);
}
.privacy-check a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.turnstile-slot {
  min-height: 0;
}
.turnstile-slot:not(:empty) {
  display: grid;
  justify-content: center;
  padding: 4px 0;
}
.form-status {
  min-height: 20px;
  margin: 0 !important;
  font-size: 13px !important;
  text-align: center;
}
.form-status[data-state="success"] { color: var(--status-low); }
.form-status[data-state="error"] { color: var(--status-high); }
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta-form,
  .contact-form-fields,
  .contact-success {
    transition: none;
  }
  .cta-form.is-success .contact-success__circle,
  .cta-form.is-success .contact-success__check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Cookie consent
--------------------------------------------------------------- */
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(7, 10, 38, 0.58);
  backdrop-filter: blur(10px);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__dialog {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(120,216,207,0.16), transparent 65%),
    linear-gradient(145deg, rgba(17,22,61,0.98), rgba(7,10,38,0.98));
  border: 1px solid rgba(120,216,207,0.28);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
  padding: 24px;
}
.cookie-consent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-consent__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
  font-size: 24px;
  line-height: 1;
}
.cookie-consent__dialog h2 {
  font-size: clamp(28px, 4vw, 42px);
}
.cookie-consent__dialog p {
  margin-top: 12px;
  color: var(--color-slate);
}
.cookie-consent__options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.cookie-option strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-white);
}
.cookie-option small {
  display: block;
  color: var(--color-slate);
  font-size: 12.5px;
  margin-top: 2px;
}
.cookie-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--color-signal-teal);
}
.cookie-option.is-disabled { opacity: 0.78; }
.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.cookie-consent__policy {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-signal-teal);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cookie-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-consent__links .cookie-consent__policy {
  margin-top: 18px;
}
.cookie-widget {
  position: fixed;
  right: var(--floating-edge);
  bottom: var(--floating-edge);
  z-index: 940;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120,216,207,0.45);
  background: rgba(7,10,38,0.82);
  color: var(--color-clean-mint);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .cookie-consent {
    padding: 12px;
    place-items: end stretch;
  }
  .cookie-consent__dialog {
    padding: 18px;
    border-radius: 18px;
  }
  .cookie-option {
    align-items: flex-start;
  }
  .cookie-consent__actions {
    display: grid;
  }
  .cookie-consent__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cookie-widget {
    right: 12px;
    bottom: 12px;
  }
}

/* Policy page
--------------------------------------------------------------- */
.policy-page {
  min-height: 100vh;
  padding: 92px 0 var(--space-7);
  background:
    radial-gradient(740px 420px at 85% 10%, rgba(120,216,207,0.16), transparent 60%),
    linear-gradient(180deg, var(--color-midnight), var(--color-road-navy));
}
.policy-card {
  display: grid;
  gap: 22px;
  padding-top: 0;
  padding-bottom: 0;
}
.policy-card h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
}
.policy-lede {
  max-width: 760px;
  color: var(--color-slate);
  font-size: 19px;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.policy-grid--wide {
  grid-template-columns: 1fr;
}
.policy-grid article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(120,216,207,0.18);
  background: rgba(255,255,255,0.045);
}
.policy-grid h2 {
  font-size: 21px;
  margin-bottom: 10px;
}
.policy-grid p {
  color: var(--color-slate);
  font-size: 15px;
}
.policy-grid a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .policy-page {
    padding-top: 84px;
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .policy-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer
--------------------------------------------------------------- */
footer {
  background: var(--color-midnight);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--color-white); font-size: 14px; }
footer a:hover { color: var(--color-signal-teal); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--color-slate);
  font-size: 13px;
}

/* Small utility */
.kicker {
  color: var(--color-slate);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.muted { color: var(--color-muted); }
.center { text-align: center; }

/* =============================================================
   Hero scene v2 — Live detection cockpit
============================================================= */
.hero-scene {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #080b22 0%, #0e1336 100%);
  border: 1px solid rgba(120, 216, 207, 0.20);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.hero-scene .road-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

@keyframes lane-scroll {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}
.hero-scene .lane-center {
  animation: lane-scroll 3s linear infinite;
}

/* Sweeping scan line */
.scan-line {
  position: absolute;
  left: 6%; right: 6%;
  height: 90px;
  background: linear-gradient(180deg,
    rgba(120, 216, 207, 0) 0%,
    rgba(120, 216, 207, 0.06) 35%,
    rgba(120, 216, 207, 0.18) 50%,
    rgba(120, 216, 207, 0.06) 65%,
    rgba(120, 216, 207, 0) 100%);
  filter: blur(0.5px);
  animation: scan-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.scan-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(120, 216, 207, 0.55);
}
@keyframes scan-sweep {
  0%   { top: -10%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Detection bounding boxes (corner brackets) */
.detection-box {
  position: absolute;
  pointer-events: none;
  border-radius: 4px;
}
.detection-box .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.6px solid currentColor;
}
.detection-box .corner.tl { top: -2px; left: -2px;  border-right: 0; border-bottom: 0; }
.detection-box .corner.tr { top: -2px; right: -2px; border-left: 0;  border-bottom: 0; }
.detection-box .corner.bl { bottom: -2px; left: -2px;  border-right: 0; border-top: 0; }
.detection-box .corner.br { bottom: -2px; right: -2px; border-left: 0;  border-top: 0; }
.detection-box.is-high   { color: var(--status-high); }
.detection-box.is-med    { color: var(--status-medium); }
.detection-box.is-low    { color: var(--status-low); }
.detection-box.is-ai     { color: var(--status-ai); }

.detection-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed currentColor;
  border-radius: 4px;
  opacity: 0.35;
}

.detection-box .lbl {
  position: absolute;
  top: -24px; left: -2px;
  background: currentColor;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detection-box .lbl > span:first-child { color: #07091e; }
.detection-box .lbl .conf {
  color: rgba(7, 9, 30, 0.65);
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
}

@keyframes box-scan {
  0%, 4%   { opacity: 0; transform: scale(0.94); }
  10%, 88% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(1); }
}
.detection-box {
  animation: box-scan 6s ease-out infinite;
  transform-origin: center;
}
.detection-box.delay-0 { animation-delay: 0.1s; }
.detection-box.delay-1 { animation-delay: 0.8s; }
.detection-box.delay-2 { animation-delay: 1.5s; }

/* Telemetry chip — top-left */
.telemetry-panel {
  position: absolute;
  top: 18px; left: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(7, 10, 38, 0.78);
  border: 1px solid rgba(120, 216, 207, 0.30);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}
.telemetry-panel .tp-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-signal-teal);
  position: relative;
  flex-shrink: 0;
}
.telemetry-panel .tp-pulse::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(120, 216, 207, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
.telemetry-panel .tp-data {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 18px;
  font-family: var(--font-display);
}
.telemetry-panel .tp-data .lbl {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate);
  display: block;
  margin-bottom: 1px;
}
.telemetry-panel .tp-data .val {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  font-feature-settings: "tnum";
}

/* Detection log — top-right */
.detection-log {
  position: absolute;
  top: 18px; right: 18px;
  width: 220px;
  background: rgba(11, 14, 46, 0.85);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}
.detection-log .dl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-slate);
}
.detection-log .dl-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-signal-teal);
}
.detection-log .dl-head .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-signal-teal);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.8); }
}
.detection-log ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.detection-log li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
}
.detection-log li .pip { width: 8px; height: 8px; border-radius: 50%; }
.detection-log li .what {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detection-log li .when {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--color-slate);
}

/* Accelerometer strip — bottom */
.accel-strip {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  background: rgba(11, 14, 46, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 14px 8px;
  backdrop-filter: blur(12px);
}
.accel-strip .as-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 4px;
}
.accel-strip .as-head .threshold { color: var(--color-decision-coral); }
.accel-strip svg { display: block; width: 100%; height: 40px; }
.accel-strip .trace {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: trace-draw 4s ease-out forwards;
}
@keyframes trace-draw {
  to { stroke-dashoffset: 0; }
}

/* Vehicle marker (on road) */
.veh-marker {
  position: absolute;
  bottom: 90px; left: 50%;
  transform: translateX(-50%);
}
.veh-marker .ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(120, 216, 207, 0.10);
  border: 1px solid rgba(120, 216, 207, 0.40);
  display: grid; place-items: center;
}
.veh-marker .ring::before {
  content: "";
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--color-signal-teal);
}
.veh-marker .ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(120, 216, 207, 0.4);
  animation: pulse 2.4s ease-out infinite;
}

/* Compact view fixes for hero overlay on smaller cards */
@media (max-width: 540px) {
  .telemetry-panel .tp-data { grid-template-columns: repeat(2, auto); }
  .telemetry-panel .tp-data > div:nth-child(3) { display: none; }
  .detection-log { width: 180px; }
}

/* =============================================================
   Top scroll-progress bar
============================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-signal-teal), var(--status-ai));
  z-index: 100;
  transition: width 80ms linear;
}

.back-to-top {
  position: fixed;
  right: var(--floating-edge);
  bottom: calc(var(--floating-edge) + var(--floating-cookie-height) + var(--floating-stack-gap));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-ink);
  color: var(--color-signal-teal);
  border: 1px solid rgba(120, 216, 207, 0.38);
  box-shadow: 0 16px 40px rgba(7, 10, 38, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background 180ms ease;
  z-index: 90;
}
.back-to-top:hover {
  background: #1d2645;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top span {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

/* =============================================================
   Network cards — logos
============================================================= */
/* Brand mark in nav uses real icon */
.brand-mark--img {
  background: none;
  border: 0;
  width: 36px; height: 36px;
  flex-basis: 36px;
  overflow: hidden;
  border-radius: 10px;
}
.brand-mark--img::before, .brand-mark--img::after { display: none; }
.brand-mark--img img { width: 100%; height: 100%; display: block; }

/* =============================================================
   Tech-card upgraded illustrations
============================================================= */
.tech-card .tc-illustration {
  height: 130px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 30% 30%, rgba(120, 216, 207, 0.14), transparent 60%),
    rgba(7, 10, 38, 0.55);
  position: relative;
  overflow: hidden;
  padding: 12px;
  display: block;
}
.tech-card .tc-illustration svg { width: 100%; height: 100%; }

/* Animated dots/scan inside tech illustrations */
@keyframes blip {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
.tc-blip { animation: blip 1.8s ease-in-out infinite; }
.tc-blip-2 { animation: blip 1.8s ease-in-out infinite; animation-delay: 0.6s; }
.tc-blip-3 { animation: blip 1.8s ease-in-out infinite; animation-delay: 1.2s; }

/* =============================================================
   Counter ready style
============================================================= */
.count[data-target] {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   v2 — Logos in network section + small polish
   ============================================================ */

.network-card .nc-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 4px;
  padding: 14px 18px;
  background: var(--color-ink);
  border-radius: 14px;
  align-self: stretch;
}
.network-card .nc-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
/* Dark/colorful logos need a light plate so they stay readable. */
.network-card .nc-logo--light {
  background: #F4F1FA;
}

.tech-card { cursor: default; }
.tech-card .tc-illustration { transition: transform 500ms ease; }
.tech-card:hover .tc-illustration { transform: translateY(-2px) scale(1.02); }

.hero-meta .stat .num { font-variant-numeric: tabular-nums; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }


/* ============================================================
   v3 — Map-view hero (van traces street, dots aggregate)
   ============================================================ */

.hero-mapview {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, #0d1238 0%, #06081f 75%);
  border: 1px solid rgba(120, 216, 207, 0.18);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}
.hero-mapview .mapview-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* Trail dots */
.trail-dot {
  filter: drop-shadow(0 0 6px currentColor);
  transition: r 220ms ease-out;
}
.trail-dot.trail-low  { fill: var(--status-low);    color: var(--status-low); }
.trail-dot.trail-med  { fill: var(--status-medium); color: var(--status-medium); }
.trail-dot.trail-high { fill: var(--status-high);   color: var(--status-high); }

#hero-vehicle {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

/* Active road overlay reveal animation works via JS setting stroke-dasharray */
#active-overlay {
  filter: drop-shadow(0 0 8px currentColor);
  transition: stroke-dasharray 1400ms cubic-bezier(.55,.1,.35,1);
}

.roads-aggregate use.agg {
  filter: drop-shadow(0 0 6px currentColor);
}
.roads-aggregate use.agg-low  { color: #4FD6A3; }
.roads-aggregate use.agg-med  { color: #F6C85F; }
.roads-aggregate use.agg-high { color: #F05A78; }

/* Aggregate status card — bottom-left */
.aggregate-card {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 4;
  background: rgba(7, 10, 38, 0.78);
  border: 1px solid rgba(120, 216, 207, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 240px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.aggregate-card .ac-head { display: flex; flex-direction: column; gap: 2px; }
.aggregate-card .ac-lbl {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-slate);
}
.aggregate-card .ac-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-white);
}
.aggregate-card .ac-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.aggregate-card .ac-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.aggregate-card .ac-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--status-low), var(--status-medium), var(--status-high));
  transition: width 200ms ease-out;
}
.aggregate-card .ac-state {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-signal-teal);
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}
.aggregate-card .ac-state.is-low  { color: var(--status-low); }
.aggregate-card .ac-state.is-med  { color: var(--status-medium); }
.aggregate-card .ac-state.is-high { color: var(--status-high); }

/* Legend strip bottom-right */
.map-legend {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.map-legend .leg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 10, 38, 0.66);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--color-slate);
  backdrop-filter: blur(8px);
}
.map-legend .leg i {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 600px) {
  .aggregate-card { min-width: 0; right: 18px; }
  .map-legend { display: none; }
}

section:not(.hero):not(.team-company-group),
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
