:root {
  --ink: #102033;
  --muted: #5d6f82;
  --soft: #f5f9fc;
  --line: #dfe9f1;
  --panel: rgba(255, 255, 255, 0.86);
  --teal: #0f97a7;
  --cyan: #18b6cf;
  --blue: #075c9b;
  --green: #19a376;
  --amber: #d9922b;
  --shadow: 0 24px 70px rgba(13, 74, 104, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fbfd;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(11, 55, 82, 0.13);
  backdrop-filter: blur(18px) saturate(1.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
  color: #0d2a41;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.nav-cta,
.menu-toggle,
.btn,
.footer-link {
  border-radius: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: #244055;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(14, 151, 167, 0.1);
  color: #075c9b;
}

.site-nav .nav-cta {
  margin-left: 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 10px 24px rgba(7, 92, 155, 0.22);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 128px 0 84px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/background-login-flat.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 22, 34, 0.78) 0%, rgba(7, 77, 91, 0.48) 48%, rgba(245, 249, 252, 0.9) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(248, 251, 253, 0.86) 92%);
}

.hero-inner,
.section-inner,
.footer-inner,
.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(24, 182, 207, 0.38);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(24, 182, 207, 0.15);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 34px rgba(7, 92, 155, 0.28);
}

.btn-secondary,
.btn-ghost {
  color: #0a4c63;
  border-color: rgba(14, 151, 167, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.btn-ghost {
  background: transparent;
}

.system-preview {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.preview-carousel {
  width: 100%;
}

.preview-track {
  position: relative;
  height: 580px;
}

.preview-window {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.08);
  overflow: hidden;
}

.preview-slide {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.preview-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding: 4px 4px 14px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #88a9b8;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card,
.map-panel,
.report-panel {
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.metric-card {
  padding: 18px;
}

.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #0d2a41;
  font-size: 24px;
}

.metric-card.accent {
  border-color: rgba(25, 163, 118, 0.25);
  background: rgba(231, 250, 242, 0.82);
}

.map-panel {
  position: relative;
  grid-column: 1 / -1;
  height: 210px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 91, 122, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 91, 122, 0.1) 1px, transparent 1px),
    #edf8f8;
  background-size: 34px 34px;
}

.map-block,
.map-road,
.map-arrow,
.map-currency {
  position: absolute;
  display: block;
}

.map-block {
  border-radius: 8px;
  transform: rotate(-10deg);
}

.block-a {
  left: 34px;
  top: 34px;
  width: 120px;
  height: 64px;
  background: rgba(24, 182, 207, 0.35);
}

.block-b {
  right: 52px;
  top: 42px;
  width: 98px;
  height: 76px;
  background: rgba(25, 163, 118, 0.28);
}

.block-c {
  left: 180px;
  bottom: 30px;
  width: 138px;
  height: 54px;
  background: rgba(217, 146, 43, 0.28);
}

.map-road {
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 42, 65, 0.18);
}

.road-a {
  left: 18px;
  right: 20px;
  top: 110px;
  transform: rotate(12deg);
}

.road-b {
  left: 118px;
  right: 58px;
  top: 78px;
  transform: rotate(82deg);
}

.map-arrow,
.map-currency {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(8, 62, 91, 0.18);
}

.map-arrow {
  right: 28px;
  bottom: 26px;
  background: var(--teal);
}

.map-currency {
  left: 38px;
  bottom: 28px;
  background: var(--amber);
}

.report-panel {
  grid-column: 1 / -1;
  padding: 16px;
}

.report-panel span {
  display: block;
  height: 10px;
  margin: 10px 0;
  border-radius: 999px;
  background: #d8e8ef;
}

.report-panel span:nth-child(1) {
  width: 58%;
}

.report-panel span:nth-child(2) {
  width: 86%;
}

.report-panel span:nth-child(3) {
  width: 72%;
}

.report-panel span:nth-child(4) {
  width: 44%;
}

.preview-toolbar,
.legend-row,
.audit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-toolbar {
  padding: 12px 14px;
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.preview-toolbar strong,
.kanban-preview strong,
.document-lines strong {
  color: #0d2a41;
}

.preview-toolbar span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0a4c63;
  background: rgba(24, 182, 207, 0.13);
  font-size: 12px;
  font-weight: 800;
}

.heatmap-preview {
  position: relative;
  height: 330px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(10, 91, 122, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 91, 122, 0.09) 1px, transparent 1px),
    #edf8f8;
  background-size: 38px 38px;
}

.zone,
.zone-pin {
  position: absolute;
  display: block;
}

.zone {
  border-radius: 10px;
  filter: saturate(1.05);
}

.zone-a {
  left: 42px;
  top: 54px;
  width: 165px;
  height: 92px;
  background: rgba(24, 182, 207, 0.42);
  transform: rotate(-8deg);
}

.zone-b {
  right: 40px;
  top: 58px;
  width: 142px;
  height: 126px;
  background: rgba(25, 163, 118, 0.34);
  transform: rotate(-10deg);
}

.zone-c {
  left: 188px;
  bottom: 52px;
  width: 174px;
  height: 76px;
  background: rgba(217, 146, 43, 0.34);
  transform: rotate(-9deg);
}

.zone-d {
  left: 72px;
  bottom: 42px;
  width: 92px;
  height: 86px;
  background: rgba(7, 92, 155, 0.22);
  transform: rotate(12deg);
}

.zone-pin {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(8, 62, 91, 0.18);
}

.pin-a {
  left: 105px;
  top: 164px;
}

.pin-b {
  right: 84px;
  bottom: 70px;
  background: var(--amber);
}

.legend-row {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-row i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-low {
  background: var(--green);
}

.legend-mid {
  background: var(--cyan);
}

.legend-high {
  background: var(--amber);
}

.kanban-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kanban-preview > div {
  min-height: 322px;
  padding: 16px;
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.kanban-preview strong {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}

.kanban-preview span {
  display: block;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #eef6f8;
  font-size: 13px;
  font-weight: 750;
}

.kanban-preview .active-item {
  color: #075c9b;
  background: rgba(24, 182, 207, 0.16);
}

.timeline-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.timeline-preview span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(24, 182, 207, 0.18));
}

.document-preview {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 14px;
  min-height: 370px;
}

.document-lines,
.qr-preview {
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.document-lines {
  padding: 24px;
}

.document-lines strong {
  display: block;
  margin-bottom: 24px;
  font-size: 20px;
}

.document-lines span {
  display: block;
  height: 11px;
  margin: 16px 0;
  border-radius: 999px;
  background: #d8e8ef;
}

.document-lines span:nth-child(2) {
  width: 74%;
}

.document-lines span:nth-child(3) {
  width: 92%;
}

.document-lines span:nth-child(4) {
  width: 68%;
}

.document-lines span:nth-child(5) {
  width: 86%;
}

.document-lines span:nth-child(6) {
  width: 46%;
}

.qr-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

.qr-preview span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #0d2a41;
}

.qr-preview span:nth-child(2),
.qr-preview span:nth-child(3) {
  background: var(--teal);
}

.audit-strip {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(25, 163, 118, 0.28);
  border-radius: 8px;
  color: #0a4c63;
  background: rgba(231, 250, 242, 0.84);
  font-weight: 800;
}

.audit-strip strong {
  color: var(--green);
}

.preview-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}

.preview-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.preview-dots button.is-active {
  width: 28px;
  background: #67e8f9;
}

.generic-screen {
  height: calc(100% - 32px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(205, 221, 232, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 250, 253, 0.92), rgba(255, 255, 255, 0.9)),
    #f8fbfd;
}

.generic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #d1e7f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.generic-header div {
  flex: 1;
}

.screen-icon {
  display: flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 182, 207, 0.28), rgba(7, 92, 155, 0.12)),
    #dff6ff;
}

.generic-header strong {
  display: block;
  color: #061d3c;
  font-size: 20px;
}

.generic-header p {
  margin: 0;
  color: #536985;
  font-size: 12px;
  line-height: 1.45;
}

.workflow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.workflow-chips span {
  flex: 1;
  min-width: 86px;
  padding: 11px 8px;
  border: 1px solid rgba(24, 182, 207, 0.18);
  border-radius: 8px;
  color: #0a4c63;
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.generic-list {
  display: grid;
  gap: 10px;
}

.generic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(13, 74, 104, 0.06);
}

.row-badge {
  width: 14px;
  height: 44px;
  border-radius: 999px;
  background: #3183ef;
}

.row-badge.amber {
  background: var(--amber);
}

.row-badge.green {
  background: var(--green);
}

.generic-row div {
  flex: 1;
  min-width: 0;
}

.generic-row strong {
  display: block;
  color: #102033;
}

.generic-row p {
  margin: 4px 0 0;
  color: #536985;
  font-size: 12px;
}

.generic-row em {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0a4c63;
  background: rgba(24, 182, 207, 0.13);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.value-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 12px;
}

.value-compare div {
  padding: 16px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.value-compare .accent {
  border-color: rgba(25, 163, 118, 0.25);
  background: rgba(231, 250, 242, 0.84);
}

.value-compare small {
  display: block;
  color: #536985;
  font-weight: 800;
}

.value-compare strong {
  display: block;
  margin-top: 8px;
  color: #102033;
  font-size: 24px;
}

.method-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.method-map {
  position: relative;
  height: 190px;
  border-color: #d8e5ef;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 91, 122, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 91, 122, 0.09) 1px, transparent 1px),
    #edf8f8;
  background-size: 38px 38px;
}

.method-map span,
.method-map b,
.method-map em {
  position: absolute;
  display: block;
}

.method-map span {
  border-radius: 10px;
  transform: rotate(-9deg);
}

.method-map span:nth-child(1) {
  left: 34px;
  top: 48px;
  width: 148px;
  height: 72px;
  background: rgba(24, 182, 207, 0.34);
}

.method-map span:nth-child(2) {
  right: 42px;
  top: 48px;
  width: 128px;
  height: 88px;
  background: rgba(25, 163, 118, 0.28);
}

.method-map span:nth-child(3) {
  left: 188px;
  bottom: 38px;
  width: 154px;
  height: 58px;
  background: rgba(217, 146, 43, 0.28);
}

.method-map b,
.method-map em {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.method-map b {
  left: 42px;
  bottom: 26px;
  background: var(--amber);
}

.method-map em {
  right: 34px;
  bottom: 28px;
  background: var(--teal);
}

.method-lines {
  padding: 13px 16px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.method-lines span,
.doc-lines span {
  display: block;
  height: 10px;
  margin: 9px 0;
  border-radius: 999px;
  background: #d8e8ef;
}

.method-lines span:nth-child(1),
.doc-lines span:nth-child(2) {
  width: 72%;
}

.method-lines span:nth-child(2),
.doc-lines span:nth-child(3) {
  width: 92%;
}

.method-lines span:nth-child(3),
.doc-lines span:nth-child(4) {
  width: 66%;
}

.method-lines span:nth-child(4),
.doc-lines span:nth-child(5) {
  width: 48%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 12px;
}

.dashboard-grid div {
  min-height: 98px;
  padding: 15px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.dashboard-grid span {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dff6ff;
}

.dashboard-grid strong {
  display: block;
  margin-top: 10px;
  color: #102033;
}

.dashboard-grid p {
  margin: 7px 0 0;
  color: #536985;
  font-size: 12px;
}

.chart-row {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 126px;
  padding: 18px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.chart-row span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.document-layout {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 14px;
  margin: 16px 0 12px;
}

.doc-lines,
.qr-block,
.parameter-strip div {
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.doc-lines {
  min-height: 218px;
  padding: 18px;
}

.doc-lines strong {
  display: block;
  margin-bottom: 20px;
  color: #102033;
  font-size: 20px;
}

.qr-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

.qr-block span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #102033;
}

.qr-block span:nth-child(2),
.qr-block span:nth-child(3) {
  background: var(--teal);
}

.parameter-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.parameter-strip div {
  padding: 15px;
}

.parameter-strip small,
.parameter-strip strong {
  display: block;
}

.parameter-strip small {
  color: #536985;
  font-weight: 800;
}

.parameter-strip strong {
  margin-top: 6px;
  color: #102033;
}

.building-form,
.building-table,
.municipal-grid,
.admin-metrics,
.admin-cards {
  margin-top: 16px;
}

.building-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.building-form span,
.building-form strong,
.building-form button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.building-form span {
  color: #0093bf;
}

.building-form strong {
  justify-content: center;
  color: #fff;
  background: #242b37;
}

.building-form button {
  width: fit-content;
  color: #536985;
  cursor: default;
}

.building-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  overflow: hidden;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.building-table span,
.building-table b {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}

.building-table span {
  color: #536985;
  background: #eef4f8;
  text-transform: uppercase;
}

.building-table b {
  color: #102033;
}

.municipal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.municipal-card {
  min-height: 328px;
  padding: 18px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.municipal-card strong,
.municipal-card b {
  color: #102033;
}

.municipal-card p {
  color: #536985;
  font-size: 12px;
  line-height: 1.45;
}

.percent-box {
  width: 114px;
  margin-top: 34px;
  padding: 10px 12px;
  border: 1px solid #d8e4ee;
  border-radius: 7px;
  color: #102033;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.percent-box span {
  color: #536985;
}

.range-bar {
  height: 9px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #20bf6b 0 68%, #d8f1ea 68% 74%, #fde7bd 74%);
}

.range-bar span {
  display: block;
  width: 68%;
  height: 100%;
  background: #20bf6b;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  background: #f8fbfd;
  font-size: 11px;
}

.toggle-row span {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #333942;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-metrics div,
.admin-cards div {
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fff;
}

.admin-metrics div {
  padding: 16px;
}

.admin-metrics small,
.admin-metrics strong {
  display: block;
}

.admin-metrics small {
  color: #536985;
  font-weight: 800;
}

.admin-metrics strong {
  margin-top: 4px;
  color: #061d3c;
  font-size: 24px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-cards div {
  min-height: 176px;
  padding: 17px;
}

.admin-cards strong {
  display: block;
  color: #102033;
}

.admin-cards p {
  color: #536985;
  font-size: 12px;
  line-height: 1.45;
}

.admin-cards span {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(24, 182, 207, 0.12), rgba(217, 146, 43, 0.12)),
    #f1f6fa;
}

.section {
  padding: 92px 0;
  background: #f8fbfd;
}

.section-intro {
  padding-top: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--teal);
  background: rgba(15, 151, 167, 0.08);
}

.section h2,
.cta-section h2 {
  margin: 0;
  color: #102033;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.1;
  text-wrap: balance;
}

.section-heading p,
.intro-text p,
.feature-card p,
.benefit-item p,
.prefeitura-panel p,
.cta-inner p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 68px;
  align-items: start;
}

.lead {
  margin-top: 0;
  color: #263d50;
  font-size: 20px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillars-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(21, 80, 112, 0.08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

.feature-card h3,
.benefit-item h4,
.prefeitura-panel h3 {
  margin: 0 0 10px;
  color: #102033;
}

.feature-card p,
.benefit-item p,
.prefeitura-panel p {
  margin: 0;
}

.section-prefeituras {
  background:
    linear-gradient(180deg, rgba(238, 248, 250, 0.86), rgba(248, 251, 253, 1)),
    #eef8fa;
}

.benefit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: stretch;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.audience-list {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-item {
  padding: 24px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(21, 80, 112, 0.07);
}

.prefeitura-panel {
  padding: 30px;
  border: 1px solid rgba(24, 182, 207, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 249, 249, 0.84)),
    #fff;
  box-shadow: var(--shadow);
}

.cta-section {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
  isolation: isolate;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(4, 19, 32, 0.88), rgba(5, 72, 89, 0.68), rgba(13, 42, 65, 0.74));
  backdrop-filter: blur(2px);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2,
.cta-inner p {
  color: #fff;
}

.cta-inner p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 60px 0 24px;
  color: #d7e6ee;
  background: #0c1e2e;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.7fr;
  gap: 40px;
}

.footer-brand img {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(24, 182, 207, 0.24));
}

.site-footer h4 {
  margin: 0 0 16px;
  color: #fff;
}

.site-footer a,
.footer-link {
  display: block;
  width: fit-content;
  margin: 8px 0;
  border: 0;
  color: #d7e6ee;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-footer a:hover,
.footer-link:hover {
  color: #67e8f9;
}

.datacode-link {
  width: 42px;
  height: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(215, 230, 238, 0.72);
  font-size: 13px;
}

.footer-bottom a {
  display: inline;
  color: #fff;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 23, 36, 0.58);
  backdrop-filter: blur(8px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(86vh, 820px);
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.legal-body {
  max-height: calc(min(86vh, 820px) - 160px);
  margin-top: 18px;
  padding-right: 10px;
  overflow-y: auto;
  color: #36495d;
  line-height: 1.68;
}

.legal-body h3 {
  margin: 0 0 20px;
  color: #102033;
  font-size: 18px;
}

.legal-body h4 {
  margin: 24px 0 8px;
  color: #102033;
  font-size: 15px;
}

.legal-body p,
.legal-body li {
  font-size: 14px;
}

.legal-body ul {
  margin: 8px 0 16px;
  padding-left: 22px;
}

.legal-body a {
  color: var(--teal);
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #244055;
  background: #edf4f7;
  cursor: pointer;
  font-size: 24px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  width: min(1040px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(11, 55, 82, 0.13);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero-inner,
  .intro-grid,
  .benefit-layout,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 36px;
  }

  .system-preview {
    min-height: 0;
  }

  .preview-track {
    height: 560px;
  }

  .feature-grid,
  .pillars-grid,
  .benefit-list,
  .audience-list {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .parameter-strip,
  .municipal-grid,
  .admin-cards {
    grid-template-columns: 1fr;
  }

  .admin-cards div {
    min-height: 120px;
  }

  .cta-inner {
    display: grid;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 112px 0 58px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions,
  .cookie-actions {
    flex-direction: column;
  }

  .btn,
  .cookie-actions .btn {
    width: 100%;
  }

  .preview-grid,
  .feature-grid,
  .pillars-grid,
  .benefit-list,
  .audience-list {
    grid-template-columns: 1fr;
  }

  .preview-track {
    height: 620px;
  }

  .preview-window {
    padding: 12px;
  }

  .generic-screen {
    height: calc(100% - 24px);
    padding: 14px;
  }

  .generic-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .value-compare,
  .dashboard-grid,
  .document-layout,
  .parameter-strip,
  .building-table,
  .municipal-grid,
  .admin-metrics,
  .admin-cards {
    grid-template-columns: 1fr;
  }

  .workflow-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .workflow-chips span:nth-child(5),
  .generic-list .generic-row:nth-child(3) {
    display: none;
  }

  .generic-row {
    align-items: flex-start;
  }

  .generic-row em {
    align-self: center;
  }

  .method-map {
    height: 190px;
  }

  .qr-block {
    grid-template-columns: repeat(4, 1fr);
  }

  .chart-row {
    height: 96px;
  }

  .dashboard-grid div {
    min-height: 86px;
    padding: 12px;
  }

  .dashboard-grid p {
    display: none;
  }

  .method-lines {
    display: none;
  }

  .parameter-strip div:nth-child(2) {
    display: none;
  }

  .municipal-card {
    min-height: auto;
    padding: 14px;
  }

  .municipal-card:nth-child(2) .toggle-row:nth-of-type(3) {
    display: none;
  }

  .percent-box {
    margin-top: 12px;
  }

  .admin-cards div {
    min-height: auto;
    padding: 13px;
  }

  .admin-cards div:nth-child(3) {
    display: none;
  }

  .admin-cards span {
    display: none;
  }

  .building-form button {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
