/* ================================================================
   AgentVis 官网 — Design System
   风格: Midnight Editorial × Architectural Blueprint
   色系: 沿用 Hackathon Deck (深夜蓝底 + 青蓝/暖金双色调)
   ================================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #070a10;
  --bg-2: #0c1118;
  --panel: rgba(12, 18, 28, 0.72);
  --panel-strong: rgba(10, 16, 24, 0.9);
  --line: rgba(209, 228, 255, 0.14);
  --line-strong: rgba(209, 228, 255, 0.28);
  --text: #f4efe7;
  --muted: #a6b0bf;
  --soft: #d7deea;
  --cyan: #8fd3e8;
  --cyan-2: #6cb7d1;
  --gold: #ccb07b;
  --rose: #d69a8c;
  --green: #9dd4bc;
  --danger: #ff8b80;
  --bg-light: #f0ede6;
  --text-on-light: #1a1e2a;
  --muted-on-light: #5a6070;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 8px;
  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 1240px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: .01em;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity .2s;
}

a:hover {
  opacity: .78;
}

/* --- Typography Scale --- */
h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(42px, 6.2vw, 82px);
}

h2 {
  font-size: clamp(32px, 4.4vw, 56px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.62;
  color: var(--soft);
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.accent {
  color: var(--cyan);
}

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

/* --- Layout Utilities --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--nav-height);
}

.section--dark {
  background: var(--bg);
  color: var(--text);
}

.section--darker {
  background: var(--bg-2);
  color: var(--text);
}

.section--light {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.section--light .eyebrow {
  color: var(--muted-on-light);
}

.section--light .eyebrow::before {
  background: linear-gradient(90deg, var(--cyan-2), transparent);
}

.section--light .lead {
  color: var(--muted-on-light);
}

.section--light h2 {
  color: var(--text-on-light);
}

.section--light h3 {
  color: var(--text-on-light);
}

.section--light .muted {
  color: var(--muted-on-light);
}

.two-col {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse>* {
  direction: ltr;
}

/* --- Atmospheric Background Layers --- */
.atmo-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: radial-gradient(rgba(255, 255, 255, .25) .6px, transparent .7px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
}

.atmo-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 88%);
}

.atmo-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(143, 211, 232, .10), transparent 20%),
    radial-gradient(circle at 76% 24%, rgba(204, 176, 123, .08), transparent 22%),
    radial-gradient(circle at 52% 72%, rgba(255, 255, 255, .03), transparent 30%);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 10, 16, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: .02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
  letter-spacing: .02em;
}

.nav__links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav__links a.is-active {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0e15;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .02em;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(143, 211, 232, .25);
  opacity: 1;
}

/* 移动端菜单按钮 */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: .06em;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(143, 211, 232, .3);
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  letter-spacing: .02em;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(143, 211, 232, .06);
  opacity: 1;
}

/* 数字指标徽章 */
.hero__metrics {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  color: var(--soft);
  font-weight: 500;
}

.metric-tag svg {
  width: 14px;
  height: 14px;
  stroke: var(--cyan);
}

/* --- Harness Engineering --- */
.harness {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.harness .container {
  position: relative;
  z-index: 1;
}

.harness__intro {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}

.harness__intro .eyebrow {
  justify-content: center;
}

.harness__intro h2 {
  margin-bottom: 18px;
}

.harness__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.harness__video-wrap {
  width: min(100%, 1180px);
  display: flex;
  flex-direction: column;
}

.harness__video-shell {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 34px);
  background: #05070b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.harness__video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.harness__video-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
  transition: opacity .2s;
}

.harness__video-shell.is-playing::after {
  opacity: 0;
}

.harness__play {
  position: absolute;
  left: clamp(72px, 16%, 180px);
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: #11151d;
  background: rgba(244, 239, 231, .94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s, background .2s, opacity .2s;
}

.harness__play:hover {
  background: #fffaf0;
  opacity: 1;
  transform: translateY(calc(-50% - 2px));
}

.harness__play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.harness__video-shell.is-playing .harness__play {
  opacity: 0;
  pointer-events: none;
}

/* --- Product Showcase --- */
.showcase__single {
  max-width: 88%;
  margin: 48px auto 0;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

/* 通用截图样式 — 小圆角，无模拟标题栏 */
.screenshot {
  width: 100%;
  display: block;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s;
}

.screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
}

/* --- Feature Grid --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 29, .72), rgba(9, 13, 20, .92));
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background .3s;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(143, 211, 232, .3);
  box-shadow: 0 0 40px rgba(143, 211, 232, .08);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  background: linear-gradient(135deg, rgba(143, 211, 232, .3), rgba(204, 176, 123, .2));
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--cyan);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- Deep Dive Sections (交替布局) --- */
.deep__visual {
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section--light .deep__visual {
  border-color: rgba(0, 0, 0, .1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.deep__visual img {
  width: 100%;
  display: block;
}

.deep__text h2 {
  margin-bottom: 20px;
}

.deep__text .lead {
  margin-bottom: 28px;
}

#visual .two-col {
  --visual-divider-gap: clamp(28px, 4vw, 56px);
  position: relative;
  gap: var(--visual-divider-gap);
}

#visual .two-col::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc((100% - var(--visual-divider-gap)) * 0.4545 + var(--visual-divider-gap) / 2);
  width: 1px;
  height: min(70vh, 860px);
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(26, 30, 42, .13) 14%,
    rgba(26, 30, 42, .18) 50%,
    rgba(26, 30, 42, .13) 86%,
    transparent
  );
  pointer-events: none;
}

/* --- 可视化增强轮播 --- */
/* 透明变体：去掉卡片外壳，让截图融入背景 */
.deep__visual--transparent {
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.section--light .deep__visual--transparent {
  border: none;
  background: transparent;
  box-shadow: none;
}

/* 轮播外层容器 — 不设 overflow，让 dots 自然可见 */
.widget-carousel {
  position: relative;
}

/* viewport 层 — 仅此层处理溢出裁切，固定高度防止 slide 切换时跳动 */
.widget-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  height: 560px;
}

.widget-carousel__track {
  display: flex;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  height: 100%;
  width: 100%;
}

.widget-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--light .widget-carousel__viewport,
.section--light .widget-carousel__track,
.section--light .widget-carousel__slide {
  background: transparent;
}

/* 以高度为约束轴，宽度按原图比例自适应缩放 */
.widget-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

/* 左右箭头 — 悬浮在 viewport 两侧 */
.widget-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 10, 16, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  padding: 0;
}

.widget-carousel__arrow svg {
  width: 18px;
  height: 18px;
}

.widget-carousel__arrow:hover {
  background: rgba(143, 211, 232, .12);
  border-color: var(--cyan);
  transform: translateY(-50%) scale(1.08);
}

.widget-carousel__arrow--prev {
  left: 12px;
}

.widget-carousel__arrow--next {
  right: 12px;
}

/* 轮播底部指示器 — 在 viewport 外部 */
.widget-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.widget-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s;
  padding: 0;
}

.widget-carousel__dot:hover {
  border-color: var(--cyan);
  transform: scale(1.2);
}

.widget-carousel__dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(143, 211, 232, .4);
}

.section--light .widget-carousel__dot {
  border-color: rgba(26, 30, 42, .28);
  background: rgba(26, 30, 42, .05);
}

.section--light .widget-carousel__dot:hover {
  border-color: var(--cyan-2);
  background: rgba(108, 183, 209, .18);
}

.section--light .widget-carousel__dot.active {
  background: var(--cyan-2);
  border-color: var(--cyan-2);
  box-shadow: 0 0 10px rgba(108, 183, 209, .36);
}

/* 特性标签 */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--soft);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .03);
}

.section--light .tag {
  border-color: rgba(0, 0, 0, .12);
  color: var(--muted-on-light);
  background: rgba(0, 0, 0, .04);
}

/* ═══════════════ Hub + Agent 协作模块 ═══════════════ */

/* 居中标题区 */
.hub-hero__intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hub-hero__intro .lead {
  margin-top: 16px;
}

/* 双截图展示区 — 并排展示 Hub 讨论区与 Agent 独立窗口 */
.hub-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.hub-showcase__item {
  position: relative;
}

.hub-showcase__frame {
  overflow: hidden;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s;
}

.hub-showcase__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .18);
}

/* 窗口模拟标题栏 */
.hub-showcase__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, .25);
}

.hub-showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hub-showcase__dot--r { background: #ff5f57; }
.hub-showcase__dot--y { background: #febc2e; }
.hub-showcase__dot--g { background: #28c840; }

.hub-showcase__frame img {
  width: 100%;
  display: block;
}

/* 截图底部标注标签 */
.hub-showcase__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted-on-light);
}

.hub-showcase__label svg {
  width: 14px;
  height: 14px;
  color: var(--cyan-2);
}

/* 核心能力卡片 — 2×2 网格，居中收窄 */
.hub-features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hub-feature-card {
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid rgba(0, 0, 0, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(247, 244, 238, .94));
  border-radius: var(--radius-sm);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.hub-feature-card:hover {
  border-color: rgba(108, 183, 209, .35);
  box-shadow: 0 8px 32px rgba(108, 183, 209, .10);
  transform: translateY(-2px);
}

.hub-feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--cyan-2);
}

.hub-feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.hub-feature-card h3 {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.8vw, 22px);
}

.hub-feature-card p {
  font-size: 14px;
  color: var(--muted-on-light);
  line-height: 1.7;
}

/* 使用场景卡片 — 3 列，复用 defense-layer 视觉语言 */
.hub-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hub-scenario {
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .6);
  border-radius: var(--radius-xs);
  position: relative;
  transition: border-color .3s, background .3s;
}

.hub-scenario:hover {
  border-color: rgba(108, 183, 209, .3);
  background: rgba(255, 255, 255, .8);
}

.hub-scenario__step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cyan-2);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hub-scenario h3 {
  font-size: clamp(16px, 1.5vw, 19px);
  display: block;
  margin-bottom: 6px;
  color: var(--text-on-light);
}

.hub-scenario p {
  font-size: 13px;
  color: var(--muted-on-light);
  line-height: 1.55;
}

.hub-scenario__flow {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: rgba(108, 183, 209, .06);
  border: 1px solid rgba(108, 183, 209, .12);
  font-size: 12px;
  color: var(--muted-on-light);
  line-height: 1.6;
  font-family: 'IBM Plex Mono', monospace;
}

.defense-layer {
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-xs);
  position: relative;
  transition: border-color .3s, background .3s;
}

.section--light .defense-layer {
  border-color: rgba(0, 0, 0, .1);
  background: rgba(255, 255, 255, .6);
}

.defense-layer__step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section--light .defense-layer__step {
  color: var(--cyan-2);
}

.defense-layer strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.section--light .defense-layer strong {
  color: var(--text-on-light);
}

.defense-layer p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.section--light .defense-layer p {
  color: var(--muted-on-light);
}

/* 防御层之间的连接线 */
.defense-layer+.defense-layer::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: .35;
}

.section--light .defense-layer+.defense-layer::before {
  background: linear-gradient(90deg, var(--cyan-2), transparent);
  opacity: .5;
}

/* 五层防御横排网格 */
.defense-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

/* 横排模式下去掉纵向连接线 */
.defense-grid .defense-layer+.defense-layer::before {
  display: none;
}

/* --- 竞品安全对比 --- */
.threat-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.threat-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(14, 20, 29, .92), rgba(9, 13, 20, .96));
  overflow: hidden;
}

.threat-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
}

.threat-group__header svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--cyan-2);
}

.threat-group__header span {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.threat-group__header small {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
}

.threat-cards {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.threat-card {
  padding: 20px 24px;
  background: rgba(12, 17, 24, .85);
  transition: background .2s;
}

.threat-card:hover {
  background: rgba(18, 24, 34, .95);
}

.threat-card__vuln {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.threat-card__vuln strong {
  font-size: 15px;
  color: var(--text);
}

/* 威胁等级徽章 */
.threat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.threat-badge--critical {
  background: rgba(204, 176, 123, .15);
  color: var(--gold);
  border: 1px solid rgba(204, 176, 123, .3);
}

.threat-badge--high {
  background: rgba(204, 176, 123, .10);
  color: var(--gold);
  border: 1px solid rgba(204, 176, 123, .22);
}

/* 竞品风险描述 */
.threat-card__risk {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  padding-left: 2px;
}

/* AgentVis 防御方案 */
.threat-card__solution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(143, 211, 232, .06);
  border: 1px solid rgba(143, 211, 232, .12);
  border-radius: var(--radius-xs);
}

.threat-card__solution svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}

.threat-card__solution span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
}

.threat-card__solution code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
  color: var(--cyan);
}

/* --- 沙箱运行模式 --- */
.sandbox {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 211, 232, .10), transparent 30%),
    radial-gradient(circle at 82% 38%, rgba(204, 176, 123, .08), transparent 34%),
    var(--bg-2);
}

.sandbox .container {
  position: relative;
  z-index: 1;
}

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

.sandbox__header h2 {
  margin-bottom: 18px;
}

.sandbox__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-top: 52px;
}

.sandbox__signals {
  display: grid;
  gap: 14px;
}

.sandbox-signal {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .035);
}

.sandbox-signal span {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(143, 211, 232, .28);
  border-radius: var(--radius-xs);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: rgba(143, 211, 232, .06);
}

.sandbox-signal strong {
  color: var(--text);
  font-size: 16px;
}

.sandbox-signal p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.sandbox__pipeline {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(143, 211, 232, .18);
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, rgba(12, 18, 28, .72), rgba(7, 10, 16, .88));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.sandbox__pipeline-title {
  margin-bottom: 20px;
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sandbox__pipe {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr) auto minmax(88px, 1fr) auto minmax(88px, 1fr);
  gap: 12px;
  align-items: center;
}

.sandbox__node {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
  font-size: 14px;
  text-align: center;
}

.sandbox__arrow {
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  text-align: center;
}

.sandbox__note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(204, 176, 123, .20);
  border-radius: var(--radius-xs);
  background: rgba(204, 176, 123, .07);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

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

.sandbox-mode {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .035);
  transition: border-color .3s, background .3s, transform .3s;
}

.sandbox-mode:hover {
  border-color: rgba(143, 211, 232, .28);
  background: rgba(255, 255, 255, .055);
  transform: translateY(-2px);
}

.sandbox-mode__code {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(143, 211, 232, .20);
  border-radius: 4px;
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  background: rgba(143, 211, 232, .06);
}

.sandbox-mode h3 {
  margin-bottom: 10px;
}

.sandbox-mode p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.sandbox-mode .tag-row {
  margin-top: 20px;
}

/* --- 双栏特性 --- */
.dual-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.dual-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 29, .68), rgba(9, 13, 20, .9));
  border-radius: var(--radius-sm);
}

.section--light .dual-card {
  border-color: rgba(0, 0, 0, .1);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(8px);
}

.dual-card h3 {
  margin-bottom: 16px;
}

.dual-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.dual-card li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.dual-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.section--light .dual-card li {
  color: var(--muted-on-light);
}

/* --- 使用指南入口 --- */
.guides-preview__header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.guides-preview__header .eyebrow {
  justify-content: center;
}

.guides-preview__header .lead {
  margin-top: 18px;
}

.guides-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.guide-preview-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-xs);
  color: var(--text-on-light);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 24px 70px rgba(12, 18, 28, .08);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.guide-preview-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(108, 183, 209, .42);
  box-shadow: 0 30px 90px rgba(12, 18, 28, .12);
}

.guide-preview-card__meta {
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 10px;
  border: 1px solid rgba(108, 183, 209, .28);
  border-radius: var(--radius-xs);
  color: var(--cyan-2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-preview-card h3 {
  margin-bottom: 14px;
  color: var(--text-on-light);
}

.guide-preview-card p {
  color: var(--muted-on-light);
  line-height: 1.72;
}

.guide-preview-card span {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  color: var(--cyan-2);
  font-weight: 700;
}

/* --- 指南文档页 --- */
.docs-page {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.docs-hero {
  min-height: 54vh;
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 72px;
}

.docs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.docs-breadcrumb a {
  color: var(--soft);
}

.docs-hero h1 {
  max-width: 780px;
  letter-spacing: 0;
}

.docs-hero .lead {
  max-width: 740px;
  margin-top: 24px;
}

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

.docs-section {
  overflow: hidden;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.docs-layout>* {
  min-width: 0;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .68);
}

.docs-sidebar__title {
  margin-bottom: 12px;
  color: var(--text-on-light);
  font-size: 13px;
  font-weight: 800;
}

.docs-sidebar a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  color: var(--muted-on-light);
  font-size: 14px;
  line-height: 1.45;
}

.docs-sidebar a:hover {
  color: var(--cyan-2);
  opacity: 1;
}

.doc-article {
  min-width: 0;
  max-width: 100%;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 28px 90px rgba(12, 18, 28, .08);
}

.doc-article>*+* {
  margin-top: 18px;
}

.doc-article h2,
.doc-article h3 {
  color: var(--text-on-light);
  letter-spacing: 0;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.doc-article h2 {
  margin-top: 46px;
  padding-top: 8px;
  font-size: clamp(28px, 3vw, 40px);
}

.doc-article h3 {
  margin-top: 32px;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

.doc-article p,
.doc-article li {
  color: var(--muted-on-light);
  font-size: 16px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.doc-article ul,
.doc-article ol {
  padding-left: 1.35rem;
}

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

.doc-article blockquote,
.doc-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan-2);
  border-radius: var(--radius-xs);
  color: var(--muted-on-light);
  background: rgba(108, 183, 209, .09);
}

.doc-figure {
  margin-top: 24px;
}

.doc-figure img {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--radius-xs);
  background: #111;
  box-shadow: 0 24px 70px rgba(12, 18, 28, .12);
}

.doc-figure figcaption {
  margin-top: 10px;
  color: var(--muted-on-light);
  font-size: 14px;
  line-height: 1.6;
}

.doc-article code {
  padding: 2px 6px;
  border-radius: 6px;
  color: #174457;
  background: rgba(108, 183, 209, .15);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .92em;
}

.doc-article pre {
  max-width: 100%;
  overflow: auto;
  padding: 18px;
  border-radius: var(--radius-xs);
  color: var(--text);
  background: #0d131d;
}

.doc-article pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.doc-article table {
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-xs);
  font-size: 15px;
}

.doc-article th,
.doc-article td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  text-align: left;
  vertical-align: top;
}

.doc-article th {
  color: var(--text-on-light);
  background: rgba(108, 183, 209, .12);
}

.doc-article td {
  color: var(--muted-on-light);
}

.doc-article tr:last-child td {
  border-bottom: 0;
}

.docs-index {
  padding-top: calc(var(--nav-height) + 76px);
}

.docs-index__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.docs-index-card {
  display: grid;
  min-height: 320px;
  align-content: space-between;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--text);
  background: linear-gradient(180deg, rgba(14, 20, 29, .74), rgba(9, 13, 20, .92));
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}

.docs-index-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(143, 211, 232, .38);
}

.docs-index-card__meta {
  width: fit-content;
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 1px solid rgba(143, 211, 232, .24);
  border-radius: var(--radius-xs);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.docs-index-card h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.docs-index-card p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.docs-index-card span {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  color: var(--cyan);
  font-weight: 800;
}

/* --- 上下文管理横幅 --- */
.context-banner {
  margin-top: 20px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 29, .68), rgba(9, 13, 20, .9));
  border-radius: var(--radius-sm);
}

.context-banner__header {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.context-banner__intro {
  flex: 1;
}

.context-banner__intro h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 26px);
}

.context-banner__intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 右侧关键指标 */
.context-banner__metrics {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.context-banner__metric {
  text-align: center;
  min-width: 80px;
}

.context-banner__metric-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.context-banner__metric-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
  letter-spacing: .04em;
}

/* 四个机制卡片 2×2 网格 */
.context-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.context-banner__item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-xs);
  transition: border-color .3s, background .3s;
}

.context-banner__item:hover {
  border-color: rgba(143, 211, 232, .25);
  background: rgba(255, 255, 255, .05);
}

.context-banner__item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.context-banner__item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════ HITL 步间介入 ═══════════════ */

/* 左右分栏布局 */
.hitl__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* 左侧视频容器 — 复用 harness 的播放交互模式 */
.hitl__video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #05070b;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .35);
}

.hitl__video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* 视频底部渐变遮罩 — 播放后淡出 */
.hitl__video-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
  transition: opacity .2s;
}

.hitl__video-shell.is-playing::after {
  opacity: 0;
}

/* Watch demo 按钮 — 复用 harness__play 的视觉语言 */
.hitl__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #11151d;
  background: rgba(244, 239, 231, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .2s, background .2s, opacity .2s;
}

.hitl__play:hover {
  background: #fffaf0;
  transform: translate(-50%, calc(-50% - 2px));
}

.hitl__play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hitl__video-shell.is-playing .hitl__play {
  opacity: 0;
  pointer-events: none;
}

/* 居中标题区 — 独立于 layout grid 之上 */
.hitl__intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.hitl__intro .eyebrow {
  justify-content: center;
}

.hitl__intro h2 {
  margin-bottom: 16px;
}

.hitl__intro .lead {
  margin-top: 0;
}

.hitl__intro .lead strong {
  color: var(--text);
}
.hitl__features {
  display: grid;
  gap: 12px;
}

.hitl__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-xs);
  transition: border-color .3s, background .3s;
}

.hitl__feature:hover {
  border-color: rgba(143, 211, 232, .25);
  background: rgba(255, 255, 255, .05);
}

.hitl__feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 2px;
}

.hitl__feature-icon svg {
  width: 100%;
  height: 100%;
}

.hitl__feature strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.hitl__feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
}


/* ═══════════════ Remote & Automation ═══════════════ */

/* 居中标题区 */
.automation__intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.automation__intro .eyebrow {
  justify-content: center;
}

.automation__intro h2 {
  margin-bottom: 16px;
}

.automation__intro .lead {
  margin-top: 0;
}

/* 居中视频容器 */
.automation__video-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.automation__video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #05070b;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .35);
}

.automation__video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* 视频底部渐变遮罩 — 播放后淡出 */
.automation__video-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
  transition: opacity .2s;
}

.automation__video-shell.is-playing::after {
  opacity: 0;
}

/* Watch demo 按钮 — 复用 hitl__play 视觉语言 */
.automation__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #11151d;
  background: rgba(244, 239, 231, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .2s, background .2s, opacity .2s;
}

.automation__play:hover {
  background: #fffaf0;
  transform: translate(-50%, calc(-50% - 2px));
}

.automation__play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.automation__video-shell.is-playing .automation__play {
  opacity: 0;
  pointer-events: none;
}

/* --- FAQ Accordion --- */
.faq__list {
  max-width: 760px;
  margin: 48px auto 0;
  display: grid;
  gap: 8px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  transition: border-color .3s;
}

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

.faq__question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .3s;
  color: var(--muted);
}

.faq__item.open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22, 1, .36, 1), padding .3s;
}

.faq__item.open .faq__answer {
  max-height: 400px;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Final CTA --- */
.cta-final {
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
  scroll-margin-top: var(--nav-height);
  background:
    radial-gradient(circle at 50% 40%, rgba(143, 211, 232, .08), transparent 50%),
    var(--bg);
}

.cta-final h2 {
  margin-bottom: 16px;
}

.cta-final .lead {
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  opacity: .6;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: .1s;
}

.reveal.delay-2 {
  transition-delay: .2s;
}

.reveal.delay-3 {
  transition-delay: .3s;
}

.reveal.delay-4 {
  transition-delay: .4s;
}

.reveal.delay-5 {
  transition-delay: .5s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col--reverse {
    direction: ltr;
  }

  #visual .two-col::after {
    display: none;
  }

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

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .dual-feature {
    grid-template-columns: 1fr;
  }

  .context-banner__header {
    flex-direction: column;
  }

  .context-banner__grid {
    grid-template-columns: 1fr;
  }

  .hitl__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .sandbox__layout,
  .sandbox__modes {
    grid-template-columns: 1fr;
  }

  .hub-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hub-features__grid {
    grid-template-columns: 1fr;
  }

  .hub-scenarios {
    grid-template-columns: 1fr;
  }

  .guides-preview__grid,
  .docs-index__grid {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 10, 16, .96);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }

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

  .harness {
    min-height: auto;
  }

  .harness__intro {
    margin-bottom: 28px;
  }

  .harness__play {
    left: 50%;
    top: auto;
    bottom: 18px;
    min-height: 48px;
    padding: 0 20px;
    transform: translateX(-50%);
  }

  .harness__play:hover {
    transform: translateX(-50%) translateY(-2px);
  }

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

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

  .sandbox__arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .hero__metrics {
    flex-direction: column;
    align-items: center;
  }

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

  .hero h1 {
    font-size: 36px;
  }

  .hub-showcase {
    gap: 16px;
  }

  .hub-feature-card {
    padding: 18px;
  }

  .context-banner__metrics {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .docs-hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 44px);
    padding-bottom: 48px;
  }

  .docs-hero h1 {
    max-width: 100%;
  }

  .docs-hero .lead {
    max-width: 100%;
  }

  .docs-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .docs-hero__actions .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }

  .doc-article {
    padding: 24px 20px;
  }

  .doc-article pre {
    padding: 14px;
  }

  .doc-article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.55;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
  }

  .doc-article th,
  .doc-article td {
    min-width: 120px;
    max-width: 280px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .doc-article th code,
  .doc-article td code {
    white-space: nowrap;
    word-break: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

  .guide-preview-card,
  .docs-index-card {
    min-height: auto;
  }

  .docs-hero__actions {
    grid-template-columns: 1fr;
  }

  .docs-sidebar,
  .doc-article {
    border-radius: 8px;
  }

  .doc-article th,
  .doc-article td {
    min-width: 108px;
    max-width: 236px;
    padding: 9px 10px;
    font-size: 12px;
  }
}

/* --- Download Toast 通知 --- */
.download-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.download-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 下载中状态 — 按钮半透明 + 禁用交互 */
.btn-primary.is-downloading {
  opacity: 0.6;
  pointer-events: none;
}
