:root {
  --ink: #102033;
  --muted: #52657b;
  --panel: #ffffff;
  --cyan: #20c8e8;
  --blue: #1d4ed8;
  --blue-deep: #123a8f;
  --blue-soft: #eaf4ff;
  --yellow: #f7c948;
  --green: #13b981;
  --green-deep: #08785d;
  --coral: #f26d6d;
  --line: rgba(16, 32, 51, 0.13);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbff;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 44px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(16, 32, 51, 0.14));
}

.site-header .brand img:first-child {
  width: 56px;
  height: 56px;
}

.site-header .brand img:nth-child(2) {
  width: 64px;
  height: 56px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a,
.nav-action,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 17px;
  font-weight: 800;
}

.site-nav a {
  color: #40556d;
}

.site-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-action,
.primary-action {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.26);
}

.secondary-action {
  color: var(--blue);
  background: #ffffff;
  border: 1px solid rgba(35, 81, 216, 0.18);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 116px clamp(18px, 6vw, 90px) 52px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(18, 58, 143, 0.98), rgba(29, 78, 216, 0.88) 44%, rgba(19, 185, 129, 0.82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Crect width='1600' height='900' fill='%23123a8f'/%3E%3Cpath d='M0 560C244 462 402 652 640 548s366-314 640-168 320 118 320 118v402H0Z' fill='%2320c8e8'/%3E%3Cpath d='M0 690c184-120 398-36 570-82 246-66 346-246 586-176 172 50 268 178 444 80v388H0Z' fill='%2313b981'/%3E%3Cpath d='M0 0h1600v142C1284 86 1070 204 790 126 528 52 338 54 0 164Z' fill='%23f7c948' opacity='.34'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

#heroCanvas,
#closingCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-ribbon {
  position: absolute;
  width: 58vw;
  height: 18px;
  transform: rotate(-18deg);
  border-radius: 999px;
  opacity: 0.8;
  animation: ribbonSlide 7s ease-in-out infinite alternate;
}

.ribbon-one {
  left: -12vw;
  top: 28%;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
}

.ribbon-two {
  right: -18vw;
  bottom: 20%;
  background: linear-gradient(90deg, var(--green), var(--cyan), #ffffff);
  animation-delay: -2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-logos img {
  width: clamp(92px, 9vw, 124px);
  height: clamp(92px, 9vw, 124px);
  object-fit: contain;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  animation: logoFloat 4s ease-in-out infinite;
}

.hero-logos img:nth-child(1) {
  padding: 12px;
}

.hero-logos img:nth-child(2) {
  padding: 6px;
}

.hero-logos img:nth-child(2) {
  animation-delay: -1.2s;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 16px;
  max-width: 880px;
  font-size: clamp(78px, 16vw, 190px);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.subtitle {
  max-width: 780px;
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-actions .primary-action,
.closing .primary-action {
  min-height: 52px;
  padding: 0 24px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.hero-actions .secondary-action {
  min-height: 52px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-live {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: 54px;
  z-index: 2;
  width: min(360px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.live-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pulse-line {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  margin-bottom: 16px;
}

.pulse-line span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #fff, var(--yellow));
  animation: barPulse 1.8s ease-in-out infinite;
}

.pulse-line span:nth-child(1) { height: 42%; }
.pulse-line span:nth-child(2) { height: 82%; animation-delay: -0.3s; }
.pulse-line span:nth-child(3) { height: 60%; animation-delay: -0.6s; }
.pulse-line span:nth-child(4) { height: 96%; animation-delay: -0.9s; }

.hero-live dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.hero-live div:not(.live-head):not(.pulse-line) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-live dt {
  color: rgba(255, 255, 255, 0.8);
}

.hero-live dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: clamp(62px, 8vw, 108px) clamp(18px, 5vw, 76px);
}

.section-title {
  max-width: 920px;
  margin-bottom: 30px;
}

.section-title p,
.feature-card p,
.issue-grid p,
.flow-track p,
.region-copy p,
.timeline p {
  color: var(--muted);
  line-height: 1.62;
}

.issue-section {
  background: #ffffff;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.issue-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: 0 18px 52px rgba(16, 32, 51, 0.08);
}

.issue-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: var(--blue-deep);
}

.issue-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.15;
}

.capacity-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  background:
    linear-gradient(135deg, #eef9ff 0%, #ffffff 54%, #eefaf5 100%);
}

.capacity-section .eyebrow {
  color: var(--green-deep);
}

.capacity-copy p {
  color: var(--muted);
  line-height: 1.62;
}

.capacity-note {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  border-left: 5px solid var(--green);
  border-radius: 14px;
  padding: 16px 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 32, 51, 0.08);
}

.capacity-note span {
  color: var(--muted);
  line-height: 1.5;
}

.capacity-board {
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(16, 32, 51, 0.13);
}

.capacity-status {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(18, 58, 143, 0.96), rgba(19, 185, 129, 0.9)),
    linear-gradient(90deg, var(--blue), var(--green));
}

.capacity-status span,
.capacity-status small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.capacity-status strong {
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.9;
}

.capacity-metrics,
.capacity-insight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capacity-metrics article,
.capacity-insight div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capacity-metrics article:nth-child(4),
.capacity-insight div:nth-child(3) {
  border-right: 0;
}

.capacity-metrics span,
.capacity-insight span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.capacity-metrics strong,
.capacity-insight b {
  font-size: 28px;
  line-height: 1;
}

.capacity-metrics article:nth-child(1) strong { color: var(--blue-deep); }
.capacity-metrics article:nth-child(2) strong { color: var(--coral); }
.capacity-metrics article:nth-child(3) strong { color: var(--blue); }
.capacity-metrics article:nth-child(4) strong { color: var(--green-deep); }

.capacity-insight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f8fcff;
}

.capacity-insight b {
  color: var(--ink);
  font-size: 34px;
}

.capacity-warning {
  margin: 0;
  padding: 18px 20px;
  color: #7a3e06;
  line-height: 1.55;
  background: #fff6df;
  border-top: 1px solid rgba(247, 201, 72, 0.42);
}

.dropout-section {
  background:
    linear-gradient(135deg, #fff4f4 0%, #ffffff 54%, #eef6ff 100%);
}

.dropout-section .eyebrow {
  color: #b42318;
}

.dropout-board .capacity-status {
  background:
    linear-gradient(125deg, rgba(180, 35, 24, 0.96), rgba(29, 78, 216, 0.88)),
    linear-gradient(90deg, #b42318, var(--blue));
}

.dropout-board .capacity-metrics article:nth-child(1) strong { color: #b42318; }
.dropout-board .capacity-metrics article:nth-child(2) strong { color: #a45d00; }
.dropout-board .capacity-metrics article:nth-child(3) strong { color: var(--blue); }
.dropout-board .capacity-metrics article:nth-child(4) strong { color: var(--green-deep); }

.dropout-board .capacity-warning {
  color: #6d2a23;
  background: #fff0ee;
  border-top-color: rgba(242, 109, 109, 0.36);
}

.feature-section {
  background:
    linear-gradient(180deg, #ffffff, #f4fbff),
    repeating-linear-gradient(90deg, rgba(0, 184, 217, 0.12) 0 1px, transparent 1px 70px);
}

.feature-section .eyebrow,
.issue-section .eyebrow,
.flow-section .eyebrow,
.region-section .eyebrow,
.roadmap .eyebrow {
  color: var(--blue);
}

.feature-grid,
.flow-track,
.timeline {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.flow-track article,
.timeline article,
.region-cell {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(16, 32, 51, 0.08);
}

.feature-card {
  min-height: 250px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  animation: cardLift 5s ease-in-out infinite;
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
}

.feature-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
}

.feature-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.feature-card.blue span,
.feature-card.blue::after { background: var(--blue); }
.feature-card.green span,
.feature-card.green::after { background: var(--green); }
.feature-card.yellow span,
.feature-card.yellow::after { background: var(--yellow); color: #322400; }

.feature-card:nth-child(2) { animation-delay: -1s; }
.feature-card:nth-child(3) { animation-delay: -2s; }
.feature-card:nth-child(4) { animation-delay: -3s; }

.flow-section {
  background: #102033;
  color: #ffffff;
}

.flow-section .section-title p,
.flow-track p {
  color: rgba(255, 255, 255, 0.72);
}

.flow-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: flow;
}

.flow-track article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.flow-track article::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--green));
  animation: trackRun 2.6s linear infinite;
}

.flow-action {
  position: relative;
  z-index: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.flow-track i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
  color: var(--ink);
  background: var(--yellow);
}

.region-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  align-items: center;
  gap: 28px;
  background: #fff7e8;
}

.input-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: start;
  background:
    linear-gradient(180deg, #f4fbff, #ffffff),
    repeating-linear-gradient(90deg, rgba(29, 78, 216, 0.1) 0 1px, transparent 1px 72px);
}

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

.input-copy .eyebrow {
  color: var(--blue);
}

.input-copy p,
.input-copy li {
  color: var(--muted);
  line-height: 1.62;
}

.input-copy ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.school-report-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(16, 32, 51, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.school-report-form label {
  display: grid;
  gap: 7px;
}

.school-report-form span {
  color: #32465f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.school-report-form input,
.school-report-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 32, 51, 0.16);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: #f8fbff;
  font: inherit;
}

.school-report-form input {
  min-height: 44px;
}

.school-report-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.24);
}

.form-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-actions p.ok {
  color: var(--green-deep);
  font-weight: 800;
}

.form-actions p.error {
  color: #b42318;
  font-weight: 800;
}

.region-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.region-cell {
  min-height: 170px;
  padding: 24px;
  color: #ffffff;
  overflow: hidden;
}

.region-cell span,
.region-cell strong {
  position: relative;
  z-index: 1;
  display: block;
}

.region-cell span {
  margin-bottom: 14px;
  opacity: 0.86;
}

.region-cell strong {
  font-size: 27px;
  line-height: 1.05;
}

.region-cell.city {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.region-cell.regency {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
}

.region-cell.sync {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue), var(--cyan));
}

.roadmap {
  background: #ffffff;
}

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

.timeline article {
  min-height: 210px;
  padding: 24px;
}

.timeline time {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 0 13px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.timeline article:nth-child(2) time {
  background: var(--cyan);
}

.timeline article:nth-child(3) time {
  background: var(--green);
}

.closing {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: clamp(62px, 8vw, 108px) clamp(18px, 5vw, 76px);
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #102033, var(--blue) 48%, var(--green));
}

.closing > *:not(canvas) {
  position: relative;
  z-index: 1;
}

.closing h2 {
  max-width: 980px;
}

.site-footer {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 76px);
  color: var(--muted);
  background: #ffffff;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes ribbonSlide {
  from { transform: translate3d(-24px, 0, 0) rotate(-18deg); }
  to { transform: translate3d(32px, 18px, 0) rotate(-15deg); }
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.76; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

@keyframes cardLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes trackRun {
  from { background-position: 0 0; }
  to { background-position: 180px 0; }
}

@media (max-width: 1020px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-live {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .feature-grid,
  .issue-grid,
  .flow-track,
  .timeline,
  .input-section,
  .region-section,
  .capacity-section {
    grid-template-columns: 1fr 1fr;
  }

  .capacity-section {
    align-items: stretch;
  }

  .capacity-board {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    width: 36px;
    height: 42px;
  }

  .nav-action {
    width: 100%;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-logos img {
    width: 64px;
    height: 72px;
  }

  .feature-grid,
  .issue-grid,
  .flow-track,
  .timeline,
  .input-section,
  .form-grid,
  .region-section,
  .region-board,
  .capacity-section,
  .capacity-metrics,
  .capacity-insight {
    grid-template-columns: 1fr;
  }

  .capacity-status {
    min-height: 180px;
  }

  .capacity-metrics article,
  .capacity-insight div {
    border-right: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .region-cell.sync {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
