:root {
  --font-sans: Inter, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-zh-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --bg: #ffffff;
  --panel: #f9fafb;
  --surface: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.76);
  --figure-bg: #f7fbfb;
  --footer-bg: #f7f8fa;
  --ink: #102033;
  --muted: #5a6878;
  --line: rgba(148, 163, 184, 0.26);
  --line-strong: rgba(148, 163, 184, 0.38);
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.045);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.08);
  --utility-border: rgba(255, 255, 255, 0.58);
  --utility-bg: rgba(255, 255, 255, 0.74);
  --utility-hover-bg: rgba(255, 255, 255, 0.86);
  --utility-shadow: 0 16px 34px rgba(16, 32, 51, 0.1);
  --chip-active-bg: #102033;
  --chip-active-ink: #fff;
  --primary-bg: #102033;
  --primary-border: #102033;
  --primary-hover-bg: #1a314c;
  --primary-hover-border: #1a314c;
  --primary-ink: #f8fafc;
  --primary-shadow: 0 14px 30px rgba(16, 32, 51, 0.18);
  --secondary-bg: rgba(255, 255, 255, 0.68);
  --secondary-border: rgba(148, 163, 184, 0.34);
  --secondary-hover-bg: rgba(255, 255, 255, 0.9);
  --secondary-ink: #102033;
  --tag-bg: rgba(255, 255, 255, 0.7);
  --sheen: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.46) 50%, transparent 100%);
  --icon-bg: linear-gradient(135deg, #f8fafc, #e5e7eb);
  --icon-ink: #111827;
  --hero-scrim: linear-gradient(180deg, rgba(10, 14, 22, 0.06) 0%, rgba(10, 14, 22, 0.22) 100%);
  --story-frame: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.22));
  --story-shadow: 0 24px 80px rgba(16, 32, 51, 0.14);
  --hero-bg: transparent;
  --hero-border: transparent;
  --hero-glow: none;
  --page-grid: none;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 2.25rem;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111c;
  --panel: rgba(15, 23, 42, 0.82);
  --surface: rgba(15, 23, 42, 0.82);
  --card-bg: rgba(15, 23, 42, 0.86);
  --figure-bg: #0f172a;
  --footer-bg: rgba(8, 17, 28, 0.94);
  --ink: #f4f8fb;
  --muted: #c7d2de;
  --line: rgba(71, 85, 105, 0.9);
  --line-strong: rgba(100, 116, 139, 0.92);
  --shadow-soft: 0 14px 32px rgba(2, 6, 23, 0.32);
  --shadow-lift: 0 18px 44px rgba(2, 6, 23, 0.55);
  --utility-border: rgba(148, 163, 184, 0.28);
  --utility-bg: rgba(15, 23, 42, 0.84);
  --utility-hover-bg: rgba(255, 255, 255, 0.08);
  --utility-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  --chip-active-bg: #f8fafc;
  --chip-active-ink: #111827;
  --primary-bg: #f8fafc;
  --primary-border: #f8fafc;
  --primary-hover-bg: #e5e7eb;
  --primary-hover-border: #e5e7eb;
  --primary-ink: #111827;
  --primary-shadow: 0 10px 24px rgba(248, 250, 252, 0.14);
  --secondary-bg: #0f172a;
  --secondary-border: #475569;
  --secondary-hover-bg: #172033;
  --secondary-ink: #f8fafc;
  --tag-bg: rgba(15, 23, 42, 0.9);
  --sheen: linear-gradient(120deg, transparent 0%, rgba(248, 250, 252, 0.08) 38%, transparent 62%);
  --icon-bg: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  --icon-ink: #111827;
  --hero-scrim: linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.66) 70%, rgba(2, 6, 23, 0.94) 100%);
  --story-frame: linear-gradient(160deg, rgba(148, 163, 184, 0.24), rgba(15, 23, 42, 0.08));
  --story-shadow: 0 28px 90px rgba(2, 6, 23, 0.42);
  --hero-bg:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.96));
  --hero-border: rgba(148, 163, 184, 0.18);
  --hero-glow: 0 24px 64px rgba(8, 145, 178, 0.1);
  --page-grid:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--page-grid);
  background-size: 28px 28px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.site-container {
  width: min(100% - 2rem, 1600px);
  margin-inline: auto;
}

html[lang="zh-CN"] body {
  font-family: var(--font-sans);
}

.brand-latin {
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

.title,
.subtitle,
.hero-kicker,
.section-kicker,
.metric-value,
.usage-title,
.workflow-heading,
.step-title,
.footer-brand {
  letter-spacing: -0.02em;
}

.portal-title,
.section-title,
.usage-title,
.workflow-heading,
.step-title,
.feature-card .title,
.footer-brand {
  color: var(--ink);
  font-weight: 600;
}

.portal-subtitle,
.hero-copy,
.section-copy,
.feature-card p,
.usage-copy,
.step-copy,
.hero-figure-caption,
.metric-label,
.footer-copy,
.footer-meta,
.hero-kicker,
.section-kicker {
  color: var(--muted);
  font-weight: 300;
}

.utility-shell {
  position: fixed;
  top: 1.25rem;
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 30;
}

.utility-stack {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.utility-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--utility-border);
  border-radius: 999px;
  background: var(--utility-bg);
  backdrop-filter: blur(18px);
  box-shadow: var(--utility-shadow);
}

.utility-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 3.5rem;
  height: 2.15rem;
  padding: 0 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.utility-chip .icon {
  margin-right: 0;
  font-size: 0.82rem;
}

.utility-chip[data-theme-button] {
  min-width: auto;
  width: auto;
  flex: none;
}

.utility-chip:hover {
  color: var(--ink);
  background: var(--utility-hover-bg);
}

.utility-chip.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-ink);
}

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

.hero-body {
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 850ms ease,
    transform 850ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal][data-reveal-direction="fade"] {
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel,
.section-panel {
  border-radius: var(--radius-3xl);
  background: var(--surface);
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.section-panel-soft {
  background: var(--panel);
}

.portal-hero .hero-body {
  padding-top: 5.75rem;
  padding-bottom: 1.25rem;
}

.hero-figure {
  position: relative;
  overflow: hidden;
  width: 90%;
  margin: 0 auto;
  min-height: min(84vh, 920px);
  border-radius: 2.4rem;
  background: #05070b;
  box-shadow:
    0 0 40px rgba(168, 139, 219, 0.25),
    0 0 80px rgba(168, 139, 219, 0.12),
    0 0 120px rgba(138, 103, 200, 0.08);
}

.hero-figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding-top: clamp(5.6rem, 8vh, 6.8rem);
  padding-bottom: clamp(4.2rem, 6vw, 5.4rem);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #f9fafb 100%);
}

.hero-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.54;
  pointer-events: none;
}

.hero-shell .site-container {
  position: relative;
  z-index: 1;
}

.hero-copy-panel {
  text-align: center;
}

.hero-copy-panel--pathtrove {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.hero-copy-panel--pathtrove::after {
  content: none;
}

.hero-copy-panel--pathbench {
  max-width: 90rem;
  margin-inline: auto;
}

.hero-visual-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.8rem, 6vw, 6.2rem);
  height: clamp(4.8rem, 6vw, 6.2rem);
  margin: 0 auto 1.55rem;
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
}

.hero-visual-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.hero-brand-mark {
  margin: 0 0 1.05rem;
  color: color-mix(in srgb, var(--ink) 82%, #6b7280 18%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy-panel--pathtrove .portal-title {
  margin: 0 auto 1.45rem;
  max-width: min(100%, 86rem);
  font-size: clamp(2rem, 2.75vw, 2.9rem);
  line-height: 1.16;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-copy-panel--pathtrove .portal-title.brand-latin {
  display: block;
  white-space: normal;
  padding-bottom: 0;
}

.hero-copy-panel--pathtrove .portal-subtitle {
  max-width: 76rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.25rem);
  font-weight: 300;
  line-height: 1.72;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  max-width: 70rem;
  margin: 3.25rem auto 0;
}

.hero-metric-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.05rem, 1.7vw, 1.45rem) 1rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(20px);
}

.hero-metric-card .metric-value {
  margin-bottom: 0.35rem;
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 600;
}

.hero-metric-card .metric-label {
  font-size: 0.92rem;
}

.hero-copy-panel .portal-links {
  justify-content: center;
}

.hero-kicker,
.section-kicker {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
}

.portal-title {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, calc(3vw - 2px), 2.4rem);
  line-height: 0.96;
}

.portal-subtitle {
  margin-bottom: 1rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-copy,
.section-copy {
  font-size: 1.02rem;
  line-height: 1.82;
}

html[lang="zh-CN"] .hero-kicker,
html[lang="zh-CN"] .section-kicker {
  letter-spacing: 0;
}

html[lang="zh-CN"] .portal-title {
  font-family: var(--font-zh-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[lang="zh-CN"] .hero-copy-panel--pathtrove .portal-title {
  max-width: min(100%, 72rem);
  font-size: clamp(2.15rem, 3.65vw, 3.65rem);
  line-height: 1.16;
}

html[lang="zh-CN"] .hero-copy-panel--pathtrove .portal-subtitle {
  font-weight: 500;
}

html[lang="zh-CN"] .hero-copy {
  font-size: 1rem;
  line-height: 1.72;
}

.portal-links {
  margin-top: 2.25rem;
  gap: 0.85rem;
}

.hero-links-secondary {
  margin-top: 1rem;
}

.hero-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 220ms ease, transform 220ms ease;
}

.hf-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.5rem;
  background: #ffffff;
  color: #0f1f33;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

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

.portal-button {
  min-height: 3.25rem;
  padding-inline: 1.55rem;
  border-radius: 999px;
  font-weight: 500;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    border-color 220ms ease;
}

.button.portal-button .icon {
  margin-right: 0.45rem;
}

.button.is-primary.portal-button {
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  color: var(--primary-ink);
  box-shadow: var(--primary-shadow);
}

.button.is-primary.portal-button:hover {
  background: var(--primary-hover-bg);
  border-color: var(--primary-hover-border);
  transform: translateY(-1px);
}

.button.is-light.portal-button,
.button.is-light.portal-button.is-static {
  background: var(--secondary-bg);
  border: 1px solid var(--secondary-border);
  color: var(--secondary-ink);
}

.button.is-light.portal-button:hover {
  background: var(--secondary-hover-bg);
  border-color: var(--secondary-border);
  transform: translateY(-1px);
}

.portal-button--secondary {
  box-shadow: none;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.portal-tag {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 1rem 1.15rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Search-style Ask page ── */
.ask-search-shell {
  min-height: 100dvh;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f9fafb 100%);
}

.ask-search-hero {
  padding: clamp(7rem, 11vw, 9rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.ask-search-panel {
  max-width: 92rem;
  margin-inline: auto;
  text-align: center;
}

.ask-search-title {
  max-width: min(100%, 86rem);
  margin: 0 auto 1rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.05vw, 3.05rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
}

.ask-search-copy {
  max-width: 72rem;
  margin: 0 auto 2.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.72;
}

.ask-search-form {
  margin: 0 auto;
}

.ask-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.35rem;
  padding: 0.55rem 0.65rem 0.55rem 1.35rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.ask-search-icon {
  color: #64748b;
  font-size: 1.05rem;
}

.ask-search-box .ask-input {
  height: 3rem;
  border: 0;
  box-shadow: none;
  color: #111827;
  font-size: 1.05rem;
}

.ask-search-box .ask-input:focus {
  box-shadow: none;
}

.ask-search-submit {
  min-width: 8.5rem;
}

.ask-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ask-example-chip {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.ask-example-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: var(--ink);
}

.ask-error {
  max-width: 48rem;
  margin: 0 auto 1rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
  text-align: left;
}

.demo-notice {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.85rem;
  max-width: 55rem;
  margin: 1.15rem auto 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 0.9rem;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
}

.demo-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.8rem;
  background: #e0f2fe;
  color: #075985;
}

.demo-notice-title {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.demo-notice-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.plugin-install-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  gap: 1rem;
  align-items: stretch;
  max-width: 62rem;
  margin: 1.25rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.045);
  text-align: left;
}

.plugin-install-copy {
  min-width: 0;
  padding: 0.3rem 0.15rem 0.25rem;
}

.plugin-install-kicker {
  margin: 0 0 0.45rem;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plugin-install-title {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
}

.plugin-install-text {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.plugin-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.plugin-install-code,
.local-plugin-code {
  overflow-x: auto;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.plugin-install-code code,
.local-plugin-code code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.ask-results-section {
  padding: 0 0 clamp(4rem, 7vw, 6rem);
}

.ask-results {
  max-width: 62rem;
  margin-inline: auto;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
}

.ask-results-meta {
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.ask-query-label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ask-query-text {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.ask-result-body {
  padding: 1.35rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
  text-align: left;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin-bottom: 0.85rem;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.35rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 1.1rem 0 0.55rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.markdown-body h1 { font-size: 1.45rem; }
.markdown-body h2 { font-size: 1.25rem; }
.markdown-body h3 { font-size: 1.08rem; }

.markdown-body code {
  padding: 0.12em 0.35em;
  border-radius: 0.35rem;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 0.92em;
}

.markdown-body a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.markdown-body hr {
  margin: 1.1rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.markdown-table-wrap {
  width: 100%;
  margin: 0.9rem 0 1.15rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.markdown-body table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.94rem;
  line-height: 1.55;
}

.markdown-body th,
.markdown-body td {
  padding: 0.68rem 0.78rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.markdown-body th:last-child,
.markdown-body td:last-child {
  border-right: 0;
}

.markdown-body tr:last-child td {
  border-bottom: 0;
}

.markdown-body th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.ask-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--muted);
}

.ask-loading::after {
  content: "";
  width: 0.48em;
  height: 0.48em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: chat-spin 0.65s linear infinite;
}

/* ── Chat shell ── */
.chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  padding-top: 4rem;
}

.chat-messages {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 1.5rem;
}
.chat-messages-inner {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── Onboarding ── */
.chat-onboarding {
  margin: auto;
  text-align: center;
  max-width: 38rem;
  padding: 0 0.5rem;
}
.chat-onboarding .section-kicker {
  margin-bottom: 0.5rem;
}
.chat-onboarding .section-title {
  margin-bottom: 0.75rem;
}
.chat-onboarding .section-copy {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.chat-examples {
  margin-top: 0.6rem;
}

/* ── Chat messages ── */
.chat-message {
  width: 100%;
  margin-bottom: 0.35rem;
  display: flex;
}
.chat-message--user {
  justify-content: flex-end;
}
.chat-message--assistant {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1.15rem;
  font-size: 0.96rem;
  line-height: 1.65;
}
.chat-message--user .chat-bubble {
  background: var(--primary-bg);
  color: var(--primary-ink);
  border-bottom-right-radius: 0.25rem;
}
.chat-message--assistant .chat-bubble {
  background: #f3f4f6;
  color: var(--ink);
  border-bottom-left-radius: 0.25rem;
}

[data-theme="dark"] .chat-message--assistant .chat-bubble {
  background: #374151;
}

.chat-bubble p { margin-bottom: 0; }
.chat-bubble ul,
.chat-bubble ol { padding-left: 1.5rem; margin-bottom: 0.5rem; }
.chat-bubble li { margin-bottom: 0.15rem; }
.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3 { margin: 0.75rem 0 0.35rem; font-weight: 700; }
.chat-bubble h1 { font-size: 1.2rem; }
.chat-bubble h2 { font-size: 1.1rem; }
.chat-bubble h3 { font-size: 1rem; }
.chat-bubble code {
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(0,0,0,0.07);
  font-size: 0.9em;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}
[data-theme="dark"] .chat-bubble code { background: rgba(255,255,255,0.1); }
.chat-bubble strong { font-weight: 700; color: inherit; }
.chat-bubble a { color: var(--primary-bg); text-decoration: underline; }
.chat-message--user .chat-bubble a { color: var(--primary-ink); }

.chat-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  opacity: 0.7;
}
.chat-loading::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: chat-spin 0.6s linear infinite;
}
@keyframes chat-spin { to { transform: rotate(360deg); } }

/* ── Input bar ── */
.chat-input-bar {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--bg);
}
.chat-input-bar-inner {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
}
.chat-error {
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.88rem;
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.chat-form .ask-input {
  flex: 1;
  min-height: 2.6rem;
  max-height: 10rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.15rem;
  background: #fff;
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.5;
  resize: none;
  box-shadow: none;
}
.chat-form .ask-input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 0.125em rgba(17, 24, 39, 0.12);
  outline: none;
}
.chat-form .button {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  padding: 0;
}
.chat-form .button:disabled {
  opacity: 0.5;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.usage-band {
  padding-top: clamp(5rem, 8vw, 7.2rem);
  padding-bottom: clamp(5rem, 8vw, 7.2rem);
  margin-top: 0;
  background: #f8fafc;
}

.features-band {
  padding-top: clamp(4.8rem, 7vw, 6.8rem);
  padding-bottom: clamp(4.8rem, 7vw, 6.8rem);
  margin-top: 0;
  background: #f9fafb;
}

.usage-band .section-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.features-band .section-panel {
  padding: 0;
  background: transparent;
}

.section-panel {
  padding: 3.5rem;
}

.section-heading {
  margin-bottom: clamp(2.1rem, 4vw, 3.1rem);
}

.section-heading-centered {
  text-align: center;
}

.section-title {
  line-height: 1.16;
  font-size: clamp(1.85rem, 2.45vw, 2.2rem);
  letter-spacing: 0;
}

.pathbench-style-band {
  padding: clamp(4.8rem, 7vw, 6.4rem) 0;
  background: #f9fafb;
}

.pathbench-style-band .site-container {
  width: min(100% - 2rem, 1040px);
}

.pathbench-style-band .section-heading {
  margin-bottom: clamp(2rem, 3.8vw, 2.9rem);
}

.pathbench-style-band .section-title {
  font-size: clamp(1.85rem, 2.45vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.35rem);
}

.value-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(1.35rem, 1.8vw, 1.75rem);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.035);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card:hover {
  box-shadow: var(--shadow-lift);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 1.05rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #f8fafc, #e5e7eb);
  color: #111827;
  font-size: 1.08rem;
}

.value-card h3 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.36;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.68;
}

.story-accordion-band {
  padding-top: 0.35rem;
  margin-top: 0;
}

.story-accordion {
  position: relative;
  overflow: hidden;
  padding: 0 4.05rem;
  min-height: 90vh;
}

.story-accordion .columns {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 575px);
  align-items: center;
  column-gap: 2rem;
  width: 100%;
  margin: 0 !important;
  padding-top: 3rem;
}

.story-accordion .column,
.story-accordion .columns > .column {
  padding: 0 !important;
  width: auto;
  flex: none;
  max-width: none;
}

.story-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 470px;
  width: 100%;
}

.story-item {
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
}

.story-item:last-child {
  border-bottom: 1px solid var(--line);
}

.story-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.story-button-text {
  display: block;
  color: #8a93a3;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.3;
  font-weight: 400;
  transition:
    color 220ms ease,
    font-size 220ms ease,
    font-weight 220ms ease;
}

html[data-theme="dark"] .story-button-text {
  color: #c4c7c5;
}

.story-body {
  max-width: none;
  padding: 0.8rem 0 0;
}

.story-body p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.story-item.is-active .story-button-text {
  color: var(--ink);
  font-size: clamp(1.9rem, 2.8vw, 2.35rem);
  color: var(--ink);
  font-weight: 700;
}

.story-stage-shell {
  position: relative;
  min-height: 100%;
}

.story-stage {
  position: relative;
  width: 100%;
  max-width: 575px;
  aspect-ratio: 575 / 410;
  height: auto;
  padding: 0;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
    var(--story-frame);
  box-shadow: var(--story-shadow);
}

.story-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.story-stage-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #04070c;
}

.story-stage-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #04070c;
  will-change: transform;
}

.story-stage-shell {
  display: flex;
  justify-content: flex-end;
  transform: translateY(5%);
}

.metrics-grid {
  margin-top: 0.75rem;
}

.metric-card,
.feature-card,
.usage-card,
.workflow-panel,
.cta-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: var(--radius-2xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.metric-card,
.feature-card,
.usage-card,
.workflow-panel {
  isolation: isolate;
}

.hover-lift {
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-shine::before,
.hover-lift::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: var(--sheen);
  transition: left 500ms ease;
  pointer-events: none;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card-shine:hover::before,
.hover-lift:hover::before {
  left: 100%;
}

.metric-card {
  padding: 1.5rem 1.35rem;
}

.metric-value {
  margin-bottom: 0.45rem;
  font-size: 3rem;
  line-height: 1;
}

.metric-label {
  font-size: 0.95rem;
}

.workflow-panel {
  padding: 1.7rem;
}

.workflow-heading {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.workflow-step {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.workflow-step:first-of-type {
  border-top: 0;
  padding-top: 0.2rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.step-title {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.step-copy {
  font-size: 0.96rem;
  line-height: 1.7;
}

.feature-grid {
  margin-top: 0.45rem;
}

.feature-card,
.usage-card {
  padding: 1.55rem;
}

.usage-showcase {
  display: grid;
  grid-template-columns: minmax(21rem, 0.82fr) minmax(0, 1.38fr);
  gap: clamp(2.25rem, 3.2vw, 3.5rem);
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
}

.usage-copy-column {
  min-width: 0;
}

.usage-video-panel {
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 38.5rem;
}

.usage-section-title {
  max-width: 29rem;
  margin: 0 0 0.9rem;
  font-size: clamp(1.66rem, 1.9vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  text-align: left;
}

.usage-section-copy {
  max-width: 30rem;
  margin: 0 0 1.65rem;
  color: var(--muted);
  font-size: clamp(0.96rem, 0.98vw, 1rem);
  line-height: 1.68;
}

.usage-steps {
  display: grid;
  gap: 0;
}

.usage-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.95rem;
  width: 100%;
  padding: 0.92rem 1rem 0.92rem 0.9rem;
  border: 0;
  border-left: 3px solid transparent;
  border-top: 1px solid rgba(203, 213, 225, 0.68);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.usage-step:first-child {
  border-top: 0;
}

.usage-step.is-active {
  border-left-color: #0f1f33;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.usage-step:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.usage-step:focus-visible {
  outline: 2px solid rgba(15, 31, 51, 0.28);
  outline-offset: 0.35rem;
  border-radius: 0.85rem;
}

.usage-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: #eef2f7;
  color: currentColor;
  font-size: 0.88rem;
  font-weight: 700;
}

.usage-step.is-active .usage-step-index {
  background: #0f1f33;
  color: #ffffff;
}

.usage-step .usage-title {
  margin: 0 0 0.55rem;
  color: currentColor;
  font-size: 0.96rem;
  line-height: 1.35;
}

.usage-step .usage-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
}

.usage-video-panel {
  padding: clamp(0.85rem, 1.3vw, 1.2rem);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.065);
}

.usage-video-frame {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.66);
  border-radius: 0.95rem;
  background: #f8fafc;
}

.usage-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f8fafc;
  pointer-events: none;
  user-select: none;
}

.local-plugin-band {
  padding-top: 4.4rem;
  padding-bottom: 4.4rem;
  background: #f8fafc;
}

.local-plugin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
  max-width: 68rem;
  margin-inline: auto;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 20px 58px rgba(15, 23, 42, 0.055);
}

.local-plugin-copy {
  min-width: 0;
}

.local-plugin-copy .section-title {
  max-width: 34rem;
  margin-bottom: 0.85rem;
}

.local-plugin-copy .section-copy {
  max-width: 42rem;
  margin-bottom: 1.15rem;
}

.plugin-points {
  display: grid;
  gap: 0.62rem;
  margin: 0 0 1.25rem;
}

.plugin-points p {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.plugin-points .icon {
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.05rem;
  border-radius: 0.55rem;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.78rem;
}

.local-plugin-actions {
  margin-top: 1.1rem;
}

.usage-card {
  overflow: hidden;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    filter 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.usage-card.hover-lift::before {
  content: none;
}

.usage-grid:hover .usage-card,
.usage-grid:focus-within .usage-card {
  opacity: 1;
  filter: none;
}

.feature-icon,
.usage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.15rem;
  border-radius: 1.15rem;
  background: var(--icon-bg);
  color: var(--icon-ink);
  font-size: 1.1rem;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-icon,
.usage-card:hover .usage-icon {
  transform: scale(1.04);
}

.feature-card .title,
.usage-title {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.feature-card p,
.usage-copy {
  font-size: 0.98rem;
  line-height: 1.74;
}

.usage-card:focus {
  outline: none;
}

.usage-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.18),
    var(--shadow-lift);
}

.cta-panel {
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.portal-footer {
  padding-top: 2.75rem;
  padding-bottom: 3rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  text-align: center;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.footer-brand {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-copy {
  max-width: 42rem;
  margin: 0 auto 1.35rem;
  font-size: 0.96rem;
  line-height: 1.72;
}

.footer-meta {
  display: inline-grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.footer-meta p {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-showcase {
    grid-template-columns: 1fr;
    max-width: 44rem;
  }

  .story-accordion {
    padding: 2rem 2rem;
    min-height: auto;
  }

  .story-accordion .columns {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 575px);
    column-gap: 1.5rem;
  }
}

@media (max-width: 800px) {
  .story-accordion .columns {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .story-list {
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
  }

  .story-stage-shell {
    transform: none;
  }

  .story-stage {
    width: 100%;
    max-width: none;
    height: auto;
  }

  .story-stage-viewport {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 1023px) {
  .hero-panel {
    padding: 1rem 0;
  }

  .section-panel {
    padding: 2.5rem;
  }

  .portal-title {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
  }

  .hero-copy-panel--pathtrove .portal-title {
    font-size: clamp(2rem, 5.4vw, 3.05rem);
    line-height: 1.17;
  }

  .hero-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 44rem;
  }

}

@media (max-width: 768px) {
  .utility-shell {
    top: 0.9rem;
    right: 0.9rem;
  }

  .utility-stack {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero-body {
    padding-top: 5.5rem;
  }

  .portal-hero .hero-body {
    padding-top: 5rem;
  }

  .hero-figure {
    border-radius: 1.75rem;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .site-container {
    width: min(100% - 1.5rem, 1600px);
  }

  .metrics-band {
    padding-bottom: 0.175rem;
  }

  .usage-band {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .features-band {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .usage-showcase {
    gap: 2rem;
  }

  .usage-step {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.88rem 0;
  }

  .usage-step .usage-title {
    font-size: 0.94rem;
    margin-bottom: 0.42rem;
  }

  .usage-step .usage-copy {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .usage-section-title {
    font-size: clamp(1.58rem, 6.4vw, 1.72rem);
  }

  .usage-step-index {
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
  }

  .usage-video-panel {
    padding: 0.85rem;
    border-radius: 1.25rem;
  }

  .usage-video-frame {
    border-radius: 0.95rem;
  }

  .usage-band .section-panel {
    padding: 0;
  }

  .features-band .section-panel {
    padding: 0;
  }

  .metrics-band .section-panel {
    padding-bottom: 0.8rem;
  }

  .section-panel,
  .metrics-band .section-panel {
    padding: 1.6rem;
    border-radius: var(--radius-xl);
  }

  .portal-title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .hero-shell {
    min-height: auto;
    padding-top: 5.8rem;
    padding-bottom: 3.5rem;
  }

  .portal-subtitle {
    font-size: 1.08rem;
  }

  .hero-copy-panel--pathtrove {
    padding: 0;
  }

  .hero-copy-panel--pathtrove .portal-title,
  html[lang="zh-CN"] .hero-copy-panel--pathtrove .portal-title {
    max-width: min(100%, 46rem);
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.18;
  }

  .hero-brand-mark {
    margin-bottom: 0.95rem;
    letter-spacing: 0.12em;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2.5rem;
  }

  .pathbench-style-band {
    padding: 4rem 0;
  }

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

  .portal-links {
    display: grid;
  }

  .portal-links .button {
    justify-content: center;
  }

  .ask-search-hero {
    padding-top: 6rem;
  }

  .ask-search-box {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 1.4rem;
    padding: 0.75rem;
  }

  .ask-search-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .demo-notice {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.9rem;
  }

  .plugin-install-panel,
  .local-plugin-panel {
    grid-template-columns: 1fr;
    padding: 0.95rem;
    border-radius: 1rem;
  }

  .plugin-install-code,
  .local-plugin-code {
    font-size: 0.78rem;
    line-height: 1.58;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .local-plugin-band {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero-note {
    gap: 0.5rem;
  }

  .chat-shell {
    padding-top: 3.5rem;
  }
  .chat-messages {
    padding: 0.75rem 0.75rem 1.25rem;
  }
  .chat-input-bar {
    padding: 0.5rem 0.75rem 1rem;
  }
  .chat-bubble {
    max-width: 92%;
  }

  .story-accordion {
    padding: 1.35rem;
  }

  .story-button-text {
    font-size: 1rem;
  }

  .story-item.is-active .story-button-text {
    font-size: 1.5rem;
  }

  .story-body {
    max-width: none;
  }

  .story-stage {
    width: 100%;
    max-width: none;
    height: auto;
  }

  .story-stage-viewport {
    width: 100%;
    height: 100%;
  }

  .metric-value {
    font-size: 2.5rem;
  }

  .hero-metric-card .metric-value {
    font-size: 2rem;
  }

  .feature-card,
  .usage-card,
  .workflow-panel {
    border-radius: 1.5rem;
  }

  .cta-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 1.6rem;
  }

  .story-stage-shell {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
}
