/* ============================================================
   知绘IE 官网 — 视觉系统
   Ink / Engineering Blue / Blueprint grid / Measurement ticks
   ============================================================ */

:root {
  --ink-950: #060f1c;
  --ink-900: #081524;
  --ink-850: #0a1a2d;
  --ink-800: #0d2036;
  --ink-700: #16324f;
  --ink-600: #3f566f;
  --ink-500: #5d748f;
  --ink-400: #8095ad;
  --ink-300: #a9bdd8;
  --line: #dbe4f0;
  --line-strong: #c4d2e5;
  --line-dark: rgba(255, 255, 255, 0.1);
  --bg: #f4f7fb;
  --bg-soft: #edf3fa;
  --white: #ffffff;
  --blue-700: #1749d6;
  --blue-600: #1e5bff;
  --blue-500: #3d75ff;
  --blue-300: #8fb3ff;
  --blue-100: #e7efff;
  --cyan: #22c1e0;
  --teal: #0e9f8a;
  --amber: #f5a524;
  --coral: #ef6a5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(9, 25, 48, 0.05);
  --shadow-md: 0 18px 50px rgba(9, 25, 48, 0.1);
  --shadow-lg: 0 30px 90px rgba(4, 15, 31, 0.35);
  --max: 1200px;
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--blue-700); background: var(--blue-100); padding: 2px 6px; border-radius: 5px; }

::selection { background: var(--blue-600); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 24px; z-index: 999;
  padding: 12px 20px; background: var(--blue-600); color: #fff;
  border-radius: 0 0 8px 8px; font-size: 14px;
}
.skip-link:focus { top: 0; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 0;
}
.icon--lg { width: 34px; height: 34px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn--small { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #2e7bff 60%, var(--cyan));
  box-shadow: 0 10px 28px rgba(30, 91, 255, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(30, 91, 255, 0.36); }
.btn--ghost {
  color: var(--ink-700);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { border-color: var(--blue-300); color: var(--blue-700); transform: translateY(-2px); }
.section--dark .btn--ghost,
.hero .btn--ghost,
.cta .btn--ghost {
  color: #eaf1ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta .btn--ghost:hover { border-color: var(--blue-300); background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: 76px;
  background: rgba(6, 15, 28, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(6, 15, 28, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand img { width: 38px; height: 38px; }
.brand-text { font-size: 21px; font-weight: 600; letter-spacing: 0.02em; }
.brand-text strong { color: var(--blue-500); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative; font-size: 14.5px; color: #a9bdd8; font-weight: 500;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--blue-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; padding: 8px; border-radius: 8px; }
.mobile-toggle .icon { width: 26px; height: 26px; color: #fff; }
.mobile-toggle .icon--close { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 0;
  color: #fff;
  background: var(--ink-950);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 164, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 164, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.65) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.65) 55%, transparent 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.hero-glow--a { width: 700px; height: 700px; right: -160px; top: -240px; background: #1550c9; }
.hero-glow--b { width: 520px; height: 520px; left: -220px; bottom: -160px; background: #0a6e8a; opacity: 0.28; }
.hero-ticks {
  position: absolute; left: 50%; top: 76px; width: min(1240px, 100%);
  height: 26px; transform: translateX(-50%);
  border-top: 1px solid rgba(122, 164, 255, 0.16);
  background-image: repeating-linear-gradient(90deg, rgba(122, 164, 255, 0.28) 0 1px, transparent 1px 56px);
  background-size: 56px 10px;
  background-repeat: repeat-x;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 64px;
  padding-bottom: 78px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-700);
}
.eyebrow--light { color: var(--blue-300); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 193, 224, 0.16); }
.hero-title {
  margin-top: 26px;
  font-size: clamp(2.7rem, 4.45vw, 4.45rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.04em;
  color: #fff;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #7fa9ff 0%, #3d75ff 45%, #22c1e0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead {
  max-width: 610px; margin-top: 28px;
  font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.9;
  color: #a9bdd8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px;
  font-size: 13px; color: #6e88a8;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

.hero-visual { position: relative; }
.browser {
  position: relative;
  border: 1px solid rgba(160, 190, 240, 0.22);
  border-radius: 16px;
  background: #0a1728;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-visual:hover .browser { transform: perspective(1600px) rotateY(-2deg) rotateX(0.5deg) translateY(-4px); }
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 40px; padding: 0 16px;
  background: #0d1d31; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px; color: #6e88a8;
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c425e; }
.browser-dots i:first-child { background: #ef6a5b; }
.browser-dots i:nth-child(2) { background: #f5a524; }
.browser-dots i:nth-child(3) { background: #2ac08a; }
.browser-title { flex: 1; text-align: center; letter-spacing: 0.02em; }
.browser-live { display: inline-flex; align-items: center; gap: 5px; color: #58d6b0; }
.browser-live i { width: 6px; height: 6px; border-radius: 50%; background: #58d6b0; box-shadow: 0 0 8px #58d6b0; }
.browser > img { width: 100%; }

.float-card {
  position: absolute; z-index: 2;
  padding: 14px 16px;
  border: 1px solid rgba(150, 185, 240, 0.2);
  border-radius: 12px;
  background: rgba(10, 26, 45, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: #dfe9f8;
  font-size: 12px;
  animation: float 7s ease-in-out infinite;
}
.float-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #7f9bbb; }
.float-value { margin-top: 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #fff; font-family: var(--mono); }
.float-value span { font-size: 14px; color: var(--blue-300); margin-left: 2px; }
.float-bar { width: 132px; height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.float-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-500), var(--cyan)); }
.float-note { margin-top: 8px; font-size: 10.5px; color: #8ba6c5; }
.float-card--balance { left: -54px; top: 6%; }
.float-card--formula { left: -64px; bottom: 12%; animation-delay: -2.5s; }
.formula { margin-top: 6px; font-family: var(--mono); font-size: 15px; color: #fff; letter-spacing: 0.01em; }
.formula sub { font-size: 0.68em; color: var(--blue-300); }
.float-card--cite { right: -42px; top: 17%; display: flex; align-items: center; gap: 10px; animation-delay: -4s; }
.cite-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(30, 91, 255, 0.2); color: #8fb3ff;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.float-card--cite strong { color: #fff; font-size: 12.5px; }
.float-card--templates { right: 10%; bottom: -22px; display: flex; align-items: center; gap: 10px; animation-delay: -1.2s; }
.float-card--templates .icon { width: 26px; height: 26px; color: var(--cyan); }
.float-card--templates strong { color: #fff; font-size: 17px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0 36px;
}
.stat { padding: 0 26px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: #fff;
}
.stat-label { display: block; margin-top: 8px; font-size: 12.5px; color: #7f97b5; }

/* ---------- sections ---------- */
.section { position: relative; padding: 112px 0; }
.section--light { background: var(--white); }
.section--soft { background: var(--bg); }
.section--dark { background: var(--ink-950); color: #a9bdd8; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 164, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 164, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.section-head { max-width: 820px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: 48px; align-items: end;
}
.section-head--split .section-lead { margin-top: 0; }
.section-title {
  margin-top: 18px;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.16; font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink-950);
}
.section--dark .section-title { color: #fff; }
.section-lead {
  margin-top: 22px; max-width: 720px;
  font-size: 1.02rem; line-height: 1.9; color: var(--ink-500);
}
.section--dark .section-lead { color: #93a9c6; }

/* ---------- problem ---------- */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 52px;
}
.problem-card {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.problem-card:hover { transform: translateY(-5px); border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.problem-index {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-300); letter-spacing: 0.1em;
}
.problem-card .icon--lg { color: var(--blue-600); margin-bottom: 34px; }
.problem-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink-950); }
.problem-card p { margin-top: 10px; font-size: 0.92rem; line-height: 1.8; color: var(--ink-500); }
.problem-note {
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: 22px; padding: 22px 26px;
  border: 1px solid #f2dcae; border-radius: var(--radius);
  background: linear-gradient(90deg, #fffaf0, #fffdf8);
}
.problem-note .icon { width: 22px; height: 22px; color: var(--amber); margin-top: 4px; }
.problem-note p { font-size: 0.94rem; color: #7a5a1c; }
.problem-note strong { color: #5c420d; }

/* ---------- approach ---------- */
.approach .section-head { max-width: 900px; }
.approach-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 18px; align-items: stretch; margin-top: 58px;
}
.approach-card {
  padding: 34px 32px;
  border: 1px solid rgba(150, 185, 240, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 38, 65, 0.88), rgba(9, 24, 44, 0.9));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}
.approach-head { display: flex; align-items: center; gap: 14px; color: var(--blue-300); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.approach-card h3 { margin-top: 26px; font-size: 1.65rem; color: #fff; letter-spacing: -0.01em; }
.approach-card ul { margin-top: 20px; display: grid; gap: 12px; }
.approach-card li {
  position: relative; padding-left: 24px;
  font-size: 0.94rem; color: #a9bdd8;
}
.approach-card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--blue-500); box-shadow: 0 0 12px rgba(61, 117, 255, 0.8);
}
.approach-card--algorithm li::before { background: var(--teal); box-shadow: 0 0 12px rgba(14, 159, 138, 0.8); }
.approach-plus {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 40px; color: #355777;
}
.approach-quote {
  display: flex; align-items: flex-start; gap: 22px;
  max-width: 980px; margin: 48px auto 0; padding: 28px 34px;
  border-left: 3px solid var(--blue-500);
  background: rgba(30, 91, 255, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.approach-quote .icon { width: 30px; height: 30px; color: var(--blue-500); flex: 0 0 auto; }
.approach-quote p { font-size: 1.05rem; line-height: 1.9; color: #d5e2f5; }
.keyword-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px; margin-top: 38px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #6e88a8;
}
.keyword-strip i { width: 4px; height: 4px; border-radius: 50%; background: #2b4a6e; }

/* ---------- tabs / capabilities ---------- */
.tabs { margin-top: 46px; }
.tab-list {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  padding: 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.tab-button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-500);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.tab-button .icon { width: 18px; height: 18px; }
.tab-button:hover { color: var(--ink-950); }
.tab-button.is-active { color: #fff; background: var(--ink-950); box-shadow: 0 6px 18px rgba(6, 15, 28, 0.22); }
.tab-panel { margin-top: 46px; }
.tab-panel[hidden] { display: none; }
.capability {
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px; align-items: center;
}
.capability-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--blue-600); }
.capability-copy h3 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.22; letter-spacing: -0.025em;
  color: var(--ink-950);
}
.capability-copy > p { margin-top: 20px; font-size: 0.98rem; line-height: 1.9; color: var(--ink-500); }
.check-list { margin-top: 22px; display: grid; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.92rem; color: var(--ink-600); }
.check-list .icon { width: 17px; height: 17px; color: var(--teal); margin-top: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: 12px; font-weight: 600; color: var(--ink-600);
}
.repo-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 13px; font-weight: 600; color: var(--blue-700);
  transition: color 0.2s ease;
}
.repo-link:hover { color: var(--blue-500); }
.repo-link .icon { width: 17px; height: 17px; }
.repo-arrow { color: var(--ink-400); font-weight: 500; }
.open-source-note {
  display: flex; align-items: center; gap: 18px;
  margin-top: 42px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.open-source-icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--ink-950); color: #fff;
}
.open-source-icon .icon { width: 24px; height: 24px; }
.open-source-copy { flex: 1; }
.open-source-copy strong { display: block; font-size: 14px; color: var(--ink-950); }
.open-source-copy p { margin-top: 2px; font-size: 12px; color: var(--ink-500); }
.open-source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.open-source-links a {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-600);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.open-source-links a:hover { color: var(--blue-700); border-color: var(--blue-300); background: var(--blue-100); }
.open-source-links a span { color: var(--ink-400); font-weight: 500; }
.capability-media { position: relative; padding-bottom: 44px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; }
.shot--browser {
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.shot-bar {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 14px; background: #f2f6fc; border-bottom: 1px solid var(--line);
  font-size: 10.5px; color: #7b8fa7;
}
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d4dfed; }
.shot-bar i:first-child { background: #ef8b7f; }
.shot-bar i:nth-child(2) { background: #f2c46a; }
.shot-bar i:nth-child(3) { background: #6fd3b4; }
.shot-bar span { margin-left: 6px; }
.shot img { width: 100%; }
.shot--float {
  position: absolute; right: -18px; bottom: 0; width: 46%;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: transform 0.35s ease;
}
.shot--float:hover { transform: translateY(-6px); }

/* ---------- workflow ---------- */
.prompt-card {
  display: flex; align-items: center; gap: 18px;
  margin-top: 46px; padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--ink-950);
  box-shadow: var(--shadow-md);
}
.prompt-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.prompt-avatar img { width: 34px; height: 34px; }
.prompt-body { flex: 1; }
.prompt-label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #6e88a8; }
.prompt-body p { margin-top: 3px; font-size: 1.02rem; color: #e8f0fc; }
.prompt-cursor { width: 2px; height: 22px; background: var(--cyan); animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px; margin-top: 28px;
}
.step {
  padding: 26px 22px 24px;
  border-top: 1px solid var(--line-strong);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: var(--blue-500); transform: translateY(-3px); }
.step-no { font-family: var(--mono); font-size: 12px; color: var(--blue-600); letter-spacing: 0.1em; }
.step h3 { margin-top: 16px; font-size: 1.06rem; color: var(--ink-950); }
.step p { margin-top: 8px; font-size: 0.88rem; line-height: 1.8; color: var(--ink-500); }
.wide-shot { margin: 44px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.wide-shot img { width: 100%; border-radius: 8px; }
.wide-shot figcaption { padding: 12px 6px 2px; font-size: 12px; color: var(--ink-500); text-align: center; }

/* ---------- cases ---------- */
.cases::before { opacity: 0.6; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 54px; }
.case-card {
  display: flex; flex-direction: column;
  padding: 30px 28px 0;
  border: 1px solid rgba(150, 185, 240, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(18, 40, 68, 0.72), rgba(8, 22, 40, 0.86));
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(122, 164, 255, 0.4); }
.case-top { display: flex; align-items: center; justify-content: space-between; }
.case-tag { padding: 5px 11px; border: 1px solid rgba(150, 185, 240, 0.18); border-radius: 999px; font-size: 11px; color: #8fb3ff; }
.case-index { font-family: var(--mono); font-size: 12px; color: #3c5d80; }
.case-card h3 { margin-top: 24px; font-size: 1.38rem; line-height: 1.35; color: #fff; letter-spacing: -0.01em; }
.case-card > p { margin-top: 12px; font-size: 0.9rem; line-height: 1.8; color: #93a9c6; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.case-metrics strong { display: block; font-family: var(--mono); font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.case-metrics small { font-size: 0.62em; color: var(--blue-300); margin-left: 2px; }
.case-metrics span { display: block; margin-top: 6px; font-size: 10.5px; color: #6e88a8; line-height: 1.5; }
.case-thumb { margin: 26px -28px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.case-thumb img { width: 100%; opacity: 0.82; transition: transform 0.5s ease, opacity 0.4s ease; }
.case-card:hover .case-thumb img { transform: scale(1.03); opacity: 0.95; }
.case-quote { max-width: 900px; margin: 54px auto 0; text-align: center; }
.case-quote p { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.8; color: #d5e2f5; letter-spacing: 0.01em; }

/* ---------- architecture ---------- */
.arch-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: 26px; margin-top: 52px; align-items: start; }
.arch-diagram { display: grid; gap: 12px; }
.arch-layer {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  align-items: center; gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.arch-layer--shell { border-left: 3px solid var(--ink-700); }
.arch-layer--agent { border-left: 3px solid var(--blue-600); background: #f8fbff; }
.arch-layer--plugins { border-left: 3px solid var(--teal); }
.arch-layer--data { border-left: 3px solid var(--amber); }
.arch-layer-name { font-size: 0.95rem; font-weight: 700; color: var(--ink-950); }
.arch-layer-name span { display: block; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-300); }
.arch-layer-body { display: flex; flex-wrap: wrap; gap: 7px; }
.arch-layer-body span { padding: 5px 10px; border-radius: 6px; background: var(--bg); font-size: 11.5px; color: var(--ink-600); }
.arch-side {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--ink-950);
  color: #a9bdd8;
  box-shadow: var(--shadow-md);
}
.arch-side-head .icon { color: var(--blue-300); }
.arch-side-head h3 { margin-top: 12px; font-size: 1.2rem; color: #fff; }
.arch-side-head p { margin-top: 4px; font-size: 11.5px; color: #6e88a8; }
.model-list { margin-top: 20px; display: grid; gap: 10px; }
.model-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 11.5px; }
.model-list span { color: #6e88a8; flex: 0 0 auto; }
.model-list strong { font-weight: 500; color: #d5e2f5; text-align: right; }
.provider-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.provider-row span { padding: 4px 7px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 5px; font-size: 10px; color: #8ba6c5; }
.arch-side-note { margin-top: 14px; font-size: 10.5px; color: #6e88a8; line-height: 1.7; }
.arch-badge { margin-top: 18px; padding: 10px; border: 1px dashed rgba(34, 193, 224, 0.5); border-radius: 8px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--cyan); }
.tech-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tech-strip span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-family: var(--mono); font-size: 11px; color: var(--ink-500); }
.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
}
.stat-band > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat-band > div:first-child { border-left: 0; }
.stat-band strong { display: block; font-family: var(--mono); font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--ink-950); letter-spacing: -0.02em; }
.stat-band small { font-size: 0.55em; color: var(--ink-500); margin-left: 2px; }
.stat-band span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-500); }

/* ---------- security ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.security-card {
  padding: 28px 26px;
  border: 1px solid rgba(150, 185, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(13, 32, 52, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.security-card:hover { border-color: rgba(122, 164, 255, 0.35); transform: translateY(-4px); }
.security-card .icon { color: var(--blue-300); }
.security-card h3 { margin-top: 20px; font-size: 1.15rem; color: #fff; }
.security-card p { margin-top: 8px; font-size: 0.9rem; line-height: 1.8; color: #93a9c6; }
.security-bottom { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-top: 22px; }
.security-note {
  flex: 1; padding: 26px 28px;
  border: 1px solid rgba(34, 193, 224, 0.25); border-radius: var(--radius);
  background: rgba(14, 159, 138, 0.07);
}
.security-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6fd3c0; }
.security-note p { margin-top: 10px; max-width: 760px; font-size: 0.94rem; color: #b7cbe2; }
.security-stamp {
  flex: 0 0 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; border: 1px dashed rgba(150, 185, 240, 0.3); border-radius: var(--radius);
  text-align: center;
}
.security-stamp span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: #6e88a8; }
.security-stamp strong { margin-top: 4px; font-family: var(--mono); font-size: 1.15rem; color: #fff; }
.security-stamp small { margin-top: 6px; font-size: 10px; color: #6e88a8; line-height: 1.6; }

/* ---------- demo ---------- */
.video-frame {
  position: relative; margin-top: 42px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-950);
  box-shadow: 0 30px 80px rgba(6, 15, 28, 0.25);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  background: linear-gradient(180deg, rgba(6, 15, 28, 0.1), rgba(6, 15, 28, 0.55));
  color: #fff; transition: background 0.3s ease;
}
.video-overlay:hover { background: linear-gradient(180deg, rgba(6, 15, 28, 0.05), rgba(6, 15, 28, 0.65)); }
.play-ring {
  display: grid; place-items: center;
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}
.video-overlay:hover .play-ring { transform: scale(1.08); background: var(--blue-600); border-color: var(--blue-600); }
.play-ring .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-overlay-text { text-align: left; font-size: 16px; font-weight: 600; }
.video-overlay-text small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.video-frame.is-playing .video-overlay { display: none; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.demo-note { font-size: 12.5px; color: var(--ink-500); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink-950);
  color: #fff; text-align: center;
  padding: 128px 0;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(30, 91, 255, 0.5), transparent 60%),
    radial-gradient(ellipse at 15% 0%, rgba(34, 193, 224, 0.18), transparent 50%);
}
.cta-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 164, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 164, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 75%);
}
.cta-inner { position: relative; }
.cta-logo { margin: 0 auto 24px; width: 72px; height: 72px; }
.cta h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.03em; }
.cta p { max-width: 640px; margin: 22px auto 0; font-size: 1rem; line-height: 1.85; color: #a9bdd8; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.cta-note { margin-top: 22px; font-size: 12px; color: #6e88a8; }

/* ---------- footer ---------- */
.site-footer { padding: 70px 0 28px; background: #040b15; color: #7f97b5; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr); gap: 60px; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.9; color: #6e88a8; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid rgba(150, 185, 240, 0.16); border-radius: 999px; font-size: 10.5px; color: #6e88a8; }
.footer-badge--link { transition: color 0.2s ease, border-color 0.2s ease; }
.footer-badge--link:hover { color: #fff; border-color: rgba(150, 185, 240, 0.4); }
.footer-badge .icon { width: 13px; height: 13px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-nav h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #c8d7ea; }
.footer-nav a { display: block; margin-top: 10px; font-size: 13px; color: #7f97b5; transition: color 0.2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 11.5px; color: #4d6583; }

/* ---------- reveal ---------- */
.reveal-enabled .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-enabled .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { max-width: 800px; margin-inline: auto; width: 100%; }
  .browser { transform: none; }
  .hero-visual:hover .browser { transform: translateY(-4px); }
  .float-card--balance { left: -18px; }
  .float-card--formula { left: -24px; bottom: 6%; }
  .float-card--cite { right: -14px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .capability { grid-template-columns: 1fr; gap: 42px; }
  .capability-media { padding-bottom: 0; }
  .shot--float { position: relative; right: auto; bottom: auto; width: 70%; margin: -40px 0 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .case-thumb { max-height: 300px; }
  .case-thumb img { object-fit: cover; }
  .arch-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px;
    background: rgba(6, 15, 28, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav a::after { display: none; }
  .site-header.is-open .nav { transform: translateY(0); }
  .mobile-toggle { display: inline-flex; }
  .site-header.is-open .mobile-toggle .icon--menu { display: none; }
  .site-header.is-open .mobile-toggle .icon--close { display: block; }
  .header-actions .btn { display: none; }
  .section { padding: 86px 0; }
  .section-head--split { grid-template-columns: 1fr; gap: 18px; }
  .section-head--split .section-lead { margin-top: 0; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-plus { display: none; }
  .security-grid { grid-template-columns: 1fr; }
  .security-bottom { flex-direction: column; }
  .security-stamp { flex: auto; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band > div:nth-child(3) { border-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 118px; }
  .hero-title { font-size: clamp(2.35rem, 10vw, 3rem); }
  .hero-lead { font-size: 0.94rem; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 8px 16px; }
  .float-card--balance, .float-card--formula, .float-card--cite { display: none; }
  .float-card--templates { right: 4%; bottom: -18px; padding: 10px 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 0 18px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid rgba(255,255,255,.1); padding-left: 18px; }
  .stat:nth-child(5) { border-left: 0; padding-left: 0; margin-top: 6px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-note { flex-direction: column; gap: 10px; }
  .tab-list { width: 100%; border-radius: 14px; }
  .tab-button { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
  .tab-button .icon { display: none; }
  .capability-media .shot--float { width: 88%; margin-top: -28px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
  .step-no { grid-row: span 2; }
  .step h3 { margin-top: 0; }
  .case-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .arch-layer { grid-template-columns: 1fr; gap: 10px; }
  .video-overlay { flex-direction: column; gap: 14px; text-align: center; }
  .video-overlay-text { text-align: center; }
  .play-ring { width: 62px; height: 62px; }
  .cta { padding: 96px 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .open-source-note { flex-wrap: wrap; }
  .open-source-copy { flex-basis: calc(100% - 64px); }
  .open-source-links { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   v2 — 叙事重构：3 步理解、问题 → 是什么 → 能做什么 → 怎么用
   ============================================================ */

.github-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #c8d7ea;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.github-btn .icon { width: 20px; height: 20px; }
.github-btn:hover { color: #fff; border-color: var(--blue-300); background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

/* hero three-step */
.hero-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0 6px;
}
.hero-flow-item { display: flex; align-items: flex-start; gap: 13px; }
.hero-flow-no {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue-500);
}
.hero-flow-item strong { display: block; font-size: 15px; color: #eef4ff; letter-spacing: 0.01em; }
.hero-flow-item small { display: block; margin-top: 2px; font-size: 11.5px; color: #6e88a8; }
.hero-flow-arrow { color: #2b4a6e; }
.hero-flow-arrow .icon { width: 20px; height: 20px; }
.hero-hint { padding: 12px 0 36px; font-size: 12px; color: #5f7899; }
.hero-hint b { color: #8fb3ff; font-family: var(--mono); font-weight: 600; }

/* 02 what */
.flow-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 46px;
}
.flow-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid rgba(150, 185, 240, 0.16);
  border-radius: var(--radius);
  background: rgba(13, 32, 52, 0.55);
}
.flow-card-no {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: #3c5d80;
}
.flow-card .icon--lg { color: var(--blue-300); margin: 12px 0 26px; }
.flow-card h3 { font-size: 2.05rem; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.flow-card p { margin-top: 12px; font-size: 0.9rem; line-height: 1.8; color: #93a9c6; }
.flow-plus {
  display: flex; align-items: center; justify-content: center;
  color: #3c5d80; font-family: var(--mono); font-size: 22px;
}
.wide-shot--dark {
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.wide-shot--dark figcaption { color: #8ba6c5; }

.compare-block {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.compare-block h3 { font-size: 1.1rem; color: #fff; }
.compare-table { margin-top: 16px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; overflow: hidden; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  line-height: 1.7;
}
.compare-row:first-child { border-top: 0; }
.compare-row span:first-child { color: #8ba6c5; }
.compare-row span:last-child { color: #e8f0fc; }
.compare-head {
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #6e88a8;
}
.compare-head span:first-child, .compare-head span:last-child { color: #6e88a8; }
.plain-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 24px; padding: 16px 18px;
  border-left: 2px solid var(--blue-500);
  border-radius: 0 10px 10px 0;
  background: rgba(61, 117, 255, 0.08);
  font-size: 13px; line-height: 1.8; color: #b7cbe2;
}
.plain-note .icon { width: 18px; height: 18px; color: var(--blue-300); margin-top: 3px; flex: 0 0 auto; }

/* 03 outcomes */
.outcomes { margin-top: 18px; }
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid var(--line);
}
.outcome:first-child { border-top: 0; padding-top: 26px; }
.outcome--reverse .outcome-copy { order: 2; }
.outcome--reverse .outcome-media { order: 1; }
.outcome-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--blue-600); }
.outcome-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.22; letter-spacing: -0.025em; color: var(--ink-950);
}
.outcome-copy > p { margin-top: 16px; font-size: 0.96rem; line-height: 1.9; color: var(--ink-500); }
.outcome-media { margin: 0; }
.outcome-media .shot { box-shadow: var(--shadow-md); }

.support-head { margin-top: 20px; text-align: center; }
.support-head h3 { font-size: 1.55rem; color: var(--ink-950); letter-spacing: -0.01em; }
.support-head p { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.support-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 20px; align-items: center;
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.support-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--blue-600); text-transform: uppercase; }
.support-copy h3 { margin-top: 8px; font-size: 1.12rem; line-height: 1.5; color: var(--ink-950); }
.support-copy p { margin-top: 8px; font-size: 0.86rem; line-height: 1.8; color: var(--ink-500); }
.support-card img { width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.support-links { margin-top: 12px; }
.support-links .repo-link { margin-top: 0; font-size: 12px; }

/* 04 how */
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--three .step { padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; border-top: 2px solid var(--blue-500); }
.steps--three .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* 06 proof personas */
.persona-head { margin-top: 54px; text-align: center; }
.persona-head h3 { font-size: 1.55rem; color: #fff; }
.persona-head p { margin-top: 6px; font-size: 13px; color: #93a9c6; }
.persona-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.persona-card {
  padding: 22px 20px;
  border: 1px solid rgba(150, 185, 240, 0.14);
  border-radius: 14px;
  background: rgba(13, 32, 52, 0.5);
}
.persona-card span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--blue-500); }
.persona-card h4 { margin-top: 10px; font-size: 1.02rem; color: #fff; }
.persona-card p { margin-top: 7px; font-size: 0.84rem; line-height: 1.75; color: #93a9c6; }

/* 07 trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.trust-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.trust-card .icon--lg { color: var(--blue-600); }
.trust-card h3 { margin-top: 20px; font-size: 1.12rem; color: var(--ink-950); }
.trust-card p { margin-top: 8px; font-size: 0.9rem; line-height: 1.85; color: var(--ink-500); }
.trust-card code { font-size: 0.85em; }
.trust-more { margin-top: 34px; text-align: center; }
.trust-more > p { margin-bottom: 14px; font-size: 13px; color: var(--ink-500); }
.tech-details {
  max-width: 1040px; margin: 0 auto; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.tech-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600; color: var(--ink-950);
}
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary::after {
  content: "+"; font-family: var(--mono); font-size: 18px; color: var(--blue-600);
}
.tech-details[open] summary::after { content: "-"; }
.tech-details[open] summary { border-bottom: 1px solid var(--line); }
.summary-hint { flex: 1; text-align: right; font-size: 11.5px; font-weight: 400; color: var(--ink-400); }
.details-body { padding: 24px; background: var(--bg); }
.details-body .arch-side { box-shadow: none; }
.security-list { display: grid; gap: 10px; margin-top: 20px; }
.security-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ink-600); }
.security-list .icon { width: 17px; height: 17px; color: var(--teal); margin-top: 4px; flex: 0 0 auto; }
.security-list strong { color: var(--ink-950); }

/* CTA open source variant */
.open-source-note--cta { margin-top: 34px; text-align: left; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.open-source-note--cta .open-source-copy strong { color: #fff; }
.open-source-note--cta .open-source-copy p { color: #8ba6c5; }
.open-source-note--cta .open-source-links a { color: #c8d7ea; border-color: rgba(255, 255, 255, 0.14); }
.open-source-note--cta .open-source-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

@media (max-width: 1120px) {
  .hero-flow { grid-template-columns: 1fr; gap: 10px; }
  .hero-flow-arrow { justify-content: flex-start; padding-left: 22px; transform: rotate(90deg); }
  .hero-flow-item { padding: 4px 0; }
  .flow-cards { grid-template-columns: 1fr; }
  .flow-plus { justify-content: flex-start; padding-left: 22px; transform: rotate(90deg); }
  .flow-card .icon--lg { margin: 6px 0 18px; }
  .outcome { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .outcome--reverse .outcome-copy, .outcome--reverse .outcome-media { order: initial; }
  .support-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps--three { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .github-btn { width: 38px; height: 38px; }
  .compare-block { padding: 20px; }
}

/* document-logic additions: context, principle, six IE stages */
.policy-line {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 26px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #f7faff; font-size: 13px; line-height: 1.8; color: var(--ink-500);
}
.policy-line span {
  flex: 0 0 auto; margin-top: 2px; padding: 2px 9px;
  border-radius: 999px; background: var(--blue-100); color: var(--blue-700);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
}
.principle-line {
  margin-top: 22px; padding-left: 14px;
  border-left: 2px solid var(--blue-500);
  font-size: 13px; line-height: 1.85; color: #93a9c6;
}
.principle-line strong { color: #fff; font-weight: 600; }
.stage-block { margin-top: 30px; }
.stage-block h3 { font-size: 1.08rem; color: #fff; }
.stage-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stage-item {
  padding: 15px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.stage-item span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--blue-500); }
.stage-item strong { display: block; margin-top: 6px; font-size: 13px; color: #fff; }
.stage-item small { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.55; color: #7f97b5; }

@media (max-width: 1120px) {
  .stage-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .policy-line { flex-direction: column; gap: 8px; }
  .stage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-flow { padding-top: 22px; }
  .hero-flow-item strong { font-size: 14px; }
  .hero-hint { padding-bottom: 28px; }
  .hero-hint b { white-space: nowrap; }
  .flow-card { padding: 24px 22px; }
  .compare-row { grid-template-columns: 1fr; gap: 3px; padding: 12px 15px; font-size: 12.5px; }
  .compare-head { display: none; }
  .outcome-copy { order: 1; }
  .outcome-media { order: 2; }
  .support-card { grid-template-columns: 1fr; }
  .support-card img { order: -1; }
  .persona-grid { grid-template-columns: 1fr; }
  .details-body { padding: 16px; }
  .tech-details summary { padding: 16px; }
  .summary-hint { display: none; }
}

/* positioning: agent desktop app for IE field improvement */
.hero-keywords {
  display: flex; flex-wrap: wrap; gap: 7px 18px;
  margin-top: 20px;
  font-size: 12.5px; letter-spacing: 0.03em; color: #8ba6c5;
}
.hero-keywords::before {
  content: ""; width: 6px; height: 6px; margin-top: 7px;
  border-radius: 50%; background: var(--cyan);
}
.position-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 34px;
}
.position-card {
  padding: 24px 26px;
  border: 1px solid rgba(150, 185, 240, 0.16);
  border-radius: 14px;
  background: rgba(13, 32, 52, 0.55);
}
.position-card h3 { font-size: 1rem; color: #fff; }
.position-card ul { display: grid; gap: 9px; margin-top: 14px; }
.position-card li { position: relative; padding-left: 17px; font-size: 13px; line-height: 1.75; color: #a9bdd8; }
.position-card li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
}
.position-card--isnot { background: rgba(245, 165, 36, 0.04); border-color: rgba(245, 165, 36, 0.2); }
.position-card--isnot li::before { background: var(--amber); }
.flow-label {
  margin-top: 42px; margin-bottom: 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #6e88a8;
}
@media (max-width: 680px) {
  .position-grid { grid-template-columns: 1fr; }
  .hero-keywords { font-size: 11.5px; gap: 5px 12px; }
}

/* ============================================================
   White theme: one continuous light surface, blue brand accents.
   No dark/light alternating sections.
   ============================================================ */

:root {
  --bg: #f7f9fc;
  --bg-soft: #eef3fa;
  --line: #e2e9f2;
  --line-strong: #cfdaea;
}

body { background: #fff; color: var(--ink-600); }

/* ---------- header ---------- */
.site-header { background: rgba(255, 255, 255, 0.86); }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e6edf6;
  box-shadow: 0 12px 30px rgba(12, 35, 70, 0.06);
}
.brand { color: var(--ink-950); }
.brand-text strong { color: var(--blue-600); }
.nav { gap: 24px; }
.nav a { color: var(--ink-500); }
.nav a:hover, .nav a.is-active { color: var(--ink-950); }
.nav a::after { background: var(--blue-600); }
.nav a.nav-doc { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-700); font-weight: 600; }
.nav a.nav-doc .icon { width: 14px; height: 14px; }
.nav a.nav-doc::after { display: none; }
.github-btn { color: var(--ink-700); border-color: var(--line-strong); background: #fff; }
.github-btn:hover { color: var(--blue-700); border-color: var(--blue-300); }
.mobile-toggle .icon { color: var(--ink-950); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%); color: var(--ink-600); }
.hero-grid {
  background-image:
    linear-gradient(rgba(60, 110, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 110, 190, 0.07) 1px, transparent 1px);
}
.hero-glow--a { background: #cfe0ff; opacity: 0.55; }
.hero-glow--b { background: #bfe6ef; opacity: 0.35; }
.hero-ticks {
  border-top-color: rgba(70, 120, 200, 0.16);
  background-image: repeating-linear-gradient(90deg, rgba(70, 120, 200, 0.25) 0 1px, transparent 1px 56px);
}
.eyebrow, .eyebrow--light { color: var(--blue-700); }
.hero-title { color: var(--ink-950); }
.hero-title em {
  background: linear-gradient(100deg, #1e5bff 0%, #2f7dff 52%, #22c1e0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead, .hero-keywords, .hero-meta { color: var(--ink-500); }
.hero-keywords::before, .hero-meta span::before { background: var(--blue-500); }
.hero-flow { border-top-color: #dbe4f0; }
.hero-flow-no { color: var(--blue-700); }
.hero-flow-item strong { color: var(--ink-950); }
.hero-flow-item small { color: var(--ink-500); }
.hero-flow-arrow { color: var(--ink-300); }
.hero-hint { color: var(--ink-500); }
.hero-hint b { color: var(--blue-700); }
.btn--primary { background: linear-gradient(135deg, var(--blue-600), #2e7bff 60%, var(--cyan)); }
.btn--ghost, .hero .btn--ghost, .section--dark .btn--ghost {
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line-strong);
}
.btn--ghost:hover, .hero .btn--ghost:hover, .section--dark .btn--ghost:hover {
  color: var(--blue-700);
  border-color: var(--blue-300);
  background: #fff;
}

.browser { background: #fff; border-color: var(--line); box-shadow: 0 40px 100px rgba(16, 45, 90, 0.16), 0 0 0 8px rgba(255, 255, 255, 0.5); }
.browser-bar { background: #f3f7fd; border-bottom-color: var(--line); color: var(--ink-500); }
.browser-dots i { background: #d4dfed; }
.browser-title { color: var(--ink-500); }
.browser-live { color: #0e9f8a; }
.browser-live i { background: #0e9f8a; box-shadow: 0 0 8px rgba(14, 159, 138, 0.7); }
.float-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line);
  box-shadow: 0 18px 40px rgba(16, 45, 90, 0.12);
  color: var(--ink-700);
}
.float-label { color: var(--ink-400); }
.float-value { color: var(--ink-950); }
.float-bar { background: #e8eef7; }
.float-value span, .formula sub { color: var(--blue-600); }
.formula { color: var(--ink-950); }
.float-note { color: var(--ink-500); }
.cite-mark { background: var(--blue-100); color: var(--blue-700); }
.float-card--cite strong { color: var(--ink-950); }
.float-card--templates .icon { color: var(--blue-500); }
.float-card--templates strong { color: var(--ink-950); }

/* ---------- continuous light sections ---------- */
.section--light { background: #fff; }
.section--soft { background: #f7f9fc; }
.section--dark { background: #f7f9fc; color: var(--ink-600); }
.section--dark::before {
  background-image:
    linear-gradient(rgba(60, 110, 190, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 110, 190, 0.055) 1px, transparent 1px);
}
.section--dark .section-title { color: var(--ink-950); }
.section--dark .section-lead { color: var(--ink-500); }
.section--dark .eyebrow--light, .section--dark .section-head .eyebrow { color: var(--blue-700); }
.policy-line { background: #f7fbff; border-color: var(--line); color: var(--ink-500); }
.principle-line { color: var(--ink-500); border-left-color: var(--blue-600); }
.principle-line strong { color: var(--ink-950); }

.flow-card { background: #fff; border-color: var(--line); }
.flow-card h3 { color: var(--ink-950); }
.flow-card p { color: var(--ink-500); }
.flow-card-no { color: var(--ink-300); }
.flow-card .icon--lg { color: var(--blue-600); }
.flow-plus { color: var(--ink-300); }
.wide-shot--dark { background: #f7f9fc; border-color: var(--line); }
.wide-shot--dark figcaption { color: var(--ink-500); }
.compare-block { background: #fff; border-color: var(--line); }
.compare-block h3 { color: var(--ink-950); }
.compare-table { border-color: var(--line); }
.compare-row { border-top-color: #eef3f9; }
.compare-row span:first-child { color: var(--ink-500); }
.compare-row span:last-child { color: var(--ink-950); }
.compare-head { background: #f3f7fd; }
.compare-head span:first-child, .compare-head span:last-child { color: var(--ink-400); }
.plain-note { background: #f2f7ff; border-left-color: var(--blue-600); color: var(--ink-600); }
.plain-note .icon { color: var(--blue-600); }
.stage-block h3 { color: var(--ink-950); }
.stage-item { background: #fff; border-color: var(--line); }
.stage-item span { color: var(--blue-700); }
.stage-item strong { color: var(--ink-950); }
.stage-item small { color: var(--ink-500); }
.arch-layer--agent { background: #f8fbff; }

/* ---------- positioning ---------- */
.position-card { background: #fff; border-color: var(--line); }
.position-card h3 { color: var(--ink-950); }
.position-card li { color: var(--ink-600); }
.position-card--isnot { background: #f8fbff; border-color: #d8e6f7; }
.flow-label { color: var(--ink-400); }

/* ---------- cases / personas ---------- */
.case-card { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.case-card:hover { border-color: var(--blue-300); }
.case-card h3 { color: var(--ink-950); }
.case-card > p { color: var(--ink-500); }
.case-tag { color: var(--blue-700); background: var(--blue-100); border-color: #d6e5ff; }
.case-index { color: var(--ink-300); }
.case-metrics { border-top-color: #eef3f9; }
.case-metrics strong { color: var(--ink-950); }
.case-metrics small { color: var(--blue-600); }
.case-metrics span { color: var(--ink-500); }
.case-thumb { border-top-color: #eef3f9; }
.case-quote p { color: var(--ink-700); }
.persona-head h3 { color: var(--ink-950); }
.persona-head p { color: var(--ink-500); }
.persona-card { background: #fff; border-color: var(--line); }
.persona-card span { color: var(--blue-700); }
.persona-card h4 { color: var(--ink-950); }
.persona-card p { color: var(--ink-500); }

/* ---------- trust / details ---------- */
.trust-card { background: #fff; border-color: var(--line); }
.tech-details { background: #fff; border-color: var(--line); }
.tech-details summary { color: var(--ink-950); }
.tech-details summary::after { color: var(--blue-600); }
.details-body { background: #f7f9fc; }
.arch-layer { background: #fff; border-color: var(--line); }
.arch-layer-body span { background: #f2f6fc; color: var(--ink-600); }
.arch-side { background: #fff; border: 1px solid var(--line); color: var(--ink-600); box-shadow: var(--shadow-sm); }
.arch-side-head .icon { color: var(--blue-600); }
.arch-side-head h3 { color: var(--ink-950); }
.arch-side-head p { color: var(--ink-500); }
.model-list li { border-bottom-color: #eef3f9; }
.model-list span { color: var(--ink-500); }
.model-list strong { color: var(--ink-950); }
.provider-row span { color: var(--ink-500); border-color: var(--line); }
.arch-side-note { color: var(--ink-500); }
.arch-badge { color: var(--blue-700); border-color: var(--blue-300); background: #f2f7ff; }
.security-list li { color: var(--ink-600); }
.security-list strong { color: var(--ink-950); }
.security-list .icon { color: var(--teal); }

/* ---------- video ---------- */
.video-frame { background: #0b1a2e; box-shadow: 0 30px 80px rgba(16, 45, 90, 0.16); }

/* ---------- prompt card ---------- */
.prompt-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prompt-avatar { background: #f2f6fc; }
.prompt-body p { color: var(--ink-950); }
.prompt-label { color: var(--ink-400); }
.prompt-cursor { background: var(--blue-600); }

/* ---------- CTA / footer ---------- */
.cta { background: linear-gradient(135deg, #f2f7ff 0%, #eaf3ff 55%, #f7fbff 100%); color: var(--ink-600); }
.cta-bg {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(30, 91, 255, 0.12), transparent 60%),
    radial-gradient(ellipse at 15% 0%, rgba(34, 193, 224, 0.1), transparent 50%);
}
.cta-bg::before {
  background-image:
    linear-gradient(rgba(60, 110, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 110, 190, 0.07) 1px, transparent 1px);
}
.cta h2 { color: var(--ink-950); }
.cta p { color: var(--ink-500); }
.cta-note { color: var(--ink-500); }
.cta .btn--ghost { color: var(--ink-700); background: #fff; border-color: var(--line-strong); }
.cta .btn--ghost:hover { color: var(--blue-700); border-color: var(--blue-300); }
.open-source-note--cta { background: #fff; border-color: var(--line); }
.open-source-note--cta .open-source-copy strong { color: var(--ink-950); }
.open-source-note--cta .open-source-copy p { color: var(--ink-500); }
.open-source-note--cta .open-source-links a { color: var(--ink-600); border-color: var(--line); }
.open-source-note--cta .open-source-links a:hover { color: var(--blue-700); border-color: var(--blue-300); background: var(--blue-100); }

.site-footer { background: #f7f9fc; color: var(--ink-500); border-top: 1px solid var(--line); }
.site-footer .brand { color: var(--ink-950); }
.footer-brand p { color: var(--ink-500); }
.footer-badge { color: var(--ink-500); border-color: var(--line); }
.footer-badge--link:hover { color: var(--blue-700); border-color: var(--blue-300); }
.footer-nav h4 { color: var(--ink-950); }
.footer-nav a { color: var(--ink-500); }
.footer-nav a:hover { color: var(--blue-700); }
.footer-bottom { color: var(--ink-400); border-top-color: var(--line); }

@media (max-width: 900px) {
  .nav { background: rgba(255, 255, 255, 0.98); border-bottom-color: var(--line); box-shadow: 0 30px 60px rgba(16, 45, 90, 0.1); }
  .nav a { border-bottom-color: #eef3f9; }
  .nav a.nav-doc { color: var(--blue-700); }
}
@media (max-width: 1120px) {
  .nav { gap: 18px; }
}

/* keep the video area light, so the page stays one continuous white surface */
.video-frame {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(16, 45, 90, 0.12);
}
.video-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(18, 58, 120, 0.28));
  color: var(--ink-950);
}
.video-overlay:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(18, 58, 120, 0.36));
}
.play-ring {
  background: #fff;
  border-color: #d8e4f3;
  color: var(--blue-600);
  box-shadow: 0 10px 24px rgba(16, 45, 90, 0.18);
}
.video-overlay:hover .play-ring {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.video-overlay-text {
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-950);
  box-shadow: 0 8px 20px rgba(16, 45, 90, 0.1);
}
.video-overlay-text small { color: var(--ink-500); }

/* ============================================================
   Agent foundation + three plugin blocks
   ============================================================ */

.base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.base-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.base-card .icon--lg { color: var(--blue-600); margin-bottom: 22px; }
.base-card h3 { font-size: 1.05rem; color: var(--ink-950); }
.base-card p { margin-top: 8px; font-size: 0.88rem; line-height: 1.8; color: var(--ink-500); }

.plugin-list { margin-top: 18px; }
.plugin {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.plugin:first-child { border-top: 0; padding-top: 24px; }
.plugin--reverse .plugin-copy { order: 2; }
.plugin--reverse .plugin-media { order: 1; }
.plugin-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  text-transform: uppercase;
}
.plugin-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink-950);
}
.plugin-copy > p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-500);
}
.plugin-copy .repo-link { margin-top: 18px; }
.plugin-note { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.plugin-note span {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 600;
}
.plugin-media { position: relative; padding-bottom: 40px; }
.plugin-media .shot--browser { box-shadow: var(--shadow-md); }
.plugin-media .shot--float { right: -14px; bottom: 0; width: 46%; }

@media (max-width: 1120px) {
  .base-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plugin { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .plugin--reverse .plugin-copy, .plugin--reverse .plugin-media { order: initial; }
  .plugin-media { padding-bottom: 0; }
  .plugin-media .shot--float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70%;
    margin: -30px 0 0 auto;
  }
}
@media (max-width: 680px) {
  .base-grid { grid-template-columns: 1fr; }
  .plugin-media .shot--float { width: 86%; margin-top: -20px; }
  .plugin-note span { font-size: 10.5px; }
}

/* contact / feedback card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 34px auto 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: left;
}
.contact-icon {
  width: 52px; height: 52px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.contact-icon .icon { width: 26px; height: 26px; }
.contact-copy { flex: 1; min-width: 0; }
.contact-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--blue-600);
  text-transform: uppercase;
}
.contact-copy h3 { margin-top: 5px; font-size: 1.2rem; color: var(--ink-950); }
.contact-copy p { margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--ink-500); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.contact-qq {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 91, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-qq:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(30, 91, 255, 0.28); }
.contact-qq span { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.contact-qq strong { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }
.copy-qq {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-600);
  font-size: 12px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.copy-qq:hover { color: var(--blue-700); border-color: var(--blue-300); background: var(--blue-100); }

@media (max-width: 900px) {
  .contact-card { flex-wrap: wrap; }
  .contact-copy { flex-basis: calc(100% - 72px); }
  .contact-actions { width: 100%; }
}
@media (max-width: 560px) {
  .contact-card { padding: 20px; }
  .contact-actions { flex-direction: column; }
  .contact-qq, .copy-qq { justify-content: center; }
}

/* prominent contact link in the top navigation */
.nav a.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #d6e5ff;
  border-radius: 999px;
  background: #f2f7ff;
  color: var(--blue-700);
  font-weight: 700;
}
.nav a.nav-contact .icon { width: 14px; height: 14px; }
.nav a.nav-contact::after { display: none; }
.nav a.nav-contact:hover { background: var(--blue-100); border-color: var(--blue-300); color: var(--blue-700); }

@media (max-width: 1120px) {
  .nav { gap: 12px; }
  .nav a { font-size: 13.5px; }
  .nav a.nav-contact { padding: 5px 10px; }
}

/* copy-state label and secondary feedback link */
.contact-qq em.copy-state {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.contact-qq { cursor: pointer; }
.copy-qq { display: inline-flex; align-items: center; justify-content: center; }
