/* ===========================================================
   TelConHN — Sistema de diseño
   =========================================================== */

:root {
  --bg: #0a0d14;
  --bg-2: #0f1422;
  --bg-3: #151b2c;
  --surface: #11172a;
  --surface-2: #1a2238;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e7ecf5;
  --text-2: #a8b1c4;
  --text-3: #6b7388;
  --muted: #5b6478;

  --accent: #FFC800;
  --accent-2: #CC9B00;
  --accent-soft: rgba(255,200,0,0.12);
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --font-sans: 'Inter Tight', 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --bg-2: #f4f4f2;
  --bg-3: #e9e9e5;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);
  --text: #0c0a09;
  --text-2: #44403c;
  --text-3: #78716c;
  --muted: #a8a29e;
  --accent: #FFC800;
  --accent-2: #CC9B00;
  --accent-soft: rgba(255,200,0,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

.mono { font-family: var(--font-mono); font-feature-settings: normal; }
.muted { color: var(--text-3); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* === LIVE DOT === */
.dot-live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); position: relative; vertical-align: middle;
  box-shadow: 0 0 8px var(--accent);
}
.dot-live::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  transition: all 0.2s ease; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #1a1200; font-weight: 600;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--accent); }
.btn-ghost {
  background: transparent; border-color: var(--border-strong); color: var(--text);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 500; font-size: 13px;
  transition: gap 0.2s;
}
.btn-link:hover { gap: 10px; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,13,20,0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
[data-theme="light"] .nav { background: rgba(250,250,249,0.7); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.logo-svg { display: block; }
.nav-links {
  display: flex; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; font-size: 14px; color: var(--text-2);
  border-radius: var(--radius); transition: all 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::before {
  content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 1px; background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--text);
  transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-burger span { width: 18px; height: 2px; background: currentColor; border-radius: 1px; }

/* === SECTION HEAD === */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--text-3); letter-spacing: 0.08em; margin-bottom: 20px;
}
.eyebrow-line { width: 28px; height: 1px; background: var(--accent); }

.section-title {
  font-size: clamp(28px, 4vw, 48px); line-height: 1.05;
  font-weight: 500; letter-spacing: -0.025em;
  max-width: 22ch; text-wrap: balance;
}
.section-title-accent { color: var(--accent); }
.section-sub {
  font-size: 17px; color: var(--text-2); max-width: 60ch;
  margin-top: 16px; line-height: 1.55;
}
.section-head { margin-bottom: 44px; max-width: 800px; }

.page-header { padding: 80px 0 40px; }
.cta-banner { padding: 80px 0; border-top: 1px solid var(--border); }
.cta-banner-content {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}

/* === HERO === */
.hero {
  position: relative; padding: 60px 0 100px;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(255,200,0,0.06), transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(255,200,0,0.04), transparent 60%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  opacity: 0.5;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border: 1px solid var(--border-strong);
  border-radius: 100px; background: var(--surface);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
  letter-spacing: 0.08em; margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(42px, 6vw, 76px); line-height: 0.98;
  font-weight: 500; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title-accent {
  color: var(--accent); font-style: italic; font-weight: 400;
  font-family: 'Instrument Serif', Georgia, serif;
}
.hero-sub {
  font-size: 18px; color: var(--text-2); margin: 28px 0 36px;
  max-width: 52ch; line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-copy,
.hero-viz,
.map-card,
.map-header,
.map-footer,
.speed-badge {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease-out forwards;
}
.hero-copy { animation-delay: 0.15s; }
.hero-viz { animation-delay: 0.25s; }
.map-card { animation-delay: 0.35s; }
.map-header { animation-delay: 0.45s; }
.map-footer { animation-delay: 0.50s; }
.speed-badge { animation-delay: 0.55s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-12px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

/* === MAP CARD === */
.hero-viz { position: relative; }
.map-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,200,0,0.05),
              inset 0 1px 0 rgba(255,255,255,0.04);
}
.map-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.map-tabs { display: flex; gap: 16px; }
.map-tabs .tab {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-3); padding-bottom: 4px;
}
.map-tabs .tab.active { color: var(--accent); border-bottom: 1px solid var(--accent); }
.map-time {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--accent);
}
.map-body {
  position: relative; aspect-ratio: 16/11;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(34,197,94,0.05), transparent 50%),
    var(--bg-2);
  color: var(--text-3);
}
[data-theme="light"] .map-body { background: var(--bg-2); }
.map-svg { width: 100%; height: 100%; }

.speed-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 8px 12px;
  font-family: var(--font-mono);
  display: flex; align-items: baseline; gap: 4px;
  transition: all 0.3s;
}
.speed-badge.over {
  border-color: var(--danger);
  background: color-mix(in oklch, var(--danger) 12%, var(--surface));
  box-shadow: 0 0 24px -4px var(--danger);
}
.speed-num { font-size: 22px; font-weight: 600; color: var(--text); }
.speed-badge.over .speed-num { color: var(--danger); }
.speed-unit { font-size: 10px; color: var(--text-3); letter-spacing: 0.05em; }

.alert-toast {
  position: absolute; right: 16px; top: 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius); padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  min-width: 240px;
  animation: slideIn 0.4s cubic-bezier(.4,1.4,.5,1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.alert-toast.speed { border-left-color: var(--danger); }
.alert-toast.geofence { border-left-color: var(--warn); }
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.alert-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--danger); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.alert-toast.geofence .alert-icon { background: var(--warn); }
.alert-title { font-size: 13px; font-weight: 500; color: var(--text); }
.alert-meta { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.alert-time { margin-left: auto; font-size: 10px; color: var(--text-3); font-family: var(--font-mono); }

.map-footer {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  border-top: 1px solid var(--border);
}
.map-stat {
  padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--border);
}
.map-stat:last-child { border-right: 0; }
.ms-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; }
.ms-value { font-family: var(--font-mono); font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; }

/* Floating chips */
.chip {
  position: absolute;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 8px 12px;
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}
.chip-1 { top: -16px; left: -24px; animation-delay: 0s; }
.chip-2 { bottom: 80px; left: -36px; animation-delay: 1.3s; }
.chip-3 { top: 50%; right: -28px; animation-delay: 2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chip-label { font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; }
.chip-val { font-size: 14px; color: var(--text); font-weight: 500; }

/* === PROCESS / SCROLL ANIMATION === */
.process { position: relative; padding: 100px 0; }
.process-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px;
  align-items: start;
}
.process-stages {
  display: flex; flex-direction: column; gap: 16px; margin-top: 40px;
}
.stage {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.4s;
  opacity: 0.5;
}
.stage.active {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 6%, var(--surface));
  opacity: 1;
  transform: translateX(8px);
}
.stage-num {
  font-family: var(--font-mono); font-size: 20px;
  color: var(--text-3); font-weight: 600;
  align-self: start;
}
.stage.active .stage-num { color: var(--accent); }
.stage-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.stage-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

.process-viz {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 100/110;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
}
.process-overlay {
  position: absolute; top: 16px; left: 16px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 6px 10px;
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
  z-index: 2;
}
.process-svg { width: 100%; height: 100%; }
.process-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface-2); border-top: 1px solid var(--border);
}
.process-meta > div {
  padding: 10px; border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 2px;
}
.process-meta > div:last-child { border-right: 0; }
.process-meta span { font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; }
.process-meta b { font-size: 12px; font-weight: 500; color: var(--text); }

/* === CAPABILITIES === */
.capabilities { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px;
}
.cap-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.3s; position: relative;
  overflow: hidden;
}
.cap-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(34,197,94,0.2);
}
.cap-card.soon::after {
  content: 'PRÓXIMAMENTE';
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--warn);
  border: 1px solid var(--warn);
  padding: 3px 8px; border-radius: 100px;
  background: color-mix(in oklch, var(--warn) 8%, transparent);
}
.cap-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.cap-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; }
.cap-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cap-title { font-size: 19px; font-weight: 500; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.02em; }
.cap-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 20px; }
.cap-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.cap-bullets li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); font-family: var(--font-mono); }
.bullet-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* === PRODUCTS === */
.products { padding: 72px 0; }
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px;
}
.prod-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); }
.prod-card.soon::before {
  content: 'PRÓXIMAMENTE';
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--warn);
  border: 1px solid var(--warn);
  padding: 3px 8px; border-radius: 100px;
  background: color-mix(in oklch, var(--warn) 8%, transparent);
  z-index: 2;
}
.prod-visual {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  aspect-ratio: 16/9;
  color: var(--text-3);
}
.prod-svg { width: 100%; height: 100%; }
.prod-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.prod-tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 12px; }
.prod-name { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }
.prod-sub { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.prod-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 18px; }
.prod-bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; flex: 1; }
.prod-bullets li {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-2);
}
.prod-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.prod-price { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* === DEMO DASHBOARD === */
.demo { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.dash {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.dash-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.dash-bar-left { display: flex; align-items: center; gap: 32px; }
.dash-logo-mini { font-weight: 600; font-size: 13px; color: var(--accent); letter-spacing: -0.01em; }
.dash-nav { display: flex; gap: 4px; }
.dash-nav span {
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 12px; color: var(--text-3); cursor: pointer;
}
.dash-nav span.active { background: var(--surface); color: var(--text); }
.dash-bar-right { display: flex; align-items: center; gap: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.dash-clock { color: var(--accent); }

.dash-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "kpi kpi" "fleet chart" "fleet events";
  gap: 0;
}
.dash-grid > * { min-width: 0; }
.kpi-row > * { min-width: 0; }
.kpi-row {
  grid-area: kpi;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.kpi {
  padding: 18px 20px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.kpi:last-child { border-right: 0; }
.kpi-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }
.kpi-value { font-size: clamp(22px, 6vw, 28px); font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kpi-of { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); font-weight: 400; }
.kpi-trend { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.kpi-trend.up { color: var(--accent); }
.kpi-trend.down { color: var(--warn); }

.dash-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dash-card:last-child { border-bottom: 0; }
.dash-card-head {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.chart-wrap, .map-body {
  overflow: hidden;
  position: relative;
}

.dash-card-head h4 { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.1em; font-weight: 500; }
.dash-card-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }

.dash-fleet { grid-area: fleet; border-right: 1px solid var(--border); }
.fleet-table { width: 100%; border-collapse: collapse; }
.fleet-table th {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
  letter-spacing: 0.1em; font-weight: 500; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.fleet-table td {
  padding: 12px 14px; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.fleet-table tr { cursor: pointer; transition: background 0.15s; }
.fleet-table tr:hover { background: var(--surface); }
.fleet-table tr.sel { background: color-mix(in oklch, var(--accent) 8%, transparent); }
.fleet-table tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.pill { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.pill-mov { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.pill-idle { background: var(--warn); }
.pill-off { background: var(--text-3); }
.fuel-bar {
  display: inline-block; width: 50px; height: 4px;
  background: var(--surface-2); border-radius: 2px; margin-right: 8px;
  overflow: hidden; vertical-align: middle;
}
.fuel-bar-fill { height: 100%; transition: width 0.5s; }

.dash-chart { grid-area: chart; }
.chart-wrap { position: relative; padding: 16px; height: 220px; color: var(--text-3); }
.chart-svg { width: 100%; height: 100%; }
.chart-current {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono);
}
.chart-current-val { font-size: 28px; color: var(--accent); font-weight: 500; }
.chart-current-unit { font-size: 11px; color: var(--text-3); margin-left: 4px; }

.dash-events { grid-area: events; }
.event-list { list-style: none; max-height: 240px; overflow-y: auto; }
.ev {
  display: grid; grid-template-columns: auto auto 1fr;
  gap: 12px; padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  align-items: center;
}
.ev:last-child { border-bottom: 0; }
.ev-time { color: var(--text-3); }
.ev-code {
  font-size: 9px; padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.1em; font-weight: 600;
}
.ev-ok .ev-code { background: var(--accent-soft); color: var(--accent); }
.ev-warn .ev-code { background: color-mix(in oklch, var(--warn) 14%, transparent); color: var(--warn); }
.ev-info .ev-code { background: color-mix(in oklch, var(--info) 14%, transparent); color: var(--info); }
.ev-msg { color: var(--text-2); }

.demo-cta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 40px; flex-wrap: wrap;
}
.demo-cta-note { font-size: 13px; color: var(--text-3); }

/* === INDUSTRIES === */
.industries { padding: 72px 0; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.ind-card {
  padding: 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: all 0.2s; position: relative;
}
.ind-card:hover { background: var(--surface); }
.ind-card.soon { opacity: 0.55; }
.ind-card.soon::after {
  content: 'pronto'; position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 9px; color: var(--warn); letter-spacing: 0.1em;
}
.ind-code { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.ind-name { font-size: 16px; font-weight: 500; margin: 12px 0 6px; }
.ind-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* === CONTACT === */
.contact { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.contact-info { margin: 32px 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.ci-row { display: grid; grid-template-columns: 130px 1fr; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.ci-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }
.ci-val { font-size: 14px; color: var(--text); }
.ci-val:hover[href] { color: var(--accent); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 32px;
}
.form-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.form-head-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  color: var(--text); font: inherit; font-size: 14px;
  transition: all 0.2s; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* === FOOTER === */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-tag { font-size: 13px; color: var(--text-2); max-width: 32ch; line-height: 1.5; }
.footer-tag.muted { color: var(--text-3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px; color: var(--text-3);
  font-family: var(--font-mono);
}

/* === PRIVACY / GENERIC PAGE === */
.page { padding: 80px 0 100px; max-width: 760px; margin: 0 auto; }
.page h1 { font-size: 42px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 16px; }
.page .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 40px; }
.page h2 { font-size: 22px; font-weight: 500; margin: 40px 0 12px; letter-spacing: -0.01em; }
.page p { color: var(--text-2); margin-bottom: 12px; line-height: 1.65; }
.page ul { color: var(--text-2); padding-left: 20px; line-height: 1.65; margin-bottom: 12px; }

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .page-header { padding: 48px 0 32px; }
  .cta-banner { padding: 56px 0; }
  .page { padding: 48px 0 80px; }

  .hero-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 80px; }
  .hero-title { font-size: clamp(34px, 8vw, 56px); }
  .hero-sub { max-width: 100%; }
  .hero-viz { width: 100%; }
  .map-header { flex-wrap: wrap; gap: 12px; }
  .map-tabs { flex-wrap: wrap; }
  .map-footer { grid-template-columns: 1fr; }
  .map-stat { border-right: 0; }
  .process-meta { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px;
    transform: translateY(-100%); transition: transform 0.3s; opacity: 0;
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-burger { display: flex; }
  .dash-grid { grid-template-columns: 1fr; grid-template-areas: "kpi" "fleet" "chart" "events"; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-child(n+3) { border-bottom: 0; }
  .chip { display: none; }
  .map-footer { grid-template-columns: 1fr 1fr; }
  .map-stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 32px 0 60px; }
  .hero-title { font-size: clamp(30px, 12vw, 44px); }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .nav-container { padding: 0 12px; }
  .nav-cta { padding: 8px 14px; }
  .hero-grid, .process-grid, .dash-grid { gap: 24px; }
  .map-body { min-height: 320px; aspect-ratio: auto; }
  .chart-wrap { height: 280px; }
  .map-footer { grid-template-columns: 1fr; }
  .cta-banner-content { flex-direction: column; align-items: flex-start; gap: 24px; }
  .map-stat { border-right: 0; }
  .kpi { padding: 16px; }
  .map-header { justify-content: space-between; }
  .map-tabs { gap: 10px; }
  .map-time { width: 100%; justify-content: flex-start; }
  .process { padding: 60px 0; }
  .process-meta { grid-template-columns: 1fr; }
  .footer-top { gap: 32px; }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-grid { gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .alert-toast { right: 8px; top: 8px; min-width: 200px; padding: 8px 10px; }
  .speed-badge { left: 8px; top: 8px; padding: 6px 10px; }
  .speed-num { font-size: 18px; }

  .dash-bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .dash-bar-left { gap: 12px; width: 100%; }
  .dash-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav span { white-space: nowrap; padding: 6px 10px; font-size: 11px; }
  .dash-bar-right { width: 100%; justify-content: space-between; gap: 10px; }
}
@media (max-width: 340px) {
  .kpi-row { grid-template-columns: 1fr; }
  .kpi { border-right: 0; padding: 18px 20px; border-bottom: 1px solid var(--border); }
  .kpi:nth-child(n+3) { border-bottom: 1px solid var(--border); }
  .kpi:last-child { border-bottom: 0; }
}
