:root {
  color-scheme: dark;
  --ink: #07100e;
  --ink-soft: #0b1512;
  --forest: #101d19;
  --forest-raised: #15251f;
  --forest-bright: #1c3028;
  --mist: #e9f0e9;
  --mist-soft: #bfcbc3;
  --muted: #8c9d94;
  --faint: #617169;
  --moss: #b7d4a9;
  --moss-strong: #d8e9cf;
  --sand: #cbb28a;
  --sand-soft: #ead7b8;
  --danger: #e8a49a;
  --success: #a9d19a;
  --line: rgba(216, 233, 207, 0.13);
  --line-strong: rgba(216, 233, 207, 0.24);
  --panel-glow: rgba(159, 196, 146, 0.09);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Noto Serif CJK SC",
    "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC",
    "Hiragino Sans GB", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "Consolas", monospace;
  --shell: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--forest-bright) var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--mist);
  background:
    radial-gradient(circle at 84% 2%, rgba(110, 150, 114, 0.11), transparent 29rem),
    radial-gradient(circle at 10% 32%, rgba(89, 124, 103, 0.07), transparent 34rem),
    linear-gradient(180deg, #07100e 0%, #091310 62%, #07100e 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 86%);
  pointer-events: none;
  content: "";
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--moss);
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--moss-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--moss-strong);
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--flush-top {
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  content: "";
}

.eyebrow--plain::before {
  display: none;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

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

.section-heading__copy {
  max-width: 700px;
}

.section-heading h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.section-heading p {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
}

.section-heading__aside {
  max-width: 310px;
  padding-left: 20px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--moss-strong);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

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

.button--primary {
  color: var(--ink);
  background: var(--moss-strong);
}

.button--quiet {
  color: var(--mist);
  background: transparent;
  border-color: var(--line-strong);
}

.button--quiet:hover {
  color: var(--ink);
  background: var(--moss-strong);
  border-color: var(--moss-strong);
}

.button--ghost {
  color: var(--mist-soft);
  background: transparent;
  border-color: var(--line);
}

.button--ghost:hover {
  color: var(--mist);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
}

.button--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--moss);
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

button.text-link {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
}

.text-link:hover {
  color: var(--moss-strong);
}

.text-link--compact {
  min-height: 36px;
  font-size: 0.85rem;
}

.status-pill,
.mini-status {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill--ready,
.mini-status--ready {
  color: var(--moss-strong);
  background: rgba(183, 212, 169, 0.08);
  border-color: rgba(183, 212, 169, 0.25);
}

.status-pill--empty,
.mini-status--empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.mini-status {
  padding: 0;
  min-height: auto;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.mini-status--ready {
  color: var(--moss);
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  background: rgba(7, 16, 14, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: grid;
  height: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--moss);
  border-radius: 50% 50% 46% 54% / 54% 45% 55% 46%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  transform: rotate(-5deg);
}

.brand__mark span {
  transform: rotate(5deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand__text small {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 560;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav__link:hover {
  color: var(--mist);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link[aria-current="page"] {
  color: var(--moss-strong);
  background: rgba(183, 212, 169, 0.08);
}

.nav__link[aria-current="page"]::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--moss);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

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

.config-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--mist-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.config-trigger:hover {
  color: var(--mist);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.config-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.nav__config-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle__lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle__lines::before {
  top: 1px;
}

.menu-toggle__lines::after {
  bottom: 1px;
}

.is-menu-open .menu-toggle__lines::before {
  top: 50%;
  transform: rotate(45deg);
}

.is-menu-open .menu-toggle__lines::after {
  bottom: 50%;
  transform: rotate(-45deg);
}

.site-footer {
  margin-top: 80px;
  padding: 52px 0 30px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer__brand h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.footer__brand p {
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer__nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--moss);
}

.footer__note {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__note button {
  min-height: 40px;
  margin-top: 12px;
  padding-inline: 0;
  color: var(--moss);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 650;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  padding: 76px 0 34px;
}

.hero::before {
  position: absolute;
  top: 8%;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(183, 212, 169, 0.1), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(420px, 0.86fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.hero__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.version-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  color: var(--sand-soft);
  background: rgba(203, 178, 138, 0.08);
  border: 1px solid rgba(203, 178, 138, 0.22);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
}

.hero h1 {
  max-width: 780px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.5vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: var(--moss);
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  max-width: 610px;
  margin-top: 30px;
  color: var(--mist-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.85;
}

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

.hero__facts {
  display: grid;
  max-width: 580px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.hero__facts div {
  padding: 18px 20px 0 0;
}

.hero__facts div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero__facts dt {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.hero__facts dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-plate {
  position: relative;
  min-height: 560px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 46%),
    rgba(13, 24, 20, 0.84);
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 12% 12% / 6% 6% 5% 5%;
  box-shadow: var(--shadow), inset 0 0 0 8px rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.site-plate::after {
  position: absolute;
  right: 9%;
  bottom: 8%;
  width: 34%;
  height: 34%;
  background: radial-gradient(circle, rgba(183, 212, 169, 0.11), transparent 67%);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.site-plate__top,
.site-plate__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.site-plate__top {
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--line);
}

.site-plate__bottom {
  padding: 12px 8px 2px;
  border-top: 1px solid var(--line);
}

.site-plate__drawing {
  width: 100%;
  height: 474px;
  margin-top: 4px;
}

.site-plate__drawing .contour {
  fill: none;
  stroke: rgba(183, 212, 169, 0.28);
  stroke-width: 1;
}

.site-plate__drawing .contour--strong {
  stroke: rgba(183, 212, 169, 0.47);
  stroke-width: 1.3;
}

.site-plate__drawing .axis {
  fill: none;
  stroke: rgba(233, 240, 233, 0.09);
  stroke-dasharray: 3 7;
}

.site-plate__drawing .plot {
  fill: rgba(183, 212, 169, 0.055);
  stroke: rgba(216, 233, 207, 0.55);
  stroke-width: 1.2;
}

.site-plate__drawing .water {
  fill: rgba(151, 188, 181, 0.1);
  stroke: rgba(167, 204, 193, 0.4);
}

.site-plate__drawing .canopy {
  fill: rgba(92, 126, 92, 0.25);
  stroke: rgba(183, 212, 169, 0.3);
}

.site-plate__drawing .marker {
  fill: var(--sand);
}

.site-plate__drawing .dimension {
  fill: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.plate-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: var(--mist-soft);
  background: rgba(7, 16, 14, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.plate-label::before {
  width: 5px;
  height: 5px;
  background: var(--moss);
  border-radius: 50%;
  content: "";
}

.plate-label--observe {
  top: 26%;
  left: 17%;
}

.plate-label--generate {
  top: 45%;
  right: 11%;
}

.plate-label--select {
  bottom: 24%;
  left: 22%;
}

.system-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.system-strip__label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sand-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.system-strip__label::before {
  width: 7px;
  height: 7px;
  background: var(--sand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(203, 178, 138, 0.09);
  content: "";
}

.system-strip p {
  color: var(--muted);
  font-size: 0.84rem;
}

.system-strip a {
  color: var(--moss);
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

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

.index-card {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 24px;
  color: inherit;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 55%),
    rgba(16, 29, 25, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  overflow: hidden;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.index-card::after {
  position: absolute;
  top: -48px;
  right: -36px;
  width: 130px;
  height: 130px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  transition: transform 300ms ease;
}

.index-card:hover {
  background:
    linear-gradient(150deg, rgba(183, 212, 169, 0.1), transparent 60%),
    rgba(18, 33, 28, 0.92);
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.index-card:hover::after {
  transform: scale(1.18);
}

.index-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.index-card__no {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.index-card__arrow {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.index-card:hover .index-card__arrow {
  color: var(--moss-strong);
  transform: translate(2px, -2px);
}

.index-card h3 {
  margin-top: 54px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.index-card p {
  max-width: 290px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.87rem;
}

.approach-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 70px;
  padding: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(circle at 76% 20%, rgba(183, 212, 169, 0.1), transparent 20rem),
    rgba(15, 28, 24, 0.74);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.approach-panel::before {
  position: absolute;
  right: -120px;
  bottom: -200px;
  width: 470px;
  height: 470px;
  border: 1px solid var(--line);
  border-radius: 48% 52% 54% 46%;
  box-shadow:
    0 0 0 36px rgba(255, 255, 255, 0.012),
    0 0 0 74px rgba(255, 255, 255, 0.008);
  pointer-events: none;
  content: "";
}

.approach-panel h2 {
  max-width: 440px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.approach-panel__lead {
  max-width: 440px;
  margin-top: 24px;
  color: var(--muted);
}

.approach-panel__action {
  margin-top: 30px;
}

.process-list {
  position: relative;
  display: grid;
  gap: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list__no {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.process-list h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.process-list p {
  max-width: 460px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.tool-snapshot {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 22px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.tool-snapshot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tool-snapshot h3 {
  font-family: var(--font-display);
  font-size: 1.44rem;
  font-weight: 500;
}

.tool-snapshot p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-snapshot__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.tool-snapshot__footer > :last-child {
  margin-left: auto;
}

.page-hero {
  padding: 74px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
  gap: 64px;
  align-items: end;
}

.page-hero h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.9vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.page-hero__lead {
  max-width: 720px;
  margin-top: 22px;
  color: var(--mist-soft);
  font-size: 1.04rem;
  line-height: 1.85;
}

.page-hero__aside {
  padding: 22px 0 4px 24px;
  border-left: 1px solid var(--line-strong);
}

.page-hero__aside p {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-hero__aside strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sand-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  color: var(--mist-soft);
  background: rgba(203, 178, 138, 0.055);
  border: 1px solid rgba(203, 178, 138, 0.2);
  border-radius: var(--radius-sm);
}

.notice--spaced {
  margin-top: 24px;
}

.notice__icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ink);
  background: var(--sand);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.notice strong {
  color: var(--sand-soft);
}

.notice p {
  color: var(--muted);
  font-size: 0.86rem;
}

.case-stack {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.case-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 0.65fr) minmax(260px, 1.35fr) auto;
  gap: 26px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.case-row__no {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.case-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.case-row__meta {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
}

.case-row > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tag-list li {
  padding: 4px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.method-step {
  min-height: 300px;
  padding: 28px 24px;
  background: var(--ink-soft);
}

.method-step__no {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.method-step h3 {
  margin-top: 72px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.method-step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

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

.link-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 26px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(16, 29, 25, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.link-card::before {
  position: absolute;
  top: -60px;
  right: -65px;
  width: 170px;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.link-card--feature {
  min-height: 270px;
  grid-column: 1 / -1;
  background:
    linear-gradient(90deg, #07100e 0%, rgba(7, 16, 14, 0.97) 52%, rgba(7, 16, 14, 0.88) 100%),
    url("../images/ai-image/workbench.webp") center / cover;
  border-color: rgba(183, 212, 169, 0.24);
}

.link-card--feature h3 {
  margin-top: 30px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.link-card--feature > p {
  max-width: 560px;
}

.link-card__detail {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
}

.link-card[data-link-state="ready"] {
  border-color: rgba(183, 212, 169, 0.2);
}

.link-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.link-card__kicker {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.09em;
}

.link-card h2,
.link-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.link-card > p {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.89rem;
}

.link-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 26px;
}

.link-card__note {
  max-width: 360px;
  color: var(--faint);
  font-size: 0.73rem;
  line-height: 1.55;
}

.link-card__note.is-warning {
  color: var(--sand);
}

.link-card__action {
  flex: 0 0 auto;
}

.summary-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.summary-band__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.summary-band__metric strong {
  color: var(--moss-strong);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

.summary-band__metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-band p {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

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

.step-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line-strong);
}

.step-card__no {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.step-card h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
}

.step-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 42px;
  padding: 7px 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.filter-button:hover {
  color: var(--mist);
  border-color: var(--line-strong);
}

.filter-button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--moss-strong);
  border-color: var(--moss-strong);
}

.filter-status {
  min-height: 30px;
  margin-bottom: 16px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
}

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

.work-card {
  background: rgba(16, 29, 25, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.work-card figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--forest);
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.work-card:hover img {
  transform: scale(1.035);
}

.work-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 8px;
  color: var(--sand-soft);
  background: rgba(7, 16, 14, 0.86);
  border: 1px solid rgba(203, 178, 138, 0.24);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.work-card__body {
  padding: 20px;
}

.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.work-card h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.work-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.work-card .tag-list {
  margin-top: 18px;
}

.workflow-grid {
  display: grid;
  gap: 18px;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 46px;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 50%),
    rgba(16, 29, 25, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.workflow-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.workflow-card__no {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.workflow-card h2 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.workflow-card__description {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.88rem;
}

.workflow-card__status {
  display: inline-flex;
  margin-top: 26px;
  padding: 5px 9px;
  color: var(--sand-soft);
  background: rgba(203, 178, 138, 0.06);
  border: 1px solid rgba(203, 178, 138, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.workflow-card--connected .workflow-card__status {
  color: var(--moss-strong);
  background: rgba(183, 212, 169, 0.07);
  border-color: rgba(183, 212, 169, 0.24);
}

.workflow-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.workflow-steps {
  display: grid;
  list-style: none;
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-steps li:first-child {
  padding-top: 0;
}

.workflow-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.workflow-steps__no {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.workflow-steps h3 {
  font-size: 0.94rem;
  font-weight: 650;
}

.workflow-steps p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.workflow-steps__tag {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.static-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(110deg, rgba(203, 178, 138, 0.1), transparent 60%),
    rgba(16, 29, 25, 0.78);
  border: 1px solid rgba(203, 178, 138, 0.24);
  border-radius: var(--radius-lg);
}

.static-alert__mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--ink);
  background: var(--sand);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
}

.static-alert h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 500;
}

.static-alert p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.static-alert__tag {
  color: var(--sand-soft);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

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

.status-tile {
  min-height: 180px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.status-tile__label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.status-tile strong {
  display: block;
  margin-top: 34px;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.status-tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-tile--accent {
  background: rgba(183, 212, 169, 0.055);
  border-color: rgba(183, 212, 169, 0.19);
}

.status-tile--accent strong {
  color: var(--moss-strong);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.security-item {
  min-height: 220px;
  padding: 22px;
  background: var(--ink-soft);
}

.security-item__no {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.security-item h3 {
  margin-top: 54px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
}

.security-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.inline-code {
  padding: 2px 5px;
  color: var(--sand-soft);
  background: rgba(203, 178, 138, 0.07);
  border: 1px solid rgba(203, 178, 138, 0.16);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78em;
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.closing-cta h2 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.closing-cta p {
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
}

.config-dialog {
  width: min(820px, calc(100vw - 28px));
  max-width: none;
  max-height: min(90vh, 900px);
  padding: 0;
  color: var(--mist);
  background: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.config-dialog::backdrop {
  background: rgba(2, 8, 6, 0.82);
  backdrop-filter: blur(6px);
}

.config-dialog[open] {
  animation: dialog-in 220ms ease both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.config-dialog__panel {
  max-height: min(90vh, 900px);
  overflow: auto;
}

.config-dialog__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  background: rgba(11, 21, 18, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.config-dialog__header h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--mist);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.config-dialog__body {
  padding: 26px 28px 30px;
}

.config-dialog__intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.88rem;
}

.config-group {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.config-group legend {
  padding: 0;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
}

.config-group__intro {
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.78rem;
}

.field {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--mist-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.field input::placeholder {
  color: var(--faint);
}

.field input:hover {
  border-color: var(--line-strong);
}

.field input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--moss);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__help,
.field__error {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.55;
}

.field__help {
  color: var(--faint);
}

.field__error {
  color: var(--danger);
}

.config-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-message {
  display: none;
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.form-message:not(:empty) {
  display: block;
}

.form-message.is-error {
  color: var(--danger);
  background: rgba(232, 164, 154, 0.06);
  border: 1px solid rgba(232, 164, 154, 0.18);
}

.form-message.is-success {
  color: var(--moss-strong);
  background: rgba(183, 212, 169, 0.06);
  border: 1px solid rgba(183, 212, 169, 0.18);
}

.error-page {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  padding: 80px 0;
}

.error-page__content {
  max-width: 720px;
  text-align: center;
}

.error-code {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-page h1 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.error-page p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* AI image project */

.lab-hero {
  position: relative;
  padding: 82px 0 44px;
  overflow: hidden;
}

.lab-hero::before {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  background:
    repeating-radial-gradient(
      ellipse at 50% 50%,
      transparent 0 27px,
      rgba(183, 212, 169, 0.055) 28px 29px
    );
  content: "";
  pointer-events: none;
}

.lab-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 64px;
}

.lab-hero__grid > * {
  min-width: 0;
}

.lab-hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.6vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.lab-hero__note {
  max-width: 520px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.lab-frame {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: rgba(13, 25, 21, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.lab-frame--hero {
  transform: rotate(0.35deg);
}

.lab-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 3px 5px 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.lab-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 7px;
}

.lab-frame figcaption {
  padding: 12px 5px 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

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

.lab-metric {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.lab-metric:last-child {
  border-right: 0;
}

.lab-metric strong {
  display: block;
  color: var(--moss-strong);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.lab-metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.lab-input-grid > *,
.lab-expand > *,
.lab-gallery > *,
.lab-result-grid > *,
.lab-flow > * {
  min-width: 0;
}

.lab-input-card {
  min-height: 210px;
  padding: 26px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 62%),
    rgba(16, 29, 25, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.lab-input-card__no {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.lab-input-card h3 {
  margin-top: 42px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.lab-input-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lab-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.lab-flow li {
  min-height: 250px;
  padding: 24px 22px 24px 0;
  border-right: 1px solid var(--line);
}

.lab-flow li:not(:first-child) {
  padding-left: 22px;
}

.lab-flow li:last-child {
  border-right: 0;
}

.lab-flow__no {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.lab-flow h3 {
  margin-top: 54px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
}

.lab-flow p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.lab-expand {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: stretch;
  gap: 54px;
}

.lab-expand__copy h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.1vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.lab-expand__copy p {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
}

.lab-expand__copy .text-link {
  display: inline-flex;
  margin-top: 28px;
}

.lab-expand__panel {
  padding: 28px;
  background: rgba(16, 29, 25, 0.76);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.lab-expand__label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.lab-expand__panel dl {
  margin: 26px 0 0;
}

.lab-expand__panel dl > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.lab-expand__panel dt {
  color: var(--moss-strong);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.lab-expand__panel dd {
  margin: 8px 0 0;
  color: var(--mist-soft);
  font-size: 0.88rem;
}

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

.lab-shot {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: rgba(16, 29, 25, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.lab-shot--wide {
  grid-column: 1 / -1;
}

.lab-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.lab-shot figcaption {
  padding: 14px 6px 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.lab-shot figcaption strong {
  color: var(--mist);
  font-weight: 600;
}

.lab-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.lab-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: rgba(16, 29, 25, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.lab-compare__item {
  margin: 0;
}

.lab-compare__item + .lab-compare__item {
  margin-left: 0;
}

.lab-compare__item img {
  display: block;
  width: 100%;
  height: 420px;
  background: #050b09;
  border-radius: 6px;
  object-fit: contain;
}

.lab-compare__item figcaption {
  padding: 10px 4px 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.lab-compare__note {
  grid-column: 1 / -1;
  margin: 10px 4px 4px;
  color: var(--faint);
  font-size: 0.66rem;
}

.lab-shot--phone {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.lab-phone {
  width: min(100%, 286px);
  height: 500px;
  margin: 4px auto 0;
  padding: 8px;
  background: #050b09;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  overflow: hidden;
}

.lab-phone img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
}

.lab-boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  padding: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.lab-boundary h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.lab-boundary ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-boundary li {
  padding: 0 0 14px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.lab-boundary li::before {
  position: absolute;
  margin-left: -18px;
  color: var(--moss);
  content: "—";
}

.lab-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button[data-link-state="empty"] {
  opacity: 0.48;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
    gap: 44px;
  }

  .site-plate {
    min-height: 500px;
  }

  .site-plate__drawing {
    height: 414px;
  }

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

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

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

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

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .header__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .header__actions {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    z-index: 75;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 24px 22px 40px;
    background: rgba(7, 16, 14, 0.98);
    border-top: 1px solid var(--line);
    overflow: auto;
  }

  .is-menu-open .site-nav {
    display: flex;
  }

  .nav__link {
    min-height: 54px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
  }

  .nav__link[aria-current="page"] {
    background: transparent;
  }

  .nav__link[aria-current="page"]::after {
    top: 50%;
    right: 8px;
    bottom: auto;
    left: auto;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
  }

  .nav__config-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 24px;
    border: 1px solid var(--line-strong);
  }

  .hero {
    padding-top: 58px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .site-plate {
    width: min(100%, 640px);
    min-height: 520px;
  }

  .site-plate__drawing {
    height: 430px;
  }

  .system-strip {
    grid-template-columns: 1fr auto;
  }

  .system-strip__label {
    grid-column: 1 / -1;
  }

  .approach-panel {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tool-snapshot-grid,
  .link-card-grid--three {
    grid-template-columns: 1fr;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-hero__aside {
    max-width: 580px;
  }

  .case-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .case-row > p {
    grid-column: 2 / 3;
  }

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

  .workflow-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workflow-card h2 {
    margin-top: 20px;
  }

  .static-alert {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .static-alert__tag {
    grid-column: 2;
  }

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

  .footer__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 70px 0;
  }

  .section--tight {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading__aside {
    max-width: none;
    margin-top: 22px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 5rem);
  }

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

  .hero__facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__facts div + div {
    padding-left: 0;
    border-left: 0;
  }

  .hero__facts dd {
    text-align: right;
  }

  .system-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .system-strip__label {
    grid-column: auto;
  }

  .site-plate {
    min-height: 440px;
    border-radius: 14% 14% 7% 7% / 3% 3% 3% 3%;
  }

  .site-plate__drawing {
    height: 348px;
  }

  .plate-label {
    font-size: 0.52rem;
  }

  .system-strip a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .index-grid,
  .tool-snapshot-grid,
  .link-card-grid,
  .link-card-grid--three,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .index-card {
    min-height: 210px;
  }

  .index-card h3 {
    margin-top: 36px;
  }

  .approach-panel {
    padding: 26px 22px;
    border-radius: var(--radius-md);
  }

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

  .method-step {
    min-height: auto;
  }

  .method-step h3 {
    margin-top: 34px;
  }

  .page-hero {
    padding: 52px 0 44px;
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .case-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .case-row > .tag-list {
    grid-column: 2;
  }

  .case-row > p {
    grid-column: 2;
  }

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

  .link-card {
    min-height: 250px;
    padding: 22px;
  }

  .link-card__footer {
    display: block;
  }

  .link-card__action {
    margin-top: 14px;
  }

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

  .summary-band p {
    text-align: left;
  }

  .static-alert {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .static-alert__mark {
    width: 48px;
    height: 48px;
  }

  .static-alert__tag {
    grid-column: auto;
  }

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

  .status-tile {
    min-height: 150px;
  }

  .status-tile strong {
    margin-top: 24px;
  }

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

  .security-item {
    min-height: auto;
  }

  .security-item h3 {
    margin-top: 30px;
  }

  .closing-cta {
    display: block;
  }

  .closing-cta .button {
    margin-top: 24px;
  }

  .config-dialog__header,
  .config-dialog__body {
    padding-inline: 20px;
  }

  .config-dialog__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .config-dialog__actions .button {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__note {
    grid-column: auto;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand__text small {
    display: none;
  }

  .brand__text strong {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__eyebrow-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .site-plate {
    min-height: 370px;
  }

  .site-plate__drawing {
    height: 286px;
  }

  .site-plate__top span:last-child,
  .site-plate__bottom span:last-child {
    display: none;
  }

  .plate-label {
    padding: 5px 7px;
  }

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

  .tool-snapshot__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-snapshot__footer > :last-child {
    margin-left: 0;
  }
}

@media (max-width: 1120px) {
  .lab-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 40px;
  }

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

  .lab-flow li {
    min-height: 220px;
    border-bottom: 1px solid var(--line);
  }

  .lab-flow li:nth-child(3n) {
    border-right: 0;
  }

  .lab-expand {
    gap: 36px;
  }

  .lab-metric {
    padding: 24px 20px;
  }
}

@media (max-width: 980px) {
  .lab-hero {
    padding-top: 58px;
  }

  .lab-hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .lab-hero h1 {
    max-width: 760px;
  }

  .lab-frame--hero {
    transform: none;
  }

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

  .lab-flow li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .lab-flow li:nth-child(2n) {
    border-right: 0;
  }

  .lab-expand,
  .lab-result-grid,
  .lab-boundary {
    grid-template-columns: 1fr;
  }

  .lab-boundary {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .link-card--feature {
    background:
      linear-gradient(180deg, rgba(7, 16, 14, 0.96) 0%, rgba(7, 16, 14, 0.82) 100%),
      url("../images/ai-image/workbench.webp") center / cover;
  }

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

  .lab-metric:nth-child(2n) {
    border-right: 0;
  }

  .lab-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .lab-input-grid,
  .lab-flow,
  .lab-gallery {
    grid-template-columns: 1fr;
  }

  .lab-input-card {
    min-height: auto;
  }

  .lab-flow li,
  .lab-flow li:not(:first-child) {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lab-flow li:last-child {
    border-bottom: 0;
  }

  .lab-flow h3 {
    margin-top: 20px;
  }

  .lab-expand__panel,
  .lab-boundary {
    padding: 24px;
  }

  .lab-compare__item {
    display: block;
    width: 100%;
    margin: 0;
  }

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

  .lab-compare__item + .lab-compare__item {
    margin: 0;
  }

  .lab-compare__item img {
    height: 380px;
  }

  .lab-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .lab-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .lab-metric {
    padding: 20px 16px;
  }

  .lab-metric strong {
    font-size: 2rem;
  }

  .lab-frame__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .lab-compare__item img {
    height: 300px;
  }

  .lab-phone {
    height: 420px;
  }
}

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

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