:root {
  --navy: #071f4f;
  --navy2: #082b68;
  --green: #078a57;
  --green2: #0bb476;
  --ink: #071b45;
  --muted: #61708f;
  --light: #f4f8fc;
  --line: #dce7f2;
  --white: #fff;
  --shadow: 0 22px 70px rgba(7, 31, 79, .13);
  --soft: 0 12px 35px rgba(7, 31, 79, .09);
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  max-width: 100%;
  overflow-x: clip;
}
img, canvas, svg { max-width: 100%; }
a, button, .btn, .card, .portal-card, .text, h1, h2, h3, p, li {
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.container { width: min(1160px, 92%); margin: auto; }
.section { padding: 72px 0; }
.center { text-align: center; }
.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: .25s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 28px rgba(7, 31, 79, .18); }
.btn-primary:hover { transform: translateY(-2px); background: #03183d; }
.btn-outline { background: #fff; border: 1px solid #b9c9dc; color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 8px 0 14px;
}
.text { color: var(--muted); line-height: 1.75; }
.vision-copy {
  width: min(850px, 100%);
  margin: 0 auto;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(220, 231, 242, .8);
  backdrop-filter: blur(16px);
}
.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}
.brand > div:last-child {
  min-width: 0;
  font-family: "Trebuchet MS", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--navy);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .75);
}
.brand-copy span {
  display: block;
  font-weight: 1000;
}
.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 14px;
}
.brand small {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  margin-top: 2px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
}
.hamb {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #fff 0%, #f5f9fd 52%, #e8f1fa 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 45%, rgba(7, 31, 79, .06) 45%, transparent 72%),
    radial-gradient(circle at 80% 15%, rgba(7, 31, 79, .09), transparent 34%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 38px;
  align-items: center;
  padding: 64px 0 24px;
}
.script {
  display: inline-block;
  color: var(--green);
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  transform: rotate(-5deg);
}
.hero h1 {
  margin: 12px 0;
  font-size: clamp(50px, 8vw, 86px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: 0;
}
.sub {
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}
.hero-election {
  display: block;
  margin-top: 4px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}
.promise {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 34px 0 24px;
}
.promise h2 { margin: 0 0 6px; }
.shield {
  min-width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0ef;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 610px;
  overflow: hidden;
}
.building {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 20px;
  width: 88%;
  height: 300px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .2)),
    repeating-linear-gradient(90deg, #dbe7f2 0 42px, #f7fbff 42px 58px);
  opacity: .75;
  transform: skewY(-8deg);
}
.candidate {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: -14px;
  width: min(430px, 80%);
  height: 455px;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 22px 45px rgba(7, 31, 79, .18));
}

.laptop {
  position: absolute;
  z-index: 3;
  left: 15px;
  right: 0;
  bottom: 20px;
  height: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 16px 16px 8px 8px;
  background: #101010;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.laptop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 18px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(90deg, #9aa8b7, #fff, #9aa8b7);
}
.screen {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #f7fbff;
}
.screen-watermark {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 52%;
  width: max-content;
  max-width: 86%;
  transform: translate(-50%, -50%) rotate(-25deg);
  color: rgba(7, 31, 79, .32);
  font-size: clamp(15px, 1.9vw, 26px);
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
  pointer-events: none;
}
.screen-watermark::before {
  content: attr(data-watermark);
}
.side {
  position: relative;
  z-index: 1;
  padding: 18px;
  background: var(--navy2);
  color: #fff;
  font-size: 12px;
}
.side p { opacity: .7; }
.side div { padding: 8px; border-radius: 6px; }
.side .active { background: #16408a; }
.dash {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 18px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e7eef6;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}
.stat b {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.chartbox {
  height: 135px;
  padding: 8px;
  border: 1px solid #e7eef6;
  border-radius: 8px;
  background: #fff;
}

.badges,
.cards,
.timeline,
.portal-cards,
.report-grid,
.partner-grid {
  display: grid;
  gap: 20px;
}
.badges {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0 45px;
}
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.six-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.commit { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.mini { text-align: center; }
.mini .icon,
.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border: 1px solid #d6efe4;
  border-radius: 50%;
  background: #eaf8f2;
  color: var(--green);
}
.mini b { display: block; }
.mini small { color: var(--muted); font-weight: 700; }

.card,
.step,
.panel,
.quote,
.portal-card,
.chart-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft);
}
.card {
  min-width: 0;
  padding: 26px;
  text-align: center;
  transition: .25s;
}
.card:hover { transform: translateY(-5px); }
.dark {
  background: linear-gradient(135deg, #061b46, #082f73);
  color: #fff;
}
.dark .text { color: #cbd8ea; }
.dark .card {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.num {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 12px rgba(255, 255, 255, .35);
}

.preview {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}
.check {
  padding: 0;
  list-style: none;
}
.check li {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}
.check li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}
.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: end;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0 auto;
}
.mock-row .laptop {
  width: 100% !important;
  min-width: 0;
}
.phone {
  width: 126px;
  height: 252px;
  min-width: 0;
  padding: 9px;
  border-radius: 26px;
  background: #111;
  box-shadow: var(--shadow);
}
.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  font-size: 11px;
}
.phone-screen b {
  display: block;
  margin: 8px 0 16px;
  font-size: 17px;
}

.timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
  gap: 18px;
}
.step {
  padding: 24px;
  text-align: center;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.panel { padding: 36px; }
.bad li { color: #d33; }
.good li { color: var(--green); }
.vs {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.about {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.avatar {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: linear-gradient(#f1c5a9 0 48%, #0b2e68 49%);
  box-shadow: var(--soft);
}
.quote {
  padding: 34px;
  font-size: 20px;
}
.signature {
  color: #0b5cb8;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.qr {
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background-color: #fff;
  background-image: none;
  color: #111;
  font-size: 34px;
  font-weight: 900;
}
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
  background: linear-gradient(135deg, #f8fbff, #eaf2fb);
}
.login-card {
  width: min(460px, 92%);
  padding: 38px;
}
.field { display: block; margin: 16px 0; }
.field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}
.field input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}
.creds {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d5eee3;
  border-radius: 8px;
  background: #f2f8f5;
  color: var(--green);
  font-weight: 700;
}

.portal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f7fb;
}
.portal-side {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--navy2);
  color: #fff;
}
.portal-side h2 { margin: 0 0 8px; }
.portal-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce8f8;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  line-height: 1.25;
}
.portal-menu button.active,
.portal-menu button:hover {
  background: #16408a;
  color: #fff;
}
.portal-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  padding: clamp(18px, 3vw, 30px);
}
.note {
  margin: 15px 0;
  padding: 13px;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  background: #fff8dd;
  color: #7a5b00;
}
.portal-cards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.portal-card {
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  overflow: hidden;
}
.portal-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.portal-card b {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.1;
}
.portal .card {
  padding: 18px;
  box-shadow: 0 10px 26px rgba(7, 31, 79, .07);
}
.portal .card h3 { margin-bottom: 8px; }
.portal .card .text {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}
.chart-panel {
  min-width: 0;
  min-height: 330px;
  height: auto;
  padding: clamp(14px, 2vw, 18px);
  overflow: hidden;
}
.chart-panel h3 {
  margin: 0 0 14px;
  line-height: 1.25;
}
.chart-canvas {
  position: relative;
  height: 250px;
  min-height: 0;
}
.chart-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}
.single-chart .chart-canvas {
  height: min(420px, 62vh);
}
.reports-panel {
  min-height: 0;
}
.report-grid,
.partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}
.report-mini {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .menu { display: none; }
  .hamb { display: grid; }
  .menu.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 4%;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 20px 40px rgba(7, 31, 79, .12);
  }
  .menu.open a,
  .menu.open button {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 12px;
    border-radius: 8px;
  }
  .hero-grid,
  .preview,
  .about,
  .cta-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 540px; }
  .cards,
  .six-grid,
  .commit,
  .badges,
  .portal-cards,
  .report-grid,
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline,
  .split,
  .portal,
  .chart-grid { grid-template-columns: 1fr; }
  .vs { margin: auto; }
  .portal-side {
    position: relative;
    height: auto;
  }
  .portal-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
  }
  .mock-row { max-width: 760px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), 1160px); }
  .section { padding: 54px 0; }
  .brand { font-size: 13px; }
  .brand > div:last-child { font-size: 13px; }
  .brand small { font-size: 10px; }
  .vision-copy {
    font-size: 17px;
    line-height: 1.65;
  }
  .logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .cards,
  .six-grid,
  .commit,
  .badges,
  .portal-cards,
  .report-grid,
  .partner-grid,
  .report-mini { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 42px; }
  .hero-copy { display: contents; }
  .hero-intro { order: 1; }
  .hero-art { order: 2; }
  .promise { order: 3; }
  .hero-actions { order: 4; }
  .hero h1 { font-size: 46px; }
  .script { font-size: 34px; }
  .promise { align-items: flex-start; }
  .candidate {
    right: 0;
    top: 0;
    width: min(310px, 88%);
    height: 340px;
  }
  .building {
    right: 0;
    width: 100%;
    height: 240px;
  }
  .hero-art { min-height: 500px; }
  .laptop {
    left: 0;
    height: 260px;
    padding: 9px;
  }
  .laptop::after {
    left: 0;
    right: 0;
  }
  .mock-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 100%;
  }
  .mock-row .laptop {
    width: 100% !important;
    min-width: 0;
    height: 285px !important;
  }
  .phone {
    width: 126px;
    height: 238px;
    flex-basis: 126px;
  }
  .stat-row,
  .charts { grid-template-columns: 1fr 1fr; }
  .screen { grid-template-columns: 86px minmax(0, 1fr); }
  .screen-watermark {
    max-width: 80%;
    font-size: 11px;
    letter-spacing: .02em;
    color: rgba(7, 31, 79, .34);
  }
  .side {
    padding: 9px;
    font-size: 10px;
  }
  .side div { padding: 7px 5px; }
  .dash { padding: 9px; }
  .stat {
    padding: 8px;
    font-size: 9px;
  }
  .stat b { font-size: 12px; }
  .portal-main { padding: 18px; }
  .portal-side { padding: 18px; }
  .portal-menu { grid-template-columns: 1fr; }
  .portal-menu button { padding: 11px 12px; }
  .portal-cards { gap: 12px; }
  .chart-grid { gap: 14px; }
  .chart-panel {
    min-height: 0;
    padding: 14px;
  }
  .chart-canvas { height: 230px; }
  .single-chart .chart-canvas { height: 300px; }
  .hero-actions .btn { width: 100%; }
  .cta-grid { gap: 22px; }
  .login-card { padding: 26px; }
  .footer-grid { display: grid; }
}
