:root {
  color-scheme: light;
  --ink: #101828;
  --ink-soft: #475467;
  --paper: #f7f9fc;
  --paper-2: #ffffff;
  --line: #e4e7ec;
  --line-dark: #cbd5e1;
  --orange: #f15a24;
  --green: #0b8f67;
  --blue: #2563eb;
  --yellow: #fff6c7;
  --red: #c83f2f;
  --shadow: 0 14px 38px rgba(16, 24, 40, .07);
  --soft-shadow: 0 8px 22px rgba(16, 24, 40, .055);
  --radius: 8px;
  --radius-soft: 12px;
}

html {
  scroll-padding-top: 6rem;
  background: var(--paper);
  overflow-x: hidden;
}

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

body {
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, #fff 0, #f7f9fc 26rem, #f4f7fb 100%),
    var(--paper) !important;
  background-size: auto !important;
  font-family: "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif !important;
  overflow-x: hidden;
}

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

.site-top {
  position: sticky !important;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 24, 40, .08) !important;
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 2rem)) !important;
  min-height: 66px !important;
  gap: .75rem !important;
}

.brand {
  color: var(--ink);
  font-weight: 760 !important;
}

.brand-mark {
  border: 0 !important;
  background: linear-gradient(135deg, #2563eb, #0b8f67) !important;
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
}

.nav-links {
  gap: .18rem !important;
  min-width: 0;
}

.nav-links a {
  min-height: 40px !important;
  color: var(--ink-soft);
  border: 1px solid transparent !important;
  border-radius: 999px;
  font-weight: 640;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: #fff !important;
  border-color: var(--line) !important;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .06) !important;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: "Rubik", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
}

h1 {
  max-width: 15ch !important;
  font-size: 4.6rem !important;
  line-height: 1 !important;
}

.hero,
.page-hero {
  position: relative;
  min-height: clamp(500px, 68vh, 700px) !important;
  border-bottom: 1px solid rgba(16, 24, 40, .08) !important;
  scroll-margin-top: 6rem;
  color: var(--ink) !important;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(247, 249, 252, .90) 50%, rgba(247, 249, 252, .50)),
    var(--hero-image) !important;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(247, 249, 252, .90) 52%, rgba(247, 249, 252, .48)),
    var(--hero-image, url("https://cdn.sanity.io/images/1ygbk6d0/production/2aef99002b92bcc30f664bc5eb23a3caf3267eab-3200x2000.jpg?w=2200&q=82&fit=max&auto=format")) !important;
  background-position: center;
  background-size: cover;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(transparent, var(--paper));
}

.hero-inner,
.page-hero .section {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2rem)) !important;
}

.hero p,
.page-hero .lead {
  color: #344054 !important;
  font-weight: 520;
}

.section {
  width: min(1160px, calc(100% - 2rem)) !important;
  padding-top: clamp(3rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
  scroll-margin-top: 6rem;
}

.section.section-tight {
  padding-top: clamp(2.5rem, 5vw, 4.25rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem) !important;
}

.section-kicker,
.eyebrow {
  color: var(--blue) !important;
  background: rgba(36, 87, 255, .08) !important;
  border: 1px solid rgba(36, 87, 255, .18) !important;
  border-radius: 999px;
  padding: .32rem .62rem !important;
  font-size: .74rem !important;
  font-weight: 760 !important;
  letter-spacing: .08em !important;
}

.lead,
.panel p,
.panel li,
.mini-map span {
  color: var(--ink-soft) !important;
  line-height: 1.68;
}

.lead {
  max-width: 66ch;
}

.section h2 {
  max-width: 20ch !important;
  font-size: 3.25rem !important;
  line-height: 1.08 !important;
}

.section h2.wide {
  max-width: 22ch !important;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: .8rem;
  margin-top: 1.4rem;
}

.toc-grid a {
  display: grid;
  gap: .42rem;
  min-height: 112px;
  padding: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--soft-shadow);
}

.toc-grid a strong {
  color: var(--ink);
  font-size: 1rem;
}

.toc-grid a span {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.55;
}

.toc-grid a:hover {
  border-color: rgba(36, 87, 255, .32);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .10);
  transform: translateY(-1px);
}

.decision-lane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: .8rem;
  margin-top: 1.25rem;
}

.decision-lane > div {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.decision-lane strong {
  color: var(--ink);
  font-size: 1rem;
}

.decision-lane span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.button {
  min-height: 46px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: var(--soft-shadow) !important;
  font-weight: 760 !important;
}

.button.orange {
  border-color: transparent !important;
  background: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .16) !important;
}

.button.dark {
  border-color: var(--line) !important;
  background: #101828 !important;
  color: #fff !important;
}

.grid {
  gap: clamp(1rem, 2vw, 1.35rem) !important;
  min-width: 0;
}

.panel {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: var(--soft-shadow) !important;
  min-width: 0;
}

.panel h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  line-height: 1.18 !important;
}

.feature-card {
  overflow: hidden;
  padding: 0 !important;
  background: #fff !important;
}

.feature-card .card-media,
.figure,
.figure-frame {
  position: relative;
  overflow: hidden;
  border-color: var(--line) !important;
  background: #f8fafc !important;
}

.feature-card .card-media {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line) !important;
}

.feature-card .card-media img,
.feature-card .card-media video {
  width: 100% !important;
  height: 100% !important;
  min-height: 230px;
  max-height: 390px !important;
  object-fit: contain !important;
  padding: clamp(.55rem, 1.15vw, .95rem);
  background: transparent !important;
}

.feature-card .card-media img:not([src*=".gif"]) {
  object-fit: contain !important;
  padding: clamp(.45rem, 1vw, .8rem) !important;
  object-position: center;
  transform: none;
  transition: transform .18s ease, filter .18s ease;
}

.feature-card .card-media:hover img:not([src*=".gif"]) {
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.015);
}

.feature-card .card-media img[src*="2140fc3ce8afddc15f9d38fe1a23f88a1680880b"],
.feature-card .card-media img[src*="e85de27a2a2c0ef9819e34b574fed2b71bea3749"],
.feature-card .card-media img[src*="227429954c8cb0562b5349773d41d0413407c6e3"],
.feature-card .card-media img[src*="8f9c4ab62d8039abe03f394fa9d09673929538b1"] {
  object-fit: cover !important;
  padding: 0 !important;
}

.feature-card .card-media img[src*="2140fc3ce8afddc15f9d38fe1a23f88a1680880b"],
.feature-card .card-media img[src*="227429954c8cb0562b5349773d41d0413407c6e3"],
.feature-card .card-media img[src*="c883eb23205fb71973a40a0084355401d9547117"],
.feature-card .card-media img[src*="76506f58de3145f4fd82c9013ec1194a36aa7c16"],
.feature-card .card-media img[src*="e85de27a2a2c0ef9819e34b574fed2b71bea3749"] {
  transform: none;
}

.feature-card .card-media:hover img[src*="2140fc3ce8afddc15f9d38fe1a23f88a1680880b"],
.feature-card .card-media:hover img[src*="227429954c8cb0562b5349773d41d0413407c6e3"],
.feature-card .card-media:hover img[src*="c883eb23205fb71973a40a0084355401d9547117"],
.feature-card .card-media:hover img[src*="76506f58de3145f4fd82c9013ec1194a36aa7c16"],
.feature-card .card-media:hover img[src*="e85de27a2a2c0ef9819e34b574fed2b71bea3749"] {
  transform: scale(1.015);
}

.feature-card .card-media:has(img.zoomable),
.figure:has(img.zoomable) {
  cursor: zoom-in;
}

.feature-card .card-media video {
  aspect-ratio: 16 / 9;
  max-height: 420px !important;
}

.feature-card .card-caption,
.caption,
.figure-cap {
  color: #475467 !important;
  background: rgba(255, 255, 255, .94) !important;
  border-top: 1px solid rgba(17, 24, 39, .08);
}

.feature-card .card-body {
  padding: clamp(1rem, 2vw, 1.5rem) !important;
}

.card-media[data-focus]::before,
.figure-frame[data-focus]::before,
.figure[data-focus]::before {
  content: attr(data-focus);
  position: absolute;
  left: .85rem;
  top: .85rem;
  z-index: 2;
  max-width: min(72%, 30rem);
  padding: .42rem .64rem;
  border: 1px solid rgba(17, 24, 39, .10) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94) !important;
  color: #111827 !important;
  box-shadow: 0 10px 22px rgba(16, 24, 40, .09) !important;
  backdrop-filter: blur(10px);
  font-size: .78rem !important;
  font-weight: 760 !important;
  line-height: 1.35;
}

.card-media:has(img.zoomable)::after,
.figure:has(img.zoomable)::after {
  content: "查看大图";
  position: absolute;
  right: .85rem;
  top: .85rem;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: .42rem .72rem;
  border: 1px solid rgba(37, 99, 235, .22) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--blue) !important;
  font-size: .78rem;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .13);
}

.figure {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--soft-shadow) !important;
  max-width: 100%;
}

.figure img,
.figure-frame img {
  width: 100%;
  max-height: min(68vh, 760px) !important;
  object-fit: contain !important;
  padding: clamp(.65rem, 1.2vw, 1rem);
  background: transparent !important;
}

.figure-frame svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #fff;
}

section[data-layout="video-demo-strip"] .demo-strip,
section[data-layout="demo-strip-plus-figure"] .demo-strip {
  display: flex !important;
  gap: 1rem !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .25rem .15rem .85rem;
  scrollbar-width: thin;
}

section[data-layout="video-demo-strip"] .demo-strip > .feature-card,
section[data-layout="demo-strip-plus-figure"] .demo-strip > .feature-card {
  flex: 0 0 min(86vw, 560px);
  scroll-snap-align: start;
}

.video-frame,
.audio-frame {
  display: none !important;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.resource-card,
.mini-map a {
  min-height: 0 !important;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: var(--soft-shadow) !important;
  text-decoration: none;
  min-width: 0;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.resource-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.resource-card p {
  margin: 0;
  color: var(--ink-soft) !important;
}

.resource-card .resource-tag,
.tag {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(36, 87, 255, .18) !important;
  border-radius: 999px;
  background: rgba(36, 87, 255, .08) !important;
  color: var(--blue) !important;
  font-weight: 760 !important;
}

.resource-card-visual {
  grid-row: span 2;
}

.resource-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: #eef2f7;
}

.tri-card .card-top,
.tri-card.good .card-top,
.tri-card.warn .card-top,
.mini-diagram {
  background: #f1f5f9 !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
}

.mock-terminal {
  background: #101828 !important;
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.mini-diagram .node,
.signal-list li {
  border: 1px solid var(--line) !important;
  background: #fff;
  color: var(--ink) !important;
}

.contrast-table {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff !important;
  box-shadow: var(--soft-shadow);
}

.contrast-table th,
.contrast-table td {
  border: 1px solid var(--line) !important;
}

.contrast-table th {
  background: #101828 !important;
  color: #fff !important;
}

.contrast-table td:nth-child(4) {
  background: rgba(15, 159, 110, .10) !important;
  color: var(--ink) !important;
}

.feature-list li,
.step {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: #fff !important;
  box-shadow: var(--soft-shadow) !important;
  min-width: 0;
}

.callout {
  border: 1px solid rgba(36, 87, 255, .20) !important;
  border-radius: var(--radius);
  background: #eef3ff !important;
  box-shadow: none !important;
}

.callout.red { background: #fff0ec !important; border-color: rgba(217, 67, 47, .22) !important; }
.callout.green { background: #ecfdf5 !important; border-color: rgba(15, 159, 110, .22) !important; }
.callout.blue { background: #eef3ff !important; }

.code {
  border: 1px solid #202938 !important;
  border-radius: var(--radius);
  background: #101828 !important;
  color: #d1fae5 !important;
  overflow-x: auto;
}

.footer {
  border-top: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--ink-soft) !important;
}

.lightbox {
  background: rgba(16, 24, 40, .92) !important;
}

.lightbox img {
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: var(--radius);
}

.lightbox button {
  min-width: 48px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 999px;
  background: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  font-weight: 760;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: #1d4ed8 !important;
  outline: 3px solid rgba(255, 255, 255, .42);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .grid.two,
  .mini-map {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1120px) {
  h1 {
    font-size: 5.35rem !important;
  }

  .section h2 {
    font-size: 3.55rem !important;
  }
}

@media (min-width: 980px) {
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

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

  .grid.four > .feature-card:has(.card-media) {
    grid-column: span 2;
  }

  .media-grid,
  section[data-layout="video-grid"] .media-grid,
  section[data-layout="video-and-proof"] .grid.two,
  section[data-layout="video-plus-agent-card"] .grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }

  .media-grid > .feature-card,
  section[data-layout="video-and-proof"] .grid.two > .feature-card,
  section[data-layout="video-plus-agent-card"] .grid.two > .feature-card {
    grid-column: auto !important;
  }

  .media-grid > .feature-card:nth-child(6n + 2) {
    grid-column: auto !important;
  }

  .media-grid > .feature-card:nth-child(6n + 3),
  .media-grid > .feature-card:nth-child(6n + 4) {
    grid-column: auto !important;
  }

  .media-grid > .feature-card:nth-child(6n + 1),
  .mosaic-grid > .feature-card:nth-child(3n + 1),
  section[data-layout="video-grid"] .media-grid > .feature-card:first-child,
  section[data-layout="video-and-proof"] .grid.two > .feature-card:first-child,
  section[data-layout="video-plus-agent-card"] .grid.two > .feature-card:first-child {
    grid-column: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch;
    min-height: 0 !important;
  }

  .media-grid > .feature-card:nth-child(6n + 5) {
    grid-column: auto !important;
  }

  .media-grid > .feature-card:nth-child(6n + 6) {
    grid-column: auto !important;
  }

  .media-grid > .feature-card:nth-child(6n + 5) .card-media img,
  .media-grid > .feature-card:nth-child(6n + 6) .card-media img {
    height: 100% !important;
    min-height: 250px;
    max-height: 390px !important;
  }

  .media-grid > .feature-card:nth-child(6n + 1) .card-body,
  .mosaic-grid > .feature-card:nth-child(6n + 1) .card-body,
  section[data-layout="video-grid"] .media-grid > .feature-card:first-child .card-body,
  section[data-layout="video-and-proof"] .grid.two > .feature-card:first-child .card-body,
  section[data-layout="video-plus-agent-card"] .grid.two > .feature-card:first-child .card-body {
    align-self: center;
    order: initial !important;
  }

  .media-grid > .feature-card:nth-child(6n + 1) .card-media,
  .mosaic-grid > .feature-card:nth-child(3n + 1) .card-media,
  .mosaic-grid > .feature-card:nth-child(6n + 1) .card-media,
  section[data-layout="video-grid"] .media-grid > .feature-card:first-child .card-media,
  section[data-layout="video-and-proof"] .grid.two > .feature-card:first-child .card-media,
  section[data-layout="video-plus-agent-card"] .grid.two > .feature-card:first-child .card-media {
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .media-grid > .feature-card:nth-child(6n + 1) .card-media img,
  .media-grid > .feature-card:nth-child(6n + 1) .card-media video,
  section[data-layout="video-grid"] .media-grid > .feature-card:first-child .card-media img,
  section[data-layout="video-grid"] .media-grid > .feature-card:first-child .card-media video {
    height: 100% !important;
    min-height: 250px;
    max-height: 420px !important;
  }

  section[data-layout="full-width-figure"],
  section[data-layout="full-figure-plus-text"],
  section[data-layout="byok-two-column"] {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(1.2rem, 3vw, 2rem);
    align-items: center;
  }

  section[data-layout="full-width-figure"] {
    display: block;
  }

  section[data-layout="full-width-figure"] .figure {
    margin-top: 1.5rem;
  }

  section[data-layout="video-grid"] .media-grid > .feature-card:first-child,
  section[data-layout="video-and-proof"] .grid.two > .feature-card:first-child {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr) !important;
  }

  section[data-layout="video-grid"] .media-grid > .feature-card:first-child .card-media,
  section[data-layout="video-and-proof"] .grid.two > .feature-card:first-child .card-media {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }

  section[data-layout="visual-atlas-grid"] .grid.two {
    display: flex !important;
    gap: 1rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .85rem;
    scrollbar-width: thin;
  }

  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card {
    flex: 0 0 min(44vw, 560px);
    scroll-snap-align: start;
  }

  section[data-layout="full-width-figure"] .figure,
  section[data-layout="full-figure-plus-text"] .figure,
  section[data-layout="byok-two-column"] .figure {
    align-self: center;
    width: 100%;
    max-height: min(72vh, 740px);
  }

  section[data-layout="full-width-figure"] .figure img,
  section[data-layout="full-figure-plus-text"] .figure img,
  section[data-layout="byok-two-column"] .figure img {
    max-height: min(60vh, 620px) !important;
  }

  section[data-layout="resource-cards"] .resource-grid {
    grid-template-columns: 1.2fr .9fr .9fr;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: .8rem 0;
    width: min(100% - 1rem, 1160px) !important;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    min-height: 44px !important;
    padding-left: .7rem !important;
    padding-right: .7rem !important;
  }

  h1 {
    max-width: 11ch !important;
    font-size: 3.1rem !important;
    line-height: 1.04 !important;
  }

  .section h2 {
    max-width: 13ch !important;
    font-size: 2.25rem !important;
    line-height: 1.12 !important;
  }

  .section,
  .hero-inner,
  .page-hero .section {
    width: min(100% - 1rem, 1160px) !important;
  }

  .hero,
  .page-hero {
    min-height: 520px !important;
    background-image:
      linear-gradient(rgba(255, 255, 255, .96), rgba(247, 249, 252, .91)),
      var(--hero-image) !important;
  }

  .feature-card .card-media img,
  .feature-card .card-media video {
    min-height: 210px;
    max-height: 320px !important;
  }

  .feature-card .card-media {
    aspect-ratio: 4 / 3;
  }

  .card-media[data-focus]::before,
  .figure-frame[data-focus]::before,
  .figure[data-focus]::before {
    max-width: calc(100% - 1.6rem);
    right: .8rem;
    font-size: .72rem !important;
  }

  .card-media:has(img.zoomable)::after,
  .figure:has(img.zoomable)::after {
    top: auto;
    right: .7rem;
    bottom: .7rem;
    min-height: 36px;
    padding: .36rem .62rem;
    font-size: .72rem;
  }

  .contrast-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .figure-frame {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .figure-frame svg {
    min-width: 760px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.65rem !important;
  }

  .section h2 {
    font-size: 2rem !important;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Product-site polish layer */
:root {
  --stage-ink: #182230;
  --stage-muted: #667085;
  --stage-surface: #ffffff;
  --stage-wash: #f2f6f1;
  --stage-mint: #dff5e9;
  --stage-amber: #ffe7bd;
  --stage-sky: #dcecff;
  --stage-coral: #ffd8cc;
  --stage-ring: rgba(24, 34, 48, .10);
  --stage-shadow: 0 28px 70px rgba(24, 34, 48, .13);
  --stage-shadow-soft: 0 16px 40px rgba(24, 34, 48, .09);
}

html {
  min-width: 0;
}

body {
  min-width: 0;
  background:
    radial-gradient(circle at 7% 9%, rgba(255, 231, 189, .55), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(223, 245, 233, .74), transparent 30rem),
    linear-gradient(180deg, #fff 0, #f8faf7 34rem, #f4f7fb 100%) !important;
  text-rendering: geometricPrecision;
}

main,
section,
.section,
.grid,
.panel,
.feature-card,
.card-body,
.mini-map,
.resource-grid,
.source-list,
.tri-compare {
  min-width: 0 !important;
}

body * {
  max-width: 100%;
}

.site-top {
  z-index: 60;
  border-bottom-color: rgba(24, 34, 48, .07) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .72) inset;
}

.brand-mark {
  background: linear-gradient(135deg, #1f2937 0%, #0b8f67 100%) !important;
}

.nav-links a {
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hero,
.page-hero {
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(580px, 78vh, 820px) !important;
  background:
    radial-gradient(circle at 83% 31%, rgba(220, 236, 255, .58), transparent 28rem),
    radial-gradient(circle at 88% 67%, rgba(223, 245, 233, .72), transparent 30rem),
    radial-gradient(circle at 8% 73%, rgba(255, 231, 189, .52), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8faf7 100%) !important;
  background-size: auto;
  background-position: center;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: clamp(6.2rem, 11vh, 8rem);
  right: max(-1.25rem, calc((100vw - 1260px) / 2));
  z-index: 0;
  width: min(35vw, 520px);
  aspect-ratio: 1.18;
  border: 1px solid rgba(24, 34, 48, .12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, .08)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--stage-shadow);
  filter: saturate(1.04) contrast(1.04);
  transform: perspective(1200px) rotateY(-11deg) rotateX(4deg) translate3d(var(--stage-x, 0), var(--stage-y, 0), 0);
  transition: transform .35s ease;
}

.hero::after,
.page-hero::after {
  height: 38%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(248, 250, 247, .68) 56%, #f8faf7 100%),
    radial-gradient(circle at 70% 0%, rgba(255, 216, 204, .35), transparent 32rem);
}

.hero-inner,
.page-hero .section {
  display: grid;
  align-content: center;
  min-height: inherit;
  padding-top: clamp(4rem, 9vw, 7rem) !important;
  padding-bottom: clamp(4rem, 9vw, 7rem) !important;
}

.hero-inner > *,
.page-hero .section > * {
  max-width: min(560px, 48vw);
}

.hero.has-live-stage::before,
.page-hero.has-live-stage::before {
  opacity: .08;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translate3d(var(--stage-x, 0), var(--stage-y, 0), 0);
}

.hero.has-live-stage .hero-inner,
.page-hero.has-live-stage .section {
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.8rem);
}

.hero.has-live-stage .hero-inner > :not(.product-stage-live),
.page-hero.has-live-stage .section > :not(.product-stage-live) {
  grid-column: 1;
  max-width: 560px;
}

.product-stage-live {
  grid-column: 2;
  grid-row: 1 / span 9;
  width: 100%;
  max-width: none !important;
  align-self: center;
  border: 1px solid rgba(24, 34, 48, .11);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    radial-gradient(circle at 18% 12%, rgba(223, 245, 233, .9), transparent 18rem),
    radial-gradient(circle at 92% 84%, rgba(255, 231, 189, .7), transparent 18rem);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  transform: translate3d(var(--stage-x, 0), var(--stage-y, 0), 0);
  transition: transform .35s ease;
}

.stage-browser {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 52px;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(24, 34, 48, .08);
  background: rgba(255, 255, 255, .62);
  color: #182230;
}

.stage-browser span {
  width: .68rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #ffb4a2;
}

.stage-browser span:nth-child(2) { background: #ffe08a; }
.stage-browser span:nth-child(3) { background: #8ce0b8; }

.stage-browser strong {
  margin-left: .3rem;
  font-size: .86rem;
  font-weight: 760;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(8.5rem, .34fr) minmax(0, 1fr);
  min-height: clamp(300px, 34vw, 430px);
}

.stage-tabs {
  display: grid;
  align-content: start;
  gap: .72rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-right: 1px solid rgba(24, 34, 48, .08);
  background: rgba(248, 250, 247, .7);
}

.stage-tabs span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .72rem .8rem;
  border: 1px solid rgba(24, 34, 48, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .86);
  color: #344054;
  font-weight: 720;
  box-shadow: 0 12px 26px rgba(24, 34, 48, .07);
  animation: stageTab 7.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * .55s);
}

.stage-workspace {
  display: grid;
  align-content: center;
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.stage-status {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.stage-status span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .72rem;
  border: 1px solid rgba(11, 143, 103, .18);
  border-radius: 999px;
  background: rgba(223, 245, 233, .86);
  color: #155e4b;
  font-size: .78rem;
  font-weight: 800;
  animation: statusPulse 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .75s);
}

.stage-diff {
  display: grid;
  gap: .66rem;
  padding: 1rem;
  border: 1px solid rgba(24, 34, 48, .09);
  border-radius: 16px;
  background: #182230;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.stage-diff span {
  height: clamp(.75rem, 1vw, .9rem);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  transform-origin: left center;
  animation: diffLine 6.8s ease-in-out infinite;
}

.stage-diff span:nth-child(1) {
  width: 78%;
  background: linear-gradient(90deg, rgba(140, 224, 184, .95), rgba(140, 224, 184, .18));
}

.stage-diff span:nth-child(2) {
  width: 58%;
  background: linear-gradient(90deg, rgba(255, 180, 162, .95), rgba(255, 180, 162, .18));
  animation-delay: .28s;
}

.stage-diff span:nth-child(3) {
  width: 86%;
  background: linear-gradient(90deg, rgba(220, 236, 255, .95), rgba(220, 236, 255, .18));
  animation-delay: .56s;
}

.stage-diff span:nth-child(4) {
  width: 42%;
  animation-delay: .84s;
}

.stage-video {
  display: block;
  width: 100%;
  max-height: 210px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

.stage-prompt {
  display: flex;
  align-items: center;
  gap: .18rem;
  min-height: 52px;
  padding: .88rem 1rem;
  border: 1px solid rgba(24, 34, 48, .10);
  border-radius: 16px;
  background: #fff;
  color: #344054;
  font-weight: 680;
  line-height: 1.45;
}

.stage-cursor {
  width: .52rem;
  height: 1.1em;
  border-radius: 999px;
  background: #0b8f67;
  animation: cursorBlink 1s steps(2, start) infinite;
}

@keyframes stageTab {
  0%, 100% { transform: translateX(0); border-color: rgba(24, 34, 48, .08); }
  35% { transform: translateX(.32rem); border-color: rgba(11, 143, 103, .24); }
}

@keyframes statusPulse {
  0%, 100% { transform: translateY(0); box-shadow: none; }
  42% { transform: translateY(-.18rem); box-shadow: 0 12px 24px rgba(11, 143, 103, .14); }
}

@keyframes diffLine {
  0%, 100% { transform: scaleX(.82); opacity: .72; }
  48% { transform: scaleX(1); opacity: 1; }
}

@keyframes cursorBlink {
  50% { opacity: .14; }
}

.eyebrow,
.section-kicker {
  color: #155e4b !important;
  background: rgba(223, 245, 233, .82) !important;
  border-color: rgba(11, 143, 103, .18) !important;
  letter-spacing: .06em !important;
}

h1 {
  max-width: 9ch !important;
  margin-top: .9rem !important;
  margin-bottom: 1rem !important;
  color: #111827 !important;
  font-size: clamp(3.4rem, 6vw, 5.35rem) !important;
  line-height: .96 !important;
}

.hero p,
.page-hero .lead {
  max-width: 56ch !important;
  color: #344054 !important;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem) !important;
  line-height: 1.72 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.8rem !important;
}

.button {
  min-width: min(100%, 9.5rem);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

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

.button.orange {
  background: #0b8f67 !important;
  box-shadow: 0 12px 28px rgba(11, 143, 103, .18) !important;
}

.button.dark {
  background: #182230 !important;
}

.section {
  padding-top: clamp(4rem, 7vw, 6.7rem) !important;
  padding-bottom: clamp(4rem, 7vw, 6.7rem) !important;
}

.section > .lead {
  max-width: 58rem;
  margin-top: .85rem;
}

.section h2 {
  max-width: 18ch !important;
  margin-top: 1rem !important;
  margin-bottom: .8rem !important;
  color: #111827 !important;
  font-size: clamp(2.15rem, 4.4vw, 4rem) !important;
  line-height: 1.04 !important;
}

.section h2.wide {
  max-width: 24ch !important;
}

.lead,
.panel p,
.panel li,
.mini-map span,
.resource-card p,
.source-list span {
  color: var(--stage-muted) !important;
  font-size: clamp(.98rem, 1.1vw, 1.05rem);
  line-height: 1.62 !important;
}

.grid,
.media-grid,
.mosaic-grid,
.tri-compare,
.mini-map {
  gap: clamp(1rem, 2vw, 1.45rem) !important;
}

.panel,
.resource-card,
.mini-map a,
.feature-list li,
.decision-lane > div,
.toc-grid a {
  border-color: rgba(24, 34, 48, .09) !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: var(--stage-shadow-soft) !important;
}

.panel {
  backdrop-filter: blur(10px);
}

.feature-card {
  display: grid !important;
  overflow: hidden;
}

.feature-card .card-body {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: clamp(1.05rem, 2vw, 1.65rem) !important;
}

.feature-card .card-body h3 {
  margin: 0 !important;
  max-width: 18ch;
}

.feature-card .card-body p {
  margin: 0 !important;
  max-width: 58ch;
}

.feature-card .card-media,
.figure,
.figure-frame {
  border-color: rgba(24, 34, 48, .09) !important;
  background:
    linear-gradient(135deg, rgba(255, 231, 189, .28), rgba(223, 245, 233, .22) 45%, rgba(220, 236, 255, .26)) !important;
}

.feature-card .card-media {
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.feature-card .card-media img,
.feature-card .card-media video,
.figure img,
.figure-frame img {
  filter: saturate(1.02) contrast(1.03);
}

.feature-card .card-media img,
.feature-card .card-media video {
  min-height: 260px;
  max-height: 460px !important;
  padding: clamp(.65rem, 1.3vw, 1rem) !important;
}

.feature-card .card-media img[src*="2aef99002b92bcc30f664bc5eb23a3caf3267eab"],
.feature-card .card-media img[src*="4e597861e6e9c3f52e2171ce87c1459ca18cf4ea"],
.feature-card .card-media img[src*="9eb55323b68a48187edccae2a04f0e9217cac0c0"],
.feature-card .card-media img[src*="b93716732858ed3c3c5c341a637a6b83900193a9"] {
  object-fit: contain !important;
  padding: clamp(.75rem, 1.5vw, 1.15rem) !important;
}

.card-media[data-focus]::before,
.figure-frame[data-focus]::before,
.figure[data-focus]::before {
  max-width: min(78%, 34rem);
  border-color: rgba(24, 34, 48, .10) !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #182230 !important;
}

.card-media:has(img.zoomable)::after,
.figure:has(img.zoomable)::after {
  border-color: rgba(11, 143, 103, .20) !important;
  color: #0b6f56 !important;
  box-shadow: 0 10px 24px rgba(11, 143, 103, .12);
}

.card-caption,
.caption,
.figure-cap {
  font-size: .86rem !important;
  line-height: 1.42 !important;
}

.tri-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 1.5rem;
}

.tri-card {
  overflow: hidden;
}

.tri-card .card-top {
  display: grid;
  gap: .8rem;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
}

.tri-card.good {
  border-color: rgba(11, 143, 103, .22) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(236, 253, 245, .72) 100%) !important;
}

.tri-card.warn {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 247, 237, .70) 100%) !important;
}

.signal-list {
  display: grid;
  gap: .46rem !important;
  padding: 0 !important;
}

.signal-list li {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.contrast-table {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.contrast-table th {
  background: #182230 !important;
}

section[data-layout="mosaic-grid"] .media-grid,
section[data-layout="three-card-grid"] .media-grid,
section[data-layout="two-up-visual"] .grid.two,
section[data-layout="video-grid"] .media-grid {
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

section[data-layout="resource-cards"],
section[data-layout="link-map"] {
  border-top: 1px solid rgba(24, 34, 48, .07);
}

.resource-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.resource-card:hover,
.toc-grid a:hover,
.mini-map a:hover {
  border-color: rgba(11, 143, 103, .24) !important;
  box-shadow: 0 22px 48px rgba(24, 34, 48, .12) !important;
  transform: translateY(-2px);
}

.resource-tag,
.tag {
  color: #155e4b !important;
  background: rgba(223, 245, 233, .78) !important;
  border-color: rgba(11, 143, 103, .18) !important;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: .9rem;
  margin-top: 1.5rem;
}

.source-list a {
  display: grid;
  gap: .42rem;
  min-height: 126px;
  padding: 1rem;
  border: 1px solid rgba(24, 34, 48, .09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  color: var(--stage-ink);
  text-decoration: none;
  box-shadow: var(--stage-shadow-soft);
}

.source-list strong {
  color: #111827;
}

.lightbox {
  z-index: 100;
}

.lightbox img {
  max-width: min(94vw, 1600px) !important;
  max-height: 88vh !important;
  object-fit: contain !important;
  background: #fff !important;
}

body.js-enhance .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

body.js-enhance .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 980px) {
  section[data-layout="mosaic-grid"] .media-grid,
  section[data-layout="three-card-grid"] .media-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card,
  section[data-layout="three-card-grid"] .media-grid > .feature-card {
    grid-column: span 2 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(5n + 1),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:first-child {
    grid-column: span 3 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(5n + 3) {
    grid-column: span 4 !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(5n + 3) .card-media {
    border-right: 1px solid rgba(24, 34, 48, .09) !important;
    border-bottom: 0 !important;
  }

  section[data-layout="video-grid"] .media-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) !important;
  }

  section[data-layout="video-grid"] .media-grid > .feature-card:first-child {
    grid-column: span 1 !important;
    grid-template-columns: 1fr !important;
  }

  section[data-layout="video-grid"] .media-grid > .feature-card:first-child .card-media {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(24, 34, 48, .09) !important;
  }

  section[data-layout="two-up-visual"] .grid.two {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .hero,
  .page-hero {
    min-height: auto !important;
    background:
      radial-gradient(circle at 82% 24%, rgba(220, 236, 255, .52), transparent 18rem),
      radial-gradient(circle at 4% 76%, rgba(255, 231, 189, .48), transparent 17rem),
      linear-gradient(180deg, #ffffff 0%, #f8faf7 100%) !important;
    background-size: cover;
    background-position: center;
  }

  .hero::before,
  .page-hero::before {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: min(100%, 620px);
    margin: 0 auto clamp(2.2rem, 8vw, 4rem);
    transform: none;
  }

  .hero-inner,
  .page-hero .section {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding-top: clamp(3rem, 9vw, 5rem) !important;
    padding-bottom: 1rem !important;
  }

  .hero-inner > *,
  .page-hero .section > * {
    max-width: 100%;
  }

  .product-stage-live {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.4rem;
  }

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

  .stage-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(24, 34, 48, .08);
  }

  .stage-tabs span {
    justify-content: center;
    text-align: center;
    font-size: .86rem;
  }
}

@media (max-width: 760px) {
  .site-top {
    position: relative !important;
  }

  .brand {
    white-space: normal;
  }

  h1 {
    max-width: 9ch !important;
    font-size: clamp(2.45rem, 11vw, 3rem) !important;
    line-height: .98 !important;
  }

  .hero p,
  .page-hero .lead {
    font-size: .98rem !important;
    line-height: 1.58 !important;
  }

  .section {
    padding-top: clamp(3.2rem, 12vw, 4.6rem) !important;
    padding-bottom: clamp(3.2rem, 12vw, 4.6rem) !important;
  }

  .section h2 {
    max-width: 13ch !important;
    font-size: clamp(2rem, 11vw, 2.65rem) !important;
  }

  .feature-card .card-media {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .feature-card .card-media img,
  .feature-card .card-media video {
    min-height: 220px;
    max-height: 340px !important;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 12rem;
  }

  .hero.has-live-stage .hero-actions,
  .page-hero.has-live-stage .hero-actions {
    order: 7;
  }

  .hero.has-live-stage .product-stage-live,
  .page-hero.has-live-stage .product-stage-live {
    order: 6;
  }

  .contrast-table {
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 480px) {
  .section,
  .hero-inner,
  .page-hero .section,
  .nav {
    width: min(100% - .85rem, 1160px) !important;
  }

  .hero::before,
  .page-hero::before {
    border-radius: 16px;
  }

  .card-media[data-focus]::before,
  .figure-frame[data-focus]::before,
  .figure[data-focus]::before {
    left: .6rem;
    right: .6rem;
    top: .6rem;
    max-width: none;
    white-space: normal;
  }

  .feature-card .card-body {
    padding: 1rem !important;
  }

  .product-stage-live {
    border-radius: 18px;
  }

  .stage-browser {
    min-height: 46px;
  }

  .stage-tabs,
  .stage-workspace {
    padding: .9rem;
  }

  .stage-tabs {
    gap: .5rem;
  }

  .stage-tabs span {
    min-height: 38px;
    padding: .56rem .48rem;
    font-size: .76rem;
  }

  .stage-prompt {
    font-size: .9rem;
  }
}

@media (min-width: 901px) {
  .hero,
  .page-hero {
    min-height: clamp(560px, 72svh, 780px) !important;
  }

  .hero-inner,
  .page-hero .section {
    min-height: auto !important;
    padding-top: clamp(3.8rem, 6vw, 5.4rem) !important;
    padding-bottom: clamp(3.6rem, 6vw, 5rem) !important;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .page-hero .section {
    min-height: auto !important;
    padding-bottom: clamp(2.8rem, 9vw, 4rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .hero::before,
  .page-hero::before,
  .product-stage-live,
  .stage-tabs span,
  .stage-status span,
  .stage-diff span,
  .stage-cursor,
  .button:hover,
  .resource-card:hover,
  .toc-grid a:hover,
  .mini-map a:hover,
  .feature-card .card-media:hover img:not([src*=".gif"]) {
    transform: none !important;
  }

  body.js-enhance .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Skill-led redesign pass: mature developer product site */
:root {
  --product-canvas: #f8fafc;
  --product-surface: #ffffff;
  --product-panel: #f1f5f9;
  --product-ink: #111827;
  --product-body: #334155;
  --product-muted: #64748b;
  --product-line: rgba(15, 23, 42, .10);
  --product-line-strong: rgba(15, 23, 42, .16);
  --product-accent: #2563eb;
  --product-accent-soft: rgba(37, 99, 235, .10);
  --product-accent-quiet: rgba(37, 99, 235, .06);
  --product-shadow: 0 22px 70px rgba(15, 23, 42, .10);
  --product-shadow-soft: 0 12px 34px rgba(15, 23, 42, .07);
  --font-display: "Rubik", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

html {
  background: var(--product-canvas) !important;
}

body {
  color: var(--product-body) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, .10), transparent 34rem),
    linear-gradient(180deg, #ffffff 0, var(--product-canvas) 28rem, #eef2f7 100%) !important;
  font-family: var(--font-body) !important;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.brand,
.button,
.section-kicker,
.eyebrow {
  font-family: var(--font-display) !important;
}

h1,
h2,
h3,
h4 {
  color: var(--product-ink) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

p,
li,
.lead,
.card-body,
.panel,
.resource-card,
.mini-map span,
.source-list span {
  text-wrap: pretty;
}

.site-top {
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
  background: rgba(255, 255, 255, .84) !important;
  box-shadow: 0 16px 46px rgba(15, 23, 42, .045) !important;
}

.nav {
  width: min(1220px, calc(100% - 2rem)) !important;
  min-height: 72px !important;
}

.brand {
  gap: .72rem !important;
  color: var(--product-ink) !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
}

.brand-mark {
  width: 2.05rem !important;
  height: 2.05rem !important;
  border-radius: .72rem !important;
  background: #ff5a2b !important;
  box-shadow: 0 10px 26px rgba(255, 90, 43, .20) !important;
}

.nav-links {
  gap: .28rem !important;
}

.nav-links a {
  min-height: 2.35rem !important;
  padding: .55rem .82rem !important;
  color: #475569 !important;
  border-radius: 999px !important;
  font-size: .94rem !important;
  font-weight: 650 !important;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--product-ink) !important;
  background: #fff !important;
  border-color: rgba(15, 23, 42, .12) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07) !important;
}

.hero,
.page-hero {
  min-height: clamp(620px, 82svh, 880px) !important;
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
  background:
    radial-gradient(circle at 72% 18%, rgba(37, 99, 235, .12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.hero::before,
.page-hero::before {
  opacity: 0 !important;
}

.hero::after,
.page-hero::after {
  height: 20%;
  background: linear-gradient(180deg, transparent, var(--product-canvas)) !important;
}

.hero-inner,
.page-hero .section {
  width: min(1220px, calc(100% - 2rem)) !important;
  padding-top: clamp(5rem, 9vw, 7.4rem) !important;
  padding-bottom: clamp(4rem, 8vw, 6.2rem) !important;
}

.hero.has-live-stage .hero-inner,
.page-hero.has-live-stage .section {
  grid-template-columns: minmax(0, .74fr) minmax(540px, 1.26fr) !important;
  gap: clamp(2.6rem, 6vw, 6.5rem) !important;
}

.hero.has-live-stage .hero-inner > :not(.product-stage-live),
.page-hero.has-live-stage .section > :not(.product-stage-live) {
  max-width: 34rem !important;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: .45rem;
  padding: .34rem .72rem !important;
  color: var(--product-accent) !important;
  background: var(--product-accent-soft) !important;
  border: 1px solid rgba(37, 99, 235, .16) !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
}

h1 {
  max-width: 13.6ch !important;
  margin: 1rem 0 1rem !important;
  font-size: clamp(2.9rem, 5vw, 5rem) !important;
  line-height: 1.04 !important;
  word-break: keep-all;
}

.hero p,
.page-hero .lead {
  max-width: 52ch !important;
  color: var(--product-body) !important;
  font-size: clamp(1.02rem, 1.16vw, 1.16rem) !important;
  font-weight: 500 !important;
  line-height: 1.72 !important;
}

.tag-row {
  gap: .52rem !important;
  margin-top: 1.35rem !important;
}

.tag {
  border: 1px solid rgba(15, 23, 42, .10) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .74) !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
}

.tag.green,
.tag.blue,
.tag.orange {
  color: #334155 !important;
  background: rgba(255, 255, 255, .74) !important;
}

.hero-actions {
  margin-top: 1.7rem !important;
}

.button {
  min-height: 2.75rem !important;
  border-radius: 999px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
}

.button.orange {
  background: var(--product-ink) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16) !important;
}

.button.dark {
  color: var(--product-ink) !important;
  background: #fff !important;
  border-color: rgba(15, 23, 42, .12) !important;
  box-shadow: none !important;
}

.product-stage-live {
  border: 1px solid rgba(15, 23, 42, .12) !important;
  border-radius: 1.6rem !important;
  background: #ffffff !important;
  box-shadow: var(--product-shadow) !important;
  transform: translate3d(var(--stage-x, 0), var(--stage-y, 0), 0) !important;
}

.stage-browser {
  min-height: 3.25rem !important;
  padding: .82rem 1.05rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, .09) !important;
  background: #f8fafc !important;
  color: var(--product-ink) !important;
}

.stage-browser strong {
  font-family: var(--font-display) !important;
  font-size: .84rem !important;
  font-weight: 700 !important;
}

.stage-grid {
  grid-template-columns: minmax(9.2rem, .32fr) minmax(0, 1fr) !important;
  min-height: clamp(330px, 33vw, 460px) !important;
}

.stage-tabs {
  gap: .68rem !important;
  background: #f8fafc !important;
  border-right: 1px solid rgba(15, 23, 42, .09) !important;
}

.stage-tabs span {
  min-height: 2.8rem !important;
  border-color: rgba(15, 23, 42, .10) !important;
  border-radius: .9rem !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
}

.stage-workspace {
  background:
    radial-gradient(circle at 84% 16%, rgba(37, 99, 235, .10), transparent 14rem),
    #ffffff !important;
}

.stage-status span {
  border-color: rgba(37, 99, 235, .16) !important;
  background: var(--product-accent-soft) !important;
  color: var(--product-accent) !important;
  font-family: var(--font-mono) !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}

.stage-diff {
  border: 1px solid rgba(15, 23, 42, .14) !important;
  border-radius: 1rem !important;
  background: #0f172a !important;
}

.stage-video {
  border-color: rgba(15, 23, 42, .14) !important;
  background: #0f172a !important;
}

.stage-diff span:nth-child(1),
.stage-diff span:nth-child(2),
.stage-diff span:nth-child(3) {
  background: linear-gradient(90deg, rgba(96, 165, 250, .95), rgba(96, 165, 250, .14)) !important;
}

.stage-prompt {
  border-color: rgba(15, 23, 42, .12) !important;
  border-radius: 1rem !important;
  color: #263244 !important;
  font-size: .96rem !important;
  font-weight: 700 !important;
}

.stage-cursor {
  background: var(--product-accent) !important;
}

.section {
  width: min(1180px, calc(100% - 2rem)) !important;
  padding-top: clamp(4.6rem, 8vw, 7.2rem) !important;
  padding-bottom: clamp(4.6rem, 8vw, 7.2rem) !important;
}

.section h2 {
  max-width: 18ch !important;
  margin-top: 1rem !important;
  color: var(--product-ink) !important;
  font-size: clamp(2rem, 3.7vw, 3.6rem) !important;
  line-height: 1.08 !important;
}

.section h2.wide {
  max-width: 24ch !important;
}

.section > .lead,
.lead {
  max-width: 64ch !important;
  color: var(--product-body) !important;
  font-size: clamp(1rem, 1.08vw, 1.08rem) !important;
  line-height: 1.68 !important;
}

.panel,
.resource-card,
.mini-map a,
.toc-grid a,
.feature-list li,
.decision-lane > div {
  border: 1px solid var(--product-line) !important;
  border-radius: 1.15rem !important;
  background: rgba(255, 255, 255, .84) !important;
  box-shadow: none !important;
}

.panel:hover,
.resource-card:hover,
.mini-map a:hover,
.toc-grid a:hover {
  border-color: var(--product-line-strong) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07) !important;
}

.feature-card {
  border: 1px solid var(--product-line) !important;
  border-radius: 1.25rem !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.feature-card:hover {
  border-color: var(--product-line-strong) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08) !important;
}

.feature-card .card-media {
  background: #eef2ff !important;
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
  min-height: clamp(250px, 27vw, 380px) !important;
}

.feature-card .card-media img,
.feature-card .card-media video,
.figure img,
.figure video {
  object-fit: contain !important;
  padding: clamp(.85rem, 1.8vw, 1.4rem) !important;
  background: linear-gradient(135deg, #eef2ff, #f8fafc) !important;
}

.feature-card .card-body {
  padding: clamp(1.25rem, 2.4vw, 2rem) !important;
}

.feature-card h3,
.panel h3,
.resource-card h3 {
  color: var(--product-ink) !important;
  font-size: clamp(1.28rem, 1.65vw, 1.62rem) !important;
  line-height: 1.18 !important;
}

.feature-card p,
.panel p,
.resource-card p,
.feature-card li,
.panel li {
  color: var(--product-body) !important;
  font-size: 1rem !important;
  line-height: 1.66 !important;
}

section[data-layout="three-column-compare"] .tri-compare,
section[data-layout="three-card-grid"] .media-grid,
section[data-layout="visual-atlas-grid"] .grid.two,
section[data-layout="mosaic-grid"] .media-grid {
  align-items: stretch;
}

@media (min-width: 980px) {
  section[data-layout="three-column-compare"] .tri-compare {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid,
  section[data-layout="three-card-grid"] .media-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card,
  section[data-layout="three-card-grid"] .media-grid > .feature-card {
    grid-column: span 4 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 1),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:first-child {
    grid-column: span 7 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 2),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(2) {
    grid-column: span 5 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 3) {
    grid-column: span 6 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 4),
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 5) {
    grid-column: span 3 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 6) {
    grid-column: span 6 !important;
  }

  section[data-layout="video-grid"] .media-grid,
  section[data-layout="video-and-proof"] .grid.two,
  section[data-layout="video-plus-agent-card"] .grid.two {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  }

  section[data-layout="full-width-figure"] .figure,
  section[data-layout="full-figure-plus-text"] .figure,
  section[data-layout="byok-two-column"] .figure {
    border-radius: 1.4rem !important;
  }
}

.figure,
.video-shell,
.embed,
.demo-video {
  border: 1px solid var(--product-line) !important;
  border-radius: 1.35rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.figure figcaption,
.media-caption,
.video-shell figcaption {
  border-top: 1px solid rgba(15, 23, 42, .08) !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: .9rem !important;
  font-weight: 650 !important;
}

.figure-frame[data-focus]::before,
.figure[data-focus]::before,
.card-media[data-focus]::before {
  border: 1px solid rgba(37, 99, 235, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: var(--product-ink) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
}

.lightbox.site-enhance-lightbox {
  background: rgba(248, 250, 252, .90) !important;
  backdrop-filter: blur(18px);
}

.lightbox.site-enhance-lightbox img {
  border-radius: 1.25rem !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .22) !important;
  background: #fff !important;
}

@media (max-width: 900px) {
  .hero,
  .page-hero {
    min-height: auto !important;
  }

  .hero.has-live-stage .hero-inner,
  .page-hero.has-live-stage .section {
    grid-template-columns: 1fr !important;
    padding-top: clamp(3.6rem, 11vw, 5rem) !important;
    gap: 1.7rem !important;
  }

  .hero.has-live-stage .hero-inner > :not(.product-stage-live),
  .page-hero.has-live-stage .section > :not(.product-stage-live) {
    max-width: 44rem !important;
  }

  .product-stage-live {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin-top: .8rem !important;
  }
}

@media (max-width: 760px) {
  .site-top {
    position: sticky !important;
  }

  .nav {
    align-items: flex-start !important;
    gap: .7rem !important;
    padding: .75rem 0 !important;
  }

  .nav-links {
    width: 100%;
    overflow: visible;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding-bottom: .1rem;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 2.05rem !important;
    padding: .45rem .64rem !important;
    font-size: .84rem !important;
  }

  h1 {
    max-width: 10.8ch !important;
    font-size: clamp(2.45rem, 10vw, 3.2rem) !important;
    line-height: 1.05 !important;
  }

  .section h2 {
    max-width: 14ch !important;
    font-size: clamp(1.9rem, 8.4vw, 2.6rem) !important;
    line-height: 1.1 !important;
  }

  .feature-card .card-media {
    min-height: 240px !important;
  }

  .stage-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .stage-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, .09) !important;
  }

  .stage-video {
    max-height: 190px;
  }
}

@media (max-width: 480px) {
  .section,
  .hero-inner,
  .page-hero .section,
  .nav {
    width: min(100% - 1rem, 1180px) !important;
  }

  .brand span:last-child {
    font-size: .92rem !important;
  }

  .tag-row {
    align-items: flex-start;
  }

  .tag {
    font-size: .8rem !important;
  }

  .product-stage-live,
  .feature-card,
  .panel,
  .figure,
  .video-shell,
  .resource-card {
    border-radius: 1rem !important;
  }
}

/* Final hero density correction: first screen must show the product and hint at the next section. */
@media (min-width: 901px) {
  .hero,
  .page-hero {
    min-height: auto !important;
  }

  .hero-inner,
  .page-hero .section {
    min-height: auto !important;
    padding-top: clamp(3.2rem, 5vw, 4.6rem) !important;
    padding-bottom: clamp(3.2rem, 5vw, 4.4rem) !important;
  }

  .hero.has-live-stage .hero-inner,
  .page-hero.has-live-stage .section {
    min-height: auto !important;
    grid-template-rows: repeat(5, auto) !important;
    column-gap: clamp(2.6rem, 6vw, 6.5rem) !important;
    row-gap: .85rem !important;
  }

  .hero.has-live-stage .product-stage-live,
  .page-hero.has-live-stage .product-stage-live {
    grid-row: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .page-hero .section {
    min-height: auto !important;
    padding-bottom: clamp(2.6rem, 8vw, 3.8rem) !important;
  }
}

/* Taste reset: high-contrast product cinema, not generic SaaS. */
:root {
  --taste-ink: #111111;
  --taste-text: #1f2937;
  --taste-muted: #667085;
  --taste-paper: #f5f6f8;
  --taste-surface: #ffffff;
  --taste-night: #101114;
  --taste-night-2: #17191f;
  --taste-line: rgba(17, 17, 17, .12);
  --taste-orange: #ff5a2b;
  --taste-cyan: #46d6c9;
  --taste-lime: #d8ff4f;
  --taste-shadow: 0 24px 80px rgba(17, 17, 17, .14);
  --taste-radius: 1.4rem;
  --font-display: "Outfit", "Satoshi", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-body: "Nunito Sans", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

body {
  color: var(--taste-text) !important;
  background:
    linear-gradient(180deg, #0f1013 0 36rem, var(--taste-paper) 36rem 100%) !important;
  font-family: var(--font-body) !important;
}

.site-top {
  background: rgba(16, 17, 20, .82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: none !important;
}

.brand,
.nav-links a {
  color: rgba(255, 255, 255, .78) !important;
}

.brand span:last-child {
  color: #fff !important;
}

.brand-mark {
  background: var(--taste-orange) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(255, 90, 43, .34) !important;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .18) !important;
  box-shadow: none !important;
}

.hero,
.page-hero {
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  background:
    radial-gradient(circle at 82% 24%, rgba(70, 214, 201, .16), transparent 26rem),
    radial-gradient(circle at 20% 72%, rgba(255, 90, 43, .20), transparent 22rem),
    linear-gradient(135deg, #0e0f12 0%, #17191f 56%, #111111 100%) !important;
}

.hero::after,
.page-hero::after {
  background: linear-gradient(180deg, transparent, rgba(245, 246, 248, .95)) !important;
  height: 12% !important;
}

.eyebrow,
.section-kicker {
  border-color: rgba(255, 90, 43, .32) !important;
  background: rgba(255, 90, 43, .12) !important;
  color: #ffb097 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.section-kicker {
  border-color: rgba(255, 90, 43, .22) !important;
  background: rgba(255, 90, 43, .10) !important;
  color: #cc4520 !important;
}

.hero h1,
.page-hero h1 {
  color: #fff !important;
  font-size: clamp(3.2rem, 5.6vw, 5.8rem) !important;
  font-weight: 760 !important;
  max-width: 11.8ch !important;
}

.hero p,
.page-hero .lead {
  color: rgba(255, 255, 255, .76) !important;
  font-size: clamp(1rem, 1.1vw, 1.12rem) !important;
  max-width: 48ch !important;
}

.hero .tag,
.page-hero .tag {
  color: rgba(255, 255, 255, .82) !important;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

.button.orange {
  color: #111 !important;
  background: var(--taste-lime) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 40px rgba(216, 255, 79, .20) !important;
}

.button.dark {
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

.product-stage-live {
  border-color: rgba(255, 255, 255, .14) !important;
  background: #0c0d10 !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42) !important;
}

.stage-browser {
  background: #17191f !important;
  border-bottom-color: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

.stage-grid {
  grid-template-columns: minmax(7.8rem, .25fr) minmax(0, 1fr) !important;
  min-height: clamp(360px, 35vw, 520px) !important;
}

.stage-tabs {
  background: #111318 !important;
  border-right-color: rgba(255, 255, 255, .10) !important;
}

.stage-tabs span {
  color: rgba(255, 255, 255, .84) !important;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .11) !important;
}

.stage-workspace {
  background:
    radial-gradient(circle at 80% 20%, rgba(70, 214, 201, .18), transparent 18rem),
    #0f1117 !important;
}

.stage-status span {
  color: #10201d !important;
  background: var(--taste-cyan) !important;
  border-color: transparent !important;
}

.stage-video {
  max-height: 310px !important;
  border-color: rgba(255, 255, 255, .14) !important;
  background: #000 !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28) !important;
}

.stage-prompt {
  color: rgba(255, 255, 255, .88) !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

.stage-cursor {
  background: var(--taste-lime) !important;
}

.section {
  width: min(1240px, calc(100% - 2rem)) !important;
  padding-top: clamp(4.5rem, 8vw, 7rem) !important;
  padding-bottom: clamp(4.5rem, 8vw, 7rem) !important;
}

.section h2 {
  color: var(--taste-ink) !important;
  font-size: clamp(2.15rem, 3.9vw, 4.25rem) !important;
  max-width: 12ch !important;
  font-weight: 760 !important;
}

.section h2.wide {
  max-width: 15ch !important;
}

.section > .lead,
.lead {
  color: var(--taste-muted) !important;
  max-width: 46ch !important;
}

@media (min-width: 1080px) {
  main > .section:not(.section-tight) {
    display: grid;
    grid-template-columns: minmax(230px, .34fr) minmax(0, .66fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  main > .section:not(.section-tight) > .section-kicker,
  main > .section:not(.section-tight) > h2,
  main > .section:not(.section-tight) > .lead {
    grid-column: 1;
  }

  main > .section:not(.section-tight) > :not(.section-kicker):not(h2):not(.lead) {
    grid-column: 2;
  }
}

.panel,
.resource-card,
.mini-map a,
.toc-grid a,
.feature-card,
.figure,
.video-shell,
.embed,
.demo-video {
  border: 1px solid var(--taste-line) !important;
  border-radius: var(--taste-radius) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: none !important;
}

.panel:hover,
.resource-card:hover,
.mini-map a:hover,
.toc-grid a:hover,
.feature-card:hover {
  border-color: rgba(17, 17, 17, .22) !important;
  box-shadow: var(--taste-shadow) !important;
}

.feature-card .card-media {
  min-height: clamp(310px, 30vw, 460px) !important;
  background: var(--taste-night) !important;
  border-bottom-color: rgba(17, 17, 17, .10) !important;
}

.feature-card .card-media img,
.feature-card .card-media video,
.figure img,
.figure video {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: var(--taste-night) !important;
}

.feature-card .card-body {
  padding: clamp(1.25rem, 2.5vw, 2.25rem) !important;
}

.feature-card h3,
.panel h3,
.resource-card h3 {
  color: var(--taste-ink) !important;
  font-size: clamp(1.28rem, 1.8vw, 1.8rem) !important;
}

.feature-card p,
.panel p,
.resource-card p,
.feature-card li,
.panel li {
  color: var(--taste-text) !important;
}

.tri-card.good {
  background:
    linear-gradient(180deg, rgba(216, 255, 79, .12), rgba(255, 255, 255, .90)) !important;
  border-color: rgba(117, 140, 21, .26) !important;
}

.tri-card.warn {
  background:
    linear-gradient(180deg, rgba(255, 90, 43, .08), rgba(255, 255, 255, .90)) !important;
}

.figure-frame[data-focus]::before,
.figure[data-focus]::before,
.card-media[data-focus]::before {
  color: #111 !important;
  background: var(--taste-lime) !important;
  border-color: rgba(17, 17, 17, .10) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18) !important;
}

@media (min-width: 980px) {
  section[data-layout="mosaic-grid"] .media-grid,
  section[data-layout="three-card-grid"] .media-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 1),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:first-child {
    grid-column: span 8 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 2),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(2) {
    grid-column: span 4 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 3),
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(6n + 4) {
    grid-column: span 6 !important;
  }
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, #0f1013 0 78rem, var(--taste-paper) 78rem 100%) !important;
  }

  .hero.has-live-stage .hero-inner,
  .page-hero.has-live-stage .section {
    gap: 1.15rem !important;
  }

  .stage-video {
    max-height: 220px !important;
  }

  .section {
    padding-top: clamp(3.6rem, 12vw, 5rem) !important;
    padding-bottom: clamp(3.6rem, 12vw, 5rem) !important;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 9vw, 2.85rem) !important;
  }

  .stage-tabs span {
    color: rgba(255, 255, 255, .88) !important;
  }

  .feature-card .card-media {
    min-height: 260px !important;
  }
}

/* Final design DNA: cold debug bench + product evidence manual. */
:root {
  --bench-bg: #f5f6f3;
  --bench-bg-2: #ecefea;
  --bench-surface: #ffffff;
  --bench-ink: #15171a;
  --bench-text: #384047;
  --bench-muted: #697179;
  --bench-line: rgba(21, 23, 26, .13);
  --bench-line-strong: rgba(21, 23, 26, .24);
  --bench-graphite: #14171c;
  --bench-graphite-2: #1b2027;
  --bench-orange: #ff4d1d;
  --bench-green: #00a36c;
  --bench-red: #d63b32;
  --bench-radius: .5rem;
  --bench-shadow: 0 18px 54px rgba(21, 23, 26, .10);
  --font-display: "IBM Plex Sans", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-body: "IBM Plex Sans", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

html {
  background: var(--bench-bg) !important;
}

body {
  color: var(--bench-text) !important;
  background:
    linear-gradient(rgba(21, 23, 26, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 26, .018) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf8 0, var(--bench-bg) 38rem, var(--bench-bg-2) 100%) !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
.brand,
.button,
.section-kicker,
.eyebrow {
  font-family: var(--font-display) !important;
}

h1,
h2,
h3,
h4 {
  color: var(--bench-ink) !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

.site-top {
  position: sticky !important;
  background: rgba(251, 251, 248, .88) !important;
  border-bottom: 1px solid var(--bench-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 2rem)) !important;
  min-height: 60px !important;
  gap: 1rem !important;
}

.brand,
.brand span:last-child,
.nav-links a {
  color: var(--bench-ink) !important;
}

.brand {
  font-size: .95rem !important;
  font-weight: 760 !important;
}

.brand-mark {
  width: 1.9rem !important;
  height: 1.9rem !important;
  border-radius: .35rem !important;
  background: var(--bench-orange) !important;
  box-shadow: none !important;
}

.nav-links {
  gap: 1.05rem !important;
}

.nav-links a {
  position: relative;
  min-height: 2.25rem !important;
  padding: .35rem .12rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #414850 !important;
  font-size: .92rem !important;
  font-weight: 650 !important;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .18rem;
  height: 2px;
  background: transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--bench-ink) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  background: var(--bench-orange);
}

.nav-toggle {
  display: none;
  min-height: 2.1rem;
  padding: .35rem .62rem;
  border: 1px solid var(--bench-line-strong);
  border-radius: .4rem;
  background: var(--bench-surface);
  color: var(--bench-ink);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
}

.hero,
.page-hero {
  color: var(--bench-ink) !important;
  border-bottom: 1px solid var(--bench-line) !important;
  background:
    linear-gradient(rgba(21, 23, 26, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 26, .024) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf8, var(--bench-bg)) !important;
  background-size: 32px 32px, 32px 32px, auto !important;
}

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

.hero-inner,
.page-hero .section {
  width: min(1180px, calc(100% - 2rem)) !important;
  padding-top: clamp(3rem, 5vw, 4.3rem) !important;
  padding-bottom: clamp(2.8rem, 5vw, 4rem) !important;
}

.hero.has-live-stage .hero-inner,
.page-hero.has-live-stage .section {
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr) !important;
  column-gap: clamp(2.4rem, 5vw, 4.8rem) !important;
  row-gap: 1rem !important;
  align-items: center !important;
}

.hero.has-live-stage .hero-inner > :not(.product-stage-live),
.page-hero.has-live-stage .section > :not(.product-stage-live) {
  max-width: 31rem !important;
}

.eyebrow,
.section-kicker {
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
  padding: 0 0 .28rem !important;
  border: 0 !important;
  border-bottom: 2px solid var(--bench-orange) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--bench-orange) !important;
  font-family: var(--font-mono) !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

.hero h1,
.page-hero h1 {
  max-width: 12ch !important;
  margin: 1rem 0 .85rem !important;
  color: var(--bench-ink) !important;
  font-size: clamp(3rem, 4.7vw, 4.5rem) !important;
  font-weight: 760 !important;
  line-height: 1.04 !important;
}

.hero p,
.page-hero .lead {
  max-width: 45ch !important;
  color: var(--bench-text) !important;
  font-size: clamp(1rem, 1vw, 1.08rem) !important;
  font-weight: 520 !important;
  line-height: 1.72 !important;
}

.tag-row {
  gap: .45rem !important;
  margin-top: 1rem !important;
}

.tag,
.hero .tag,
.page-hero .tag {
  min-height: 1.65rem !important;
  padding: .18rem .45rem !important;
  border: 1px solid var(--bench-line) !important;
  border-radius: .35rem !important;
  background: rgba(255, 255, 255, .68) !important;
  color: #3d454c !important;
  font-family: var(--font-mono) !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.button {
  min-height: 2.55rem !important;
  padding: .65rem .9rem !important;
  border: 1px solid var(--bench-line-strong) !important;
  border-radius: .45rem !important;
  box-shadow: none !important;
  font-size: .92rem !important;
  font-weight: 720 !important;
}

.button.orange {
  color: #fff !important;
  background: var(--bench-orange) !important;
  border-color: var(--bench-orange) !important;
  box-shadow: none !important;
}

.button.dark {
  color: var(--bench-ink) !important;
  background: var(--bench-surface) !important;
  border-color: var(--bench-line-strong) !important;
}

.product-stage-live {
  border: 1px solid rgba(21, 23, 26, .22) !important;
  border-radius: .7rem !important;
  background: var(--bench-graphite) !important;
  box-shadow: var(--bench-shadow) !important;
}

.stage-browser {
  min-height: 2.8rem !important;
  padding: .7rem .85rem !important;
  background: #111318 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  color: #f4f6f8 !important;
}

.stage-browser strong,
.stage-tabs span,
.stage-status span,
.stage-prompt {
  font-family: var(--font-mono) !important;
}

.stage-grid {
  grid-template-columns: 1fr !important;
  min-height: auto !important;
}

.stage-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: .5rem !important;
  padding: .75rem .85rem !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  background: #151922 !important;
}

.stage-tabs span {
  min-height: 1.9rem !important;
  padding: .34rem .52rem !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: .34rem !important;
  background: rgba(255, 255, 255, .06) !important;
  color: rgba(255, 255, 255, .82) !important;
  font-size: .72rem !important;
  box-shadow: none !important;
}

.stage-workspace {
  gap: .78rem !important;
  padding: clamp(.9rem, 2vw, 1.25rem) !important;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    var(--bench-graphite) !important;
  background-size: 24px 24px, 24px 24px, auto !important;
}

.stage-status {
  gap: .4rem !important;
}

.stage-status span {
  min-height: 1.55rem !important;
  padding: .2rem .48rem !important;
  border-radius: .28rem !important;
  border: 0 !important;
  color: #091914 !important;
  background: var(--bench-green) !important;
  font-size: .66rem !important;
}

.stage-status span:nth-child(2) {
  background: #f7cf4c !important;
}

.stage-status span:nth-child(3) {
  background: #e8fff5 !important;
}

.stage-video {
  width: 100% !important;
  max-height: 360px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: .45rem !important;
  background: #0c0f14 !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.stage-prompt {
  min-height: 2.6rem !important;
  padding: .65rem .75rem !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: .45rem !important;
  background: rgba(255, 255, 255, .06) !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: .82rem !important;
}

.stage-cursor {
  background: var(--bench-orange) !important;
}

.section {
  width: min(1160px, calc(100% - 2rem)) !important;
  padding-top: clamp(3.4rem, 6vw, 5.6rem) !important;
  padding-bottom: clamp(3.4rem, 6vw, 5.6rem) !important;
}

.section.section-tight {
  padding-top: clamp(2.4rem, 4vw, 3.6rem) !important;
  padding-bottom: clamp(2.4rem, 4vw, 3.6rem) !important;
}

.section h2 {
  max-width: 14ch !important;
  color: var(--bench-ink) !important;
  font-size: clamp(1.95rem, 3.3vw, 3.2rem) !important;
  line-height: 1.08 !important;
}

.section h2.wide {
  max-width: 18ch !important;
}

.section > .lead,
.lead {
  max-width: 48ch !important;
  color: var(--bench-muted) !important;
  font-size: clamp(.98rem, 1vw, 1.04rem) !important;
}

@media (min-width: 1080px) {
  main > .section:not(.section-tight) {
    display: grid !important;
    grid-template-columns: minmax(220px, .32fr) minmax(0, .68fr);
    column-gap: clamp(2.6rem, 5vw, 4.5rem);
    row-gap: .8rem;
    align-items: start;
  }

  main > .section:not(.section-tight) > .section-kicker,
  main > .section:not(.section-tight) > h2,
  main > .section:not(.section-tight) > .lead {
    grid-column: 1;
  }

  main > .section:not(.section-tight) > :not(.section-kicker):not(h2):not(.lead) {
    grid-column: 2;
  }
}

.panel,
.resource-card,
.mini-map a,
.toc-grid a,
.feature-card,
.figure,
.video-shell,
.embed,
.demo-video {
  border: 1px solid var(--bench-line) !important;
  border-radius: var(--bench-radius) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: none !important;
}

.panel:hover,
.resource-card:hover,
.mini-map a:hover,
.toc-grid a:hover,
.feature-card:hover {
  border-color: var(--bench-line-strong) !important;
  box-shadow: none !important;
  transform: none !important;
}

.feature-card .card-media {
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  background: var(--bench-graphite) !important;
  border-bottom: 1px solid var(--bench-line) !important;
}

.feature-card .card-media img,
.feature-card .card-media video,
.figure img,
.figure video {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: var(--bench-graphite) !important;
}

.feature-card .card-body,
.panel,
.resource-card {
  padding: clamp(1rem, 2vw, 1.45rem) !important;
}

.feature-card h3,
.panel h3,
.resource-card h3 {
  color: var(--bench-ink) !important;
  font-size: clamp(1.16rem, 1.45vw, 1.45rem) !important;
  line-height: 1.2 !important;
}

.feature-card p,
.panel p,
.resource-card p,
.feature-card li,
.panel li,
.mini-map span,
.source-list span {
  color: var(--bench-text) !important;
  font-size: .98rem !important;
  line-height: 1.64 !important;
}

.card-caption,
.figure figcaption,
.media-caption,
.video-shell figcaption {
  color: #4c555d !important;
  background: #f7f8f5 !important;
  border-top: 1px solid var(--bench-line) !important;
  font-family: var(--font-mono) !important;
  font-size: .75rem !important;
}

.tri-card.good {
  border-color: rgba(0, 163, 108, .28) !important;
  background: linear-gradient(180deg, rgba(0, 163, 108, .08), rgba(255, 255, 255, .84)) !important;
}

.tri-card.warn,
.callout.red {
  border-color: rgba(214, 59, 50, .26) !important;
  background: linear-gradient(180deg, rgba(214, 59, 50, .07), rgba(255, 255, 255, .84)) !important;
}

.callout.green,
.callout.blue {
  border-color: rgba(0, 163, 108, .24) !important;
  background: rgba(0, 163, 108, .07) !important;
}

.card-media[data-focus]::before,
.figure-frame[data-focus]::before,
.figure[data-focus]::before {
  display: none !important;
}

.card-media:has(img.zoomable)::after,
.figure:has(img.zoomable)::after {
  right: .55rem !important;
  top: .55rem !important;
  bottom: auto !important;
  padding: .22rem .38rem !important;
  border-radius: .28rem !important;
  background: rgba(255, 255, 255, .88) !important;
  color: var(--bench-ink) !important;
  font-family: var(--font-mono) !important;
  font-size: .68rem !important;
  opacity: 0 !important;
  transition: opacity .16s ease !important;
}

.card-media:hover:has(img.zoomable)::after,
.figure:hover:has(img.zoomable)::after {
  opacity: 1 !important;
}

body.js-enhance .reveal,
body.js-enhance .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (min-width: 980px) {
  section[data-layout="mosaic-grid"] .media-grid,
  section[data-layout="three-card-grid"] .media-grid,
  section[data-layout="visual-atlas-grid"] .grid.two {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card,
  section[data-layout="three-card-grid"] .media-grid > .feature-card,
  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card {
    grid-column: span 6 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:first-child,
  section[data-layout="three-card-grid"] .media-grid > .feature-card:first-child,
  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card:first-child {
    grid-column: span 12 !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, .62fr) minmax(260px, .38fr) !important;
  }

  section[data-layout="mosaic-grid"] .media-grid > .feature-card:first-child .card-media {
    border-right: 1px solid var(--bench-line) !important;
    border-bottom: 0 !important;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(rgba(21, 23, 26, .018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(21, 23, 26, .018) 1px, transparent 1px),
      var(--bench-bg) !important;
    background-size: 32px 32px, 32px 32px, auto !important;
  }

  .nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    min-height: auto !important;
    padding: .72rem 0 !important;
    gap: .62rem !important;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none !important;
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: .85rem !important;
    padding-bottom: .18rem !important;
  }

  body.nav-open .nav-links {
    display: flex !important;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 2.1rem !important;
    font-size: .84rem !important;
  }

  .hero.has-live-stage .hero-inner,
  .page-hero.has-live-stage .section {
    grid-template-columns: 1fr !important;
    padding-top: 2.2rem !important;
    padding-bottom: 2.8rem !important;
    gap: 1rem !important;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 9.6vw, 2.9rem) !important;
  }

  .product-stage-live {
    border-radius: .6rem !important;
  }

  .stage-video {
    max-height: 225px !important;
  }

  .stage-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .section h2 {
    max-width: 12ch !important;
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
  }

  .feature-card .card-media {
    aspect-ratio: 16 / 10;
  }
}

/* Completion pass: clearer media, less card-wall rhythm, safer mobile nav. */
.card-media,
.figure-frame,
.figure {
  isolation: isolate;
}

.feature-card .card-media > img,
.panel .card-media > img,
.figure-frame img,
.figure img {
  display: block !important;
  inline-size: 100% !important;
  block-size: 100% !important;
  min-inline-size: 100% !important;
}

.feature-card .card-media > img,
.panel .card-media > img {
  object-fit: cover !important;
}

.card-media.stable-demo > img,
.figure-frame img,
.figure img {
  object-fit: contain !important;
}

.card-media:has(img.zoomable)::after,
.figure:has(img.zoomable)::after,
.figure-frame:has(.zoomable-svg)::after,
.figure-frame:has(img.zoomable)::after {
  content: "查看大图" !important;
  position: absolute !important;
  inset: .55rem .55rem auto auto !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 1.85rem !important;
  padding: .24rem .46rem !important;
  border: 1px solid rgba(21, 23, 26, .18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--bench-ink) !important;
  font-family: var(--font-mono) !important;
  font-size: .7rem !important;
  font-weight: 760 !important;
  opacity: .95 !important;
  box-shadow: 0 8px 18px rgba(21, 23, 26, .12) !important;
  pointer-events: none !important;
}

.zoomable,
.zoomable-svg {
  cursor: zoom-in !important;
}

.figure-frame:has(.zoomable-svg) {
  position: relative !important;
}

.figure-frame .zoomable-svg {
  display: block;
  width: 100%;
  outline: none;
}

.lightbox img {
  inline-size: auto !important;
  block-size: auto !important;
  max-inline-size: min(94vw, 1280px) !important;
  max-block-size: 86vh !important;
  object-fit: contain !important;
  background: #fff !important;
}

@media (min-width: 980px) {
  section[data-layout="visual-atlas-grid"] .grid.two,
  section[data-layout="mosaic-grid"] .media-grid,
  section[data-layout="three-card-grid"] .media-grid,
  section[data-layout="video-grid"] .media-grid,
  section[data-layout="two-up-visual"] .grid.two,
  section[data-layout="faq-grid"] .media-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
    grid-auto-flow: dense !important;
    align-items: stretch !important;
  }

  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card,
  section[data-layout="mosaic-grid"] .media-grid > .feature-card,
  section[data-layout="three-card-grid"] .media-grid > .feature-card,
  section[data-layout="video-grid"] .media-grid > .feature-card,
  section[data-layout="two-up-visual"] .grid.two > .feature-card,
  section[data-layout="faq-grid"] .media-grid > .feature-card {
    grid-column: auto !important;
  }

  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card:nth-child(4n + 1),
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(4n + 1),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(4n + 1),
  section[data-layout="video-grid"] .media-grid > .feature-card:nth-child(4n + 1),
  section[data-layout="two-up-visual"] .grid.two > .feature-card:nth-child(4n + 1),
  section[data-layout="faq-grid"] .media-grid > .feature-card:nth-child(4n + 1) {
    grid-row: span 2 !important;
  }

  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="video-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="two-up-visual"] .grid.two > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="faq-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media {
    aspect-ratio: 4 / 3 !important;
  }

  section[data-layout="three-column-visual"] .grid.three,
  section[data-layout="three-column-compare"] .tri-compare,
  section[data-layout="four-card-checklist"] .grid.four {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr) !important;
  }

  section[data-layout="three-column-visual"] .grid.three {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  section[data-layout="three-column-visual"] .grid.three > .feature-card:first-child {
    grid-column: 1 / -1 !important;
  }

  section[data-layout="resource-cards"] .resource-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  section[data-layout="resource-cards"] .resource-card-visual:first-child {
    grid-column: 1 / -1 !important;
  }
}

@media (min-width: 980px) {
  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card:nth-child(n),
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(n),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(n),
  section[data-layout="video-grid"] .media-grid > .feature-card:nth-child(n),
  section[data-layout="two-up-visual"] .grid.two > .feature-card:nth-child(n),
  section[data-layout="faq-grid"] .media-grid > .feature-card:nth-child(n) {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card:nth-child(4n + 1),
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(4n + 1),
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(4n + 1),
  section[data-layout="video-grid"] .media-grid > .feature-card:nth-child(4n + 1),
  section[data-layout="two-up-visual"] .grid.two > .feature-card:nth-child(4n + 1),
  section[data-layout="faq-grid"] .media-grid > .feature-card:nth-child(4n + 1) {
    grid-row: span 2 !important;
  }

  section[data-layout="visual-atlas-grid"] .grid.two > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="mosaic-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="three-card-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="video-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="two-up-visual"] .grid.two > .feature-card:nth-child(4n + 1) .card-media,
  section[data-layout="faq-grid"] .media-grid > .feature-card:nth-child(4n + 1) .card-media {
    aspect-ratio: 4 / 3 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--bench-line) !important;
  }
}

.page-warp .page-hero.has-live-stage .section {
  grid-template-columns: minmax(0, .38fr) minmax(0, .62fr) !important;
}

.page-warp section[data-layout="toc-grid"] {
  padding-top: clamp(1.6rem, 3vw, 2.6rem) !important;
  padding-bottom: clamp(1.6rem, 3vw, 2.6rem) !important;
}

.page-warp .toc-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: .65rem !important;
}

.page-warp .toc-grid a {
  padding: .82rem .9rem !important;
  min-height: 0 !important;
}

.page-warp .toc-grid a strong {
  display: block;
  margin-bottom: .12rem;
  font-family: var(--font-mono);
  font-size: .78rem;
}

.page-warp .toc-grid a span {
  font-size: .82rem !important;
  line-height: 1.45 !important;
}

.page-warp #platform-map {
  width: min(1240px, calc(100% - 2rem)) !important;
}

@media (min-width: 1080px) {
  .page-warp #platform-map {
    grid-template-columns: minmax(260px, .28fr) minmax(0, .72fr) !important;
  }
}

.page-warp .platform-map {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: .72rem !important;
}

.page-warp .platform-map .map-card {
  grid-column: span 2;
  min-height: 12rem;
  padding: 1rem !important;
  border: 1px solid var(--bench-line) !important;
  border-radius: .85rem !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: none !important;
}

.page-warp .platform-map .map-card:first-child,
.page-warp .platform-map .map-card:nth-child(2) {
  grid-column: span 3;
}

.page-warp .platform-map .map-card::before {
  content: attr(data-layer);
  display: block;
  margin-bottom: .75rem;
  color: var(--bench-orange);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 760;
}

.page-warp .platform-map .map-card strong {
  display: block;
  color: var(--bench-ink);
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  line-height: 1.15;
}

.page-warp .platform-map .map-card p {
  margin: .62rem 0 0;
  font-size: .92rem !important;
  line-height: 1.58 !important;
}

.page-warp .stack-diagram {
  margin-top: .85rem !important;
  border-radius: .85rem !important;
  background: var(--bench-graphite) !important;
  color: #f6f8f4 !important;
}

.page-warp .stack-step {
  border-color: rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .06) !important;
}

.page-warp .stack-step strong,
.page-warp .stack-step span,
.page-warp .stack-step p,
.page-warp .stack-arrow {
  color: #f6f8f4 !important;
}

.page-warp section[data-layout="visual-atlas-grid"] .grid.two {
  gap: .85rem !important;
}

.page-warp section[data-layout="visual-atlas-grid"] .feature-card {
  border-radius: .85rem !important;
}

.page-warp section[data-layout="agent-mode-cards"] .truth-strip,
.page-warp section[data-layout="drive-grid-plus-table"] .grid.two,
.page-warp section[data-layout="cloud-agents-plus-table"] .grid.two,
.page-warp section[data-layout="two-column-trust"] .grid.two {
  gap: .85rem !important;
}

@media (max-width: 760px) {
  body.js-enhance .nav-links {
    display: none !important;
  }

  body.js-enhance.nav-open .nav-links {
    display: flex !important;
  }

  body:not(.js-enhance) .nav-links {
    display: flex !important;
    grid-column: 1 / -1;
  }

  body.js-enhance .nav-toggle {
    display: inline-flex !important;
  }

  .card-media:has(img.zoomable)::after,
  .figure:has(img.zoomable)::after,
  .figure-frame:has(.zoomable-svg)::after,
  .figure-frame:has(img.zoomable)::after {
    opacity: .98 !important;
    font-size: .68rem !important;
  }

  .page-warp .platform-map {
    grid-template-columns: 1fr !important;
  }

  .page-warp .platform-map .map-card,
  .page-warp .platform-map .map-card:first-child,
  .page-warp .platform-map .map-card:nth-child(2) {
    grid-column: auto !important;
    min-height: 0;
  }

  .page-warp .page-hero.has-live-stage .section {
    grid-template-columns: 1fr !important;
  }
}

/* Course redesign mode */
:root {
  --story-bg: #f7f8f4;
  --story-paper: #ffffff;
  --story-ink: #111827;
  --story-muted: #556070;
  --story-line: rgba(15, 23, 42, .12);
  --story-accent: #f15a2b;
  --story-teal: #0f766e;
  --story-blue: #1d4ed8;
}

body.story-mode {
  background:
    radial-gradient(circle at 15% 0%, rgba(241, 90, 43, .10), transparent 28rem),
    linear-gradient(180deg, #fbfcf7 0%, #eef3f7 48%, #f8fafc 100%) !important;
  color: var(--story-ink) !important;
}

body.story-mode .nav {
  border-bottom: 1px solid rgba(15, 23, 42, .10) !important;
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, .06) !important;
}

body.story-mode .brand-mark {
  border-radius: 14px !important;
  border: 0 !important;
  box-shadow: 0 .7rem 1.4rem rgba(241, 90, 43, .22) !important;
}

body.story-mode .nav-links a {
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

body.story-mode .nav-links a[aria-current="page"] {
  border-color: rgba(15, 23, 42, .12) !important;
  background: #fff !important;
  box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .08) !important;
}

body.story-mode .page-hero {
  min-height: auto !important;
  padding: clamp(4.8rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(239, 246, 255, .86)),
    var(--hero-image) center / cover !important;
  color: var(--story-ink) !important;
}

body.story-mode .page-hero::before {
  opacity: .88 !important;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.82), rgba(255,255,255,.72)) !important;
}

body.story-mode .page-hero .section,
body.story-mode .hero-inner {
  max-width: min(1180px, calc(100% - 2rem)) !important;
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr) !important;
  align-items: center !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
}

body.story-mode .page-hero h1,
body.story-mode .hero h1 {
  max-width: 12ch !important;
  color: var(--story-ink) !important;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(3rem, 7vw, 6.9rem) !important;
  line-height: .92 !important;
  letter-spacing: 0 !important;
}

body.story-mode .page-hero .lead,
body.story-mode .hero p {
  max-width: 34rem !important;
  color: var(--story-muted) !important;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem) !important;
}

body.story-mode .product-stage-live {
  border-radius: 2rem !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  background: rgba(17, 24, 39, .96) !important;
  box-shadow: 0 2rem 5rem rgba(15, 23, 42, .22) !important;
}

body.story-mode main > .tutorial-story.section,
.tutorial-story {
  display: block !important;
  width: min(1180px, calc(100% - 2rem)) !important;
  max-width: none !important;
  padding: clamp(4rem, 8vw, 7rem) 0 !important;
}

.story-head {
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(0, .55fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.story-head .section-kicker {
  grid-column: 1 / -1;
  width: fit-content;
  margin: 0;
  color: var(--story-accent) !important;
}

.story-head h1 {
  margin: 0;
  color: var(--story-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: .98;
  letter-spacing: 0;
}

.story-head p {
  margin: 0;
  max-width: 42rem;
  color: var(--story-muted);
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.82;
}

.story-rail {
  display: grid;
  gap: clamp(3.8rem, 8vw, 7rem);
}

.story-toc {
  position: sticky;
  top: 5.4rem;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem 1rem;
  align-items: center;
  margin: 0 0 clamp(2.4rem, 5vw, 4rem);
  padding: .8rem;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}

.story-toc strong {
  padding: .55rem .72rem;
  border-radius: .9rem;
  background: var(--story-ink);
  color: #fff;
  font-size: .86rem;
  white-space: nowrap;
}

.story-toc div {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: .1rem;
}

.story-toc a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  max-width: 18rem;
  padding: .55rem .72rem;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: .9rem;
  background: rgba(248, 250, 252, .92);
  color: var(--story-ink);
  font-size: .84rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.story-toc a span {
  color: var(--story-accent);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .76rem;
}

.story-step {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  padding: clamp(1rem, 2.4vw, 2rem);
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 2rem 6rem rgba(15, 23, 42, .08);
}

.story-step:nth-child(3n + 2) {
  background: rgba(244, 250, 255, .86);
}

.story-step:nth-child(3n) {
  background: rgba(247, 252, 248, .88);
}

.story-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem clamp(1rem, 2vw, 1.8rem);
  align-items: start;
  max-width: 62rem;
}

.story-count {
  display: inline-grid;
  place-items: center;
  width: clamp(2.4rem, 4vw, 3.4rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--story-ink);
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(.82rem, 1vw, 1rem);
  font-weight: 760;
  box-shadow: 0 .8rem 1.6rem rgba(15, 23, 42, .18);
}

.story-copy h2 {
  margin: 0;
  color: var(--story-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.9rem, 4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.story-copy p {
  grid-column: 2;
  margin: 0;
  max-width: 62ch;
  color: var(--story-muted);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.82;
}

.story-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: clamp(1rem, 2vw, 1.6rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(241,245,249,.8));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.68);
}

.story-img,
.story-video {
  display: block;
  width: 100%;
  min-height: clamp(18rem, 48vw, 42rem);
  max-height: min(82vh, 820px);
  object-fit: contain;
  background: #111827;
}

.story-video {
  background: #111827;
}

.story-visual figcaption {
  margin: 0;
  padding: .95rem clamp(1rem, 2vw, 1.4rem);
  border-top: 1px solid rgba(15, 23, 42, .10);
  color: var(--story-muted);
  background: rgba(255, 255, 255, .88);
  font-size: .92rem;
  line-height: 1.55;
}

.story-markers {
  position: absolute;
  z-index: 2;
  inset: clamp(.8rem, 2vw, 1.3rem) clamp(.8rem, 2vw, 1.3rem) auto;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  pointer-events: none;
}

.story-mark {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  max-width: min(100%, 22rem);
  padding: .62rem .82rem;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--story-ink);
  box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .12);
  font-size: clamp(.82rem, 1vw, .98rem);
  font-weight: 760;
  line-height: 1.2;
}

.story-mark::before {
  content: "";
  width: .58rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--story-accent);
}

.story-mark:nth-child(2)::before { background: var(--story-blue); }
.story-mark:nth-child(3)::before { background: var(--story-teal); }
.story-mark:nth-child(4)::before { background: #ca8a04; }

.story-visual:has(img.zoomable)::after {
  content: "点击放大";
  position: absolute;
  z-index: 3;
  right: clamp(.8rem, 2vw, 1.3rem);
  bottom: clamp(3.7rem, 5vw, 4.5rem);
  padding: .56rem .78rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--story-ink);
  box-shadow: 0 .7rem 1.6rem rgba(15, 23, 42, .12);
  font-size: .82rem;
  font-weight: 760;
}

.story-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.story-pager a {
  display: grid;
  min-height: 7rem;
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1.2rem;
  background: #fff;
  color: var(--story-ink);
  text-decoration: none;
  box-shadow: 0 1rem 2.8rem rgba(15, 23, 42, .08);
}

.story-pager a.next {
  text-align: right;
}

.story-pager a span {
  color: var(--story-muted);
  font-size: .86rem;
  font-weight: 760;
}

.story-pager a strong {
  align-self: end;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
}

@media (min-width: 980px) {
  .story-step:nth-child(even) {
    margin-left: clamp(2rem, 7vw, 7rem);
  }

  .story-step:nth-child(odd) {
    margin-right: clamp(2rem, 7vw, 7rem);
  }
}

@media (max-width: 760px) {
  body.story-mode .page-hero {
    padding-top: 3.5rem !important;
  }

  body.story-mode .page-hero .section,
  body.story-mode .hero-inner {
    grid-template-columns: 1fr !important;
  }

  body.story-mode .page-hero h1,
  body.story-mode .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.5rem) !important;
  }

  .tutorial-story {
    width: min(100% - 1rem, 1180px) !important;
    padding-top: 3rem !important;
  }

  .story-head {
    grid-template-columns: 1fr;
    margin-bottom: 2.2rem;
  }

  .story-toc {
    position: static;
    grid-template-columns: 1fr;
  }

  .story-head h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .story-step {
    padding: .72rem;
    border-radius: 1.2rem;
  }

  .story-copy {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .story-copy p {
    grid-column: 1;
  }

  .story-img,
  .story-video {
    min-height: 15rem;
    max-height: 62vh;
  }

  .story-markers {
    position: static;
    padding: .7rem .7rem 0;
  }

  .story-mark {
    border-radius: .8rem;
    font-size: .78rem;
  }

  .story-visual:has(img.zoomable)::after {
    bottom: 3.4rem;
    font-size: .72rem;
  }

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

  .story-pager a.next {
    text-align: left;
  }
}

/* Course redesign: mature product-learning site */
main > [hidden],
[data-archived-legacy="true"] {
  display: none !important;
}

body.course-mode {
  --course-bg: #f6f8fb;
  --course-paper: #ffffff;
  --course-ink: #111827;
  --course-muted: #526070;
  --course-line: rgba(17, 24, 39, .12);
  --course-soft: #edf3f7;
  --course-accent: #f15a2b;
  --course-blue: #2563eb;
  --course-green: #0f766e;
  --course-yellow: #f4c430;
  --course-radius: 24px;
  margin: 0;
  color: var(--course-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(241, 90, 43, .12), transparent 26rem),
    radial-gradient(circle at 90% 6%, rgba(37, 99, 235, .10), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, var(--course-bg) 46%, #f8fafc 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.course-mode img,
body.course-mode video {
  max-width: 100%;
}

body.course-mode .site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--course-line) !important;
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, .06);
}

body.course-mode .nav {
  width: min(1440px, calc(100% - 2rem)) !important;
  min-height: 72px !important;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.course-mode .brand {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  color: var(--course-ink) !important;
  font-weight: 850 !important;
  text-decoration: none;
  white-space: nowrap;
}

body.course-mode .brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0 !important;
  border-radius: 15px !important;
  background: var(--course-accent) !important;
  color: #fff;
  box-shadow: 0 .75rem 1.5rem rgba(241, 90, 43, .25) !important;
}

body.course-mode .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: wrap;
}

body.course-mode .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .48rem .78rem;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #344054 !important;
  font-weight: 760 !important;
  text-decoration: none;
  box-shadow: none !important;
}

body.course-mode .skip-link {
  position: absolute;
  left: .8rem;
  top: .8rem;
  z-index: 50;
  transform: translateY(-180%);
  padding: .6rem .8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--course-ink);
}

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

body.course-mode .nav-links a[aria-current="page"] {
  color: var(--course-ink) !important;
  background: #fff !important;
  border-color: rgba(17, 24, 39, .14) !important;
  box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .08) !important;
}

body.course-mode main {
  overflow: hidden;
}

.course-hero,
.toc-shell,
.course-section,
.page-pager {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, .9fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: min(780px, calc(100dvh - 72px));
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-copy {
  display: grid;
  align-content: center;
}

.kicker {
  margin: 0 0 .9rem;
  color: var(--course-accent);
  font-size: .78rem;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-hero h1,
.section-head h2 {
  margin: 0;
  color: var(--course-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.course-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.6vw, 7.4rem);
  line-height: .91;
}

.course-hero p {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--course-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.7rem;
}

.course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.05rem;
  border-radius: 999px;
  background: var(--course-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 820;
}

.course-button.quiet {
  color: var(--course-ink);
  background: #fff;
  border: 1px solid var(--course-line);
}

.hero-console {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .14);
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 2.4rem 6rem rgba(17, 24, 39, .24);
}

.console-top {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .85rem 1rem;
  color: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.console-top span {
  width: .68rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #ef4444;
}

.console-top span:nth-child(2) { background: #f59e0b; }
.console-top span:nth-child(3) { background: #22c55e; }
.console-top b { margin-left: .55rem; font-size: .86rem; }

.console-grid {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: 1rem 1rem .7rem;
}

.console-grid span {
  flex: 0 0 auto;
  padding: .6rem .8rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .9rem;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08);
  font-size: .86rem;
  font-weight: 760;
}

.hero-console video {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 460px;
  object-fit: cover;
  background: #f8fafc;
}

.hero-console p {
  margin: 0;
  padding: .9rem 1rem 1rem;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
}

.toc-shell {
  position: relative;
  z-index: 3;
  margin-top: -1.4rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.course-toc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem 1rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid var(--course-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}

.course-toc strong {
  padding: .74rem .9rem;
  border-radius: 16px;
  background: var(--course-ink);
  color: #fff;
  font-size: .86rem;
  white-space: nowrap;
}

.course-toc div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: .65rem;
}

.course-toc a {
  display: grid;
  gap: .2rem;
  min-height: 72px;
  padding: .74rem .82rem;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 16px;
  background: #fff;
  color: var(--course-ink);
  text-decoration: none;
}

.course-toc a.is-active {
  border-color: rgba(241, 90, 43, .48);
  background: #fff7f2;
}

.course-toc span {
  color: var(--course-accent);
  font: 760 .75rem ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.course-toc b {
  font-size: .96rem;
  line-height: 1.12;
}

.course-toc em {
  color: var(--course-muted);
  font-size: .78rem;
  font-style: normal;
  line-height: 1.25;
}

.course-section {
  padding: clamp(2.8rem, 5.5vw, 5rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .56fr) minmax(0, .44fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-head .kicker {
  grid-column: 1 / -1;
}

.section-head h2 {
  font-size: clamp(2rem, 4.35vw, 4.7rem);
  line-height: .98;
}

.section-head p {
  margin: 0;
  color: var(--course-muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.82;
}

.thesis-grid,
.card-grid,
.compact-grid,
.check-grid,
.role-table,
.route-map,
.week-plan,
.workbench-grid,
.platform-panels,
.media-mosaic,
.feature-strip {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.thesis-grid {
  grid-template-columns: 1.15fr .95fr .95fr;
}

.card-grid,
.check-grid,
.role-table {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-grid,
.week-plan,
.workbench-grid,
.platform-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.media-mosaic,
.feature-strip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.media-mosaic > :first-child,
.feature-strip > :first-child {
  grid-row: span 2;
}

.info-card,
.route-card,
.check-grid article,
.role-table article,
.week-plan article,
.pain-matrix article,
.learning-timeline article,
.notice-card,
.conclusion-card {
  border: 1px solid var(--course-line);
  border-radius: var(--course-radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1.2rem 3rem rgba(15, 23, 42, .07);
}

.info-card,
.check-grid article,
.role-table article,
.week-plan article,
.pain-matrix article,
.learning-timeline article,
.notice-card,
.conclusion-card {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.info-card span,
.check-grid span,
.week-plan span,
.pain-matrix span,
.learning-timeline span,
.role-table span,
.route-card span {
  color: var(--course-accent);
  font: 800 .78rem ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.info-card h3,
.check-grid h3,
.role-table h3,
.week-plan h3,
.pain-matrix h3,
.learning-timeline h3,
.notice-card h3,
.conclusion-card b {
  margin: .65rem 0 .55rem;
  color: var(--course-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

.info-card p,
.check-grid p,
.role-table p,
.week-plan p,
.pain-matrix p,
.learning-timeline p,
.notice-card p,
.notice-card li,
.conclusion-card p {
  margin: 0;
  color: var(--course-muted);
  line-height: 1.76;
}

.route-card {
  display: grid;
  align-content: space-between;
  min-height: 210px;
  padding: 1rem;
  color: var(--course-ink);
  text-decoration: none;
}

.route-card b {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1;
}

.route-card em {
  color: var(--course-muted);
  font-style: normal;
  line-height: 1.4;
}

.annotated-media,
.video-demo,
.course-diagram {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--course-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1.4rem 3.6rem rgba(15, 23, 42, .08);
}

.annotated-media.wide,
.video-demo.wide {
  grid-column: 1 / -1;
}

.annotated-media {
  cursor: zoom-in;
}

.annotated-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(78vh, 760px);
  object-fit: contain;
  background: #f8fafc;
}

.annotated-media img[src*="rich-input-prompt"],
.annotated-media img[src*="toast-notification"],
.annotated-media img[src*="notification-mailbox"] {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.annotated-media img[src*="code-review-panel"] {
  aspect-ratio: 16 / 8;
  object-fit: contain;
}

.annotated-media img[src*="vertical-tabs"],
.annotated-media img[src*="agent-status-badges"],
.annotated-media img[src*="review-changes-button"] {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.annotated-media.wide img {
  min-height: 0;
  max-height: min(82vh, 820px);
}

.pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  transform: translate(-16px, -16px);
  max-width: min(260px, 52vw);
  padding: .46rem .66rem .46rem .46rem;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--course-ink);
  box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .14);
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.15;
}

.pin b {
  display: grid;
  place-items: center;
  width: 1.5rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--course-accent);
  color: #fff;
  font-size: .78rem;
}

.pin:nth-child(2) b { background: var(--course-blue); }
.pin:nth-child(3) b { background: var(--course-green); }
.pin:nth-child(4) b { background: #ca8a04; }

.pin::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: calc(100% - .15rem);
  width: 2.2rem;
  height: 2px;
  transform: rotate(36deg);
  transform-origin: left center;
  background: currentColor;
  opacity: .55;
}

.annotated-media figcaption,
.video-demo figcaption {
  display: grid;
  gap: .35rem;
  padding: 1rem clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid var(--course-line);
  background: rgba(255, 255, 255, .94);
}

.annotated-media figcaption b,
.video-demo figcaption b {
  color: var(--course-ink);
  font-size: 1rem;
}

.annotated-media figcaption span,
.video-demo figcaption span,
.video-demo li {
  color: var(--course-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.video-demo video {
  display: block;
  width: 100%;
  min-height: clamp(320px, 50vw, 680px);
  max-height: min(80vh, 760px);
  object-fit: contain;
  background: #f8fafc;
}

.video-demo ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}

.video-demo li {
  padding: .42rem .62rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.split-showcase {
  display: grid;
  grid-template-columns: 1fr;
}

.course-diagram {
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 10% 8%, rgba(241, 90, 43, .10), transparent 18rem),
    #111827;
  color: #fff;
}

.course-diagram h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
}

.course-diagram p {
  max-width: 58rem;
  margin: .8rem 0 1.4rem;
  color: rgba(255, 255, 255, .72);
}

.course-diagram > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .75rem;
}

.diagram-node {
  display: grid;
  gap: .4rem;
  min-height: 130px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.diagram-node b { color: #fff; font-size: 1.08rem; }
.diagram-node em { color: rgba(255, 255, 255, .68); font-style: normal; line-height: 1.4; }

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--course-line);
  border-radius: 24px;
  background: #fff;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.feature-table th,
.feature-table td {
  padding: .86rem .95rem;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.feature-table th {
  color: var(--course-ink);
  background: #f8fafc;
  font-size: .85rem;
}

.feature-table td {
  color: var(--course-muted);
  font-size: .9rem;
}

.feature-table code,
.slash-board code,
.notice-card code {
  padding: .12rem .34rem;
  border-radius: .45rem;
  background: #eef2f7;
  color: #111827;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.status {
  display: inline-flex;
  padding: .24rem .45rem;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: .75rem;
  font-weight: 760;
  white-space: nowrap;
}

.status.changelog {
  color: #7c2d12;
  background: #ffedd5;
}

.feature-card-index {
  display: none;
  gap: .75rem;
  margin-top: 1rem;
}

.feature-card-index article {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid var(--course-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .05);
}

.feature-card-index span,
.feature-card-index em {
  color: var(--course-muted);
  font-size: .78rem;
  font-style: normal;
}

.feature-card-index h3 {
  margin: 0;
  color: var(--course-ink);
  font-size: 1.1rem;
}

.feature-card-index code {
  width: fit-content;
  max-width: 100%;
  padding: .18rem .42rem;
  border-radius: .5rem;
  background: #eef2f7;
  color: #111827;
  overflow-wrap: anywhere;
}

.feature-card-index p {
  margin: 0;
  color: var(--course-muted);
  line-height: 1.65;
}

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

.scenario-grid,
.today-three,
.compare-triple {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

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

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

.compare-triple article {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--course-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .05);
}

.compare-triple span {
  color: var(--course-accent);
  font: 800 .78rem ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.compare-triple h3 {
  margin: .6rem 0 .4rem;
  color: var(--course-ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.compare-triple p {
  margin: 0;
  color: var(--course-muted);
  line-height: 1.68;
}

.copy-prompt {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.copy-prompt > div,
.copy-prompt pre {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--course-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .05);
}

.copy-prompt > div {
  display: grid;
  align-content: center;
}

.copy-prompt span {
  color: var(--course-accent);
  font: 800 .78rem ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.copy-prompt h3 {
  margin: .65rem 0 .5rem;
  color: var(--course-ink);
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1.06;
}

.copy-prompt p {
  margin: 0;
  color: var(--course-muted);
  line-height: 1.7;
}

.copy-prompt pre {
  overflow-x: auto;
  background: #111827;
  color: #d1fae5;
  white-space: pre-wrap;
}

.copy-prompt code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.7;
}

.learning-timeline {
  display: grid;
  gap: .85rem;
  margin-bottom: 1.2rem;
}

.learning-timeline article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem 1rem;
}

.learning-timeline span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border-radius: 999px;
  color: #fff;
  background: var(--course-ink);
}

.learning-timeline h3 {
  margin-top: 0;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(260px, .44fr) minmax(0, .56fr);
  gap: 1rem;
  align-items: stretch;
}

.before-after > article {
  display: grid;
  align-content: center;
  min-height: 280px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--course-line);
  border-radius: 28px;
  background: #111827;
  color: #fff;
}

.before-after h3 {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
}

.before-after p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1.08rem;
  line-height: 1.8;
}

.slash-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.slash-board details {
  padding: 1rem;
  border: 1px solid var(--course-line);
  border-radius: 24px;
  background: #fff;
}

.slash-board summary {
  cursor: pointer;
  margin: 0;
  color: var(--course-ink);
  font-size: 1.15rem;
  font-weight: 850;
  list-style: none;
}

.slash-board summary::-webkit-details-marker {
  display: none;
}

.slash-board dl,
.slash-board div {
  display: grid;
  gap: .55rem;
}

.slash-board div {
  padding: .65rem 0;
  border-top: 1px solid rgba(17, 24, 39, .08);
}

.slash-board dt,
.slash-board dd {
  margin: 0;
}

.slash-board dd {
  color: var(--course-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.notice-card {
  margin-top: 1rem;
  background: #fff8e6;
}

.notice-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.faq-list {
  display: grid;
  gap: .8rem;
}

.faq-list details {
  border: 1px solid var(--course-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .05);
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  color: var(--course-ink);
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--course-muted);
  line-height: 1.75;
}

.resource-section {
  border-top: 1px solid var(--course-line);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.resource-link {
  display: grid;
  gap: .3rem;
  min-height: 128px;
  padding: .95rem;
  border: 1px solid var(--course-line);
  border-radius: 20px;
  background: #fff;
  color: var(--course-ink);
  text-decoration: none;
}

.resource-link span,
.resource-link em {
  color: var(--course-muted);
  font-size: .78rem;
  font-style: normal;
}

.resource-link b {
  align-self: center;
  font-size: 1.1rem;
}

.page-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.page-pager a {
  display: grid;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--course-line);
  border-radius: 24px;
  background: #fff;
  color: var(--course-ink);
  text-decoration: none;
}

.page-pager a.next {
  text-align: right;
}

.page-pager span {
  color: var(--course-muted);
  font-weight: 760;
  font-size: .85rem;
}

.page-pager b {
  align-self: end;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1;
}

.course-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 1rem;
  background: rgba(15, 23, 42, .84);
}

.course-lightbox[hidden] {
  display: none !important;
}

.course-lightbox img {
  width: min(96vw, 1600px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.course-lightbox button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  min-height: 44px;
  padding: .6rem .9rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--course-ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .course-hero,
  .section-head,
  .before-after {
    grid-template-columns: 1fr;
  }

  .route-map,
  .pain-matrix,
  .resource-grid,
  .scenario-grid,
  .today-three,
  .compare-triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thesis-grid,
  .card-grid,
  .check-grid,
  .role-table,
  .slash-board {
    grid-template-columns: 1fr;
  }

  .media-mosaic,
  .feature-strip,
  .compact-grid,
  .week-plan,
  .workbench-grid,
  .platform-panels,
  .copy-prompt {
    grid-template-columns: 1fr;
  }

  .media-mosaic > :first-child,
  .feature-strip > :first-child {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  body.course-mode .nav {
    align-items: center;
    min-height: 62px !important;
    gap: .5rem;
  }

  body.course-mode .brand span:last-child {
    max-width: 7.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.course-mode .nav-links {
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: .25rem 0;
    scrollbar-width: none;
  }

  body.course-mode .nav-links::-webkit-scrollbar {
    display: none;
  }

  body.course-mode .nav-links a {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: .72rem;
  }

  .course-hero,
  .toc-shell,
  .course-section,
  .page-pager {
    width: min(100% - 1rem, 1280px);
  }

  .course-hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .course-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.55rem);
    max-width: 14ch;
  }

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

  .course-toc div,
  .route-map,
  .pain-matrix,
  .resource-grid,
  .scenario-grid,
  .today-three,
  .compare-triple,
  .page-pager {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .table-wrap {
    display: none;
  }

  .feature-card-index {
    display: grid;
  }

  .hero-console video,
  .video-demo video {
    min-height: 240px;
  }

  .annotated-media img,
  .annotated-media.wide img {
    min-height: 0;
  }

  .pins {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .7rem;
    background: #fff;
  }

  .pin {
    position: static;
    transform: none;
    border-radius: 14px;
    font-size: .78rem;
  }

  .pin::after {
    display: none;
  }

  .annotated-media figcaption,
  .video-demo figcaption {
    padding: .85rem;
  }

  .page-pager a.next {
    text-align: left;
  }
}

/* V4: mature product course polish */
body.course-mode {
  --course-bg: #f4f7fb;
  --course-paper: #ffffff;
  --course-ink: #121826;
  --course-muted: #526071;
  --course-line: rgba(18, 24, 38, .12);
  --course-soft: #eef3f8;
  --course-accent: #e8562f;
  --course-blue: #2459d6;
  --course-green: #0b8064;
  --course-yellow: #f2c94c;
  --course-radius: 28px;
  background:
    linear-gradient(180deg, #fbfcff 0%, #f4f7fb 34rem, #ffffff 58rem, #f7f9fc 100%) !important;
}

body.course-mode .site-top {
  border-bottom-color: rgba(18, 24, 38, .09) !important;
  background: rgba(255, 255, 255, .9) !important;
}

body.course-mode .nav {
  width: min(1360px, calc(100% - 2.5rem)) !important;
  min-height: 76px !important;
}

body.course-mode .brand {
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body.course-mode .brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 14px !important;
  background: var(--course-accent) !important;
  box-shadow: 0 16px 32px rgba(232, 86, 47, .22) !important;
}

body.course-mode .nav-links {
  gap: .45rem;
}

body.course-mode .nav-links a {
  min-height: 46px;
  padding: .56rem .9rem;
  color: #3d4655 !important;
  font-size: .98rem;
  font-weight: 820 !important;
}

body.course-mode .nav-links a[aria-current="page"] {
  border-color: rgba(18, 24, 38, .13) !important;
  box-shadow: 0 14px 28px rgba(18, 24, 38, .09) !important;
}

.course-hero,
.toc-shell,
.course-section,
.page-pager {
  width: min(1360px, calc(100% - 2.5rem));
}

.course-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.05fr);
  min-height: clamp(640px, calc(100dvh - 76px), 800px);
  padding: clamp(4.4rem, 7.2vw, 7rem) 0 clamp(3.4rem, 5vw, 4.8rem);
}

.course-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 4rem) 46%;
  border: 1px solid rgba(18, 24, 38, .08);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(238, 243, 248, .92)),
    #f5f8fc;
  box-shadow: 0 32px 80px rgba(18, 24, 38, .08);
}

.hero-copy .kicker,
.section-head .kicker {
  width: fit-content;
  margin-bottom: 1rem;
  padding: .44rem .72rem;
  border: 1px solid rgba(232, 86, 47, .18);
  border-radius: 999px;
  background: #fff6f1;
  color: #c74322;
  letter-spacing: .04em;
}

.course-hero h1 {
  max-width: 12.5ch;
  font-size: clamp(3.5rem, 6.6vw, 7rem);
  line-height: .96;
}

.course-hero p {
  max-width: 44rem;
  color: #5b6677;
  font-size: clamp(1.08rem, 1.34vw, 1.28rem);
  line-height: 1.78;
}

.course-button {
  min-height: 52px;
  padding: .9rem 1.15rem;
  border-radius: 16px;
  background: var(--course-accent);
  box-shadow: 0 18px 34px rgba(232, 86, 47, .22);
}

.course-button.quiet {
  color: var(--course-ink);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 32px rgba(18, 24, 38, .08);
}

.hero-console {
  border-color: rgba(18, 24, 38, .18);
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 38px 90px rgba(18, 24, 38, .27);
}

.console-top {
  min-height: 54px;
}

.console-grid {
  padding: 1rem 1rem .9rem;
  scrollbar-width: none;
}

.console-grid::-webkit-scrollbar {
  display: none;
}

.console-grid span {
  border-radius: 16px;
  background: rgba(255, 255, 255, .075);
}

.console-grid span:nth-child(2) {
  border-color: rgba(232, 86, 47, .48);
  color: #ffd8ca;
}

.hero-console video {
  min-height: clamp(360px, 35vw, 520px);
  object-fit: cover;
}

.hero-console p {
  padding: 1rem 1.15rem 1.15rem;
  color: rgba(255, 255, 255, .78);
}

.hero-board {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  min-height: clamp(460px, 44vw, 620px);
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  border: 1px solid rgba(18, 24, 38, .13);
  border-radius: 34px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 38px 90px rgba(18, 24, 38, .14);
}

.board-label {
  width: fit-content;
  min-height: 40px;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: #121826;
  color: #fff;
  font-weight: 900;
  font-size: .88rem;
}

.hero-board ol {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-route li,
.hero-start li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .15rem .75rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid rgba(18, 24, 38, .10);
  border-radius: 20px;
  background: #fff;
}

.hero-route li b,
.hero-start li b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.3rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--course-accent);
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.hero-route li span {
  color: var(--course-ink);
  font-weight: 900;
}

.hero-route li em {
  color: var(--course-muted);
  font-style: normal;
  line-height: 1.45;
}

.hero-split-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  align-self: end;
}

.hero-split-shots img,
.hero-compare > img {
  width: 100%;
  min-height: 180px;
  max-height: 250px;
  object-fit: contain;
  padding: .7rem;
  border: 1px solid rgba(18, 24, 38, .10);
  border-radius: 22px;
  background: #f4f7fb;
}

.platform-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.platform-stack span {
  min-height: 72px;
  padding: 1rem;
  border-radius: 22px;
  background: #121826;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(18, 24, 38, .12);
}

.platform-stack span:nth-child(3n + 2) {
  background: #e8562f;
}

.platform-stack span:nth-child(3n) {
  background: #0b8064;
}

.hero-compare > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.hero-compare article {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 1rem;
  border: 1px solid rgba(18, 24, 38, .10);
  border-radius: 22px;
  background: #f7f9fc;
}

.hero-compare article.is-best {
  color: #fff;
  background: #121826;
}

.hero-compare span {
  color: var(--course-accent);
  font-size: .82rem;
  font-weight: 900;
}

.hero-compare article.is-best span,
.hero-compare article.is-best h3 {
  color: #fff !important;
}

.hero-compare h3 {
  margin: .55rem 0 .5rem;
  color: var(--course-ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.hero-compare p {
  margin: 0;
  color: var(--course-muted);
  font-size: .95rem;
  line-height: 1.58;
}

.hero-compare article.is-best p {
  color: rgba(255, 255, 255, .72) !important;
}

.prompt-preview {
  display: grid;
  gap: .8rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 24px;
  background: #121826;
  color: #fff;
}

.prompt-preview b {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.prompt-preview code {
  display: block;
  white-space: pre-wrap;
  color: #c7f5df;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.62;
}

.toc-shell {
  position: sticky;
  top: 88px;
  z-index: 12;
  margin-top: -2.2rem;
  margin-bottom: clamp(3.2rem, 7vw, 6rem);
}

.course-toc {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: .9rem;
  padding: .82rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 48px rgba(18, 24, 38, .09);
}

.course-toc strong {
  align-self: stretch;
  display: grid;
  place-items: center start;
  padding: .9rem 1rem;
  border-left: 5px solid var(--course-accent);
  border-radius: 18px;
  background: #f7f9fc;
  color: var(--course-ink);
}

.course-toc div {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.course-toc a {
  min-height: 86px;
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.course-toc a:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 86, 47, .28);
}

.course-section {
  position: relative;
  padding: clamp(3.6rem, 7vw, 6.8rem) 0;
}

.course-section:nth-of-type(odd) {
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, .78);
  clip-path: inset(0 -100vmax);
}

.course-section:nth-of-type(even) {
  box-shadow: 0 0 0 100vmax rgba(244, 247, 251, .74);
  clip-path: inset(0 -100vmax);
}

.compare-band {
  box-shadow: 0 0 0 100vmax #121826 !important;
  clip-path: inset(0 -100vmax);
}

.compare-band .section-head h2,
.compare-band .section-head p {
  color: #fff;
}

.compare-band .section-head p {
  opacity: .76;
}

.section-head {
  grid-template-columns: minmax(0, .72fr) minmax(320px, .28fr);
  align-items: start;
}

.section-head h2 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 4.7vw, 5.2rem);
  line-height: .96;
}

.section-head p {
  padding-top: .3rem;
  color: #667085;
}

.thesis-grid,
.check-grid,
.role-table,
.scenario-grid,
.today-three,
.workbench-grid,
.platform-panels {
  align-items: stretch;
}

@media (min-width: 900px) {
  .thesis-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .thesis-grid > :first-child {
    grid-row: span 2;
  }

  .scenario-grid,
  .today-three {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .scenario-grid > :first-child,
  .today-three > :first-child {
    grid-row: span 2;
  }

  .check-grid,
  .role-table {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .check-grid > *,
  .role-table > * {
    grid-column: span 4;
  }

  .check-grid > :nth-child(4),
  .check-grid > :nth-child(5) {
    grid-column: span 6;
  }

  .workbench-grid,
  .platform-panels {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .workbench-grid > *,
  .platform-panels > * {
    grid-column: span 6;
  }

  .workbench-grid > :nth-child(4n + 1),
  .platform-panels > :nth-child(5n + 1) {
    grid-column: span 7;
  }

  .workbench-grid > :nth-child(4n + 2),
  .platform-panels > :nth-child(5n + 2) {
    grid-column: span 5;
  }
}

.route-map {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .25rem .1rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(18, 24, 38, .24) transparent;
}

.route-card {
  flex: 0 0 clamp(220px, 22vw, 310px);
  scroll-snap-align: start;
}

.route-card:nth-child(even) {
  transform: translateY(1rem);
}

.info-card,
.route-card,
.check-grid article,
.role-table article,
.week-plan article,
.pain-matrix article,
.learning-timeline article,
.notice-card,
.conclusion-card,
.compare-triple article,
.copy-prompt > div,
.copy-prompt pre,
.faq-list details,
.resource-link {
  border-color: rgba(18, 24, 38, .11);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(18, 24, 38, .075);
}

.info-card,
.check-grid article,
.role-table article,
.week-plan article,
.pain-matrix article,
.learning-timeline article,
.notice-card,
.conclusion-card {
  display: grid;
  align-content: start;
  min-height: 190px;
}

.info-card span,
.check-grid span,
.week-plan span,
.pain-matrix span,
.learning-timeline span,
.role-table span,
.route-card span,
.compare-triple span,
.copy-prompt span {
  color: var(--course-accent);
  letter-spacing: .03em;
}

.media-mosaic,
.feature-strip {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.annotated-media,
.video-demo,
.course-diagram {
  border-color: rgba(18, 24, 38, .12);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(18, 24, 38, .10);
}

.annotated-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.zoom-chip,
.motion-chip {
  position: absolute;
  z-index: 3;
  top: .85rem;
  right: .85rem;
  min-height: 38px;
  padding: .44rem .7rem;
  border: 1px solid rgba(18, 24, 38, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--course-ink);
  font: 850 .82rem ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  box-shadow: 0 10px 24px rgba(18, 24, 38, .10);
}

.motion-chip {
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(18, 24, 38, .72);
}

.annotated-media img {
  width: 100%;
  min-height: clamp(380px, 43vw, 680px);
  max-height: min(82vh, 820px);
  padding: clamp(1rem, 2.4vw, 2rem);
  object-fit: contain;
  background:
    linear-gradient(180deg, #f7f9fc, #eef3f8);
}

.annotated-media.wide img {
  min-height: clamp(460px, 52vw, 820px);
}

.media-mosaic > :first-child img,
.feature-strip > :first-child img {
  min-height: clamp(520px, 54vw, 820px);
}

.annotated-media figcaption,
.video-demo figcaption {
  padding: 1.2rem clamp(1.15rem, 2.4vw, 1.7rem);
}

.annotated-media figcaption b,
.video-demo figcaption b {
  font-size: 1.12rem;
}

.video-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.video-demo video {
  min-height: clamp(420px, 50vw, 720px);
  max-height: min(82vh, 780px);
  object-fit: contain;
  background: #111827;
}

.video-demo figcaption {
  align-content: center;
  border-top: 0;
  border-left: 1px solid var(--course-line);
}

.video-demo li {
  border-radius: 14px;
  background: #eef3f8;
}

.learning-timeline {
  position: relative;
  gap: 1rem;
}

.learning-timeline::before {
  content: "";
  position: absolute;
  left: 1.38rem;
  top: .6rem;
  bottom: .6rem;
  width: 2px;
  background: rgba(18, 24, 38, .12);
}

.learning-timeline article {
  position: relative;
  min-height: 132px;
  padding-left: 1.2rem;
}

.learning-timeline span {
  z-index: 1;
  background: var(--course-accent);
}

.before-after {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.compare-triple {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.compare-triple > :last-child {
  grid-column: 1 / -1;
}

.slash-board details[open] {
  box-shadow: 0 22px 54px rgba(18, 24, 38, .09);
}

.resource-section {
  box-shadow: 0 0 0 100vmax #f7f9fc !important;
  clip-path: inset(0 -100vmax);
}

.visual-atlas-section {
  box-shadow: 0 0 0 100vmax #ffffff !important;
  clip-path: inset(0 -100vmax);
}

.visual-atlas {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px, 38%);
  gap: 1rem;
  overflow-x: auto;
  padding: .25rem .1rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(18, 24, 38, .24) transparent;
}

.visual-atlas .atlas-card {
  scroll-snap-align: start;
}

.visual-atlas .atlas-card:nth-child(3n + 1) {
  grid-row: span 2;
}

.visual-atlas .annotated-media img {
  min-height: 260px;
  max-height: 360px;
  padding: .85rem;
}

.visual-atlas .atlas-card:nth-child(3n + 1) img {
  min-height: 420px;
  max-height: 560px;
}

.visual-atlas .pins {
  font-size: .78rem;
}

.visual-atlas .pin {
  max-width: 210px;
}

@media (max-width: 1080px) {
  .course-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .course-hero::before {
    inset: 38% 0 2rem 0;
  }

  .toc-shell {
    position: static;
    margin-top: 0;
  }

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

  .video-demo,
  .compare-triple {
    grid-template-columns: 1fr;
  }

  .hero-compare > div,
  .hero-split-shots,
  .platform-stack {
    grid-template-columns: 1fr;
  }

  .video-demo figcaption {
    border-left: 0;
    border-top: 1px solid var(--course-line);
  }

  .compare-triple > :last-child {
    grid-column: auto;
  }

  .route-card:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 720px) {
  body.course-mode .nav {
    width: min(100% - 1rem, 1360px) !important;
  }

  body.course-mode .brand span:last-child {
    max-width: 8.8rem;
  }

  .course-hero,
  .toc-shell,
  .course-section,
  .page-pager {
    width: min(100% - 1rem, 1360px);
  }

  .course-hero {
    padding: 2.4rem 0 2.8rem;
  }

  .course-hero h1 {
    max-width: 11.5ch;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-console video,
  .video-demo video {
    min-height: 250px;
  }

  .hero-board {
    min-height: 0;
    border-radius: 28px;
  }

  .platform-stack span,
  .hero-compare article {
    min-height: 0;
  }

  .course-toc {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .course-toc strong {
    place-items: start;
  }

  .route-map {
    margin-inline: -.25rem;
    padding-inline: .25rem;
  }

  .visual-atlas {
    grid-auto-columns: minmax(300px, 84%);
    margin-inline: -.25rem;
    padding-inline: .25rem;
  }

  .visual-atlas .atlas-card:nth-child(3n + 1) {
    grid-row: auto;
  }

  .annotated-media img,
  .annotated-media.wide img,
  .media-mosaic > :first-child img,
  .feature-strip > :first-child img {
    min-height: 280px;
    padding: .75rem;
  }

  .visual-atlas .annotated-media img,
  .visual-atlas .atlas-card:nth-child(3n + 1) img {
    min-height: 240px;
    max-height: 340px;
  }

  .zoom-chip,
  .motion-chip {
    min-height: 34px;
    font-size: .76rem;
  }

  .learning-timeline::before {
    display: none;
  }
}
