/* IUSLEAD — SaaS Enterprise Design System v2 */
:root {
  --blue: #2563eb;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --navy: #0f172a;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.72);
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  --gradient-soft: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 24px 60px rgba(124, 58, 237, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shot-native-w: 1024px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1140px, 92vw); margin-inline: auto; }
.section-pad { padding: 5rem 0; }
@media (min-width: 768px) { .section-pad { padding: 6.5rem 0; } }

/* Background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 58, 237, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(6, 182, 212, 0.06), transparent);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link img { height: 34px; width: auto; }
.nav-desktop { display: none; gap: 0.15rem; align-items: center; }
.nav-desktop a {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--blue); background: rgba(37, 99, 235, 0.08); }
.nav-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 199;
  border-top: 1px solid var(--border);
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile a {
  padding: 1rem 1.1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.header-cta { display: none; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
  .header-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4); }
.btn-ghost {
  color: var(--navy);
  background: var(--surface);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-arrow::after { content: "→"; transition: transform 0.2s; }
.btn:hover.btn-arrow::after { transform: translateX(3px); }

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; color: var(--navy); }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3rem; }
.section-head .eyebrow { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Hero home */
.hero-home {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  position: relative;
}
.hero-home-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-home h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero-home .lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .metrics-strip { grid-template-columns: repeat(4, 1fr); } }
.metric-box {
  padding: 1.25rem 1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.metric-box strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-box span { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

.hero-glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0.5;
  pointer-events: none;
}
.hero-orbit {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(37, 99, 235, 0.25);
  animation: spin 24s linear infinite;
}
.orbit-ring:nth-child(1) { width: 100%; height: 100%; }
.orbit-ring:nth-child(2) { width: 72%; height: 72%; animation-direction: reverse; animation-duration: 18s; }
.orbit-core {
  width: 120px; height: 120px;
  border-radius: 24px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
.orbit-dot {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.orbit-dot:nth-child(4) { top: 5%; left: 50%; transform: translateX(-50%); }
.orbit-dot:nth-child(5) { bottom: 10%; left: 8%; }
.orbit-dot:nth-child(6) { bottom: 15%; right: 5%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 960px) {
  .hero-home { padding: calc(var(--header-h) + 4rem) 0 5rem; }
  .hero-home-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Segment cards — large */
.segments-large {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) { .segments-large { grid-template-columns: repeat(3, 1fr); } }

.segment-lg {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  height: 100%;
}
.segment-lg:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.segment-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.segment-visual--muni {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.2));
}
.segment-visual--emp {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(37, 99, 235, 0.2));
}
.segment-visual--legal {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(124, 58, 237, 0.2));
}
.segment-illus {
  width: 88px; height: 88px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.segment-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.segment-body h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.segment-body > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.segment-benefits { margin-bottom: 1.25rem; }
.segment-benefits li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}
.segment-benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.segment-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.segment-lg:hover .segment-cta { color: var(--violet); }

/* Platform flow */
.flow-section { background: var(--bg-soft); }
.flow-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 420px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .flow-pipeline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 0.5rem 0;
  }
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.flow-step.is-visible { opacity: 1; transform: translateY(0); }
.flow-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  position: relative;
}
.flow-icon--ai {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.flow-step span { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.flow-arrow {
  width: 2px; height: 28px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  position: relative;
  overflow: hidden;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  left: 50%; transform: translateX(-50%);
  background: var(--cyan);
  border-radius: 50%;
  animation: flowDot 1.8s ease-in-out infinite;
}
@keyframes flowDot {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}
@media (min-width: 900px) {
  .flow-arrow {
    width: 40px; height: 2px;
    margin: 0 0.25rem;
    align-self: center;
    margin-top: 28px;
  }
  .flow-arrow::after {
    animation: flowDotH 1.8s ease-in-out infinite;
  }
}
@keyframes flowDotH {
  0% { left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Dashboard SaaS full */
.dash-saas {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .dash-saas { grid-template-columns: 220px 1fr; min-height: 420px; }
}
.dash-sidebar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
}
@media (min-width: 900px) {
  .dash-sidebar { border-bottom: none; border-right: 1px solid var(--border); }
}
.dash-sidebar .brand-mini {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.dash-sidebar .brand-mini::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--gradient);
}
.dash-nav-item {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 8px;
  margin-bottom: 0.25rem;
}
.dash-nav-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-weight: 600;
}
.dash-main { padding: 1.25rem; }
@media (min-width: 900px) { .dash-main { padding: 1.5rem; } }
.dash-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dash-topbar h3 { font-size: 1.1rem; font-weight: 600; }
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .dash-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-kpi {
  padding: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dash-kpi label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-kpi strong { display: block; font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-top: 0.25rem; }
.dash-kpi .trend { font-size: 0.7rem; color: #16a34a; font-weight: 600; }
.dash-chart-area {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  border-radius: 6px 6px 0 0;
  min-height: 20px;
  animation: barGrow 1.2s var(--ease) both;
}
.chart-bar:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 72%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.chart-bar:nth-child(4) { height: 88%; animation-delay: 0.4s; }
.chart-bar:nth-child(5) { height: 65%; animation-delay: 0.5s; }
.chart-bar:nth-child(6) { height: 95%; animation-delay: 0.6s; }
.chart-bar:nth-child(7) { height: 70%; animation-delay: 0.7s; }
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

/* Integrations */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.int-card {
  padding: 1.25rem 1.75rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  min-width: 140px;
  text-align: center;
}
.int-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.int-card small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* CTA final */
.cta-final {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); color: #fff; margin-bottom: 0.75rem; }
.cta-final p { opacity: 0.92; margin-bottom: 1.75rem; max-width: 28rem; margin-inline: auto; }
.cta-final .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.1); }
.cta-final .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-grid a { display: block; font-size: 0.9rem; color: var(--text-muted); padding: 0.2rem 0; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--text-muted); padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Vertical pages */
.hero-vertical {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}
.hero-vertical h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); font-weight: 700; margin-bottom: 1rem; }
.hero-vertical .lead { color: var(--text-muted); font-size: 1.05rem; max-width: 32rem; margin-bottom: 1.75rem; }

.cards-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card-mini {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.3s;
}
.card-mini:hover { box-shadow: var(--shadow); }
.card-mini h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-mini p { font-size: 0.9rem; color: var(--text-muted); }

.wa-mock {
  max-width: 360px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #e5ddd5;
}
.wa-head {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.wa-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
}
.wa-msgs { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 260px; }
.wa-in, .wa-out {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: 12px;
}
.wa-in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.wa-out { background: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 4px; }

.split-2 { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1fr 1fr; } .wa-mock { margin-inline: 0; } }

.benefit-row { display: flex; gap: 1rem; padding: 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.benefit-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
}

.page-muni .eyebrow { color: var(--blue); background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2); }
.page-emp .eyebrow { color: var(--violet); background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); }
.page-legal .eyebrow { color: var(--cyan); background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.25); }

/* SEO content, FAQ, inline CTA */
.seo-article { max-width: 72ch; margin-inline: auto; color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.seo-article h2 { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.seo-article h3 { font-size: 1.15rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.seo-article p { margin-bottom: 1rem; }
.seo-article ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.seo-article li { margin-bottom: 0.35rem; }
.cta-inline {
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cta-inline h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--navy); }
.cta-inline p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.module-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}
.module-cta--center { justify-content: center; }
.module-cta .btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  min-height: auto;
  width: auto;
  max-width: 100%;
}
.faq-list { max-width: 720px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 1rem 1.25rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; }
.use-case-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .use-case-grid { grid-template-columns: repeat(2, 1fr); } }
.use-case-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.use-case-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.use-case-card p { font-size: 0.9rem; color: var(--text-muted); }
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-card a { color: var(--blue); font-weight: 600; }

.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-top: calc(var(--header-h) + 1rem);
}
.breadcrumb-nav a { color: var(--blue); }
.breadcrumb-nav a:hover { text-decoration: underline; }
.compare-wrap { overflow-x: auto; margin: 2rem 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--navy);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: #16a34a; font-weight: 600; }
.compare-table .no { color: var(--text-muted); }
.internal-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem;
}
.internal-links a {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 500;
}
.internal-links a:hover { border-color: var(--blue); background: var(--gradient-soft); }
.landing-hero { padding-top: 0; }

/* Premium SaaS — product showcase */
.platform-showcase {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .platform-showcase { grid-template-columns: 1fr 1.15fr; }
}
.platform-copy h2 { font-size: clamp(1.75rem, 4vw, 2.35rem); margin-bottom: 1rem; }
.platform-copy .check-list { margin: 1.25rem 0 1.75rem; }
.platform-copy .check-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.platform-copy .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.screenshot-frame {
  position: relative;
  padding: 0.75rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.08),
    0 32px 64px rgba(37, 99, 235, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
  animation: floatShot 8s ease-in-out infinite;
  max-width: var(--shot-native-w);
}
.screenshot-frame--fill {
  max-width: 100%;
}
.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(124,58,237,0.25), rgba(6,182,212,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.screenshot-frame picture,
.screenshot-frame img {
  display: block;
  width: 100%;
  max-width: var(--shot-native-w);
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.platform-showcase .screenshot-frame {
  max-width: 100%;
  margin-inline: 0;
}
.platform-module .screenshot-frame {
  margin-inline: auto;
}
@keyframes floatShot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.feature-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .feature-grid-premium { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .feature-grid-premium { grid-template-columns: repeat(4, 1fr); } }
.feature-premium {
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.feature-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}
.feature-premium .ico {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.feature-premium h3 { font-size: 0.82rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.use-case-steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .use-case-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .use-case-steps { grid-template-columns: repeat(3, 1fr); } }
.use-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.3s;
}
.use-step:hover { box-shadow: var(--shadow); }
.use-step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid; place-items: center;
}
.use-step h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.use-step p { font-size: 0.85rem; color: var(--text-muted); }
.platform-gallery {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) { .platform-gallery { grid-template-columns: 1fr 1fr; } }
.platform-module {
  margin-bottom: 4rem;
}
.platform-module h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.platform-module > p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 52ch; }
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}
.trust-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.hero-shot .product-preview { max-width: 100%; margin-inline: auto; }

/* Captura real del dashboard — tamaño controlado (nativo 1024px) */
.dashboard-shot {
  position: relative;
  padding: 0.45rem;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: calc(var(--radius-sm) + 2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 40px rgba(15, 23, 42, 0.18);
  max-width: min(100%, var(--dashboard-shot-w, 520px));
  margin-inline: auto;
}
.dashboard-shot img {
  display: block;
  width: 100%;
  max-width: 1024px;
  height: auto;
  border-radius: var(--radius-sm);
}
.dashboard-shot--hero { --dashboard-shot-w: 400px; }
@media (min-width: 960px) { .dashboard-shot--hero { --dashboard-shot-w: 440px; } }
.dashboard-shot--showcase { --dashboard-shot-w: 460px; margin-inline: 0; }
@media (min-width: 1024px) { .dashboard-shot--showcase { --dashboard-shot-w: 480px; } }
.dashboard-shot--module { --dashboard-shot-w: 520px; }
@media (min-width: 768px) { .dashboard-shot--module { --dashboard-shot-w: 560px; } }
.platform-showcase .dashboard-shot { justify-self: end; }
.hero-shot .dashboard-shot { margin-inline: auto; }

/* Product previews — CSS mockups (sin imágenes externas) */
.product-preview {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
}
.product-preview::before {
  content: "";
  position: absolute;
  inset: -24px -12px;
  background: radial-gradient(ellipse at 50% 20%, rgba(37, 99, 235, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.product-preview > * { position: relative; z-index: 1; }
.dash-saas--compact { min-height: 0; }
.dash-saas--compact .dash-sidebar { padding: 1rem; }
.dash-saas--compact .dash-main { padding: 1rem; }
@media (min-width: 900px) {
  .dash-saas--compact { grid-template-columns: 180px 1fr; min-height: 320px; }
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.live-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s ease infinite;
}
.dash-topbar .sub { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-top: 0.15rem; }
.insight-strip {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (min-width: 640px) { .insight-strip { grid-template-columns: repeat(3, 1fr); } }
.insight-chip {
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.insight-chip strong { display: block; color: var(--navy); font-size: 0.78rem; margin-bottom: 0.15rem; }
.module-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.module-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}
.module-head h2 { margin-bottom: 0.35rem; }
.module-head p { color: var(--text-muted); max-width: 52ch; }
.section-accent {
  position: relative;
  overflow: hidden;
}
.section-accent::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
}
.section-accent::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07), transparent 70%);
  pointer-events: none;
}
.section-accent > .container { position: relative; z-index: 1; }
.vecinos-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.vecinos-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  align-items: center;
}
.vecinos-search {
  flex: 1;
  min-width: 140px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
}
.vecinos-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.vecinos-table th,
.vecinos-table td {
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.vecinos-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-soft);
}
.vecinos-table tr:last-child td { border-bottom: none; }
.vecinos-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy);
}
.vecinos-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}
.status-pill--ok { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.platform-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) { .platform-split { grid-template-columns: 1fr 1fr; } }
.segment-lg .segment-cta-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Platform modules — premium showcases */
.module-head--wide { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.module-showcase {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .module-showcase { padding: 1.75rem; } }

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.capability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.capability-pill__ico { font-size: 0.95rem; line-height: 1; }

.ticket-board {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .ticket-board { grid-template-columns: repeat(3, 1fr); } }
.ticket-card {
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--blue);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.ticket-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ticket-card--urgent { border-left-color: #ef4444; background: linear-gradient(135deg, rgba(239,68,68,0.04), var(--bg-soft)); }
.ticket-card--progress { border-left-color: #f59e0b; background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--bg-soft)); }
.ticket-card--done { border-left-color: #16a34a; background: linear-gradient(135deg, rgba(22,163,74,0.05), var(--bg-soft)); }
.ticket-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.ticket-id { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ticket-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.ticket-status--urgent { background: rgba(239,68,68,0.12); color: #dc2626; }
.ticket-status--progress { background: rgba(245,158,11,0.14); color: #d97706; }
.ticket-status--done { background: rgba(22,163,74,0.12); color: #16a34a; }
.ticket-card__title { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3; }
.ticket-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.ticket-card__meta span { display: inline-flex; align-items: center; gap: 0.2rem; }
.ticket-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.ticket-assignee { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.ticket-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.citizen-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.citizen-toolbar__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  padding: 0.35rem 0.75rem;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 999px;
}
.citizen-search {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.citizen-search__icon { opacity: 0.55; font-size: 0.85rem; }
.citizen-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.citizen-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .citizen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .citizen-grid { grid-template-columns: repeat(3, 1fr); } }
.citizen-card {
  position: relative;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.citizen-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.2);
}
.citizen-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.citizen-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.citizen-avatar--violet { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.citizen-avatar--blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.citizen-avatar--cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.citizen-card__head h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.citizen-card__head p { font-size: 0.75rem; color: var(--text-muted); }
.citizen-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.citizen-card__stats strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.1rem;
}
.citizen-card__stats strong.rating { font-size: 0.85rem; letter-spacing: 0.05em; color: #f59e0b; }
.citizen-card__stats span { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.citizen-card__badge {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}
.citizen-card__badge--active { background: rgba(22, 163, 74, 0.1); color: #16a34a; }

.analytics-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .analytics-panel { grid-template-columns: repeat(4, 1fr); } }
.analytics-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.analytics-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.analytics-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.analytics-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.analytics-card__head h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.1rem; }
.analytics-card__head p { font-size: 0.72rem; color: var(--text-muted); }
.analytics-spark {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 56px;
  margin-bottom: 0.85rem;
}
.analytics-spark span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  opacity: 0.85;
}
.analytics-heatmap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.analytics-heatmap span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--blue);
  opacity: var(--o, 0.3);
}
.analytics-bars { list-style: none; margin: 0; padding: 0; }
.analytics-bars li {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.analytics-bars li:last-child { margin-bottom: 0; }
.analytics-bar {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.analytics-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--gradient);
}
.analytics-bars em { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.75rem; }
.analytics-card__foot {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.analytics-card__foot strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.analytics-trend { font-size: 0.68rem; color: #16a34a; font-weight: 600; }

.ai-insights {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .ai-insights { grid-template-columns: repeat(3, 1fr); } }
.ai-insight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.ai-insight:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ai-insight__glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
}
.ai-insight--alert .ai-insight__glow { background: radial-gradient(circle, rgba(239,68,68,0.15), transparent 70%); }
.ai-insight--category .ai-insight__glow { background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%); }
.ai-insight--sector .ai-insight__glow { background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%); }
.ai-insight--alert { border-top: 3px solid #ef4444; }
.ai-insight--category { border-top: 3px solid var(--violet); }
.ai-insight--sector { border-top: 3px solid var(--cyan); }
.ai-insight__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.ai-insight__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.ai-insight__body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; line-height: 1.25; }
.ai-insight__body p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.ai-insight__metric {
  align-self: flex-start;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
