:root {
  --ink: #10201b;
  --muted: #60716a;
  --line: #dfe8e3;
  --paper: #ffffff;
  --soft: #f2f8f5;
  --brand: #0b7a53;
  --brand-strong: #055f40;
  --gold: #f5b83b;
  --blue: #1864ab;
  --danger: #c2410c;
  --shadow: 0 22px 60px rgba(13, 62, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans Devanagari", system-ui, sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #34443e;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--brand);
}

.top-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.section-cta {
  margin-top: 10px;
}

.primary-button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(11, 122, 83, 0.22);
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button,
.ghost-button {
  color: var(--brand-strong);
  background: #e8f5ef;
}

.section-band {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at top left, rgba(245, 184, 59, 0.18), transparent 36%),
    linear-gradient(135deg, #edf8f2 0%, #ffffff 48%, #eef6ff 100%);
}

.section-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0;
  color: #3c5149;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-row span {
  padding: 12px 14px;
  border: 1px solid rgba(11, 122, 83, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.command-center {
  padding: 20px;
  border: 1px solid rgba(11, 122, 83, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel-header,
.profile-strip,
.progress-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  margin-bottom: 18px;
  font-weight: 800;
}

.live-dot {
  color: #077547;
  font-size: 12px;
}

.profile-strip {
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.profile-strip small,
.progress-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.profile-strip small {
  color: #b9cdc5;
}

.score {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.progress-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.progress-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.status {
  width: 12px;
  height: 42px;
  border-radius: 999px;
  flex: 0 0 auto;
}

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

.review {
  background: var(--gold);
}

.approved {
  background: var(--brand);
}

.secure-note {
  padding: 12px;
  border-radius: 8px;
  color: var(--brand-strong);
  background: #e9f8f1;
  font-size: 14px;
  font-weight: 700;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
}

.quick-actions a,
.country-grid button {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 800;
  text-align: left;
  box-shadow: 0 10px 24px rgba(16, 32, 27, 0.05);
}

.quick-actions a:hover,
.country-grid button:hover {
  border-color: var(--brand);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.family-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.family-card,
.entity-card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 44px rgba(16, 32, 27, 0.08);
}

.family-card-header,
.family-summary,
.profile-columns {
  display: grid;
  gap: 14px;
}

.family-card-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.family-card-header small,
.family-summary small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
}

.family-card-header strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
}

.family-card-header span {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: #e9f8f1;
  font-weight: 900;
  white-space: nowrap;
}

.family-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.family-summary div {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

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

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

.status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34443e;
  font-weight: 800;
}

.status-list span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.status-list .ok span {
  background: var(--brand);
}

.status-list .warn span {
  background: var(--gold);
  color: var(--ink);
}

.status-list .missing span {
  background: var(--danger);
}

.entity-card {
  align-content: start;
}

.entity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.entity-grid code {
  padding: 9px 10px;
  border: 1px solid rgba(11, 122, 83, 0.18);
  border-radius: 999px;
  color: var(--brand-strong);
  background: #f4fbf8;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.entity-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-card,
.security-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  font-size: 24px;
}

.service-card p,
.security-grid p,
.two-column p,
.support p {
  color: var(--muted);
  line-height: 1.65;
}

.service-card button {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-strong);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.checker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: #34443e;
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.result-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(11, 122, 83, 0.22);
  border-radius: 8px;
  background: white;
}

.result-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.timeline,
.crm-board {
  display: grid;
  gap: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.timeline-step span {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: #cfdcd6;
}

.timeline-step small {
  grid-column: 2;
  color: var(--muted);
}

.timeline-step.done span {
  background: var(--brand);
}

.timeline-step.active {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(11, 122, 83, 0.1);
}

.timeline-step.active span {
  background: var(--gold);
}

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

.country-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.architecture {
  text-align: center;
}

.architecture .section-heading {
  margin-right: auto;
  margin-left: auto;
}

.architecture-map {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 122, 83, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(11, 122, 83, 0.07) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
  box-shadow: 0 18px 50px rgba(16, 32, 27, 0.08);
}

.node {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid rgba(11, 122, 83, 0.2);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(16, 32, 27, 0.08);
  font-weight: 900;
}

.node small {
  display: block;
  max-width: 180px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.platform-node,
.core-node,
.ceo-node {
  width: min(360px, 100%);
  color: white;
  background: var(--ink);
  border-color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.core-node {
  background: var(--brand);
  border-color: var(--brand);
}

.ceo-node {
  background: var(--blue);
  border-color: var(--blue);
}

.role-row,
.engine-row {
  display: grid;
  width: 100%;
  gap: 14px;
}

.role-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.engine-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.role-node {
  min-height: 74px;
}

.citizen {
  border-color: rgba(24, 100, 171, 0.25);
  background: #edf6ff;
}

.agent {
  border-color: rgba(11, 122, 83, 0.25);
  background: #edf8f2;
}

.partner {
  border-color: rgba(245, 184, 59, 0.5);
  background: #fff8e8;
}

.engine-node {
  min-height: 128px;
  align-content: center;
}

.ai-node {
  color: var(--ink);
  background: #fff5d8;
  border-color: rgba(245, 184, 59, 0.7);
}

.connector {
  width: 2px;
  height: 28px;
  background: var(--brand);
  opacity: 0.5;
}

.connector.split {
  position: relative;
  width: min(620px, 70%);
  height: 34px;
  background: transparent;
  border-top: 2px solid rgba(11, 122, 83, 0.34);
  border-right: 2px solid rgba(11, 122, 83, 0.34);
  border-left: 2px solid rgba(11, 122, 83, 0.34);
}

.connector.split::before,
.connector.split::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 2px;
  height: 34px;
  background: rgba(11, 122, 83, 0.34);
}

.connector.split::before {
  left: 50%;
}

.connector.split::after {
  display: none;
}

.crm-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-board div {
  min-height: 132px;
  padding: 20px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.crm-board span {
  display: block;
  margin-top: 20px;
  font-size: 42px;
  font-weight: 900;
}

.security {
  background: #0e211b;
  color: white;
}

.security .eyebrow,
.security-grid p {
  color: #bce8d8;
}

.security-grid article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(8, 23, 18, 0.45);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.dialog-card h2 {
  font-size: 28px;
}

.dialog-card p {
  margin: 0;
  color: var(--muted);
}

.close-button {
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
  font-size: 24px;
}

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

.language-list button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.service-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 360px;
  padding: 16px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform 180ms ease;
}

.service-toast.show {
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .family-layout {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .service-grid,
  .security-grid,
  .country-grid,
  .checker,
  .family-summary,
  .profile-columns,
  .engine-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .main-nav {
    display: none;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions button {
    flex: 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .support {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-actions,
  .service-grid,
  .security-grid,
  .country-grid,
  .checker,
  .family-summary,
  .profile-columns,
  .role-row,
  .engine-row,
  .crm-board,
  .language-list {
    grid-template-columns: 1fr;
  }

  .connector.split {
    width: 2px;
    height: 28px;
    border: 0;
    background: var(--brand);
  }

  .command-center {
    padding: 14px;
  }
}
