:root {
  --white: #ffffff;
  --canvas: #fbfbfd;
  --surface: #f5f5f7;
  --surface-strong: #e8e8ed;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #737378;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #007c60;
  --amber: #b66a00;
  --red: #d13a32;
  --on-dark: #f5f5f7;
  --on-dark-muted: rgba(245, 245, 247, 0.68);
  --on-dark-subtle: rgba(245, 245, 247, 0.54);
  --stage-bg: #eef3fa;
  --stage-surface: rgba(255, 255, 255, 0.72);
  --stage-cell: rgba(255, 255, 255, 0.58);
  --stage-text: #111318;
  --stage-muted: rgba(17, 19, 24, 0.66);
  --stage-subtle: rgba(17, 19, 24, 0.62);
  --stage-line: rgba(17, 19, 24, 0.11);
  --stage-glow-blue: rgba(0, 113, 227, 0.22);
  --stage-glow-green: rgba(0, 166, 126, 0.16);
  --hero-line: rgba(29, 29, 31, 0.12);
  --hero-node: rgba(0, 113, 227, 0.76);
  --technical-grid: rgba(29, 29, 31, 0.055);
  --story-bg: #eef2f7;
  --story-surface: rgba(255, 255, 255, 0.7);
  --story-line: rgba(17, 19, 24, 0.12);
  --story-muted: rgba(17, 19, 24, 0.6);
  --story-text: #111318;
  --topbar: rgba(255, 255, 255, 0.82);
  --overlay: rgba(0, 0, 0, 0.28);
  --shadow-stage: 0 30px 100px rgba(45, 62, 85, 0.16);
  --shadow-soft: 0 18px 56px rgba(34, 43, 57, 0.08);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 180ms;
  --motion-slow: 760ms;
  --page: 1120px;
  --content: 980px;
  --radius-large: 36px;
  --radius-medium: 28px;
  --radius-small: 18px;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --white: #050506;
  --canvas: #0b0b0c;
  --surface: #151516;
  --surface-strong: #2c2c2e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #9a9aa0;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2997ff;
  --blue-hover: #64a9f5;
  --green: #30d5a4;
  --amber: #ffb340;
  --red: #ff6961;
  --stage-bg: #050506;
  --stage-surface: rgba(255, 255, 255, 0.08);
  --stage-cell: rgba(0, 0, 0, 0.42);
  --stage-text: #f5f5f7;
  --stage-muted: rgba(245, 245, 247, 0.68);
  --stage-subtle: rgba(245, 245, 247, 0.54);
  --stage-line: rgba(255, 255, 255, 0.12);
  --stage-glow-blue: rgba(41, 151, 255, 0.34);
  --stage-glow-green: rgba(48, 213, 164, 0.2);
  --hero-line: rgba(245, 245, 247, 0.13);
  --hero-node: rgba(48, 213, 164, 0.84);
  --technical-grid: rgba(245, 245, 247, 0.055);
  --story-bg: #08090a;
  --story-surface: #101216;
  --story-line: rgba(255, 255, 255, 0.11);
  --story-muted: rgba(245, 245, 247, 0.56);
  --story-text: #f5f5f7;
  --topbar: rgba(5, 5, 6, 0.82);
  --overlay: rgba(0, 0, 0, 0.64);
  --shadow-stage: 0 34px 110px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 56px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Helvetica Neue",
    sans-serif;
  line-height: 1.5;
  letter-spacing: -0.014em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color 480ms var(--ease-premium),
    color 360ms var(--ease-premium);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  -ms-overflow-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

code {
  border-radius: 6px;
  background: var(--surface-strong);
  padding: 0.08em 0.32em;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

section[id] {
  scroll-margin-top: 64px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand,
.topnav a,
.repo-link,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 0.88rem;
  font-weight: 650;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topnav a {
  position: relative;
  color: var(--muted);
  font-size: 0.76rem;
  transition: color 160ms ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.topnav a:hover,
.topnav a[aria-current="location"] {
  color: var(--ink);
}

.topnav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-trigger,
.theme-toggle,
.search-close {
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.search-trigger {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--surface);
  padding: 0 10px;
  font-size: 0.72rem;
}

.search-trigger svg,
.search-panel-head svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-trigger kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  padding: 1px 5px;
  color: var(--subtle);
  font-family: inherit;
  font-size: 0.62rem;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}

.search-trigger:hover,
.theme-toggle:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.theme-toggle:disabled {
  cursor: wait;
  opacity: 0.68;
}

.theme-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.moon-icon,
html[data-theme="dark"] .sun-icon {
  display: none;
}

html[data-theme="dark"] .moon-icon {
  display: block;
}

.repo-link {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.repo-link::after {
  content: " ↗";
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.reading-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

.search-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(720px, calc(100dvh - 48px));
  margin: 12vh auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.24);
}

.search-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(720px, calc(100dvh - 48px));
}

.search-panel-head {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px 0 22px;
  color: var(--muted);
}

.search-panel-head svg {
  width: 20px;
  height: 20px;
}

.search-panel-head input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-panel-head input::placeholder {
  color: var(--subtle);
}

.search-close {
  border-radius: 7px;
  background: var(--surface);
  padding: 5px 8px;
  font-size: 0.68rem;
}

.search-hint {
  margin: 0;
  padding: 14px 22px 10px;
  color: var(--subtle);
  font-size: 0.72rem;
}

.search-results {
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  padding: 4px 10px 14px;
}

.search-result {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  outline: 0;
  background: var(--surface);
}

.search-result-type {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 650;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy span {
  display: block;
}

.search-result-copy strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-arrow {
  color: var(--subtle);
}

.search-empty {
  padding: 56px 24px 64px;
  color: var(--muted);
  text-align: center;
}

main {
  width: 100%;
  overflow: clip;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  min-height: max(760px, calc(100svh - 48px));
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 102px 0 112px;
  text-align: center;
}

.hero-map {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-map path {
  fill: none;
  stroke: var(--hero-line);
  stroke-dasharray: 3 11;
  stroke-linecap: round;
  stroke-width: 1;
}

.hero-route-a {
  animation: hero-route-forward 22s linear infinite;
}

.hero-route-b {
  animation: hero-route-backward 28s linear infinite;
}

.hero-route-c {
  animation: hero-route-forward 34s linear infinite;
}

.hero-map circle {
  fill: var(--white);
  stroke: var(--hero-node);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hero-node), transparent 38%));
}

.hero-coordinate {
  position: absolute;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-coordinate-top {
  top: 44px;
  left: 6px;
}

.hero-coordinate-side {
  right: -84px;
  bottom: 196px;
  transform: rotate(90deg);
  transform-origin: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--green), transparent 86%);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

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

h1 {
  margin-bottom: 30px;
  font-size: clamp(5rem, 8.2vw, 7.5rem);
  font-weight: 720;
  line-height: 0.94;
  letter-spacing: -0.072em;
}

h1 .hero-gradient {
  background: linear-gradient(94deg, var(--muted) 0%, var(--ink) 46%, var(--muted) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: hero-type-sheen 8s ease-in-out infinite;
}

h1 .hero-stop {
  color: var(--muted);
}

.hero-line {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 620;
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

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

.button.secondary {
  padding-inline: 0;
  color: var(--blue);
}

.button.secondary:hover {
  color: var(--blue-hover);
}

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

.hero-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
}

.hero-signals span + span::before {
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.hero-readout {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.hero-readout > span {
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  column-gap: 8px;
  padding: 0 22px;
}

.hero-readout > span + span {
  border-left: 1px solid var(--line);
}

.hero-readout i {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-style: normal;
}

.hero-readout b,
.hero-readout em {
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.35;
}

.hero-readout b {
  color: var(--ink);
  font-weight: 650;
}

.hero-readout em {
  color: var(--muted);
}

.product-stage {
  position: relative;
  width: min(var(--page), calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--stage-bg), white 3%), var(--stage-bg));
  color: var(--stage-text);
  box-shadow: var(--shadow-stage);
  transition:
    border-color 480ms var(--ease-premium),
    background-color 480ms var(--ease-premium),
    color 360ms var(--ease-premium),
    box-shadow 480ms var(--ease-premium);
}

.stage-ambient {
  position: absolute;
  z-index: 0;
  inset: -30%;
  background:
    radial-gradient(circle at 72% 24%, var(--stage-glow-blue), transparent 30%),
    radial-gradient(circle at 18% 84%, var(--stage-glow-green), transparent 28%);
  transform: translate3d(var(--stage-shift-x, 0), var(--stage-shift-y, 0), 0) scale(1.08);
  transition: transform 600ms var(--ease-premium);
  animation: stage-ambient-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.product-stage::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -240px;
  bottom: -300px;
  border: 1px solid var(--stage-line);
  border-radius: 50%;
  opacity: 0.72;
}

.stage-chrome {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-bottom: 1px solid var(--stage-line);
  color: var(--stage-muted);
  font-size: 0.82rem;
}

.stage-chrome strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 0;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
}

.stage-chrome strong span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: status-pulse 2.4s ease-in-out infinite;
}

.stage-version {
  margin-left: auto;
  color: var(--stage-subtle);
  font-size: 0.7rem;
}

.stage-run {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  border: 1px solid var(--stage-line);
  border-radius: 999px;
  background: var(--stage-surface);
  padding: 0 11px;
  color: var(--stage-muted);
  font-size: 0.68rem;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.stage-run:hover {
  border-color: color-mix(in srgb, var(--blue), transparent 55%);
  color: var(--stage-text);
  transform: translateY(-1px);
}

.stage-run:disabled {
  cursor: wait;
  opacity: 0.62;
}

.stage-run svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px color-mix(in srgb, var(--green), transparent 28%);
}

.stage-presets {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 20px 28px 0;
}

.stage-presets button {
  min-height: 36px;
  border: 1px solid var(--stage-line);
  border-radius: 999px;
  background: transparent;
  padding: 0 14px;
  color: var(--stage-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

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

.stage-presets button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--blue), transparent 55%);
  background: color-mix(in srgb, var(--blue), transparent 86%);
  color: var(--blue);
}

.stage-progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 28px 0;
  padding: 0;
  list-style: none;
}

.stage-progress::before {
  position: absolute;
  top: 10px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: var(--stage-line);
  content: "";
}

.stage-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--stage-subtle);
  text-align: center;
  transition:
    color 260ms ease,
    opacity 260ms ease;
}

.stage-progress li::before {
  position: absolute;
  z-index: -1;
  top: 6px;
  right: 50%;
  width: 100%;
  height: 9px;
  background: transparent;
  content: "";
  transform-origin: left center;
}

.stage-progress li:first-child::before {
  display: none;
}

.stage-progress li span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stage-line);
  border-radius: 50%;
  background: var(--stage-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.52rem;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease;
}

.stage-progress li b {
  font-size: 0.68rem;
  font-weight: 650;
}

.stage-progress li em {
  font-size: 0.6rem;
  font-style: normal;
}

.stage-progress li.is-active,
.stage-progress li.is-complete {
  color: var(--stage-text);
}

.stage-progress li.is-active span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue), transparent 86%);
}

.stage-progress li.is-complete span {
  border-color: var(--green);
  background: var(--green);
  color: #07110e;
}

.stage-progress li.is-complete span {
  font-size: 0;
}

.stage-progress li.is-complete span::after {
  content: "✓";
  font-size: 0.62rem;
  font-weight: 750;
}

.stage-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.74fr 80px 1.26fr;
  align-items: center;
  gap: 24px;
  padding: 42px 72px 48px;
}

.stage-prompt {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--stage-line);
  border-radius: 24px;
  background: var(--stage-surface);
  padding: 28px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--stage-text), transparent 93%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stage-label {
  display: block;
  margin-bottom: 14px;
  color: var(--stage-subtle);
  font-size: 0.76rem;
}

.stage-prompt p {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.stage-permission {
  width: fit-content;
  margin-top: 22px;
  border: 1px solid var(--stage-line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--stage-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
}

.stage-arrow {
  display: grid;
  place-items: center;
}

.stage-arrow span {
  position: relative;
  width: 50px;
  height: 1px;
  display: block;
  overflow: visible;
  background: var(--stage-line);
}

.stage-arrow span::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
  content: "";
  animation: route-scan 2.8s var(--ease-premium) infinite;
}

.stage-arrow span::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--stage-subtle);
  border-right: 1px solid var(--stage-subtle);
  content: "";
  transform: rotate(45deg);
}

.stage-result h2 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.stage-result p {
  max-width: 540px;
  margin: 0;
  color: var(--stage-muted);
  font-size: 1rem;
}

.stage-prompt,
.stage-result {
  transition:
    opacity 240ms ease,
    filter 240ms ease,
    transform 240ms var(--ease-premium);
}

.product-stage.is-switching .stage-prompt,
.product-stage.is-switching .stage-result {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(8px);
}

.stage-slots {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: 18px;
  background: var(--stage-line);
}

.stage-slots span {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: var(--stage-cell);
  padding: 20px;
  transition:
    background-color 260ms ease,
    opacity 260ms ease;
}

.stage-slots span:not(.is-active) {
  background: color-mix(in srgb, var(--stage-cell), var(--stage-bg) 28%);
}

.stage-slots small {
  color: var(--stage-subtle);
  font-size: 0.7rem;
  font-weight: 600;
}

.stage-slots .is-active small {
  color: var(--green);
}

.stage-slots em {
  min-height: 2.4em;
  display: block;
  color: var(--stage-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 560;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stage-slots span:not(.is-active) small,
.stage-slots span:not(.is-active) em {
  color: var(--stage-muted);
}

.stats-band {
  width: min(var(--content), calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 84px auto 0;
}

.stats-band div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stats-band div + div {
  border-left: 1px solid var(--line);
}

.stats-band strong {
  min-width: 2ch;
  font-size: 2.8rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stats-band span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.system-story {
  position: relative;
  margin-top: 138px;
  padding: 150px 0 110px;
  background: var(--story-bg);
  color: var(--story-text);
  transition:
    background-color 480ms var(--ease-premium),
    color 360ms var(--ease-premium);
}

.system-story::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--technical-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--technical-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  pointer-events: none;
}

.story-intro {
  position: relative;
  z-index: 1;
  width: min(var(--page), calc(100% - 40px));
  margin: 0 auto 120px;
}

.story-intro .eyebrow {
  margin-bottom: 20px;
}

.story-intro h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.story-intro > p:last-child {
  max-width: 620px;
  margin: 36px 0 0 auto;
  color: var(--story-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.story-layout {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: 84px;
  margin: 0 auto;
}

.story-sticky {
  min-height: 3000px;
}

.story-canvas {
  position: sticky;
  top: 92px;
  height: min(690px, calc(100vh - 122px));
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--story-line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(var(--technical-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--technical-grid) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--blue), transparent 86%), transparent 38%),
    var(--story-surface);
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--story-text), transparent 93%),
    0 30px 90px color-mix(in srgb, var(--story-text), transparent 90%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.story-canvas::before {
  position: absolute;
  width: 420px;
  height: 420px;
  top: calc(50% - 210px);
  left: calc(50% - 210px);
  border: 1px dashed var(--story-line);
  border-radius: 50%;
  content: "";
  animation: story-orbit-spin 42s linear infinite;
}

.story-canvas-head {
  position: relative;
  z-index: 3;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--story-line);
  padding: 0 24px;
  color: var(--story-muted);
  font-size: 0.7rem;
}

.story-canvas-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-canvas-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.story-canvas-head em {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-style: normal;
}

.story-network {
  position: absolute;
  z-index: 0;
  inset: 38px 0 0;
  width: 100%;
  height: calc(100% - 38px);
}

.network-orbit,
.story-network path {
  fill: none;
  stroke: var(--story-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.network-orbit {
  stroke-dasharray: 2 8;
}

.story-network path {
  stroke-dasharray: 5 8;
  transition:
    stroke 420ms ease,
    stroke-width 420ms ease,
    opacity 420ms ease;
}

.story-network path.is-active {
  stroke: var(--blue);
  stroke-width: 1.6;
  animation: story-route-flow 2.8s linear infinite;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--blue), transparent 38%));
}

.story-network path.is-complete {
  stroke: color-mix(in srgb, var(--green), transparent 22%);
}

.story-core {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  width: 148px;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--blue), transparent 42%);
  border-radius: 50%;
  background: var(--story-bg);
  box-shadow:
    0 0 0 18px color-mix(in srgb, var(--blue), transparent 94%),
    0 0 60px color-mix(in srgb, var(--blue), transparent 80%);
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    border-color 420ms ease,
    box-shadow 420ms ease;
}

.story-core span {
  margin-bottom: 3px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.story-core strong {
  font-size: 1.25rem;
  font-weight: 680;
}

.story-core em {
  max-width: 108px;
  margin-top: 4px;
  color: var(--story-muted);
  font-size: 0.57rem;
  font-style: normal;
}

.story-node {
  position: absolute;
  z-index: 2;
  width: 154px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-content: center;
  gap: 2px 7px;
  border: 1px solid var(--story-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--story-surface), var(--story-bg) 28%);
  padding: 12px 14px;
  color: var(--story-muted);
  transition:
    border-color 420ms ease,
    background-color 420ms ease,
    color 420ms ease,
    opacity 420ms ease,
    transform 420ms var(--ease-premium);
}

.story-node span {
  grid-row: 1 / span 2;
  align-self: center;
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
}

.story-node b {
  font-size: 0.72rem;
  font-weight: 680;
}

.story-node em {
  font-size: 0.56rem;
  font-style: normal;
  white-space: nowrap;
}

.story-node.is-active {
  border-color: color-mix(in srgb, var(--blue), transparent 45%);
  background: color-mix(in srgb, var(--blue), transparent 90%);
  color: var(--story-text);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--blue), transparent 88%);
  transform: translateY(-4px);
}

.story-node.is-complete {
  border-color: color-mix(in srgb, var(--green), transparent 58%);
  color: var(--story-text);
}

.story-node-intent {
  top: 17%;
  left: 6%;
}

.story-node-permission {
  bottom: 17%;
  left: 5%;
}

.story-node-route {
  top: 17%;
  right: 5%;
}

.story-node-verify {
  right: 4%;
  bottom: 17%;
}

.story-log {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--story-line);
  padding-top: 14px;
}

.story-log span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--story-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.52rem;
  opacity: 0.36;
  transition:
    color 420ms ease,
    opacity 420ms ease;
}

.story-log i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.story-log span.is-active {
  color: var(--blue);
  opacity: 1;
}

.story-log span.is-complete {
  color: var(--green);
  opacity: 0.78;
}

.story-chapters {
  margin-top: -12vh;
}

.story-chapter {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transform: translateY(20px);
  transition:
    opacity 500ms ease,
    transform 500ms var(--ease-premium);
}

.story-chapter.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-chapter button {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--story-muted);
  cursor: pointer;
}

.story-chapter button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--story-line);
  border-radius: 50%;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.56rem;
}

.story-chapter button strong {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.story-chapter button[aria-pressed="true"] {
  color: var(--blue);
}

.story-chapter button[aria-pressed="true"] span {
  border-color: var(--blue);
}

.story-chapter h3 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 4vw, 3.9rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.story-chapter p {
  max-width: 430px;
  margin: 0;
  color: var(--story-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-grid {
  position: relative;
  z-index: 0;
  width: min(var(--page), calc(100% - 40px));
  margin: 0 auto;
  padding: 148px 0;
}

.section-tint::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc((100% - 100vw) / 2);
  background: var(--surface);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 66px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-note {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  padding: 42px;
}

.card::before {
  position: absolute;
  top: 0;
  right: 32px;
  left: 32px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--card-accent, var(--blue));
  content: "";
  opacity: 0.72;
}

.accent-green {
  --card-accent: var(--green);
}

.accent-blue {
  --card-accent: var(--blue);
}

.accent-amber {
  --card-accent: var(--amber);
}

.accent-red {
  --card-accent: var(--red);
}

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

.card h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.card li + li {
  margin-top: 8px;
}

.layer-list {
  max-width: 1040px;
  display: grid;
  gap: 0;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.layer-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 46px 22px;
  transition:
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.layer-item:hover {
  background: color-mix(in srgb, var(--surface), transparent 36%);
  transform: translateX(4px);
}

.layer-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 650;
  transition:
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.layer-item:hover .layer-index {
  background: var(--blue);
  color: #fff;
  transform: scale(1.04);
}

.layer-item > div {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  column-gap: 70px;
}

.layer-item h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.layer-item p {
  grid-column: 1;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.84rem;
}

.layer-item dl {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.layer-item dt {
  margin-top: 20px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 620;
}

.layer-item dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.toolbar {
  max-width: 720px;
  margin: 0 auto 14px;
}

.toolbar label {
  display: block;
  margin: 0 0 10px 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.toolbar input {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  outline: 1px solid transparent;
  background: var(--white);
  padding: 0 24px;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition:
    outline-color 160ms ease,
    box-shadow 160ms ease;
}

.toolbar input:focus {
  outline-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.toolbar input::placeholder {
  color: #9a9a9f;
}

.skill-meta {
  margin-bottom: 34px;
  color: var(--subtle);
  font-size: 0.78rem;
  text-align: center;
}

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

.skill-card {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  padding: 28px;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.skill-card::after {
  position: absolute;
  right: -52px;
  bottom: -58px;
  width: 124px;
  height: 124px;
  border: 1px solid color-mix(in srgb, var(--blue), transparent 88%);
  border-radius: 50%;
  content: "";
  transition:
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.skill-card:hover {
  border-color: color-mix(in srgb, var(--blue), transparent 68%);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.skill-card:hover::after {
  border-color: color-mix(in srgb, var(--blue), transparent 70%);
  transform: scale(1.12);
}

.skill-card.is-hidden {
  display: none;
}

.skill-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.skill-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.skill-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.skill-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.skill-toggle {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  padding: 0 22px;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.skill-toggle:hover {
  background: #fbfbfd;
  transform: translateY(-1px);
}

.skill-toggle[hidden] {
  display: none;
}

.skill-scope,
.skill-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 600;
}

.skill-scope {
  background: var(--surface);
  color: var(--muted);
}

.skill-category {
  margin-top: 24px;
  background: color-mix(in srgb, var(--blue), transparent 88%);
  color: var(--blue);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: plugin-card;
}

.catalog-grid section {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  padding: 22px 24px 28px;
  counter-increment: plugin-card;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-premium);
}

.catalog-grid section::after {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--subtle);
  content: counter(plugin-card, decimal-leading-zero);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  opacity: 0.52;
}

.catalog-grid section:hover {
  border-color: color-mix(in srgb, var(--blue), transparent 66%);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.plugin-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--blue), transparent 70%);
  border-radius: 11px;
  background: color-mix(in srgb, var(--blue), transparent 90%);
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.catalog-grid section:nth-child(3n + 2) .plugin-mark {
  border-color: color-mix(in srgb, var(--green), transparent 66%);
  background: color-mix(in srgb, var(--green), transparent 90%);
  color: var(--green);
}

.catalog-grid section:nth-child(3n) .plugin-mark {
  border-color: color-mix(in srgb, var(--amber), transparent 70%);
  background: color-mix(in srgb, var(--amber), transparent 90%);
  color: var(--amber);
}

.catalog-grid h3 {
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 620;
}

.catalog-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.content-stack {
  display: grid;
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.install-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.install-meta > span {
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-content: center;
  column-gap: 8px;
  padding: 0 16px;
}

.install-meta > span + span {
  border-left: 1px solid var(--line);
}

.install-meta i {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.6rem;
  font-style: normal;
}

.install-meta strong,
.install-meta em {
  display: block;
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.45;
}

.install-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.install-meta em {
  color: var(--muted);
}

.terminal {
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: #1d1d1f;
  color: #f5f5f7;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

.terminal-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0 20px;
}

.terminal-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-bar > span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar > span:nth-child(3) {
  background: #28c840;
}

.copy-button {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  padding: 6px 12px;
  font-size: 0.72rem;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.is-copied {
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 30px;
  white-space: pre-wrap;
}

pre code {
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.75;
}

noscript p {
  text-align: center;
}

noscript a {
  color: var(--blue);
}

.footer {
  min-height: 176px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--subtle);
  font-size: 0.76rem;
}

.footer div {
  display: grid;
  gap: 5px;
}

.footer strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer a {
  color: var(--blue);
  text-decoration: none;
}

.motion-capable [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(34px) scale(0.98);
  transition:
    opacity var(--motion-slow) var(--ease-premium),
    filter var(--motion-slow) var(--ease-premium),
    transform var(--motion-slow) var(--ease-premium);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-capable [data-reveal].is-visible,
.motion-capable.motion-fallback [data-reveal] {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

html.theme-changing .hero-map,
html.theme-changing .stage-ambient {
  animation-duration: 900ms;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 520ms;
  animation-timing-function: var(--ease-premium);
}

@keyframes hero-route-forward {
  to {
    stroke-dashoffset: -196;
  }
}

@keyframes hero-route-backward {
  to {
    stroke-dashoffset: 196;
  }
}

@keyframes hero-type-sheen {
  0%,
  24%,
  100% {
    background-position: 100% 50%;
  }
  52%,
  72% {
    background-position: 0 50%;
  }
}

@keyframes stage-ambient-drift {
  to {
    transform: translate3d(
        calc(var(--stage-shift-x, 0px) + 34px),
        calc(var(--stage-shift-y, 0px) - 22px),
        0
      )
      scale(1.12);
  }
}

@keyframes story-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes story-route-flow {
  to {
    stroke-dashoffset: -78;
  }
}

@keyframes route-scan {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.7);
  }
  18% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(44px) scale(1);
  }
}

@keyframes status-pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.72);
  }
}

.button:focus-visible,
.topnav a:focus-visible,
.repo-link:focus-visible,
.search-trigger:focus-visible,
.theme-toggle:focus-visible,
.search-close:focus-visible,
.stage-presets button:focus-visible,
.stage-run:focus-visible,
.story-chapter button:focus-visible,
.skill-toggle:focus-visible,
.copy-button:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .topbar {
    gap: 16px;
  }

  .topnav {
    gap: 18px;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .search-trigger {
    width: 32px;
    justify-content: center;
    padding: 0;
  }

  .stage-body {
    padding-inline: 48px;
  }

  .story-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 46px;
  }

  .story-canvas {
    min-height: 560px;
  }

  .story-node {
    width: 136px;
  }

  .story-log span {
    font-size: 0.46rem;
  }

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

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

  .layer-list {
    max-width: none;
  }

  .layer-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 24px;
  }

  .layer-index {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .layer-item > div {
    column-gap: 42px;
  }
}

@media (max-width: 768px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .topnav {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .repo-link {
    margin-left: 6px;
  }

  .hero {
    min-height: max(790px, calc(100svh - 48px));
    padding: 86px 0 150px;
  }

  .hero-coordinate-side {
    display: none;
  }

  .hero-coordinate-top {
    top: 26px;
  }

  .hero-readout {
    grid-template-columns: repeat(2, 1fr);
    bottom: 22px;
  }

  .hero-readout > span {
    min-height: 64px;
  }

  .hero-readout > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-readout > span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  h1 {
    font-size: clamp(3.4rem, 13.5vw, 5rem);
  }

  .hero-line {
    font-size: 1.4rem;
  }

  .desktop-break {
    display: none;
  }

  .product-stage {
    min-height: 980px;
    border-radius: 28px;
  }

  .stage-run span {
    display: none;
  }

  .stage-run {
    width: 32px;
    justify-content: center;
    margin-left: 3px;
    padding: 0;
  }

  .stage-presets {
    justify-content: center;
    padding-top: 18px;
  }

  .stage-progress {
    margin-inline: 22px;
  }

  .stage-progress li em {
    display: none;
  }

  .stage-body {
    grid-template-columns: 1fr;
    padding: 38px 32px 32px;
  }

  .stage-arrow span {
    width: 1px;
    height: 44px;
  }

  .stage-arrow span::before {
    top: 0;
    left: -2px;
    animation-name: route-scan-mobile;
  }

  .stage-arrow span::after {
    top: auto;
    right: -4px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .stage-result {
    text-align: center;
  }

  .stage-result p {
    margin-inline: auto;
  }

  .stage-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  .stats-band div + div {
    border-left: 0;
  }

  .stats-band div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stats-band div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .system-story {
    margin-top: 100px;
    padding: 110px 0 70px;
  }

  .story-intro {
    margin-bottom: 76px;
  }

  .story-intro h2 {
    font-size: clamp(3.3rem, 11vw, 5.4rem);
  }

  .story-intro > p:last-child {
    margin-left: 0;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-sticky,
  .story-chapters {
    grid-column: 1;
    grid-row: 1;
  }

  .story-sticky {
    min-height: 0;
    height: 100%;
  }

  .story-canvas {
    top: 70px;
    height: min(520px, calc(100vh - 94px));
    min-height: 440px;
  }

  .story-chapters {
    margin-top: 540px;
    padding-inline: 20px;
  }

  .story-chapter {
    min-height: 72vh;
    justify-content: flex-end;
    padding: 80px 0 56px;
    text-shadow: 0 1px var(--story-bg);
  }

  .story-chapter h3,
  .story-chapter p,
  .story-chapter button {
    position: relative;
    z-index: 4;
  }

  .story-chapter h3 {
    font-size: clamp(2.4rem, 7.5vw, 3.4rem);
  }

  .story-log {
    display: none;
  }

  .section-grid {
    padding: 104px 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2 {
    font-size: clamp(2.45rem, 9vw, 3.7rem);
  }

  .principle-grid,
  .skill-cloud {
    grid-template-columns: 1fr;
  }

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

  .card,
  .catalog-grid section {
    padding: 32px;
  }

  .skill-card {
    min-height: auto;
  }

  .layer-item > div {
    grid-template-columns: 1fr;
  }

  .layer-item dl {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .hero,
  .product-stage,
  .stats-band,
  .section-grid {
    width: min(100% - 28px, var(--page));
  }

  .brand > span:last-child {
    display: none;
  }

  .search-dialog {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 20px;
  }

  .search-result {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .hero {
    min-height: max(760px, calc(100svh - 48px));
    padding-bottom: 170px;
  }

  .hero-coordinate-top {
    max-width: 230px;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 3rem;
    line-height: 0.98;
    letter-spacing: -0.065em;
  }

  .hero-line {
    font-size: 1.2rem;
  }

  .lede {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-signals {
    max-width: 280px;
    flex-wrap: wrap;
    row-gap: 8px;
    margin-top: 24px;
  }

  .hero-readout > span {
    grid-template-columns: 27px 1fr;
    padding-inline: 12px;
  }

  .hero-readout b,
  .hero-readout em {
    font-size: 0.64rem;
  }

  .button.secondary {
    min-height: 36px;
  }

  .product-stage {
    min-height: 1120px;
  }

  .stage-chrome {
    padding-inline: 20px;
  }

  .stage-version {
    display: none;
  }

  .stage-chrome strong {
    margin-left: auto;
  }

  .stage-presets {
    gap: 6px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 20px;
    scrollbar-width: none;
  }

  .stage-presets::-webkit-scrollbar {
    display: none;
  }

  .stage-presets button {
    flex: 0 0 auto;
  }

  .stage-body {
    padding: 42px 22px 22px;
  }

  .stage-prompt {
    min-height: 172px;
    padding: 22px;
  }

  .stage-result h2 {
    font-size: 2.45rem;
  }

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

  .stage-slots span {
    min-height: 82px;
  }

  .stage-progress {
    margin-top: 20px;
    margin-inline: 14px;
  }

  .stage-progress li b {
    font-size: 0.58rem;
  }

  .stats-band strong {
    font-size: 2.25rem;
  }

  .stats-band span {
    max-width: 120px;
    font-size: 0.74rem;
  }

  .section-grid {
    padding: 88px 0;
  }

  .section-heading h2 {
    font-size: 2.45rem;
  }

  .section-note {
    font-size: 1rem;
  }

  .system-story {
    padding-top: 88px;
  }

  .story-intro,
  .story-layout {
    width: min(100% - 28px, var(--page));
  }

  .story-intro {
    margin-bottom: 54px;
  }

  .story-intro h2 {
    font-size: 3.35rem;
  }

  .story-intro > p:last-child {
    margin-top: 26px;
    font-size: 0.98rem;
  }

  .story-canvas {
    top: 62px;
    height: 420px;
    min-height: 420px;
    border-radius: 24px;
  }

  .story-canvas::before {
    width: 260px;
    height: 260px;
    top: calc(50% - 130px);
    left: calc(50% - 130px);
  }

  .story-canvas-head {
    min-height: 48px;
    padding-inline: 16px;
  }

  .story-network {
    inset: 26px 0 0;
    transform: scale(1.2);
  }

  .story-core {
    width: 104px;
    height: 104px;
  }

  .story-core strong {
    font-size: 1rem;
  }

  .story-core em {
    max-width: 86px;
    font-size: 0.5rem;
  }

  .story-node {
    width: 112px;
    min-height: 68px;
    grid-template-columns: 20px 1fr;
    padding: 9px 10px;
  }

  .story-node b {
    font-size: 0.62rem;
  }

  .story-node em {
    font-size: 0.48rem;
    line-height: 1.25;
    white-space: normal;
  }

  .story-node-intent {
    top: 17%;
    left: 3%;
  }

  .story-node-permission {
    bottom: 12%;
    left: 2%;
  }

  .story-node-route {
    top: 17%;
    right: 2%;
  }

  .story-node-verify {
    right: 2%;
    bottom: 12%;
  }

  .story-chapters {
    margin-top: 440px;
    padding-inline: 10px;
  }

  .story-chapter {
    min-height: max(440px, 58vh);
    padding: 56px 0 42px;
    background: linear-gradient(to bottom, transparent 0%, var(--story-bg) 58%, var(--story-bg) 100%);
  }

  .story-chapter h3 {
    font-size: 2.5rem;
  }

  .layer-item {
    display: block;
    padding: 34px 16px;
  }

  .layer-item:hover {
    transform: none;
  }

  .layer-index {
    margin-bottom: 28px;
  }

  .skill-card-head {
    display: block;
  }

  .skill-scope {
    margin-top: 12px;
  }

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

  .install-meta > span {
    min-height: 74px;
    padding-inline: 12px;
  }

  .install-meta > span:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .install-meta > span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  pre {
    padding: 24px 20px;
  }

  .footer {
    min-height: 140px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-grid section {
    min-height: 208px;
    padding: 18px 16px 22px;
  }

  .catalog-grid section::after {
    top: 20px;
    right: 16px;
  }

  .plugin-mark {
    margin-bottom: 22px;
  }

  .catalog-grid h3 {
    font-size: 0.98rem;
  }

  .catalog-grid p {
    font-size: 0.76rem;
    line-height: 1.58;
  }
}

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

  .catalog-grid section {
    min-height: 184px;
  }
}

@keyframes route-scan-mobile {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }
  18% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(38px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-capable [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Make the demo's intake decision and completion criterion explicit. */
.stage-result .stage-check {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stage-line);
  color: var(--stage-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}
