:root {
  --navy: #0b1f3a;
  --navy-2: #071629;
  --blue: #145da0;
  --bright-blue: #1ca7ec;
  --emerald: #0e8f5b;
  --gold: #f59e0b;
  --red: #dc2626;
  --ink: #132033;
  --muted: #64748b;
  --line: #d8e2ef;
  --soft: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 31, 58, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Manrope, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(1160px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(7, 22, 41, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #233a58;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e9f4fb;
  color: var(--blue);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--navy);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.section {
  padding: 96px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 41, 0.95), rgba(11, 31, 58, 0.76) 44%, rgba(11, 31, 58, 0.3)),
    linear-gradient(180deg, rgba(7, 22, 41, 0.1), rgba(7, 22, 41, 0.8)),
    radial-gradient(circle at 80% 16%, rgba(28, 167, 236, 0.32), transparent 30%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.58fr);
  gap: 48px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bright-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.03;
  color: inherit;
}

.hero h1 {
  max-width: 820px;
  font-size: 4.2rem;
}

.hero-subtitle {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
}

.tagline {
  margin: 16px 0 0;
  color: #bfe9ff;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--bright-blue), var(--emerald));
  box-shadow: 0 18px 36px rgba(28, 167, 236, 0.22);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 22, 41, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-kicker {
  margin: 0 0 18px;
  color: #e7f7ff;
  font-weight: 800;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-list div {
  position: relative;
  padding-left: 30px;
}

.signal-list strong {
  display: block;
  color: var(--white);
}

.signal-list p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.signal-dot,
.status-dot,
.legend-dot {
  display: inline-block;
  border-radius: 999px;
}

.signal-dot {
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.emerald,
.green {
  background: var(--emerald);
}

.blue {
  background: var(--bright-blue);
}

.gold,
.yellow {
  background: var(--gold);
}

.red {
  background: var(--red);
}

.quick-values {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-bottom: 48px;
}

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

.value-card,
.loop-card,
.comparison-panel,
.service-card,
.roadmap-step,
.trust-card {
  border: 1px solid rgba(216, 226, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
}

.value-card {
  padding: 24px;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.value-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.2rem;
}

.value-card p,
.loop-card p,
.comparison-panel li,
.service-card p,
.roadmap-step p,
.trust-card p,
.section-copy p,
.section-heading p {
  color: var(--muted);
}

.split,
.app-layout,
.map-layout,
.command-layout,
.architecture-layout,
.silay-layout,
.demo-layout {
  display: grid;
  gap: 56px;
  align-items: center;
}

.split,
.architecture-layout,
.silay-layout,
.demo-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.app-layout,
.map-layout,
.command-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.section-copy h2,
.section-heading h2 {
  color: var(--navy);
  font-size: 2.6rem;
}

.section-copy p,
.section-heading p {
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

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

.loop-card {
  padding: 24px;
}

.loop-card span {
  display: block;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.trust-band {
  background:
    linear-gradient(180deg, #edf7fd, #f8fbfd),
    repeating-linear-gradient(90deg, rgba(20, 93, 160, 0.1) 0 1px, transparent 1px 56px);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.comparison-panel {
  padding: 28px;
}

.comparison-panel h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.35rem;
}

.is-good {
  border-top: 5px solid var(--emerald);
}

.is-safe {
  border-top: 5px solid var(--gold);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bright-blue);
}

.trust-strip,
.feature-pills,
.briefing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-strip {
  justify-content: center;
}

.trust-strip span,
.feature-pills span,
.briefing-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #24415f;
  font-size: 0.9rem;
  font-weight: 800;
}

.resident-section {
  background: var(--white);
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(340px, 100%);
  padding: 12px;
  border: 1px solid rgba(11, 31, 58, 0.2);
  border-radius: 34px;
  background: #09172b;
  box-shadow: 0 34px 80px rgba(11, 31, 58, 0.25);
}

.phone-top {
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
}

.phone-top span {
  width: 86px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.phone-screen {
  min-height: 620px;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(28, 167, 236, 0.22), transparent 34%),
    linear-gradient(180deg, #eef8fe, #ffffff 46%, #f6f9fc);
}

.app-hero {
  padding: 18px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.app-hero p,
.app-hero span,
.app-ticket span,
.app-ticket small {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.app-hero strong {
  display: block;
  margin: 6px 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.app-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.app-actions button {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dce9f4;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  text-align: left;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.07);
}

.app-ticket {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--emerald);
  color: var(--white);
}

.app-ticket strong {
  display: block;
  margin: 4px 0;
}

.dashboard-section {
  background: linear-gradient(180deg, var(--soft), #ffffff);
}

.dashboard-shell {
  padding: 24px;
  border: 1px solid rgba(20, 93, 160, 0.18);
  border-radius: var(--radius);
  background: #f9fcff;
  box-shadow: var(--shadow);
}

.dashboard-top,
.wall-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-top span,
.wall-header span {
  display: block;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-top strong,
.wall-header strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.dashboard-top time {
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #e8f5fc;
  color: var(--blue);
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-tile,
.trend-panel,
.action-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.metric-tile {
  min-height: 160px;
  padding: 18px;
}

.metric-tile span,
.metric-tile small {
  display: block;
  color: var(--muted);
}

.metric-tile strong {
  display: block;
  margin: 12px 0;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.1;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 14px;
}

.trend-panel,
.action-panel {
  padding: 18px;
}

.trend-panel h3,
.action-panel h3,
.wall-module h3 {
  margin: 0 0 12px;
  color: var(--navy);
}

.bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 160px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #edf6fc, #ffffff);
}

.bars span {
  flex: 1;
  min-width: 20px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--bright-blue), var(--emerald));
}

.action-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.map-section {
  background:
    linear-gradient(180deg, #ffffff, #f7fbfd),
    linear-gradient(90deg, rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(11, 31, 58, 0.04) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.map-layout {
  grid-template-columns: 0.85fr 1.05fr;
}

.map-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.map-figure figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--white);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  color: #24415f;
  font-weight: 800;
}

.legend-dot {
  width: 12px;
  height: 12px;
}

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

.barangay-status div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #24415f;
  font-weight: 800;
}

.barangay-status strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.flow span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.flow span:nth-child(2) {
  background: var(--blue);
}

.flow span:nth-child(3) {
  background: var(--bright-blue);
}

.flow span:nth-child(4) {
  background: var(--emerald);
}

.flow span:nth-child(5) {
  background: #256f54;
}

.flow span:nth-child(6) {
  background: var(--gold);
}

.service-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.trust-card {
  padding: 22px;
}

.service-card h3,
.roadmap-step h3,
.trust-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.2;
}

.service-card p,
.roadmap-step p,
.trust-card p {
  margin: 0;
}

.command-section {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.96), rgba(7, 22, 41, 0.98)),
    linear-gradient(90deg, rgba(28, 167, 236, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(28, 167, 236, 0.1) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.command-section .section-copy h2,
.command-section .section-copy p {
  color: var(--white);
}

.command-section .section-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.command-wall {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.command-wall .wall-header strong,
.wall-module h3 {
  color: var(--white);
}

.wall-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.wall-module {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.wall-module.wide {
  grid-row: span 2;
}

.wall-module p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.mini-map {
  position: relative;
  min-height: 255px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(28, 167, 236, 0.18), rgba(14, 143, 91, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.18);
  animation: pulse 2.4s ease-out infinite;
}

.pulse.one {
  top: 24%;
  left: 34%;
}

.pulse.two {
  top: 58%;
  left: 62%;
  background: var(--emerald);
  box-shadow: 0 0 0 10px rgba(14, 143, 91, 0.18);
}

.pulse.three {
  top: 72%;
  left: 28%;
  background: var(--bright-blue);
  box-shadow: 0 0 0 10px rgba(28, 167, 236, 0.18);
}

@keyframes pulse {
  0% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(0.92);
  }
}

.roadmap-section {
  background: #ffffff;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.roadmap-step {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.roadmap-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--emerald), var(--gold));
}

.roadmap-step span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 900;
}

.architecture-section {
  background: linear-gradient(180deg, #f6f9fc, #eef6fb);
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.silay-section {
  background: #ffffff;
}

.silay-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.silay-images {
  position: relative;
}

.silay-images figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.silay-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.silay-stat {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 160px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(11, 31, 58, 0.16);
}

.silay-stat strong {
  display: block;
  color: var(--emerald);
  font-size: 3rem;
  line-height: 1;
}

.silay-stat span {
  display: block;
  color: var(--navy);
  font-weight: 900;
}

blockquote {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  background: #fff8e8;
  font-weight: 900;
}

.demo-section {
  background:
    linear-gradient(135deg, #eaf7fd, #ffffff 46%, #fff8e8),
    linear-gradient(90deg, rgba(20, 93, 160, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 93, 160, 0.08) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(216, 226, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.span-2 {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfdae8;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 4px rgba(28, 167, 236, 0.14);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer strong,
.site-footer span {
  display: block;
  color: var(--white);
  font-weight: 900;
}

.site-footer p {
  margin: 8px 0 0;
}

.js .reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .metric-grid,
  .service-grid,
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-step:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 64px;
  }

  .hero-grid,
  .split,
  .app-layout,
  .map-layout,
  .command-layout,
  .architecture-layout,
  .silay-layout,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .value-grid,
  .comparison,
  .dashboard-body,
  .barangay-status,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: 2.2rem;
  }

  .section-heading {
    text-align: left;
  }

  .map-figure {
    order: 2;
  }

  .barangay-status {
    order: 3;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .loop-grid,
  .metric-grid,
  .service-grid,
  .trust-grid,
  .roadmap,
  .flow,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .span-2 {
    grid-column: auto;
  }

  .phone {
    width: min(318px, 100%);
  }

  .phone-screen {
    min-height: 560px;
  }

  .dashboard-shell,
  .contact-form,
  .command-wall {
    padding: 16px;
  }

  .dashboard-top,
  .wall-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wall-module.wide {
    grid-row: auto;
  }

  .silay-stat {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

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

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