:root {
  --ink: #102027;
  --muted: #66757f;
  --line: #d9e2e6;
  --paper: #f7f9fa;
  --white: #ffffff;
  --sea: #0f6c81;
  --harbor: #163b4a;
  --accent: #d4a84f;
  --soft: #edf4f5;
  --shadow: 0 18px 45px rgba(16, 32, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 249, 250, 0.94);
  border-bottom: 1px solid rgba(217, 226, 230, 0.85);
  backdrop-filter: blur(12px);
}

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

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

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: 82vh;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 80px) 56px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 108, 129, 0.12), rgba(212, 168, 79, 0.10)),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.86), rgba(247, 249, 250, 0) 34%),
    var(--paper);
}

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

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

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(46px, 8vw, 98px);
  line-height: 0.96;
  letter-spacing: 0;
}

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

h3 {
  margin: 0;
  font-size: 23px;
}

h4 {
  margin: 0;
  font-size: 20px;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.sublead {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.primary-action,
.secondary-action,
.card-actions a,
.card-actions button,
.scenario-card button,
.entity-card button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 16px;
  border: 0;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary-action,
.card-actions button,
.scenario-card button,
.entity-card button {
  background: var(--sea);
  color: var(--white);
}

.primary-action.dark {
  background: var(--ink);
}

.secondary-action,
.card-actions a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.selection-panel {
  padding: 26px;
  border: 1px solid rgba(217, 226, 230, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.selection-list {
  display: grid;
  gap: 12px;
}

.selection-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.selection-list span,
.progress-top span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.selection-list strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.progress-wrap {
  margin-top: 22px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e9ec;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sea), var(--accent));
  transition: width 180ms ease;
}

.panel-action {
  width: 100%;
  margin-top: 22px;
}

.boundary-band {
  padding: 20px clamp(20px, 5vw, 80px);
  background: var(--harbor);
  color: var(--white);
}

.boundary-band p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 18px;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 80px);
}

.muted-section,
.ecosystem-section {
  background: var(--soft);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.scenario-card,
.entity-card,
.ecosystem-flow div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 39, 0.08);
}

.scenario-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
}

.scenario-tag,
.place-kind {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(15, 108, 129, 0.10);
  color: var(--sea);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 750;
}

.scenario-card h3 {
  margin-top: 18px;
}

.scenario-card p,
.entity-card p,
.place-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.reference-list {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.reference-list li {
  padding-left: 14px;
  border-left: 3px solid rgba(212, 168, 79, 0.72);
}

.scenario-card button {
  width: 100%;
  margin-top: auto;
}

.builder-block {
  margin-top: 28px;
}

.builder-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.builder-title span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--harbor);
  color: var(--white);
  font-weight: 900;
}

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

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

.entity-card {
  overflow: hidden;
}

.entity-card.is-selected,
.scenario-card.is-selected {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(15, 108, 129, 0.16), 0 12px 32px rgba(16, 32, 39, 0.08);
}

.card-visual {
  display: grid;
  min-height: 150px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(22, 59, 74, 0.92), rgba(15, 108, 129, 0.72)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.card-body {
  padding: 20px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.person-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: stretch;
}

.avatar {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: var(--harbor);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.person-card button,
.place-card button {
  width: 100%;
  margin-top: 18px;
}

.place-card {
  min-height: 230px;
  padding: 20px;
}

.place-kind {
  margin-bottom: 18px;
}

.trust-section {
  background: var(--white);
}

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

.trust-grid div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.trust-grid span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--sea);
  color: var(--white);
  font-weight: 900;
}

.trust-grid p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.ecosystem-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr;
  align-items: stretch;
  gap: 12px;
}

.ecosystem-flow div {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 20px;
}

.ecosystem-flow b {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 30px;
}

.ecosystem-flow strong {
  font-size: 22px;
}

.ecosystem-flow span {
  margin-top: 6px;
  color: var(--muted);
}

.ecosystem-flow .flow-result {
  background: var(--harbor);
  color: var(--white);
}

.ecosystem-flow .flow-result span {
  color: rgba(255, 255, 255, 0.72);
}

.request-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(20px, 5vw, 80px) clamp(60px, 7vw, 88px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 168, 79, 0.28), rgba(15, 108, 129, 0.20)),
    var(--white);
  box-shadow: var(--shadow);
}

.request-section p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .scenario-grid,
  .place-grid,
  .ecosystem-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-flow b {
    display: none;
  }
}

@media (max-width: 820px) {
  .entity-grid,
  .scenario-grid,
  .place-grid,
  .trust-grid,
  .ecosystem-flow {
    grid-template-columns: 1fr;
  }
}

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

  .top-nav {
    justify-content: flex-start;
    gap: 12px;
  }

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

  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .lead {
    font-size: 22px;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .avatar {
    min-height: 92px;
  }

  .request-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .panel-action {
    width: 100%;
  }
}
