:root {
  --ink: #17211f;
  --muted: #62706c;
  --line: #dce5e0;
  --paper: #f6faf7;
  --white: #ffffff;
  --green: #1f7a5a;
  --green-dark: #15543f;
  --mint: #e2f5eb;
  --sage: #b8d6c6;
  --coral: #d7644f;
  --gold: #efb84d;
  --blue: #376da8;
  --shadow: 0 28px 80px rgba(23, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 229, 224, 0.82);
  background: rgba(246, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  padding: clamp(42px, 5vw, 74px) clamp(18px, 5vw, 72px) clamp(36px, 5vw, 64px);
  background:
    radial-gradient(circle at 10% 15%, rgba(226, 245, 235, 0.95), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lead,
.workflow-copy p,
.impact-copy p,
.registration-copy p,
.feature-card p,
.workflow-step p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(55, 109, 168, 0.35);
  outline-offset: 3px;
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(31, 122, 90, 0.22);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 660px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  padding: 18px 18px 0 0;
}

.hero-metrics dt {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 620px);
}

.app-window,
.phone-mock {
  border: 1px solid rgba(220, 229, 224, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 245, 235, 0.64)),
    var(--white);
  box-shadow: var(--shadow);
}

.app-window {
  padding: 18px;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 6px 0 18px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sage);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--coral);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.beneficiary-card,
.fund-card,
.request-card,
.timeline-card,
.feature-card,
.workflow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.beneficiary-card,
.fund-card,
.request-card,
.timeline-card {
  min-height: 210px;
  padding: 20px;
}

.card-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.beneficiary-card strong,
.fund-card strong,
.request-card strong {
  display: block;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.1;
}

.beneficiary-card small {
  display: block;
  margin-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.avatar-stack {
  display: flex;
  margin-bottom: 30px;
}

.avatar-stack span {
  width: 48px;
  height: 48px;
  margin-right: -12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
}

.avatar-stack span:nth-child(2) {
  background: var(--sage);
}

.avatar-stack span:nth-child(3) {
  background: var(--blue);
}

.fund-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 92px;
  margin-top: 26px;
}

.fund-bars span {
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--green), var(--sage));
}

.request-card {
  background: #17211f;
  color: var(--white);
}

.request-card .card-label,
.request-card .request-row span {
  color: rgba(255, 255, 255, 0.68);
}

.request-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.approved {
  color: #9de1ba;
}

.timeline-card ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

.timeline-card li {
  position: relative;
  padding-left: 22px;
}

.timeline-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.features-section,
.workflow-section,
.impact-section,
.registration-section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 30px;
}

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

.feature-card {
  min-height: 310px;
  padding: 24px;
}

.feature-graphic {
  position: relative;
  height: 110px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--mint);
  overflow: hidden;
}

.feature-graphic.people span {
  position: absolute;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
}

.feature-graphic.people span:nth-child(1) {
  left: 30px;
  background: var(--gold);
}

.feature-graphic.people span:nth-child(2) {
  left: 74px;
  width: 58px;
  height: 58px;
}

.feature-graphic.people span:nth-child(3) {
  left: 130px;
  background: var(--blue);
}

.feature-graphic.wallet span:first-child {
  position: absolute;
  inset: 34px 26px 24px;
  border-radius: 8px;
  background: var(--green);
}

.feature-graphic.wallet span:last-child {
  position: absolute;
  right: 38px;
  top: 48px;
  width: 34px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.feature-graphic.document span {
  position: absolute;
  left: 34px;
  right: 34px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.feature-graphic.document span:nth-child(1) {
  top: 34px;
}

.feature-graphic.document span:nth-child(2) {
  top: 54px;
  right: 70px;
  background: var(--sage);
}

.feature-graphic.document span:nth-child(3) {
  top: 74px;
  right: 96px;
  background: var(--coral);
}

.feature-graphic.report {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
  padding: 24px;
}

.feature-graphic.report span {
  border-radius: 8px 8px 3px 3px;
  background: var(--green);
}

.feature-graphic.report span:nth-child(1) {
  height: 42%;
  background: var(--gold);
}

.feature-graphic.report span:nth-child(2) {
  height: 72%;
}

.feature-graphic.report span:nth-child(3) {
  height: 56%;
  background: var(--blue);
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 78px);
  background: var(--white);
}

.workflow-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

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

.workflow-step {
  min-height: 260px;
  padding: 24px;
}

.workflow-step span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--coral);
  font-weight: 800;
}

.impact-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  background: var(--ink);
  color: var(--white);
}

.impact-section .eyebrow {
  color: var(--gold);
}

.impact-copy {
  max-width: 670px;
}

.impact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.phone-mock {
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 20px;
  background: #f7faf8;
}

.phone-top {
  width: 72px;
  height: 8px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: #cad6d0;
}

.message-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
}

.message-card.muted {
  background: var(--white);
  color: var(--ink);
}

.message-card span {
  color: inherit;
  opacity: 0.78;
  line-height: 1.45;
}

.mini-chart {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.mini-chart span {
  height: 12px;
  border-radius: 999px;
  background: var(--sage);
}

.registration-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  background: var(--white);
}

.registration-copy {
  position: sticky;
  top: 112px;
}

.registration-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(23, 33, 31, 0.08);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cad6d0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

input:user-invalid {
  border-color: var(--coral);
}

.checkbox-label {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.checkbox-label input {
  min-height: 22px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.submit-button {
  width: 100%;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-message.success {
  color: var(--green-dark);
}

.form-message.error {
  color: #a03520;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .workflow-section,
  .impact-section,
  .registration-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: stretch;
  }

  .workflow-copy,
  .registration-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero-metrics,
  .dashboard-grid,
  .feature-grid,
  .workflow-steps,
  .form-row {
    grid-template-columns: 1fr;
  }

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