:root {
  --navy: #123d69;
  --navy-deep: #11253f;
  --blue: #1e73be;
  --blue-soft: #eef5fb;
  --sky: #98d6f0;
  --yellow: #f4c547;
  --green: #2ab673;
  --page: #eef4fa;
  --white: #ffffff;
  --muted: #62788d;
  --border: #dce7f2;
  --shadow: 0 20px 60px rgba(15, 46, 79, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--navy-deep);
  background: var(--page);
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a:focus-visible {
  outline-color: var(--yellow);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.civic-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 115, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 115, 190, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.ambient {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-left {
  top: 250px;
  left: -160px;
  background: rgba(30, 115, 190, 0.13);
}

.ambient-right {
  top: -80px;
  right: -100px;
  background: rgba(244, 197, 71, 0.21);
}

.container {
  position: relative;
  width: min(100% - 32px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 0 18px;
}

.municipal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 40px rgba(15, 46, 79, 0.08);
  backdrop-filter: blur(18px);
}

.identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.coat-wrap {
  display: flex;
  width: 64px;
  height: 72px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  background: var(--blue-soft);
  box-shadow: inset 0 2px 10px rgba(30, 115, 190, 0.10);
}

.coat-wrap img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.identity-copy p {
  margin: 0;
}

.eyebrow {
  color: #5c7897;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.municipality {
  margin-top: 3px !important;
  color: #12365c;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 850;
  letter-spacing: -.02em;
}

.motto {
  margin-top: 3px !important;
  color: #67809a;
  font-size: 13px;
}

.network-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #4c6884;
  background: #f8fbfe;
  font-size: 12px;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(42, 182, 115, 0.13);
}

.panel-dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 26px 80px rgba(17, 49, 84, 0.20);
}

.top-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), #7bc6e8, var(--green));
}

.signal-rings {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.07),
    0 0 0 68px rgba(255, 255, 255, 0.055),
    0 0 0 102px rgba(255, 255, 255, 0.035);
  opacity: .27;
  pointer-events: none;
}

.hero {
  min-height: min(680px, calc(100svh - 126px));
  margin-top: 16px;
  padding: 36px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.step-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #d9edff;
  background: rgba(255, 255, 255, 0.10);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.step-chip .icon {
  font-size: 21px;
  line-height: 12px;
}

.hero-copy {
  max-width: 720px;
  margin-top: clamp(54px, 8vh, 88px);
}

.welcome {
  margin: 0;
  color: var(--sky);
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  max-width: 690px;
  margin: 8px 0 0;
  font-size: clamp(43px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.hero-lead {
  max-width: 650px;
  margin: 23px 0 0;
  color: #d8e7f4;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.hero-note {
  max-width: 650px;
  margin: 10px 0 0;
  color: #a9c9df;
  font-size: 14px;
  line-height: 1.65;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 27px;
  color: #e8f2fa;
  font-size: 14px;
}

.benefits > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 650;
}

.check {
  display: inline-flex;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.hero-bottom {
  margin-top: auto;
  padding-top: 48px;
}

.continue-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.10);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.continue-link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.hero-bottom p {
  margin: 11px 0 0;
  color: #a9bfd1;
  font-size: 12px;
}

.panel-light {
  border: 1px solid white;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.announcements {
  scroll-margin-top: 16px;
  margin-top: 16px;
  padding: 30px;
}

.section-heading p,
.section-heading h2 {
  margin: 0;
}

.split-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.step-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 8px;
  color: #173b61;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.demo-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8a6710;
  background: #fff5d5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
  margin: 12px 0 0;
  color: #688096;
  font-size: 14px;
  line-height: 1.65;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 23px;
}

.announcement-card {
  display: flex;
  gap: 14px;
  min-height: 175px;
  padding: 20px;
  border: 1px solid #e2ebf3;
  border-radius: 18px;
  background: #f9fbfd;
}

.card-number {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--blue);
  background: #edf6fc;
  font-size: 13px;
  font-weight: 900;
}

.announcement-card p,
.announcement-card h3 {
  margin: 0;
}

.announcement-card .category {
  color: #2a84bf;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.announcement-card h3 {
  margin-top: 5px;
  color: #1a3551;
  font-size: 15px;
  line-height: 1.38;
}

.announcement-card h3 + p {
  margin-top: 8px;
  color: #688096;
  font-size: 13px;
  line-height: 1.55;
}

.contact-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce9f3;
  border-radius: 17px;
  background: #f3f8fc;
}

.contact-title {
  margin: 0;
  color: #1b4e78;
  font-size: 14px;
  font-weight: 850;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  color: #5f7891;
  font-size: 12px;
}

.contact-items a {
  color: inherit;
  text-decoration: none;
}

.legal {
  margin-top: 24px;
}

.legal > .section-heading {
  padding: 0 4px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.legal-card {
  padding: 24px;
  border: 1px solid white;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 40px rgba(15, 46, 79, 0.07);
}

.legal-title-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.legal-icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 19px;
  font-weight: 900;
}

.legal-icon.green {
  color: #228452;
  background: #eaf5ed;
}

.legal-icon.blue {
  color: #2d69a4;
  background: #edf3fb;
}

.legal-title-row p,
.legal-title-row h3 {
  margin: 0;
}

.legal-kicker {
  color: #6e7e92;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-title-row h3 {
  margin-top: 3px;
  color: #173b61;
  font-size: 19px;
}

.legal-card > p:not(.approval-note) {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.legal-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  color: #536e86;
  font-size: 14px;
  list-style: none;
}

.legal-card li {
  display: flex;
  gap: 8px;
  line-height: 1.45;
}

.legal-card li span {
  flex: 0 0 auto;
  color: #228452;
  font-weight: 900;
}

.approval-note {
  margin: 16px 0 0;
  color: #2677ac;
  font-size: 11px;
  font-weight: 750;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 8px;
  color: #6c8195;
  font-size: 11px;
}

.page-footer p {
  margin: 0;
}

.connect {
  margin-bottom: 4px;
  padding: 45px 28px;
  text-align: center;
}

.connect-rings {
  top: -110px;
  right: -100px;
  opacity: .2;
}

.connect-content {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 0 auto;
}

.connect-step {
  margin: 0;
  color: #9ed7f0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.connect h2 {
  margin: 12px 0 0;
  font-size: clamp(31px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.connect h2 + p {
  max-width: 610px;
  margin: 15px auto 0;
  color: #c9dce9;
  font-size: 15px;
  line-height: 1.65;
}

.connect-button {
  display: inline-flex;
  min-width: 320px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 27px;
  padding: 14px 25px;
  border: 0;
  border-radius: 17px;
  color: #18334e;
  background: var(--yellow);
  box-shadow: 0 14px 34px rgba(244, 197, 71, 0.25);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.connect-button:hover {
  background: #ffda69;
  box-shadow: 0 16px 38px rgba(244, 197, 71, 0.32);
  transform: translateY(-2px);
}

.connect-button:active {
  transform: translateY(0);
}

.connect-button span:first-child {
  font-size: 26px;
  line-height: 1;
}

.connect-button span:last-child {
  font-size: 26px;
  line-height: 1;
}

.demo-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  color: #a9bfd1;
  font-size: 11px;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: white;
  box-shadow: 0 34px 100px rgba(5, 23, 43, 0.34);
  text-align: center;
}

.modal-icon {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 0 0 9px rgba(42, 182, 115, 0.13);
  font-size: 28px;
  font-weight: 900;
}

.modal-kicker {
  margin: 25px 0 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 8px 0 0;
  color: #173b61;
  font-size: 25px;
  line-height: 1.2;
}

.modal-card h2 + p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-card button {
  min-width: 180px;
  margin-top: 23px;
  padding: 12px 20px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 860px) {
  .announcement-grid {
    grid-template-columns: 1fr;
  }

  .announcement-card {
    min-height: auto;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .municipal-header {
    padding: 11px 13px;
  }

  .identity {
    gap: 11px;
  }

  .coat-wrap {
    width: 53px;
    height: 62px;
    padding: 7px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .municipality {
    font-size: 16px;
  }

  .motto {
    font-size: 11px;
  }

  .network-status {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 104px);
    padding: 25px 18px;
  }

  .hero-copy {
    margin-top: 48px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 54px);
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .announcements {
    padding: 22px 16px;
  }

  .split-heading {
    gap: 12px;
  }

  .demo-badge {
    padding: 5px 8px;
    font-size: 8px;
  }

  .announcement-card {
    padding: 16px;
  }

  .contact-items {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 20px 17px;
  }

  .page-footer {
    flex-direction: column;
    text-align: center;
  }

  .connect {
    padding: 38px 17px;
  }

  .connect-button {
    width: 100%;
    min-width: 0;
  }

  .demo-disclaimer {
    align-items: flex-start;
    line-height: 1.45;
  }

  .modal-card {
    padding: 29px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
