
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e1117;
  --surface: #13151f;
  --surface-2: #1a1a22;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f4f4fa;
  --text-secondary: #a0a0bc;
  --text-tertiary: #72728a;
  --accent: #6c5ce7;
  --accent-2: #a29bfe;
  --green: #00e676;
  --blue: #448aff;
  --orange: #ff9100;
  --pink: #ff4081;
  --cyan: #00e5ff;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(5,5,7,0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
}
nav.scrolled { background: rgba(5,5,7,0.92); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.nav-links a.nav-cta:hover { color: #fff; opacity: 0.85; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}
.nav-status::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}

/* ===== HERO - compact ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.30;
  animation: float 20s ease-in-out infinite;
  will-change: transform;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--accent); top: -10%; left: -8%; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--pink); bottom: 5%; right: -8%; animation-delay: -7s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--cyan); top: 35%; right: 20%; animation-delay: -14s; opacity: 0.12; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -30px) scale(1.04); }
  66% { transform: translate(-20px, 20px) scale(0.96); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(108,92,231,0.1);
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  /* Prevent shimmer caused by background compositing layers */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}
.hero h1 .l1 {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: auto;
}
.hero h1 .l2 {
  display: block;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: auto;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,92,231,0.4); }

.btn-ghost {
  padding: 12px 28px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }

/* ===== STATS - embedded at bottom of hero ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hstat {
  background: var(--surface);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.3s;
}
.hstat:hover { background: var(--surface-2); }

.hstat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -2px;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}
.hstat-num .sfx { font-size: 24px; }
.hstat-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-top: 4px;
}

.c-green { color: var(--green); }
.c-blue { color: var(--blue); }
.c-orange { color: var(--orange); }
.c-pink { color: var(--pink); }

/* ===== SHARED SECTION ===== */
.container { max-width: 1200px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  font-weight: 600;
  padding: 5px 12px;
  background: rgba(108,92,231,0.08);
  border-radius: 6px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0;
}

/* ===== CHARTS ROW ===== */
.charts-row {
  padding: 48px 32px 56px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.chart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--pink), transparent);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-title { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.chart-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

.chart-legend { display: flex; gap: 16px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }

.chart-svg { width: 100%; height: 220px; }

.chart-x {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px 0;
  font-size: 10px;
  color: var(--text-tertiary);
  font-family: 'Inter', sans-serif;
}

/* Right side: donut + bars stacked */
.side-charts { display: flex; flex-direction: column; gap: 16px; }

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
}

.mini-title { font-size: 13px; font-weight: 700; margin-bottom: 16px; }

.donut-row { display: flex; align-items: center; gap: 24px; }
.donut-chart { width: 120px; height: 120px; flex-shrink: 0; }

.donut-legend { display: flex; flex-direction: column; gap: 6px; }
.dl-item { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.dl-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dl-txt { color: var(--text-secondary); }
.dl-val { margin-left: auto; font-weight: 600; font-family: 'Inter', sans-serif; font-size: 11px; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-item { display: flex; flex-direction: column; gap: 4px; }
.bar-head { display: flex; justify-content: space-between; font-size: 11px; }
.bar-name { color: var(--text-secondary); }
.bar-val { font-weight: 600; font-family: 'Inter', sans-serif; }
.bar-track { height: 6px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 1.5s cubic-bezier(0.16,1,0.3,1); width: 0; }


/* ===== HERO MAP ===== */
.hero-split {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  isolation: isolate;
  contain: layout style;
}
.hero-right {
  min-width: 0;
}
.hero-map-wrap {
  width: 100%;
}
.hero-map-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 2px;
}
.hero-map-grid {
  /* inherits map-card styles */
}

/* ===== LIVE MAP ===== */
.map-section { padding: 0; }

.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
}

.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
}

.map-container svg {
  width: 100%;
  height: 100%;
}

.map-state {
  fill: rgba(108,92,231,0.18);
  stroke: rgba(162,155,254,0.45);
  stroke-width: 0.5;
  transition: fill 0.5s, stroke 0.5s;
}
.map-state:hover {
  fill: rgba(108,92,231,0.32);
  stroke: rgba(162,155,254,0.7);
}

/* Ping animations */
.map-ping {
  position: absolute;
  pointer-events: none;
}
.map-ping-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 2;
}
.map-ping-ring {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  position: absolute;
  top: -12px;
  left: -12px;
  animation: pingRing 2s ease-out forwards;
  opacity: 0;
}

@keyframes pingRing {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.map-ping-label {
  position: absolute;
  top: -24px;
  left: 10px;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  color: var(--green);
  white-space: nowrap;
  animation: pingLabel 2.5s ease-out forwards;
  opacity: 0;
  background: rgba(5,5,7,0.8);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,230,118,0.15);
}

@keyframes pingLabel {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Connection lines from ping to map edge */
.map-ping-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0;
  animation: pingLine 2s ease-out forwards;
  transform-origin: left center;
}
@keyframes pingLine {
  0% { opacity: 0; width: 0; }
  20% { opacity: 0.4; width: 30px; }
  100% { opacity: 0; width: 60px; }
}

.map-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-side-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-side-title .live-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 100px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.map-side-title .live-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.map-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow: hidden;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  animation: feedIn 0.5s cubic-bezier(0.16,1,0.3,1);
}

@keyframes feedIn {
  0% { opacity: 0; transform: translateY(-10px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feed-product { font-weight: 600; color: var(--text); cursor: pointer; transition: opacity 0.2s; }
.feed-product:hover { opacity: 0.75; }
.feed-action { color: var(--text-secondary); }
.feed-city { color: var(--text-tertiary); font-family: 'Inter', sans-serif; font-size: 10px; margin-left: auto; flex-shrink: 0; }
.feed-time { color: var(--text-tertiary); font-family: 'Inter', sans-serif; font-size: 9px; flex-shrink: 0; margin-left: auto; }

.map-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-stat {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.map-stat-val {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: var(--green);
}
.map-stat-lbl {
  font-size: 9px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .map-card { grid-template-columns: 1fr; }
  .map-container { max-width: 400px; margin: 0 auto; }
}


/* ===== OPEN METRICS ===== */
.om-section {
  padding: 0 32px 64px;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}
.om-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.om-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.om-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.om-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}
.om-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.om-updated {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.om-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.om-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.om-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.om-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.6;
  border-radius: 0 0 var(--radius) var(--radius);
}
.om-card.c-green::after  { background: var(--green); }
.om-card.c-blue::after   { background: var(--blue); }
.om-card.c-purple::after { background: var(--accent); }
.om-card.c-orange::after { background: var(--orange); }
.om-card.c-pink::after   { background: var(--pink); }
.om-card.c-cyan::after   { background: var(--cyan); }

.om-icon {
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}
.om-val {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.om-card.c-green  .om-val { color: var(--green); }
.om-card.c-blue   .om-val { color: var(--blue); }
.om-card.c-purple .om-val { color: var(--accent-2); }
.om-card.c-orange .om-val { color: var(--orange); }
.om-card.c-pink   .om-val { color: var(--pink); }
.om-card.c-cyan   .om-val { color: var(--cyan); }

.om-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
}
.om-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
}
.om-trend.up {
  background: rgba(0,230,118,0.1);
  color: var(--green);
}
.om-trend.neutral {
  background: rgba(68,138,255,0.1);
  color: var(--blue);
}
.om-spark-row {
  margin-top: 10px;
}
.om-spark-row svg {
  width: 100%;
  height: 28px;
  display: block;
}

/* responsive */
@media (max-width: 1200px) { .om-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .om-grid { grid-template-columns: repeat(2, 1fr); } .om-section { padding: 0 20px 48px; } }
@media (max-width: 600px)  { .om-grid { grid-template-columns: 1fr 1fr; } .om-section { padding: 0 16px 40px; } .om-val { font-size: 22px; } }

/* ===== PRODUCTS - 3 col cards with chart ===== */
.products-section {
  padding: 16px 32px 56px;
}

.products-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active {
  background: rgba(108,92,231,0.15);
  border-color: rgba(108,92,231,0.3);
  color: var(--accent-2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-card {
  background: rgba(14,14,22,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.4s;
}
.product-card:hover::before { opacity: 1; }
.product-card[data-color="purple"]::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.product-card[data-color="green"]::before { background: linear-gradient(90deg, #00c853, var(--green)); }
.product-card[data-color="blue"]::before { background: linear-gradient(90deg, #2979ff, var(--cyan)); }
.product-card[data-color="orange"]::before { background: linear-gradient(90deg, #ff6d00, var(--orange)); }
.product-card[data-color="pink"]::before { background: linear-gradient(90deg, #f50057, var(--pink)); }
.product-card[data-color="cyan"]::before { background: linear-gradient(90deg, #00b8d4, var(--cyan)); }

.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.p-left { display: flex; align-items: center; gap: 12px; }

.p-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}
.p-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.p-info { min-width: 0; }
.p-name { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); margin: 0; line-height: 1.2; }
.p-desc { font-size: 11.5px; color: var(--text-secondary); font-family: 'Inter', sans-serif; line-height: 1.4; }

.p-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
  flex-shrink: 0;
  align-self: flex-start;
}

.tag-govtech { background: rgba(0,230,118,0.1); color: var(--green); }
.tag-regtech { background: rgba(68,138,255,0.1); color: var(--blue); }
.tag-fintech { background: rgba(255,145,0,0.1); color: var(--orange); }
.tag-civico { background: rgba(255,64,129,0.1); color: var(--pink); }
.tag-devtools { background: rgba(108,92,231,0.1); color: var(--accent-2); }
.tag-ai { background: rgba(0,229,255,0.1); color: var(--cyan); }
.tag-hr { background: rgba(255,214,0,0.1); color: #ffd600; }
.tag-pessoal { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* Sparkline area chart */
.p-chart {
  width: 100%;
  height: 48px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.p-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Live dot on chart */
.live-dot {
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 5; opacity: 0.6; }
}

.p-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.p-metric { display: flex; flex-direction: column; }
.p-metric-val { font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; }
.p-metric-lbl { font-size: 9px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; }
.p-uptime { color: var(--green); font-size: 12px; }

.p-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
  font-weight: 500;
}
.p-live-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== STACK + JOURNEY compact row ===== */
.bottom-row {
  padding: 0 32px 56px;
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.bot-title { font-size: 14px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.bot-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-2);
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(108,92,231,0.08);
  border-radius: 4px;
}

.stack-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-item-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sib-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sib-name {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sib-role {
  font-size: 9px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.sib-pct {
  font-size: 11px;
  font-weight: 700;
  min-width: 32px;
  text-align: right;
}
.sib-track {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}
.sib-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* AI Section */
.ai-grid { display: flex; flex-direction: column; gap: 10px; }
.ai-item { display: flex; align-items: center; gap: 10px; }
.ai-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; flex-shrink: 0; }
.ai-info { display: flex; flex-direction: column; min-width: 80px; }
.ai-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.2; }
.ai-provider { font-size: 9px; color: var(--text-tertiary); }
.ai-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.05); border-radius: 99px; overflow: hidden; }
.ai-bar-fill { height: 100%; width: 0; border-radius: 99px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* Timeline compact */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--pink), transparent);
}

.tl-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 8px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -21px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  z-index: 1;
}

.tl-year {
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 2px;
}
.tl-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.tl-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

/* ===== FOOTER ===== */
.footer {
  padding: 40px 32px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left { display: flex; gap: 20px; }
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--text-tertiary); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }

/* ===== BRUNO IA ===== */
.dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
  vertical-align: middle;
}

.bruno-ia-layout {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 48px;
  align-items: start;
}

.bruno-ia-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bruno-ia-info h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 380px;
}

.bruno-ia-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.bruno-ia-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bruno-ia-steps li::before {
  content: counter(steps, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 1px;
}

.chat-container {
  height: 480px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}

.chat-name {
  font-size: 14px;
  font-weight: 600;
}

.chat-status {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }

.msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
}

.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

.msg.user .msg-avatar { background: var(--accent); border-color: var(--accent); }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.msg.bot .msg-bubble {
  background: var(--surface-2);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.msg.user .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 2px;
  align-items: center;
}

.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  display: inline-block;
  animation: tdBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tdBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.msg-briefing {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  background: rgba(108,92,231,0.06);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.briefing-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.briefing-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.briefing-row {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.briefing-row strong {
  color: var(--text);
  font-weight: 600;
}

.via-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
}

.via-badge.alta { background: rgba(0,230,118,0.12); color: var(--green); }
.via-badge.média { background: rgba(68,138,255,0.12); color: var(--blue); }
.via-badge.baixa { background: rgba(255,145,0,0.12); color: var(--orange); }

.briefing-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-briefing {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-hover);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}

.btn-briefing:hover { background: var(--border-hover); color: var(--text); }
.btn-briefing.btn-pdf { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-briefing.btn-pdf:hover { opacity: 0.88; }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#chatInput {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

#chatInput:focus { border-color: var(--border-hover); }
#chatInput::placeholder { color: var(--text-tertiary); }

#chatSend {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

#chatSend:hover { opacity: 0.85; }

/* Bruno IA responsive */
@media (max-width: 900px) {
  .bruno-ia-layout { grid-template-columns: 1fr; gap: 32px; }
  .chat-container { height: 420px; }
}

@media (max-width: 600px) {
  .chat-container { height: 380px; }
  .msg { max-width: 92%; }
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE ===== */

/* Tablet large (≤1200px) */
@media (max-width: 1200px) {
  .hero-split { grid-template-columns: 400px 1fr; gap: 36px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .map-card { grid-template-columns: 1fr; gap: 24px; }
  .map-side { width: 100%; }
}

/* Tablet small (≤900px) */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { align-items: center; }
  .hero-top { text-align: center; align-items: center; }
  .hero-badge { margin: 0 auto 20px; }
  .hero-sub { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .stack-grid { flex-direction: column; }
  .map-card { grid-template-columns: 1fr; }
  nav { padding: 12px 20px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .products-section, .bottom-row { padding-left: 20px; padding-right: 20px; }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  .nav-links { display: none; }
  nav { padding: 10px 16px; }
  .hero { padding: 80px 0 40px; }
  .hero-split { padding: 0 16px; gap: 32px; }
  .hero-map-wrap { padding: 0; }
  .hero h1 { font-size: clamp(32px, 10vw, 52px); letter-spacing: -2px; }
  .hero-sub { font-size: 14px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hstat-num { font-size: 26px; }
  .hstat-lbl { font-size: 10px; }
  .products-grid { grid-template-columns: 1fr; }
  .products-section, .bottom-row { padding-left: 16px; padding-right: 16px; }
  .section-title { font-size: 22px; }
  .map-card { padding: 20px; flex-direction: column; }
  .map-container { aspect-ratio: 1.2; }
  .footer { padding: 32px 16px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-left { flex-wrap: wrap; gap: 14px; }
  .donut-row { flex-direction: column; align-items: center; }
  .bot-card { padding: 20px 16px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .map-stats-row { flex-direction: row; }
}

/* Mobile small (≤380px) */
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hstat-num { font-size: 22px; }
  .products-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}

