@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f6f4ec;
  --surface: #fffdf7;
  --surface-2: #efeadd;
  --ink: #1a1815;
  --muted: #6a655b;
  --faint: #918b7e;
  --line: #e4ddce;
  --line-strong: #d3cab6;
  --accent: #b8482a;
  --accent-soft: #f4e0d5;
  --sage: #4e6250;
  --sage-soft: #e6ebe2;
  --shadow: 0 1px 2px rgba(26, 24, 21, 0.04), 0 24px 48px -28px rgba(26, 24, 21, 0.28);
  font-family:
    "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  word-break: keep-all;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #9c3a1f;
}

button {
  font: inherit;
}

::selection {
  background: #f0d9cf;
}

@keyframes airoRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 236, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 11px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

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

.brand strong {
  color: var(--ink);
  font-size: 15.5px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-filter {
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.nav-filter:hover,
.nav-filter.is-active,
.nav-links a.is-active {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.nav-links a.nav-github {
  margin-left: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-copy {
  max-width: 820px;
  animation: airoRise 0.6s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow.line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow.line::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1,
h2 {
  font-family: "Noto Serif KR", serif;
  letter-spacing: 0;
}

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

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 66px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.85;
  letter-spacing: 0;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 26px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.button.primary:hover {
  color: #fff;
  filter: brightness(0.96);
}

.status-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: airoRise 0.6s ease 0.1s both;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px dashed var(--line);
  background: var(--surface-2);
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.status-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-weight: 500;
  white-space: nowrap;
}

.status-head strong span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.status-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.metric {
  flex: none;
  color: var(--accent);
  font-family: "Noto Serif KR", serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.metric + span {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

.free-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--surface-2);
}

.free-note > span {
  flex: none;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
  transform: rotate(-7deg);
}

.free-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.free-note strong,
.safety strong {
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.guide-hero {
  max-width: 860px;
  padding: 88px 0 72px;
  animation: airoRise 0.6s ease both;
}

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

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

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

.team-grid {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.03);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-labels {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.category-chip,
.affiliation-chip,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.affiliation-chip {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
}

.affiliation-chip[data-affiliation="허씨네"] {
  border-color: #d7c6df;
  background: #f0e9f3;
  color: #6d4e78;
}

.category-chip {
  background: var(--sage-soft);
  color: var(--sage);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.team-card .category-chip {
  background: var(--accent-soft);
  color: var(--accent);
}

.card-no,
.team-version {
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.team-version {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.worker-main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.agent-sprite {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(45deg, rgba(26, 24, 21, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(26, 24, 21, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(26, 24, 21, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(26, 24, 21, 0.04) 75%),
    var(--agent-bg);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: inset 0 -6px 0 rgba(26, 24, 21, 0.04);
}

.agent-sprite svg {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
}

.team-card {
  padding: 30px;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.team-card h3 {
  font-size: 24px;
}

.team-card p {
  max-width: 640px;
  font-size: 16px;
}

.team-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-roster li {
  display: grid;
  min-height: 118px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 12px;
}

.team-roster .agent-sprite {
  width: 62px;
  height: 62px;
  border-radius: 10px;
}

.team-roster .agent-sprite svg {
  width: 50px;
  height: 50px;
}

.team-roster span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

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

.guide-flow article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.03);
}

.guide-flow span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.guide-flow h2 {
  margin-top: 14px;
  font-family: inherit;
  font-size: 19px;
  line-height: 1.35;
}

.guide-flow p,
.guide-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.guide-list {
  display: grid;
  gap: 10px;
}

.guide-list p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 15px 17px;
}

.guide-list strong {
  color: var(--ink);
  font-weight: 700;
}

.guide-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.03);
}

.guide-panel h3 {
  margin-bottom: 18px;
}

.guide-panel .guide-list p {
  background: var(--surface-2);
}

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

.guide-checklist article,
.guide-matrix article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.03);
}

.guide-checklist span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--sage-soft);
  padding: 0 11px;
  color: var(--sage);
  font-size: 12.5px;
  font-weight: 700;
}

.guide-checklist p,
.guide-matrix p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.guide-terminal {
  min-height: 100%;
}

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

.guide-matrix h3 {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0;
}

.guide-safety {
  border-bottom: 1px solid var(--line);
}

.guide-manifesto {
  display: grid;
  place-items: center;
}

.manifesto-card {
  position: relative;
  overflow: hidden;
  width: min(760px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--sage-soft) 0%, transparent 46%),
    radial-gradient(120% 140% at 0% 100%, var(--accent-soft) 0%, transparent 44%),
    var(--surface);
  padding: 52px 48px 48px;
  box-shadow: var(--shadow);
  text-align: center;
}

.manifesto-card .eyebrow {
  margin-bottom: 26px;
}

.manifesto-lead {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.manifesto-lead em {
  color: var(--accent);
  font-style: normal;
}

.manifesto-body {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}

.manifesto-quote {
  position: relative;
  max-width: 560px;
  margin: 34px auto 0;
  padding-top: 30px;
  border-top: 1px dashed var(--line-strong);
  font-family: "Noto Serif KR", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--sage);
}

.manifesto-quote::before {
  content: "🌱";
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.runtime {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.card-footer span {
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.card-footer strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
}

.card-footer a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 56px;
  align-items: start;
}

.split p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--ink);
  padding: 8px;
  box-shadow: 0 24px 48px -28px rgba(26, 24, 21, 0.3);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
}

.terminal-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-head span:nth-child(1) {
  background: #e05a3d;
}

.terminal-head span:nth-child(2) {
  background: #e0b53d;
}

.terminal-head span:nth-child(3) {
  background: #68b06a;
}

.terminal-head small {
  margin-left: 8px;
  color: #8f887a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.file-tree {
  display: grid;
  gap: 7px;
  padding: 8px 20px 20px;
}

.file-tree code {
  color: #a49c8c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.file-tree code:first-child {
  color: #f6f4ec;
  padding-left: 0;
}

.file-tree code:not(:first-child) {
  padding-left: 22px;
}

.safety {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.safety p {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.worker-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.worker-card:hover,
.worker-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  outline: none;
}

.worker-card:focus-visible {
  border-color: var(--accent);
}

.worker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.card-cta {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.worker-card:hover .card-cta,
.worker-card:focus-visible .card-cta {
  opacity: 1;
}

.hire-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

.hire-button:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.hire-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hire-icon {
  flex: none;
}

.hire-button.is-pending {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--faint);
  cursor: not-allowed;
}

.hire-button.is-pending:hover {
  transform: none;
  filter: none;
  color: var(--faint);
}

.modal-hire {
  margin-top: 18px;
}

.modal-hire .hire-button {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14.5px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 21, 0.42);
  backdrop-filter: blur(3px);
  animation: airoRise 0.2s ease both;
}

.modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: airoRise 0.28s ease both;
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  display: grid;
  width: 36px;
  height: 36px;
  margin: 14px 14px 0 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-body {
  padding: 8px 32px 34px;
}

.modal-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
}

/* 팀 모달: 대표 캐릭터가 없으므로 한 칸(전체 너비)으로 */
.modal-hero--team {
  grid-template-columns: minmax(0, 1fr);
}

.modal-hero--team h3 {
  margin-top: 0;
}

.modal-hero h3 {
  margin: 12px 0 0;
  font-family: "Noto Serif KR", serif;
  font-size: 26px;
}

.modal-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}

.modal-meta span {
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.modal-meta strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.modal-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.modal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.modal-eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.modal-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.modal-steps li {
  position: relative;
  padding: 2px 0 2px 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  counter-increment: step;
}

.modal-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.modal-advanced {
  display: grid;
  gap: 12px;
}

.modal-advanced article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 16px 18px;
}

.modal-advanced h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.modal-advanced p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* 팀 카드: 클릭 가능 + 상호작용 보기 힌트 */
.team-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.team-card:hover,
.team-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  outline: none;
}

.team-card:focus-visible {
  border-color: var(--accent);
}

.team-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.team-card .card-cta {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.team-card:hover .card-cta,
.team-card:focus-visible .card-cta {
  opacity: 1;
}

/* 팀 모달: 구성원 로스터 + 상호작용 흐름 */
.modal-roster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 16px 18px 16px 46px;
}

.flow-step::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.flow-step.is-loop {
  border-style: dashed;
  border-color: var(--accent);
}

.flow-endpoints {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.flow-agent .agent-sprite {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.flow-agent .agent-sprite svg {
  width: 28px;
  height: 28px;
}

.flow-arrow {
  color: var(--accent);
  font-weight: 700;
}

.flow-team-badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.flow-detail {
  margin-top: 12px;
}

.flow-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
}

.flow-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer > span:first-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0;
}

.footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .safety {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding: 58px 0 76px;
  }

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

  .team-layout {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }
}

@media (max-width: 700px) {
  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 48px;
  }

  .guide-hero {
    padding: 56px 0 48px;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-footer strong {
    text-align: left;
  }

  .team-card {
    padding: 24px;
  }

  .team-roster {
    grid-template-columns: 1fr 1fr;
  }

  .guide-flow {
    grid-template-columns: 1fr;
  }

  .guide-checklist,
  .guide-matrix {
    grid-template-columns: 1fr;
  }

  .worker-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .manifesto-card {
    padding: 38px 24px 34px;
  }

  .manifesto-lead {
    font-size: 25px;
  }

  .manifesto-body {
    font-size: 16px;
  }

  .manifesto-quote {
    font-size: 17.5px;
  }

  .modal-body {
    padding: 8px 22px 28px;
  }

  .modal-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-hero h3 {
    font-size: 23px;
  }

  .agent-sprite {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .agent-sprite svg {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }
}

/* 채용 횟수 뱃지 — hire-count.js가 /api/downloads(디바이스 1회 dedup) 값으로 그린다.
   .card-top(space-between)의 우측 상단 인덱스번호(.card-no) 자리에 교체돼 들어간다. */
.hire-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b8482a;
  border: 1px solid rgba(184, 72, 42, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}
