:root {
  --bg: #edf1e9;
  --surface: #fbfcf8;
  --surface-soft: #f3f7ee;
  --ink: #142017;
  --muted: #657064;
  --line: #d9e3d1;
  --green: #86ad4d;
  --green-dark: #314b28;
  --green-soft: #e8f2da;
  --blue: #557fa6;
  --blue-soft: #e5edf4;
  --gold: #b9903b;
  --gold-soft: #f4ead4;
  --coral: #c86d5a;
  --coral-soft: #fae4dd;
  --navy: #20365a;
  --shadow: 0 18px 48px rgba(34, 48, 30, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(134, 173, 77, 0.16), transparent 340px),
    linear-gradient(90deg, rgba(85, 127, 166, 0.07), transparent 44%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  font: 800 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.page {
  width: min(100% - 44px, 1680px);
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(217, 227, 209, 0.9);
  border-radius: 8px;
  background: rgba(251, 252, 248, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(40, 56, 36, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(48, 75, 40, 0.18);
}

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

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

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

.nav,
.language-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a,
.language-switch a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.language-switch a.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green-dark);
}

.section {
  padding: 44px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1.02;
}

h2 {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
}

h3 {
  font-size: 19px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.56;
}

.hero {
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: start;
}

.hero-copy .lead {
  margin-top: 20px;
}

.mission-stack,
.playbook-grid {
  display: grid;
  gap: 12px;
}

.mission-card,
.role-card,
.logic-card,
.module-card,
.guidance-card,
.metric-card,
.asset-card,
.decision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mission-card {
  padding: 18px;
}

.mission-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mission-card h3 img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.mission-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tag-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

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

.role-card {
  min-height: 180px;
  padding: 16px;
  text-decoration: none;
}

.role-card small,
.logic-card .mini,
.module-card small {
  display: block;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.role-card h3,
.logic-card h3,
.module-card h3 {
  margin-top: 10px;
}

.role-card p,
.logic-card p,
.module-card p,
.asset-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.role-card span {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.command-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.command-summary article {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(232, 242, 218, 0.68));
  box-shadow: var(--shadow);
}

.command-summary small,
.command-top span {
  display: block;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.command-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.35;
}

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

.command-card {
  min-height: 252px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.command-card.now {
  border-color: rgba(134, 173, 77, 0.55);
}

.command-card.next {
  border-color: rgba(85, 127, 166, 0.36);
}

.command-card.gated {
  border-color: rgba(185, 144, 59, 0.4);
}

.command-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-top strong {
  width: 38px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.command-card.next .command-top strong {
  background: var(--blue);
}

.command-card.gated .command-top strong {
  background: var(--gold);
}

.command-card h3 {
  margin-top: 14px;
}

.command-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.command-meta {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 7px;
}

.command-meta span {
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.logic-map,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.logic-card {
  min-height: 190px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.logic-card::after {
  content: attr(data-step);
  position: absolute;
  right: 14px;
  bottom: 4px;
  color: rgba(49, 75, 40, 0.08);
  font-size: 76px;
  font-weight: 950;
}

.asset-card {
  min-height: 170px;
  padding: 16px;
}

.asset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-head img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.asset-head .mxcd {
  border-radius: 14px;
}

.status-chip {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}

.blue {
  background: var(--blue-soft);
  color: #294c6a;
}

.gold {
  background: var(--gold-soft);
  color: #6a4c18;
}

.coral {
  background: var(--coral-soft);
  color: #8a3d2f;
}

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

.module-card {
  min-height: 154px;
  padding: 15px;
}

.screen-band {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.phone {
  width: 360px;
  height: 760px;
  border: 9px solid #101a13;
  border-radius: 32px;
  background: #f9fbf4;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(18, 28, 20, 0.24);
}

.phone-top {
  height: 40px;
  padding: 12px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 900;
}

.phone-content {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-title img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
}

.app-title strong,
.app-title span {
  display: block;
}

.app-title strong {
  font-size: 20px;
}

.app-title span {
  color: var(--muted);
  font-size: 12px;
}

.mini-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-card.green {
  color: #fff;
  background: linear-gradient(135deg, #8eb95a, #577e3c);
}

.mini-card.green span,
.mini-card.green p {
  color: rgba(255, 255, 255, 0.82);
}

.mini-card h4 {
  font-size: 16px;
}

.mini-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.balance {
  font-size: 36px;
  font-weight: 950;
  letter-spacing: 0;
}

.asset-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.asset-row img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.asset-row strong,
.asset-row span {
  display: block;
}

.asset-row span {
  color: var(--muted);
  font-size: 12px;
}

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

.action {
  min-height: 58px;
  padding: 10px 6px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

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

.guidance-card {
  padding: 17px;
}

.guidance-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guidance-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.req-matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.req-row {
  display: grid;
  grid-template-columns: 155px 1fr 1fr 1.08fr 1.08fr;
}

.req-row + .req-row {
  border-top: 1px solid var(--line);
}

.req-row div {
  padding: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.req-row div:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 900;
}

.req-row.head div {
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 950;
  text-transform: uppercase;
}

.matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.matrix-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
}

.matrix-row + .matrix-row {
  border-top: 1px solid var(--line);
}

.matrix-row div {
  padding: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.matrix-row div:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 900;
}

.matrix-row.head div {
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 950;
  text-transform: uppercase;
}

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

.metric-grid + .metric-grid {
  margin-top: 12px;
}

.metric-card,
.decision-card {
  padding: 16px;
}

.metric-card p,
.decision-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.journey-card {
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.journey-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.journey-head small {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.journey-card h3 {
  margin-top: 14px;
}

.journey-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.journey-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.journey-card strong {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.45;
}

.decision-log {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.decision-row {
  display: grid;
  grid-template-columns: 170px 1.15fr 1fr 170px 1fr;
}

.decision-row + .decision-row {
  border-top: 1px solid var(--line);
}

.decision-row div {
  padding: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.decision-row div:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 900;
}

.decision-row.head div {
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 950;
  text-transform: uppercase;
}

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

.links a {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.links strong,
.links span {
  display: block;
}

.links span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.handoff-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.26fr);
  gap: 14px;
  margin-bottom: 18px;
}

.handoff-note,
.source-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.handoff-note h3,
.source-note h3 {
  font-size: 19px;
}

.handoff-note p,
.source-note p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.workstream-card {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.workstream-card small {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.workstream-card h3 {
  margin-top: 10px;
}

.workstream-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.handoff-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.handoff-actions a {
  min-height: auto;
  padding: 8px 10px;
  border: 1px solid rgba(134, 173, 77, 0.42);
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.handoff-actions a.secondary {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.resource-heading {
  margin: 28px 0 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.resource-heading h3 {
  font-size: 24px;
}

.resource-heading p {
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .hero,
  .section-head,
  .screen-band,
  .handoff-overview {
    grid-template-columns: 1fr;
  }

  .dashboard,
  .command-summary,
  .logic-map,
  .asset-grid,
  .command-grid,
  .module-grid,
  .journey-grid,
  .workstream-grid,
  .links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 1680px);
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav,
  .language-switch {
    justify-content: flex-start;
  }

  .dashboard,
  .command-summary,
  .logic-map,
  .asset-grid,
  .command-grid,
  .module-grid,
  .playbook-grid,
  .metric-grid,
  .decision-grid,
  .journey-grid,
  .workstream-grid,
  .links {
    grid-template-columns: 1fr;
  }

  .resource-heading {
    display: block;
  }

  .resource-heading p {
    margin-top: 8px;
  }

  .matrix {
    overflow-x: auto;
  }

  .req-matrix {
    overflow-x: auto;
  }

  .decision-log {
    overflow-x: auto;
  }

  .req-row {
    min-width: 1100px;
  }

  .decision-row {
    min-width: 1120px;
  }

  .matrix-row {
    min-width: 860px;
  }

  h1 {
    font-size: 40px;
  }
}
