/*
 * MemoraX Code spacious editorial layout.
 * The page keeps the existing content and interactions, but replaces the
 * presentation-deck rhythm with a wide developer-product canvas.
 */

:root {
  --shell: min(1420px, calc(100vw - clamp(36px, 4vw, 64px)));
  --editorial-rule: #d7dde4;
  --editorial-section: #f6f7f8;
  --editorial-panel: #ffffff;
}


/* Static three-case gallery */
.case-explorer {
  position: relative;
  width: min(1280px, calc(100vw - 40px));
  margin: 44px auto 0;
}

.case-lab-kicker {
  color: #2f6fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.case-lab-controls button {
  border: 1px solid rgba(20, 31, 51, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #172033;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.case-lab-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 255, .48);
}

.case-gallery {
  position: relative;
  padding: 10px 0 20px;
}

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

.case-slide {
  --case-accent: #2f6fff;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 240px;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(20, 31, 51, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,253,.96));
  box-shadow: 0 14px 34px rgba(23, 35, 61, .07);
  color: #172033;
  cursor: pointer;
  text-align: left;
  transform: translateZ(0);
  transition: transform 260ms cubic-bezier(.2,.75,.2,1), box-shadow 260ms ease, border-color 260ms ease;
}

.case-slide::before {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: var(--case-accent);
  opacity: .22;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.case-slide:hover,
.case-slide:focus-visible {
  z-index: 2;
  border-color: color-mix(in srgb, var(--case-accent) 42%, transparent);
  box-shadow: 0 20px 46px color-mix(in srgb, var(--case-accent) 11%, rgba(23, 35, 61, .1));
  outline: none;
  transform: translateY(-4px);
}

.case-slide.is-active {
  border-color: color-mix(in srgb, var(--case-accent) 38%, transparent);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--case-accent) 9%, rgba(23, 35, 61, .08));
}

.case-slide:hover::before,
.case-slide:focus-visible::before,
.case-slide.is-active::before { opacity: 1; }
.case-slide.tone-violet { --case-accent: #7857f6; }
.case-slide.tone-indigo { --case-accent: #5667ee; }
.case-slide.tone-blue { --case-accent: #2f6fff; }

.case-slide-type {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--case-accent);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.case-slide > strong {
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -.025em;
}

.case-slide > small {
  margin-top: auto;
  padding-top: 26px;
  color: #5e6a7f;
  font-size: 13px;
  line-height: 1.55;
}
.case-slide > small b { color: var(--case-accent); font-weight: 800; }

.case-slide-open {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(20,31,51,.1);
  color: var(--case-accent);
  font-size: 13px;
  font-weight: 800;
}

.case-slide-open i { font-size: 18px; font-style: normal; }

.case-slide:hover .case-slide-open i,
.case-slide:focus-visible .case-slide-open i { transform: translate(3px, -3px); }

.case-slide-open i { transition: transform 180ms ease; }

.case-lab {
  position: relative;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(72, 111, 180, .22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 0, rgba(47,111,255,.13), transparent 30%),
    linear-gradient(180deg, #f9fbff, #f3f6fb);
  box-shadow: 0 38px 120px rgba(25, 42, 77, .14);
  animation: case-lab-open 440ms cubic-bezier(.18,.8,.2,1) both;
  scroll-margin-top: 92px;
}

@keyframes case-lab-open {
  from { opacity: 0; transform: translateY(24px) scale(.985); clip-path: inset(0 10% 70% round 32px); }
  to { opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 round 32px); }
}

.case-lab-header,
.case-lab-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(31, 54, 96, .1);
}

.case-lab-header h3 {
  max-width: 850px;
  margin: 7px 0 0;
  color: #101827;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.case-lab-controls { padding-block: 14px; background: rgba(255,255,255,.5); }
.case-view-switch, .case-play-controls { display: flex; gap: 7px; }
.case-lab-controls button { padding: 9px 14px; font-size: 12px; font-weight: 750; }
.case-lab-controls button.is-active { border-color: #2f6fff; background: #2f6fff; color: #fff; }
.case-step-delta { display: flex; align-items: center; gap: 9px; }
.case-step-delta span { color: #8993a4; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.case-step-delta strong { padding: 7px 10px; border-radius: 999px; background: rgba(47,111,255,.08); color: #245fd6; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

.case-lab-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
  padding: 32px 28px;
}

.case-lab-hero h4 { margin: 0; color: #182238; font-size: 24px; line-height: 1.3; }
.case-lab-hero blockquote {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid rgba(47,111,255,.18);
  border-radius: 18px;
  background: rgba(47,111,255,.055);
  color: #33405a;
  font-size: 14px;
  line-height: 1.7;
}

.case-outcome-card {
  margin: 0 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(42, 73, 128, .16);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 16px 42px rgba(30, 50, 82, .07);
}

.case-outcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(31,54,96,.09);
}

.case-outcome-header h4 {
  margin: 0;
  color: #182238;
  font-size: 17px;
  line-height: 1.4;
}

.case-outcome-header > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(47,111,255,.18);
  border-radius: 999px;
  background: rgba(47,111,255,.07);
  color: #245fd6;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.case-outcome-body { padding: 24px 20px; }

.case-outcome-time { display: grid; gap: 18px; }
.case-time-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) 58px 108px;
  gap: 12px;
  align-items: center;
}

.case-time-row > span {
  color: #7f899a;
  font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.case-time-row.is-on > span { color: #2f6fff; }
.case-time-track { position: relative; height: 9px; border-radius: 999px; background: #e7ebf2; }
.case-time-track i {
  display: block;
  width: var(--outcome-width);
  height: 100%;
  border-radius: inherit;
  background: #8a94a5;
  transform-origin: left;
}

.case-time-row.is-off .case-time-track i { animation: case-outcome-fill-off 2s linear both; }
.case-time-row.is-on .case-time-track i { background: #2f6fff; animation: case-outcome-fill-on 2s linear both; }
.case-time-track em {
  position: absolute;
  left: 70%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #667184;
  box-shadow: 0 0 0 1px #8993a3;
  transform: translate(-50%, -50%);
  color: transparent;
  font-size: 0;
  opacity: 0;
  animation: case-retry-pause 2s linear both;
}

.case-time-track em::after {
  content: "重试";
  position: absolute;
  left: 50%;
  bottom: 15px;
  color: #727d8f;
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  transform: translateX(-50%);
}

.case-time-row > strong { color: #334056; font: 850 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-time-row.is-on > strong { color: #245fd6; }
.case-time-row > small { display: grid; gap: 3px; color: #7e899a; font-size: 10px; line-height: 1.2; text-align: right; }
.case-time-row > small b { color: #5f6a7d; font-size: 10px; }
.case-time-row.is-on > small b { color: #245fd6; }
.case-time-row > small span { color: #8a94a5; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }

@keyframes case-outcome-fill-off {
  0% { opacity: .35; transform: scaleX(.03); }
  48% { opacity: 1; transform: scaleX(.7); }
  66% { opacity: 1; transform: scaleX(.7); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes case-outcome-fill-on {
  0% { opacity: .35; transform: scaleX(.03); }
  52%, 100% { opacity: 1; transform: scaleX(1); }
}

@keyframes case-retry-pause {
  0%, 42% { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
  48%, 68% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  76%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.case-outcome-artifacts,
.case-outcome-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.case-outcome-arrow {
  display: grid;
  place-items: center;
  color: #9ba4b2;
  font-size: 18px;
}

.case-artifact,
.case-evidence {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(31,54,96,.1);
  border-radius: 16px;
  background: #f7f9fc;
  animation: case-outcome-panel 520ms ease both;
}

.case-artifact.is-on,
.case-evidence.is-on {
  border-color: rgba(47,111,255,.22);
  background: rgba(47,111,255,.055);
  animation-delay: 110ms;
}

@keyframes case-outcome-panel {
  from { opacity: 0; transform: translateY(7px); }
}

.case-artifact header,
.case-evidence header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-artifact header span,
.case-evidence header span {
  color: #7b8596;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.case-artifact.is-on header span,
.case-evidence.is-on header span { color: #2f6fff; }
.case-artifact header strong { color: #596579; font-size: 11px; white-space: nowrap; }
.case-artifact.is-on header strong { color: #245fd6; }
.case-artifact header strong { margin-left: auto; }
.case-artifact header i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9edf3;
  color: #687386;
  font-size: 15px;
  font-style: normal;
  font-weight: 850;
}
.case-artifact.is-on header i { background: rgba(47,111,255,.12); color: #245fd6; }
.case-artifact code {
  display: block;
  margin-top: 14px;
  overflow-wrap: anywhere;
  color: #28354a;
  font: 750 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-artifact.is-on code { color: #174cac; }
.case-artifact > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.case-artifact > div span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #e9edf3;
  color: #687386;
  font-size: 10px;
}
.case-artifact > div .case-dislike-icon,
.case-artifact > div .case-like-icon { width: 11px; height: 11px; }

.case-artifact.is-on > div span { background: rgba(47,111,255,.1); color: #245fd6; }
.case-evidence header { justify-content: flex-start; }
.case-evidence header strong { color: #354158; font-size: 12px; }
.case-evidence.is-on header strong { color: #245fd6; }
.case-evidence header i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  background: #e9edf3;
  color: #687386;
  font-size: 15px;
  font-style: normal;
  font-weight: 850;
}
.case-evidence.is-on header i { background: rgba(47,111,255,.12); color: #245fd6; }
.case-evidence blockquote {
  margin: 14px 0 0;
  color: #525f73;
  font-size: 13px;
  line-height: 1.65;
}

.case-evidence.is-on blockquote { color: #263a61; font-weight: 700; }
.case-evidence mark { padding: 2px 3px; background: rgba(47,111,255,.11); color: inherit; }
.case-evidence small { display: block; margin-top: 14px; color: #838d9e; font-size: 10px; line-height: 1.45; }
.case-evidence.is-on small { color: #4d6fae; }

.case-lab-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 28px 28px;
  padding: 0;
  list-style: none;
}

.case-lab-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8b94a5;
  font-size: 11px;
  text-align: center;
}

.case-lab-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: #d7deea;
}

.case-lab-progress i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #cbd4e2;
  border-radius: 50%;
  background: #f9fbff;
  font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}

.case-lab-progress li.is-active i,
.case-lab-progress li.is-done i { border-color: #2f6fff; background: #2f6fff; color: #fff; box-shadow: 0 0 0 6px rgba(47,111,255,.1); }
.case-lab-progress li.is-active span, .case-lab-progress li.is-done span { color: #253149; font-weight: 750; }

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

.case-lanes[data-view="off"] { grid-template-columns: 1fr; }
.case-lanes[data-view="on"] { grid-template-columns: 1fr; }
.case-lanes[data-view="off"] [data-lane="on"] { display: none; }
.case-lanes[data-view="on"] [data-lane="off"] { display: none; }

.case-lane {
  min-height: 430px;
  padding: 20px;
  border: 1px solid rgba(31,54,96,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.74);
}

.case-lane-off {
  border-color: rgba(93,104,123,.18);
  background: rgba(249,250,252,.88);
  box-shadow: inset 0 4px 0 #7d8798;
}
.case-lane-on {
  border-color: rgba(47,111,255,.24);
  background: linear-gradient(180deg, rgba(245,248,255,.96), rgba(255,255,255,.8));
  box-shadow: inset 0 4px 0 #2f6fff, 0 14px 34px rgba(47,111,255,.07);
}
.case-lane > header { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(31,54,96,.1); }
.case-lane-heading { display: flex; align-items: center; gap: 9px; color: #1a2437; font-size: 16px; }
.case-lane-heading span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #737d8e;
  color: #fff;
  font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.case-lane-on .case-lane-heading span { background: #2f6fff; color: #fff; }
.case-lane > header small { align-self: center; padding: 6px 8px; border-radius: 999px; background: rgba(111,122,141,.08); color: #7b8698; font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-lane-on > header small { background: rgba(47,111,255,.09); color: #3568ca; }

.case-lane-log { display: grid; gap: 8px; margin-top: 14px; }
.case-log-item {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(31,54,96,.09);
  border-radius: 13px;
  background: rgba(248,250,254,.82);
  animation: case-log-in 300ms ease both;
}
.case-log-item.is-neutral { grid-template-columns: 30px 1fr; }

@keyframes case-log-in { from { opacity: 0; transform: translateY(8px); } }
.case-log-item i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e9edf4; color: #6f798b; font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.case-lane-on .case-log-item i { background: rgba(47,111,255,.1); color: #2f6fff; }
.case-log-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; }
.case-log-item p { margin: 3px 0 0; color: #4c586d; font-size: 12px; line-height: 1.55; }
.case-log-item > span { color: #2f6fff; font-weight: 800; }
.case-lane-off .case-log-item > span { color: #8a94a5; }
.case-log-item > .case-dislike,
.case-log-item > .case-like {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 28px;
  line-height: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}
.case-log-item > .case-like.is-pending { visibility: hidden; opacity: 0; transform: scale(.72); }
.case-dislike-icon,
.case-like-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-memory-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(47,111,255,.24);
  border-radius: 14px;
  background: rgba(47,111,255,.07);
  animation: case-log-in 300ms ease both;
}

.case-memory-tool > div { display: flex; align-items: center; gap: 10px; }
.case-memory-tool i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #2f6fff; color: #fff; font-style: normal; font-weight: 900; }
.case-memory-tool span { display: grid; gap: 3px; }
.case-memory-tool strong { color: #1e2b44; font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-memory-tool small { color: #71809a; font-size: 10px; }
.case-memory-tool em { color: #2f6fff; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.case-memory-tool:not(.is-complete) em { animation: case-tool-pulse 850ms ease infinite alternate; }
@keyframes case-tool-pulse { to { opacity: .35; } }

.case-memory-hit { display: contents; }
.case-memory-hit[hidden] { display: none; }
.case-memory-toggle {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  justify-self: end;
  min-height: 26px;
  padding: 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2f6fff;
  cursor: pointer;
  animation: case-log-in 220ms ease both;
}
.case-memory-toggle:hover { background: transparent; }
.case-memory-toggle:focus { outline: none; }
.case-memory-toggle:focus-visible { box-shadow: none; }
.case-memory-toggle span {
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  white-space: nowrap;
}
.case-memory-toggle span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2f6fff;
  box-shadow: 0 0 0 4px rgba(47,111,255,.1);
  vertical-align: 1px;
}
.case-memory-toggle::after {
  content: "";
  position: absolute;
  inset: -3px -6px;
  border: 1px solid rgba(47,111,255,.42);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
}
.case-memory-toggle:hover span,
.case-memory-toggle:focus-visible span { color: #174fbf; }
.case-memory-hit.is-nudging .case-memory-toggle::after {
  animation: case-memory-nudge-ring 900ms ease-out 3;
}
@keyframes case-memory-nudge-ring {
  from { opacity: .7; transform: scale(.94); }
  to { opacity: 0; transform: scale(1.08); }
}
.case-memory-toggle i,
.case-lane-on .case-memory-toggle i {
  position: relative;
  top: -2px;
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 0;
  border-right: 1.5px solid #2f6fff;
  border-bottom: 1.5px solid #2f6fff;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  font-style: normal;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease, border-color 180ms ease;
}
.case-memory-toggle:hover i { border-color: #2f6fff; }
.case-memory-hit[data-open="true"] .case-memory-toggle i { transform: rotate(225deg); }
.case-memory-recall {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 9px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(47,111,255,.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,111,255,.075), rgba(255,255,255,.78));
  box-shadow: inset 3px 0 0 rgba(47,111,255,.55);
  animation: case-memory-recall-in 420ms cubic-bezier(.18,.8,.2,1) both;
}
.case-memory-recall::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(91,137,255,.13), transparent);
  transform: skewX(-16deg);
  animation: case-memory-recall-sweep 780ms ease-out both;
  pointer-events: none;
}
.case-memory-recall header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}
.case-memory-recall header > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2f6fff;
  color: #fff;
  font: 850 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.04em;
}
.case-memory-recall header span { display: grid; gap: 4px; }
.case-memory-recall header small { color: #2f6fff; font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.case-memory-recall header strong { color: #20304d; font-size: 11px; line-height: 1.2; }
.case-memory-recall > p {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(47,111,255,.12);
  color: #2d4269;
  font-size: 12px;
  line-height: 1.6;
}
@keyframes case-memory-recall-in { from { opacity: 0; transform: translateY(-5px); } }
@keyframes case-memory-recall-sweep { to { left: 125%; } }

.case-lane-answer { margin-top: 12px; padding: 14px; border-radius: 14px; background: #eef1f6; animation: case-log-in 300ms ease both; }
.case-lane-on .case-lane-answer { background: #e8f0ff; }
.case-lane-answer span { color: #788295; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-lane-answer p { margin: 6px 0 0; color: #253149; font-size: 13px; font-weight: 750; line-height: 1.55; }

.case-lab-video {
  margin: 0 28px 28px;
}

/* Keep the experiment replay readable when the site is using the light theme. */
.case-lab-video.case-video {
  grid-template-columns: minmax(280px, .48fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: linear-gradient(145deg, #f7f9fd, #eef3fa);
  border: 1px solid #cbd5e3;
  box-shadow: 0 18px 46px rgba(30, 50, 82, .09);
}

.case-lab-video.case-video figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 42px);
  border-right: 1px solid #cbd5e3;
}

.case-lab-video.case-video .case-card-label {
  color: #245fd6;
}

.case-lab-video.case-video h4 {
  max-width: 17ch;
  margin-top: 14px;
  color: #172033;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.case-lab-video.case-video figcaption > p {
  max-width: 38em;
  margin-top: 14px;
  color: #526077;
  font-size: 14px;
  line-height: 1.75;
}
.theme-dark .case-lab-controls button { border-color: rgba(145,170,220,.18); background: rgba(18,23,32,.9); color: #e9eef8; }
.theme-dark .case-slide {
  border-color: rgba(139,164,211,.15);
  background: linear-gradient(180deg, #151a23, #10151d);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  color: #f2f5fb;
}
.theme-dark .case-slide:hover,
.theme-dark .case-slide.is-active { border-color: color-mix(in srgb, var(--case-accent) 48%, transparent); box-shadow: 0 18px 42px color-mix(in srgb, var(--case-accent) 11%, rgba(0,0,0,.28)); }
.theme-dark .case-slide::before { background: var(--case-accent); }
.theme-dark .agents-art b { background: transparent; }
.theme-dark .case-slide > small { color: #9ba6b8; }
.theme-dark .case-slide-open { border-color: rgba(152,170,203,.14); }
.theme-dark .case-lab {
  border-color: rgba(95,130,198,.24);
  background: radial-gradient(circle at 80% 0, rgba(47,111,255,.18), transparent 30%), linear-gradient(180deg, #10151e, #0b0f15);
  box-shadow: 0 40px 140px rgba(0,0,0,.42);
}
.theme-dark .case-lab-header,
.theme-dark .case-lab-controls { border-color: rgba(145,170,220,.12); }
.theme-dark .case-lab-controls { background: rgba(10,14,20,.55); }
.theme-dark .case-step-delta span { color: #7f8b9e; }
.theme-dark .case-step-delta strong { background: rgba(47,111,255,.14); color: #8fb0ff; }
.theme-dark .case-lab-header h3,
.theme-dark .case-lab-hero h4 { color: #f2f5fb; }
.theme-dark .case-lab-hero blockquote { border-color: rgba(89,133,255,.24); background: rgba(47,111,255,.08); color: #b7c1d2; }
.theme-dark .case-outcome-card { border-color: rgba(132,157,203,.16); background: rgba(13,18,26,.74); box-shadow: 0 18px 48px rgba(0,0,0,.2); }
.theme-dark .case-outcome-header { border-color: rgba(132,157,203,.12); }
.theme-dark .case-outcome-header h4 { color: #eef3fb; }
.theme-dark .case-outcome-header > strong { border-color: rgba(88,133,255,.25); background: rgba(47,111,255,.13); color: #84a9ff; }
.theme-dark .case-time-track { background: #252d3a; }
.theme-dark .case-time-track i { background: #697487; }
.theme-dark .case-time-row.is-on .case-time-track i { background: #5b89ff; }
.theme-dark .case-time-track em { border-color: #111721; background: #97a2b4; box-shadow: 0 0 0 1px #5f6b7f; }
.theme-dark .case-time-track em::after { color: #8d98aa; }
.theme-dark .case-time-row > strong { color: #cbd4e2; }
.theme-dark .case-time-row.is-on > strong { color: #82a6ff; }
.theme-dark .case-time-row > small b { color: #a6b0c0; }
.theme-dark .case-time-row.is-on > small b { color: #8fb0ff; }
.theme-dark .case-time-row > small span { color: #7e899b; }
.theme-dark .case-artifact,
.theme-dark .case-evidence { border-color: rgba(132,157,203,.12); background: rgba(22,29,40,.7); }
.theme-dark .case-artifact.is-on,
.theme-dark .case-evidence.is-on { border-color: rgba(88,133,255,.25); background: rgba(47,111,255,.1); }
.theme-dark .case-artifact header strong { color: #9ca8ba; }
.theme-dark .case-artifact.is-on header strong,
.theme-dark .case-artifact.is-on code,
.theme-dark .case-evidence.is-on header strong { color: #8fb0ff; }
.theme-dark .case-artifact header i { background: #26303e; color: #a4afbf; }
.theme-dark .case-artifact.is-on header i { background: rgba(47,111,255,.18); color: #9ab7ff; }
.theme-dark .case-artifact code { color: #d3dae6; }
.theme-dark .case-artifact > div span { background: #26303e; color: #a4afbf; }
.theme-dark .case-artifact.is-on > div span { background: rgba(71,119,244,.18); color: #9bb7ff; }
.theme-dark .case-evidence header strong { color: #cbd4e2; }
.theme-dark .case-evidence blockquote { color: #aeb8c9; }
.theme-dark .case-evidence.is-on blockquote { color: #dbe5f8; }
.theme-dark .case-evidence mark { background: rgba(75,123,255,.18); }
.theme-dark .case-evidence small { color: #7f8b9e; }
.theme-dark .case-evidence.is-on small { color: #8ca8e5; }
.theme-dark .case-evidence header i { background: #26303e; color: #a4afbf; }
.theme-dark .case-evidence.is-on header i { background: rgba(47,111,255,.18); color: #9ab7ff; }
.theme-dark .case-lab-progress li { color: #707c90; }
.theme-dark .case-lab-progress i { border-color: #303b4e; background: #111721; }
.theme-dark .case-lab-progress li:not(:last-child)::after { background: #293345; }
.theme-dark .case-lab-progress li.is-active span,
.theme-dark .case-lab-progress li.is-done span { color: #dce5f5; }
.theme-dark .case-lane { border-color: rgba(132,157,203,.14); background: rgba(17,23,33,.78); }
.theme-dark .case-lane-off { border-color: rgba(132,145,166,.16); background: rgba(18,24,34,.82); box-shadow: inset 0 4px 0 #697487; }
.theme-dark .case-lane-on { border-color: rgba(89,133,255,.24); background: linear-gradient(180deg, rgba(28,40,65,.82), rgba(17,23,33,.78)); box-shadow: inset 0 4px 0 #5b89ff, 0 14px 34px rgba(0,0,0,.16); }
.theme-dark .case-lane > header { border-color: rgba(132,157,203,.12); }
.theme-dark .case-lane-heading { color: #e8edf7; }
.theme-dark .case-lane-heading span { background: #697487; }
.theme-dark .case-lane-on .case-lane-heading span { background: #5b89ff; }
.theme-dark .case-lane > header small { background: rgba(137,151,174,.12); color: #98a5b9; }
.theme-dark .case-lane-on > header small { background: rgba(75,123,255,.16); color: #9bb7ff; }
.theme-dark .case-log-item { border-color: rgba(132,157,203,.1); background: rgba(10,14,20,.72); }
.theme-dark .case-log-item i { background: #242c39; color: #98a4b7; }
.theme-dark .case-lane-on .case-log-item i { background: rgba(47,111,255,.16); color: #75a0ff; }
.theme-dark .case-log-item p { color: #aeb8c9; }
.theme-dark .case-memory-tool { border-color: rgba(84,129,255,.28); background: rgba(47,111,255,.1); }
.theme-dark .case-memory-tool strong { color: #dce5f7; }
.theme-dark .case-memory-tool small { color: #8290a8; }
.theme-dark .case-memory-toggle:hover { background: transparent; }
.theme-dark .case-memory-toggle span { color: #8fb0ff; }
.theme-dark .case-memory-toggle span::before { background: #75a0ff; box-shadow: 0 0 0 4px rgba(75,123,255,.14); }
.theme-dark .case-memory-toggle i,
.theme-dark .case-lane-on .case-memory-toggle i { border-color: #8fb0ff; background: transparent; }
.theme-dark .case-memory-toggle:hover i { border-color: #8fb0ff; }
.theme-dark .case-memory-recall { border-color: rgba(84,129,255,.22); background: linear-gradient(135deg, rgba(47,111,255,.13), rgba(12,17,25,.72)); box-shadow: inset 3px 0 0 rgba(91,137,255,.7); }
.theme-dark .case-memory-recall header strong { color: #dce6f8; }
.theme-dark .case-memory-recall > p { border-color: rgba(84,129,255,.17); color: #b9c9e8; }
.theme-dark .case-lane-answer { background: #1d2531; }
.theme-dark .case-lane-on .case-lane-answer { background: rgba(47,111,255,.15); }
.theme-dark .case-lane-answer p { color: #dbe3f0; }
.theme-dark .case-lab-video.case-video figcaption { border-color: rgba(132,157,203,.16); }

@media (max-width: 900px) {
  .case-explorer { width: min(100% - 28px, 720px); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-slide:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
  .case-lab-hero { grid-template-columns: 1fr; gap: 18px; }
  .case-lanes { grid-template-columns: 1fr; }
  .case-lab-video.case-video { grid-template-columns: 1fr; }
  .case-lab-video.case-video figcaption { padding: 28px 26px; border-right: 0; border-bottom: 1px solid #cbd5e3; }
  .case-lab-video.case-video h4 { max-width: none; font-size: 22px; }
}

@media (max-width: 620px) {
  .case-explorer { width: min(100% - 20px, 520px); margin-top: 30px; }
  .case-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-slide,
  .case-slide:last-child { grid-column: auto; width: 100%; min-height: 220px; padding: 20px; border-radius: 20px; }
  .case-lab { border-radius: 24px; }
  .case-lab-header { align-items: flex-start; padding: 22px 18px; }
  .case-lab-controls { align-items: stretch; flex-direction: column; padding: 12px 18px; }
  .case-step-delta { justify-content: space-between; order: -1; }
  .case-view-switch { display: grid; grid-template-columns: repeat(3, 1fr); }
  .case-play-controls { display: grid; grid-template-columns: repeat(2, 1fr); }
  .case-lab-controls button { padding-inline: 8px; }
  .case-lab-hero { padding: 24px 18px; }
  .case-outcome-card { margin: 0 12px 20px; border-radius: 18px; }
  .case-outcome-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; }
  .case-outcome-header h4 { font-size: 15px; }
  .case-outcome-body { padding: 22px 16px; }
  .case-time-row { grid-template-columns: 28px minmax(58px, 1fr) 47px 78px; gap: 7px; }
  .case-time-row > strong { font-size: 15px; }
  .case-time-row > small { font-size: 9px; }
  .case-time-track em::after { display: none; }
  .case-outcome-artifacts,
  .case-outcome-evidence { grid-template-columns: 1fr; gap: 9px; }
  .case-outcome-arrow { height: 18px; transform: rotate(90deg); }
  .case-artifact,
  .case-evidence { padding: 14px; }
  .case-lab-progress { overflow-x: auto; grid-template-columns: repeat(5, minmax(84px, 1fr)); margin: 0 18px 22px; padding-bottom: 8px; }
  .case-lanes { padding: 0 12px 20px; }
  .case-lane { min-height: 390px; padding: 15px; }
  .case-memory-toggle { grid-column: 1 / -1; grid-row: 2; justify-self: end; margin-top: 5px; }
  .case-memory-recall { grid-row: 3; margin-right: -18px; margin-left: -40px; }
  .case-lab-video { margin: 0 12px 20px; }
  .case-lab-video.case-video { grid-template-columns: 1fr; }
  .case-lab-video.case-video figcaption { padding: 24px 20px; }
  .case-lab-video.case-video h4 { font-size: 20px; line-height: 1.35; }
}

body {
  font-size: 16px;
}

.header-inner {
  width: min(1480px, calc(100vw - clamp(28px, 4vw, 48px)));
}

.desktop-nav {
  gap: clamp(18px, 2.2vw, 34px);
}

.desktop-nav a::after {
  display: none;
}

.reading-progress {
  right: auto;
  left: var(--nav-indicator-left, 0px);
  width: var(--nav-indicator-width, 0px);
  height: 3px;
  overflow: visible;
  opacity: 0;
  transition: opacity 120ms ease;
}

.reading-progress.is-visible {
  opacity: 1;
}

.reading-progress > span {
  width: 100%;
  transform: none;
  transform-origin: center;
}

.hero {
  padding: clamp(64px, 5vw, 88px) 0 clamp(88px, 8vw, 124px);
  background: var(--white);
}

.hero::before,
.hero::after,
.hero-intro::before {
  display: none !important;
}

.hero-layout {
  display: block;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 3vw, 48px);
  align-items: start;
}

.hero-intro {
  width: 100%;
  max-width: 1200px;
}

.eyebrow {
  margin-bottom: 28px;
  font: 700 13px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.theme-dark .hero h1 {
  max-width: 1120px;
  font-size: clamp(58px, 6.4vw, 102px);
  font-weight: 690;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

.hero-summary {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  column-gap: clamp(40px, 4vw, 80px);
  align-items: start;
  justify-self: stretch;
  padding-bottom: 0;
}

.hero-lede {
  grid-column: 1;
  grid-row: 1 / span 3;
  max-width: 680px;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  grid-column: 2;
  margin-top: 0;
}

.install-box {
  grid-column: 2;
  margin-top: 24px;
  border-radius: 5px;
}

.support-list {
  grid-column: 2;
  margin-top: 18px;
  gap: 8px 16px;
}

.support-list li {
  padding: 0;
  background: transparent;
  border: 0;
}

.support-list li:not(:last-child)::after {
  content: "·";
  margin-left: 16px;
  color: var(--line-strong);
}

.product-workbench {
  min-height: 610px;
  margin-top: clamp(44px, 4vw, 64px);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(16, 42, 67, 0.14);
}

.workbench-bar {
  min-height: 54px;
  padding-inline: 20px;
}

.workbench-task {
  min-height: 142px;
  padding: 30px 42px;
  align-items: center;
}

.workbench-task strong {
  font-size: 28px;
}

.workbench-task p {
  font-size: 15px;
}

.workbench-body {
  min-height: 410px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.workbench-rail {
  padding: 36px 30px;
}

.workbench-rail ol {
  margin-top: 30px;
  gap: 34px;
}

.workbench-rail li {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
}

.workbench-rail li > i {
  width: 30px;
  height: 30px;
}

.workbench-rail li:not(:last-child)::after {
  top: 32px;
  bottom: -31px;
  left: 14px;
}

.workbench-rail li strong {
  font-size: 15px;
}

.workbench-rail li small {
  font-size: 12px;
}

.workbench-main {
  padding: 36px;
  gap: 26px;
}

.memory-result,
.task-terminal {
  min-height: 300px;
  border-radius: 5px;
}

.memory-result {
  padding: 24px 26px;
}

.memory-result blockquote {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.65;
}

.memory-result p {
  font-size: 14px;
}

.task-terminal pre {
  padding: 26px 24px 16px;
}

.task-terminal code {
  gap: 12px;
  font-size: 14px;
}

.section {
  padding: clamp(112px, 11vw, 168px) 0;
  border-top: 1px solid var(--editorial-rule);
}

.section-heading {
  margin-bottom: clamp(70px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.55fr);
  column-gap: clamp(72px, 10vw, 160px);
  align-items: end;
}

.section-heading .section-index,
.section-start .section-index {
  display: none;
}

.section-heading h2 {
  grid-column: 1;
  grid-row: auto;
  max-width: 900px;
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: auto;
  max-width: 520px;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.architecture-page-heading {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.architecture-page-heading h2 {
  grid-column: 1;
  width: 100%;
  max-width: 1120px;
}

.section-pain,
.section-demo,
.section-cases {
  background: var(--white);
}

.section-memories,
.section-faq {
  background: var(--editorial-section);
}

.problem-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
}

.problem-item {
  min-height: 0;
  padding: 36px 32px 38px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0;
  border-right: 1px solid var(--editorial-rule);
}

.problem-item:last-child {
  border-right: 0;
}

.problem-item > span,
.steps-list > li > span {
  width: auto;
  height: auto;
  display: block;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font: 700 12px/1.4 "SFMono-Regular", Consolas, monospace;
}

.problem-item > div {
  margin-top: 42px;
}

.problem-item h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.research-note {
  margin-top: 0;
  padding: 68px 0 0;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 60px;
  color: var(--text);
  background: transparent;
  border-radius: 0;
}

.research-note > strong {
  color: var(--navy-deep);
  font-size: clamp(68px, 7vw, 100px);
  font-weight: 650;
}

.research-note p {
  max-width: 720px;
  font-size: 22px;
}

.research-note p span {
  color: var(--muted);
}

.memory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
}

.memory-card {
  min-height: 560px;
  padding: 42px clamp(34px, 4vw, 62px) 52px;
  display: grid;
  grid-template-rows: 60px 172px 96px auto;
  align-content: start;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--editorial-rule);
  border-radius: 0;
}

.memory-card:last-child {
  border-right: 0;
}

.memory-card::after {
  display: none;
}

.memory-card-head {
  min-height: 0;
  align-items: flex-start;
}

.memory-card-head span {
  left: clamp(-32px, -2.4vw, -16px);
  top: 0.15em;
  transform: none;
}

.memory-card-head p {
  color: var(--navy-deep);
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.memory-card h3 {
  min-height: 0;
  margin: 50px 0 0;
  font-size: 31px;
}

.memory-card > p {
  min-height: 0;
  margin: 0;
}

.memory-card ul {
  margin: 0;
  padding-top: 28px;
}

html[lang="en"] .memory-card {
  grid-template-rows: 60px 190px 110px auto;
}

html[lang="en"] .memory-card h3 {
  font-size: 26px;
  line-height: 1.25;
}

html[lang="en"] .memory-card li {
  min-height: 46px;
}

.memory-principle {
  margin-top: 46px;
  padding: 34px 0 0;
  grid-template-columns: 220px minmax(0, 1fr);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  border-radius: 0;
}

.comparison-table-wrap {
  border-radius: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 30px 34px;
}

.comparison-summary {
  margin-top: 34px;
  padding: 28px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
}

.steps-list {
  border: 0;
  border-top: 1px solid #42586f;
  border-bottom: 1px solid #42586f;
}

.steps-list li {
  min-height: 320px;
  padding: 38px 34px 44px;
  border: 0;
  border-right: 1px solid #42586f;
  box-shadow: none;
}

.steps-list li:last-child {
  border-right: 0;
}

.steps-list li.is-current {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.steps-list > li > span,
.steps-list li.is-current > span {
  color: #9fb0c2;
  background: transparent;
}

.steps-list h3 {
  font-size: 25px;
}

.steps-list li > div {
  margin-top: 48px;
}


.case-shell {
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  border-radius: 0;
}

.case-tabs {
  background: transparent;
}

.case-tab {
  min-height: 112px;
  background: transparent;
}

.case-panel {
  padding: clamp(52px, 6vw, 86px) 0;
}

.case-intro {
  margin-bottom: 58px;
  max-width: none;
  display: block;
}

.case-intro > p {
  margin: 0 0 18px;
}

.case-intro h3 {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.12;
}

.case-intro > span {
  max-width: 760px;
  margin: 24px 0 0;
  line-height: 1.75;
}

.case-story {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
}

.case-task,
.case-memory {
  padding: 42px 46px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--editorial-rule);
  border-radius: 0;
}

.case-story > :last-child {
  border-right: 0;
}

.case-video {
  margin: 64px 0;
  padding: 0;
  align-items: start;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.case-video figcaption {
  padding: 8px 24px 8px 0;
}

.case-video .case-card-label {
  color: var(--blue-dark);
}

.case-video h4 {
  color: var(--navy-deep);
}

.case-video figcaption > p {
  color: var(--muted);
}

.case-video-meta span {
  color: var(--navy);
  background: var(--surface-blue);
  border-color: var(--line-strong);
}

.case-video-player {
  border: 1px solid var(--editorial-rule);
  border-radius: 6px;
}

.case-trace {
  margin-top: 62px;
  padding: 0;
  background: transparent;
  border: 0;
}

.case-trace-flow {
  border-radius: 0;
}

.case-comparison {
  margin-top: 54px;
  border-radius: 0;
}

.case-advantage {
  margin-top: 46px;
  padding: 34px 0 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  border-radius: 0;
}

.case-advantage strong {
  color: var(--navy-deep);
}

.case-advantage p {
  color: var(--muted);
}

.case-caveat {
  padding: 24px 0 0;
  background: transparent;
  border-top: 1px solid var(--editorial-rule);
}

.faq-layout {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 72px);
}

.faq-heading {
  display: block;
}

.faq-heading h2 {
  max-width: 620px;
  font-size: clamp(52px, 5vw, 68px);
}

.section-start {
  padding-block: clamp(120px, 12vw, 190px);
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.72fr);
  gap: 48px clamp(80px, 10vw, 160px);
  align-items: start;
}

.start-layout > div:first-child {
  max-width: 760px;
}

.section-start h2 {
  font-size: clamp(52px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.terminal-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  border-radius: 6px;
}

.action-links {
  grid-column: 1;
  margin-top: 12px;
}

html.theme-dark {
  --editorial-rule: var(--dark-line);
  --editorial-section: var(--dark-section);
  --editorial-panel: var(--dark-panel);
}

.theme-dark .hero {
  background: var(--dark-bg);
}

.theme-dark .hero::before,
.theme-dark .hero::after {
  display: none;
}

.theme-dark .support-list li {
  color: var(--dark-muted);
  background: transparent;
  border: 0;
}

.theme-dark .product-workbench {
  box-shadow:
    0 42px 110px rgba(1, 3, 9, 0.48),
    0 0 0 1px rgba(184, 221, 208, 0.035);
}

.theme-dark .section-pain,
.theme-dark .section-demo,
.theme-dark .section-cases {
  background: var(--dark-bg);
}

.theme-dark .section-memories,
.theme-dark .section-faq {
  background: var(--editorial-section);
}

.theme-dark .problem-list,
.theme-dark .problem-item,
.theme-dark .memory-grid,
.theme-dark .memory-card,
.theme-dark .memory-principle,
.theme-dark .case-shell,
.theme-dark .case-story,
.theme-dark .case-task,
.theme-dark .case-memory,
.theme-dark .case-caveat {
  border-color: var(--editorial-rule);
}

.theme-dark .problem-item,
.theme-dark .problem-item:hover,
.theme-dark .memory-card,
.theme-dark .memory-card:hover,
.theme-dark .memory-principle,
.theme-dark .case-task,
.theme-dark .case-memory,
.theme-dark .case-advantage {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.theme-dark .problem-item > span,
.theme-dark .steps-list > li > span,
.theme-dark .steps-list li.is-current > span {
  color: var(--dark-muted);
  background: transparent;
}

.theme-dark .research-note,
.theme-dark .research-note > strong {
  color: var(--dark-text);
  background: transparent;
}

.theme-dark .memory-card::after {
  display: none;
}

.theme-dark .comparison-summary,
.theme-dark .case-advantage {
  background: transparent;
  border-color: var(--editorial-rule);
}

.theme-dark .case-shell {
  border-color: var(--editorial-rule);
}

.theme-dark .case-tabs,
.theme-dark .case-caveat {
  background: transparent;
}

.theme-dark .case-intro h3,
.theme-dark .case-advantage strong {
  color: var(--dark-text);
}

.theme-dark .case-video {
  background: transparent;
  border: 0;
}

.theme-dark .case-video .case-card-label {
  color: var(--dark-accent-strong);
}

.theme-dark .case-video h4 {
  color: var(--dark-text);
}

.theme-dark .case-video figcaption > p {
  color: var(--dark-muted);
}

.theme-dark .case-video-meta span {
  color: var(--dark-copy);
  background: var(--dark-panel);
  border-color: var(--dark-line-strong);
}

.theme-dark .case-trace {
  background: transparent;
  border: 0;
}

@media (max-width: 1180px) {
  .hero-copy,
  .section-heading,
  .case-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-summary {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    justify-self: start;
  }

  .hero-lede,
  .hero-actions,
  .install-box,
  .support-list {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-actions {
    margin-top: 30px;
  }

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

  .workbench-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading > p:last-child,
  .case-intro > span {
    grid-column: 1;
    max-width: 720px;
  }

  .case-intro > p {
    margin-bottom: 18px;
  }

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

  .problem-item:nth-child(2) {
    border-right: 0;
  }

  .problem-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--editorial-rule);
  }

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

  .memory-card {
    min-height: 500px;
  }

  .memory-card:nth-child(2) {
    border-right: 0;
  }

  .memory-card:nth-child(n + 3) {
    border-top: 1px solid var(--editorial-rule);
  }

  .memory-card:last-child {
    grid-column: auto;
    min-height: 500px;
  }



  .faq-layout,
  .start-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-layout {
    gap: 32px;
  }

  .faq-heading {
    position: static;
    margin-bottom: 0;
  }

  .terminal-card,
  .action-links {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 920px) {
  .reading-progress {
    display: none;
  }

  .product-workbench {
    width: 100%;
    min-height: 0;
  }

  .workbench-body {
    grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  }

  .workbench-main {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .memory-card {
    min-height: 0;
    grid-template-rows: none;
    border-right: 0;
    border-bottom: 1px solid var(--editorial-rule);
  }

  .memory-card:last-child {
    grid-column: auto;
    min-height: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .memory-card:nth-child(n + 3) {
    border-top: 0;
  }

  .memory-card-head {
    min-height: 34px;
    align-items: center;
  }

  .memory-card h3 {
    min-height: 0;
    margin-top: 52px;
  }

  .memory-card > p {
    min-height: 0;
  }

  html[lang="en"] .memory-card {
    grid-template-rows: none;
  }

  html[lang="en"] .memory-card li {
    min-height: 0;
  }

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

  .steps-list li:nth-child(2) {
    border-right: 0;
  }

  .steps-list li:nth-child(-n + 2) {
    border-bottom: 1px solid #42586f;
  }

  .steps-list li > div {
    margin-top: 40px;
  }


  .case-story,
  .case-comparison,
  .theme-dark .case-comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-task,
  .case-memory {
    border-right: 0;
    border-bottom: 1px solid var(--editorial-rule);
  }

  .case-story > :last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 64px 0 84px;
  }

  .hero h1,
  .theme-dark .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 17px;
  }

  .product-workbench {
    margin-top: 54px;
  }

  .workbench-task {
    min-height: 0;
    padding: 24px 20px;
  }

  .workbench-task strong {
    font-size: 22px;
  }

  .workbench-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-rail {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--editorial-rule);
  }

  .workbench-rail ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .workbench-main {
    padding: 18px;
  }

  .memory-result,
  .task-terminal {
    min-height: 240px;
  }

  .section {
    padding: 92px 0;
  }

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

  .faq-heading {
    margin-bottom: 0;
  }

  .section-heading h2,
  .faq-heading h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .section-heading > p:last-child {
    font-size: 16px;
  }

  .problem-list,
  .steps-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .problem-item,
  .problem-item:nth-child(2),
  .problem-item:nth-child(-n + 2),
  .steps-list li,
  .steps-list li:nth-child(2),
  .steps-list li:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--editorial-rule);
  }

  .problem-item,
  .problem-item:nth-child(2),
  .problem-item:nth-child(-n + 2) {
    min-height: 0;
  }

  .steps-list li,
  .steps-list li:nth-child(2),
  .steps-list li:nth-child(-n + 2) {
    min-height: 0;
  }

  .steps-list li > div {
    margin-top: 34px;
  }

  .problem-item:last-child,
  .steps-list li:last-child {
    border-bottom: 0;
  }

  .research-note,
  .memory-principle {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .memory-card {
    padding-inline: 8px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 22px 20px;
  }


  .case-tabs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .case-task,
  .case-memory {
    padding: 30px 22px;
  }

  .case-advantage {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-start h2 {
    font-size: clamp(44px, 13vw, 62px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    transition: none;
  }

  .case-memory-hit.is-nudging .case-memory-toggle::after {
    animation: none;
    opacity: .55;
  }

  .case-memory-recall,
  .case-memory-recall::before {
    animation: none;
  }
}

/* OpenSquilla-inspired reading order: value, proof, setup, architecture, FAQ. */
.hero {
  min-height: auto;
  padding: clamp(34px, 3vw, 48px) 0 clamp(42px, 3.5vw, 56px);
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(400px, 0.74fr) minmax(680px, 1.26fr);
  gap: clamp(28px, 3vw, 48px) clamp(40px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  display: block;
}

.hero-intro {
  max-width: 650px;
}

.hero h1,
.theme-dark .hero h1 {
  max-width: 680px;
  font-size: clamp(56px, 5.1vw, 78px);
  line-height: 1.02;
}

html[data-language="zh"] .hero h1,
html[data-language="zh"].theme-dark .hero h1 {
  line-height: 1.08;
}

.hero-summary {
  max-width: 590px;
  margin-top: 34px;
  display: block;
}

.hero-lede {
  max-width: 590px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-support {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--editorial-rule);
}

.hero-support > span {
  color: var(--muted);
  font: 700 12px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-groups {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.support-group {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}

.support-group > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-support .support-list {
  grid-column: 2;
  margin-top: 0;
}

.product-workbench {
  min-height: 0;
  margin: 0;
}

.product-workbench .window-controls i:nth-child(1) {
  background: #ff5f57;
  border-color: #d94b45;
}

.product-workbench .window-controls i:nth-child(2) {
  background: #febc2e;
  border-color: #d69b20;
}

.product-workbench .window-controls i:nth-child(3) {
  background: #28c840;
  border-color: #1faa33;
}

.product-workbench .workbench-task {
  min-height: 116px;
  padding: 24px 30px;
}

.product-workbench .workbench-task strong {
  font-size: 23px;
}

.product-workbench .workbench-body {
  min-height: 360px;
  grid-template-columns: 205px minmax(0, 1fr);
}

.product-workbench .workbench-rail {
  padding: 28px 20px;
}

.product-workbench .workbench-rail ol {
  margin-top: 26px;
  gap: 28px;
}

.product-workbench .workbench-rail li > i {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.product-workbench .workbench-main {
  padding: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-workbench .memory-result,
.product-workbench .task-terminal {
  min-height: 260px;
}

.product-workbench .memory-result {
  padding: 20px;
}

.product-workbench .memory-result blockquote {
  margin-top: 18px;
  font-size: 17px;
}

.product-workbench .task-terminal pre {
  padding: 18px 16px 12px;
}

.product-workbench .task-terminal code span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.case-paths {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--editorial-rule);
}

.case-paths > div {
  min-height: 132px;
  padding: 28px 34px;
  border-right: 1px solid var(--editorial-rule);
}

.case-paths > div:last-child {
  border-right: 0;
}

.case-paths span {
  color: var(--muted);
  font: 700 12px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-paths p {
  margin: 18px 0 0;
  color: var(--navy-deep);
  font-size: 17px;
  font-weight: 700;
}

.case-paths i {
  padding-inline: 8px;
  color: var(--line-strong);
  font-style: normal;
}

.case-paths-with {
  background: color-mix(in srgb, var(--blue-soft) 48%, transparent);
}

.section-start {
  overflow: hidden;
}

.start-layout {
  display: block;
}

.start-layout > .start-intro {
  max-width: 1080px;
}

.start-intro > p:last-child {
  max-width: 760px;
  margin-top: 26px;
  color: #b6c5d4;
  font-size: 18px;
}

.start-journey {
  margin: clamp(66px, 7vw, 96px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) minmax(0, 0.96fr);
  list-style: none;
  border-block: 1px solid #354554;
}

.start-step {
  min-width: 0;
  min-height: 550px;
  padding: clamp(30px, 3.2vw, 46px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #354554;
}

.start-step:last-child {
  border-right: 0;
}

.start-step-install {
  background: rgba(255, 255, 255, 0.025);
}

.start-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.start-step-head > span {
  color: #75d7c8;
  font-size: 14px;
  font-weight: 800;
}

.start-step-head small {
  color: #8495a6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.start-step h3 {
  margin: 58px 0 18px;
  color: var(--white);
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.start-step > p {
  margin-bottom: 28px;
  color: #afbdca;
  font-size: 16px;
}

.start-inline-action {
  min-height: 52px;
  margin-top: auto;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #07110f;
  background: #75d7c8;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.start-inline-action:hover {
  color: #07110f;
  background: #9ce9de;
  transform: translateY(-1px);
}

.start-step .start-step-note {
  margin: 18px 0 0;
  color: #8092a3;
  font-size: 13px;
  line-height: 1.6;
}

.start-command {
  margin-top: auto;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #050b11;
  border: 1px solid #3a4b5b;
  border-radius: 5px;
}

.start-command code {
  min-width: 0;
  color: #f0f5f7;
  font: 13px/1.6 "SFMono-Regular", Consolas, monospace;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.start-command button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  color: #07110f;
  background: #75d7c8;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.start-checklist {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: #9eafbe;
  list-style: none;
  font-size: 13px;
}

.start-checklist li {
  position: relative;
  padding-left: 20px;
}

.start-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #75d7c8;
  font-weight: 800;
}

.start-success {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #75d7c8;
  font-size: 13px;
  line-height: 1.65;
}

.start-success > i {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.start-success span {
  color: #aebdca;
}

.start-success strong {
  color: #dffaf5;
}

.start-support-note {
  margin: 28px 0 0;
  color: #94a9bd;
  font-size: 14px;
}

.start-support-note strong {
  color: #dffaf5;
}

.start-layout > .action-links {
  max-width: 920px;
  margin-top: 30px;
}

.section-architecture {
  overflow: hidden;
}

.architecture-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--editorial-rule);
}

.architecture-types article {
  min-height: 410px;
  padding: 38px clamp(30px, 3.5vw, 54px) 44px;
  border-right: 1px solid var(--editorial-rule);
}

.architecture-types article:last-child {
  border-right: 0;
}

.architecture-types article > span,
.architecture-types article > p {
  color: var(--blue-dark);
  font: 750 12px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.architecture-types article > p {
  margin: 20px 0 0;
}

.architecture-types h3 {
  max-width: 360px;
  margin: 70px 0 24px;
  color: var(--navy-deep);
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.architecture-types ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.architecture-types li {
  position: relative;
  padding-left: 18px;
}

.architecture-types li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--blue);
}

.architecture-map {
  margin: 58px 0 0;
  padding: clamp(30px, 4vw, 54px);
  background: var(--editorial-panel);
  border: 1px solid var(--editorial-rule);
  border-radius: 8px;
}

.architecture-map figcaption {
  margin-bottom: 38px;
  color: var(--navy-deep);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.architecture-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(24px, auto) minmax(0, 1fr)) minmax(0, 1fr);
  align-items: stretch;
}

.architecture-loop article {
  min-height: 210px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.architecture-loop article > span {
  color: var(--blue-dark);
  font: 800 12px/1.4 "SFMono-Regular", Consolas, monospace;
}

.architecture-loop article strong {
  margin-top: 48px;
  display: block;
  color: var(--navy-deep);
  font-size: 24px;
}

.architecture-loop article p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.architecture-loop > i {
  min-width: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-style: normal;
  font-size: 22px;
}

.architecture-principle {
  margin-top: 30px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid var(--editorial-rule);
}

.architecture-principle strong {
  color: var(--navy-deep);
}

.architecture-principle p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.faq-list details p a {
  color: var(--blue-dark);
  border-bottom: 1px solid currentColor;
  font-weight: 750;
}

.faq-list details p code {
  padding: 2px 5px;
  color: var(--navy-deep);
  background: var(--surface);
  border-radius: 3px;
  font: 13px/1.5 "SFMono-Regular", Consolas, monospace;
}

.footer-main {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
  gap: clamp(60px, 10vw, 150px);
}

.footer-product > p {
  max-width: 520px;
}

.footer-byline {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dffaf5;
  font-weight: 750;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 58px;
}

.footer-main .footer-link-groups > nav {
  align-content: start;
  grid-template-columns: 1fr;
  gap: 12px;
}

.footer-follow {
  justify-self: end;
}

.footer-social {
  display: grid;
  gap: 10px;
}

.footer-social a,
.footer-social button {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d6e1ea;
  background: transparent;
  border: 1px solid #31475d;
  border-radius: 4px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.footer-social a:hover,
.footer-social button:hover {
  color: #dffaf5;
  background: rgba(117, 215, 200, 0.08);
  border-color: #49786f;
}

.footer-wechat-card {
  width: fit-content;
  margin: 0;
  padding: 8px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #d6e1ea;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #31475d;
  border-radius: 8px;
}

.footer-wechat-card img {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: cover;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 5px;
}

.footer-wechat-card figcaption {
  color: #d6e1ea;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

[data-language-visibility="en"] {
  display: none;
}

html[data-language="zh"] [data-language-visibility="en"],
html[data-language="en"] [data-language-visibility="zh"] {
  display: none;
}

html[data-language="en"] [data-language-visibility="en"] {
  display: grid;
}

.footer-bottom i {
  padding-inline: 4px;
  font-style: normal;
}

.theme-dark .hero-support,
.theme-dark .case-paths,
.theme-dark .case-paths > div,
.theme-dark .architecture-types,
.theme-dark .architecture-types article,
.theme-dark .architecture-principle {
  border-color: var(--editorial-rule);
}

.theme-dark .support-group > strong {
  color: var(--dark-muted);
}

.theme-dark .case-paths p,
.theme-dark .architecture-types h3,
.theme-dark .architecture-map figcaption,
.theme-dark .architecture-loop article strong,
.theme-dark .architecture-principle strong {
  color: var(--dark-text);
}

.theme-dark .case-paths-with {
  background: color-mix(in srgb, var(--dark-accent) 8%, transparent);
}

.theme-dark .architecture-map {
  background:
    radial-gradient(circle at 86% 12%, rgba(123, 191, 168, 0.1), transparent 24rem),
    var(--dark-panel);
  border-color: var(--dark-line-strong);
}

.theme-dark .architecture-loop article {
  background: var(--dark-panel);
  border-color: var(--dark-line-strong);
}

.theme-dark .architecture-types article > span,
.theme-dark .architecture-types article > p,
.theme-dark .architecture-loop article > span,
.theme-dark .architecture-loop > i {
  color: var(--dark-accent-strong);
}

.theme-dark .architecture-types ul,
.theme-dark .architecture-loop article p,
.theme-dark .architecture-principle p {
  color: var(--dark-muted);
}

.theme-dark .faq-list details p a {
  color: var(--dark-accent-strong);
}

.theme-dark .faq-list details p code {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1240px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
  }

  .hero-copy,
  .hero-intro,
  .hero-summary {
    max-width: 820px;
  }

  .product-workbench {
    margin-top: 12px;
  }

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

  .start-step:nth-child(2) {
    border-right: 0;
  }

  .start-step:last-child {
    grid-column: 1 / -1;
    min-height: 440px;
    border-top: 1px solid #354554;
  }

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

  .architecture-loop > i {
    display: none;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .product-workbench .workbench-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-paths,
  .architecture-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-paths > div,
  .architecture-types article {
    border-right: 0;
    border-bottom: 1px solid var(--editorial-rule);
  }

  .case-paths > div:last-child,
  .architecture-types article:last-child {
    border-bottom: 0;
  }

  .architecture-types article {
    min-height: 0;
  }

  .architecture-types h3 {
    margin-top: 44px;
  }

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

@media (max-width: 680px) {
  .hero-layout {
    gap: 32px;
  }

  .product-workbench .workbench-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-support .support-list {
    display: flex;
  }

  .hero-support .support-list li {
    padding: 0;
    text-align: left;
  }

  .hero-support .support-list li:not(:last-child)::after {
    display: none;
  }

  .case-paths > div {
    min-height: 0;
    padding: 26px 20px;
  }

  .case-paths p {
    font-size: 16px;
  }

  .case-paths i {
    padding-inline: 3px;
  }

  .section-start h2 {
    font-size: clamp(40px, 11.5vw, 50px);
    text-wrap: balance;
  }

  .start-journey {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-step,
  .start-step:nth-child(2),
  .start-step:last-child {
    grid-column: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #354554;
  }

  .start-step:last-child {
    border-bottom: 0;
  }

  .start-step h3 {
    margin-top: 42px;
  }

  .start-inline-action,
  .start-command {
    margin-top: 30px;
  }

  .start-command {
    align-items: stretch;
    flex-direction: column;
  }

  .start-command button {
    width: 100%;
  }

  .architecture-types article,
  .architecture-map {
    padding-inline: 22px;
  }

  .architecture-loop {
    grid-template-columns: minmax(0, 1fr);
  }

  .architecture-loop article {
    min-height: 0;
  }

  .architecture-loop article strong {
    margin-top: 34px;
  }

  .architecture-principle,
  .footer-link-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-follow {
    justify-self: start;
  }

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

/* Chinese display typography: keep body copy neutral while giving headings a
 * cleaner, more deliberate system-font voice. */
html:not([data-language="en"]) h1,
html:not([data-language="en"]) h2,
html:not([data-language="en"]) h3 {
  font-family: "Helvetica Neue", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

html:not([data-language="en"]) .hero h1,
html:not([data-language="en"]).theme-dark .hero h1 {
  max-width: 650px;
  font-size: clamp(54px, 4.7vw, 70px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 1241px) {
  html:not([data-language="en"]) .hero-layout {
    grid-template-columns: minmax(560px, 0.9fr) minmax(650px, 1.1fr);
    column-gap: 48px;
  }
}

html:not([data-language="en"]) .architecture-page-heading h2 {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

html:not([data-language="en"]) .faq-heading h2 {
  font-size: clamp(46px, 4.5vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

@media (min-width: 921px) {
  html:not([data-language="en"]) .product-workbench .workbench-task p {
    max-width: none;
    font-size: clamp(13px, 1vw, 15px);
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  html:not([data-language="en"]) .hero h1,
  html:not([data-language="en"]).theme-dark .hero h1 {
    font-size: clamp(42px, 11.5vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  html:not([data-language="en"]) .architecture-page-heading h2 {
    font-size: clamp(34px, 9.2vw, 38px);
    line-height: 1.17;
    letter-spacing: -0.035em;
  }

  html:not([data-language="en"]) .faq-heading h2 {
    font-size: clamp(32px, 8.7vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  html:not([data-language="en"]) .faq-heading {
    margin-bottom: 0;
  }
}
