:root {
  --bg: #eef1ec;
  --bg-panel: #f6f8f4;
  --surface: #ffffff;
  --ink: #11160f;
  --ink-secondary: #3e4339;
  --ink-tertiary: #777d70;
  --muted: #b3b8ad;
  --border: #d8dcd1;
  --border-soft: #e3e6dc;
  --accent: oklch(0.54 0.10 155);
  --accent-hover: oklch(0.49 0.10 155);
  --accent-soft: oklch(0.94 0.04 155);
  --accent-ink: oklch(0.38 0.10 155);
  --success: oklch(0.62 0.13 155);
  --success-soft: oklch(0.94 0.05 155);
  --warning: oklch(0.72 0.13 80);
  --warning-soft: oklch(0.95 0.04 80);
  --error: oklch(0.58 0.18 25);
  --running: oklch(0.55 0.12 200);
  --running-soft: oklch(0.94 0.05 200);
  --header-bg: rgba(238, 241, 236, 0.82);
  --header-bg-scrolled: rgba(238, 241, 236, 0.94);
  --brand-mark-bg: #0b0f0c;
  --brand-mark-border: #232a25;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card:
    0 1px 2px rgba(26, 26, 23, 0.04),
    0 8px 24px rgba(26, 26, 23, 0.05);
  --shadow-preview:
    0 2px 4px rgba(26, 26, 23, 0.04),
    0 20px 56px rgba(26, 26, 23, 0.08);
  --font-sans: "Inter", "Sohne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --container-max: 1240px;
  --container-padding: clamp(20px, 4vw, 40px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --space-10: 120px;
}

[data-theme="dark"] {
  --bg: #0b0f0c;
  --bg-panel: #111612;
  --surface: #161c17;
  --ink: #e2e7df;
  --ink-secondary: #a4ab9d;
  --ink-tertiary: #6b7066;
  --muted: #3a3f37;
  --border: #232a25;
  --border-soft: #1c211d;
  --accent: oklch(0.74 0.14 160);
  --accent-hover: oklch(0.78 0.14 160);
  --accent-soft: oklch(0.28 0.06 160);
  --accent-ink: oklch(0.80 0.14 160);
  --success: oklch(0.72 0.13 155);
  --success-soft: oklch(0.28 0.05 155);
  --warning: oklch(0.74 0.12 80);
  --warning-soft: oklch(0.30 0.06 80);
  --error: oklch(0.68 0.18 25);
  --running: oklch(0.72 0.14 200);
  --running-soft: oklch(0.30 0.06 200);
  --header-bg: rgba(11, 15, 12, 0.84);
  --header-bg-scrolled: rgba(11, 15, 12, 0.94);
  --brand-mark-bg: #050806;
  --brand-mark-border: #2b342d;
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.24);
  --shadow-preview:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.32);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

:lang(zh-CN) {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container {
  margin: 0 auto;
  max-width: var(--container-max);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.skip-link {
  background: var(--ink);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--surface);
  font-size: 0.9rem;
  left: var(--container-padding);
  padding: 9px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 150ms ease;
  z-index: 40;
}

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

.section {
  scroll-margin-top: 80px;
}

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  transition: background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
  z-index: 20;
}

.site-header.has-scroll {
  backdrop-filter: blur(14px);
  background: var(--header-bg-scrolled);
  border-color: var(--border-soft);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: var(--space-5);
  height: 72px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 650;
  gap: 10px;
  letter-spacing: -0.04em;
}

.brand-mark {
  background: var(--brand-mark-bg);
  border: 1px solid var(--brand-mark-border);
  border-radius: 7px;
  display: block;
  flex: 0 0 auto;
  height: 28px;
  object-fit: contain;
  padding: 3px;
  width: 28px;
}

.primary-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(16px, 2.2vw, 30px);
  justify-content: center;
}

.primary-nav a,
.footer-links a {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-nav a {
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.primary-nav a:hover,
.footer-links a:hover {
  color: var(--accent-ink);
}

.primary-nav a:hover {
  background: var(--accent-soft);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: var(--space-4);
}

.segmented-switcher {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.segmented-switcher button {
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 0.83rem;
  line-height: 1;
  min-width: 43px;
  padding: 9px 12px;
}

.segmented-switcher button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(26, 26, 23, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.menu-trigger {
  display: none;
}

.button {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 550;
  height: 46px;
  justify-content: center;
  padding: 0 22px;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.button.primary {
  background: var(--accent);
  box-shadow: 0 1px 1px rgba(26, 26, 23, 0.08), 0 7px 16px rgba(156, 79, 45, 0.13);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.button.primary:active {
  box-shadow: 0 1px 2px rgba(26, 26, 23, 0.1);
  transform: translateY(0);
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: var(--accent-soft);
  border-color: color-mix(in oklch, var(--accent) 28%, var(--border));
}

.hero {
  padding: clamp(54px, 6.8vw, 94px) 0 var(--space-10);
}

.hero-layout {
  align-items: center;
  display: grid;
  gap: clamp(38px, 4vw, 54px);
  grid-template-columns: minmax(360px, 0.82fr) minmax(550px, 1.2fr);
}

.hero-copy {
  max-width: 520px;
}

.eyebrow,
.section-label,
.micro {
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:lang(zh-CN) .eyebrow,
:lang(zh-CN) .section-label,
:lang(zh-CN) .micro {
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: var(--space-5) 0;
}

:lang(zh-CN) .hero h1 {
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.hero-body {
  color: var(--ink-secondary);
  font-size: 1.08rem;
  line-height: 1.72;
}

.cta-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.support-line {
  color: var(--ink-secondary);
  font-size: 0.86rem;
  margin-top: var(--space-6);
}

.technical-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  display: inline-block;
  font-size: 0.78rem;
  margin-top: var(--space-4);
  padding: 8px 11px;
}

.workflow-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-preview);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.preview-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 16px;
}

.preview-title {
  align-items: center;
  display: flex;
  gap: 12px;
}

.preview-title .micro {
  color: var(--ink-secondary);
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.preview-title strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.decorative-action,
.decorative-control {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 20%, var(--border));
  border-radius: var(--radius-sm);
  color: var(--accent-ink);
  cursor: default;
  font-size: 0.76rem;
  font-weight: 550;
  line-height: 34px;
  padding: 0 15px;
  white-space: nowrap;
}

.preview-canvas {
  background-color: var(--bg);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-canvas {
  height: clamp(288px, 24vw, 320px);
  position: relative;
}

.connections {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.mobile-connections {
  display: none;
}

.connector {
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.connector.warning {
  stroke: var(--warning);
  stroke-dasharray: 6 6;
}

.connector.neutral {
  stroke: color-mix(in oklch, var(--running) 40%, var(--border));
  stroke-dasharray: 3 6;
}

.node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  position: absolute;
  top: 83px;
  width: 72px;
}

.node.step {
  border-top: 3px solid color-mix(in oklch, var(--running) 30%, var(--border));
  padding-top: 8px;
}

.node.review {
  border-top-color: var(--running);
}

.node strong {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.node-kind {
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.node code {
  background: var(--bg);
  border-radius: 3px;
  color: var(--ink-secondary);
  font-size: 0.56rem;
  padding: 2px 4px;
}

.node-line {
  background: var(--border);
  border-radius: 999px;
  display: block;
  height: 4px;
  width: 34px;
}

.ticket {
  left: 3%;
}

.plan {
  left: 19%;
}

.code {
  left: 35%;
}

.review {
  left: 51%;
  width: 82px;
}

.node.gate {
  background: var(--bg-panel);
  left: 68%;
  overflow: visible;
  width: 82px;
}

.done {
  background: var(--success-soft);
  border-color: color-mix(in oklch, var(--success) 25%, var(--border));
  left: 85%;
  width: 79px;
}

.status {
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 0.57rem;
  line-height: 16px;
  padding: 0 6px;
  width: max-content;
}

.status.running-indicator {
  background: var(--running-soft);
  color: var(--ink-secondary);
}

.done .status {
  background: var(--surface);
  color: var(--ink-secondary);
}

.branch {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  position: absolute;
}

.branch.pass {
  color: var(--ink-secondary);
  right: -13px;
  top: -19px;
}

.branch.rework {
  bottom: -24px;
  color: var(--ink-secondary);
  left: 12px;
}

.branch.replan {
  color: var(--ink-secondary);
  right: -24px;
  top: 5px;
}

.session-dock {
  background: linear-gradient(180deg, var(--surface), var(--bg-panel));
  border-top: 1px solid var(--border-soft);
  padding: 0 16px 12px;
}

.dock-tabs {
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: var(--space-5);
  height: 42px;
  margin-bottom: 8px;
}

.dock-tabs span {
  align-items: center;
  color: var(--ink-secondary);
  display: inline-flex;
  font-size: 0.76rem;
}

.dock-tabs .active {
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
}

.session-dock p {
  align-items: center;
  color: var(--ink-secondary);
  display: flex;
  font-size: 0.75rem;
  gap: 10px;
  line-height: 27px;
}

.dock-dot {
  border-radius: 100%;
  height: 7px;
  width: 7px;
}

.dock-dot.running {
  background: var(--running);
}

.dock-dot.paused {
  background: var(--warning);
}

.workflow-preview figcaption {
  color: var(--ink-secondary);
  font-size: 0.79rem;
  padding: 15px 16px 3px;
}

.disclaimer {
  color: var(--ink-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 3px 16px 15px;
}

.chapter {
  padding-bottom: clamp(68px, 7vw, var(--space-9));
}

.chapter-layout {
  align-items: center;
  display: grid;
  gap: clamp(44px, 8vw, 110px);
  grid-template-columns: 1fr minmax(380px, 0.88fr);
}

.chapter.reverse .chapter-copy {
  order: 2;
}

.chapter-copy {
  max-width: 600px;
}

.section-label {
  margin-bottom: 15px;
}

.chapter h2,
.story h2,
.architecture h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 570;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-bottom: 18px;
}

:lang(zh-CN) .chapter h2,
:lang(zh-CN) .story h2,
:lang(zh-CN) .architecture h2,
:lang(zh-CN) .closing h2 {
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.chapter-copy > p:not(.section-label):not(.qualification),
.architecture-layout > div:first-child > p:not(.section-label),
.broad-intro {
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.68;
}

.qualification {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  line-height: 1.58;
  margin-top: var(--space-5);
  padding: 12px 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: var(--space-6);
}

.chip {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  padding: 7px 12px;
}

.mini-preview,
.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  height: 280px;
  overflow: hidden;
  position: relative;
}

.node-types svg {
  height: 100%;
  position: absolute;
  width: 100%;
}

.mini-node {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--ink-secondary);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  height: 62px;
  justify-content: center;
  position: absolute;
  width: 82px;
}

.mini-node.input {
  left: 7.3%;
  top: 84px;
}

.mini-node.step {
  left: 39.6%;
  top: 26px;
}

.mini-node.gate {
  background: var(--bg-panel);
  left: 72.9%;
  top: 84px;
}

.mini-node.end {
  background: var(--success-soft);
  left: 72.9%;
  top: 151px;
}

.feature-card {
  background: var(--surface);
  padding: var(--space-6);
}

.gate-preview {
  display: grid;
  gap: 14px 26px;
  grid-template-columns: 120px 1fr;
  grid-template-rows: repeat(3, 47px) auto;
}

.gate-center {
  align-self: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  grid-row: 1 / 4;
  justify-content: center;
  padding: 18px;
}

.gate-center strong {
  font-size: 1.05rem;
}

.route {
  align-items: center;
  display: flex;
  gap: 16px;
}

.route code {
  font-size: 0.76rem;
  width: 56px;
}

.route span {
  border-top: 2px solid var(--border);
  display: block;
  flex: 1;
}

.route.success code {
  color: var(--ink-secondary);
}

.route.success span {
  border-color: var(--success);
}

.route.warning code {
  color: var(--ink-secondary);
}

.route.warning span {
  border-color: var(--warning);
  border-style: dashed;
}

.route.neutral code {
  color: var(--ink-secondary);
}

.route.neutral span {
  border-color: color-mix(in oklch, var(--running) 45%, var(--border));
  border-style: dashed;
}

.budget {
  align-items: center;
  border-top: 1px solid var(--border-soft);
  color: var(--ink-secondary);
  display: flex;
  font-size: 0.73rem;
  gap: var(--space-3);
  grid-column: 1 / 3;
  padding-top: 16px;
}

.budget code {
  background: var(--warning-soft);
  border-radius: 999px;
  color: var(--ink-secondary);
  padding: 3px 9px;
}

.context-preview .dock-tabs {
  margin-bottom: var(--space-4);
}

.session-row {
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding: 11px 13px;
}

.session-row strong {
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.ghost-action {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.73rem;
  padding: 3px 11px;
}

.inline-note {
  color: var(--ink-secondary);
  font-size: 0.73rem;
  line-height: 1.48;
  margin-top: var(--space-4);
}

.checkpoint-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkpoint-preview .paused {
  background: var(--warning-soft);
  color: var(--ink-secondary);
  font-size: 0.7rem;
  margin-bottom: 23px;
  padding: 3px 11px;
}

.checkpoint-preview label {
  color: var(--ink-secondary);
  font-size: 0.78rem;
  margin-bottom: var(--space-2);
}

.checkpoint-preview .decorative-control {
  align-self: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.profiles-preview h3 {
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 560;
  padding-bottom: var(--space-4);
}

.profiles-preview p {
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: var(--space-6);
  min-height: 70px;
}

.profiles-preview code {
  color: var(--ink);
  flex-shrink: 0;
  font-size: 0.79rem;
  width: 110px;
}

.profiles-preview span {
  color: var(--ink-secondary);
  font-size: 0.75rem;
}

.story {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-9) 0;
}

.broad-intro {
  max-width: 680px;
}

.story-rail {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(5, 1fr);
  margin-top: var(--space-8);
}

.story-rail li {
  border-top: 1px solid var(--border);
  min-height: 158px;
  padding-top: var(--space-4);
  position: relative;
}

.story-rail li:not(:last-child)::after {
  background: var(--accent);
  border-radius: 100%;
  content: "";
  height: 7px;
  position: absolute;
  right: calc(var(--space-5) * -0.5 - 4px);
  top: -4px;
  width: 7px;
}

.stage-number {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
}

.story-rail h3 {
  font-size: 1rem;
  font-weight: 580;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 20px 0 10px;
}

.story-rail p {
  color: var(--ink-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.flow-statement {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  font-size: 0.88rem;
  margin-top: var(--space-6);
  padding: 16px 18px;
}

.architecture {
  padding: 0 0 var(--space-9);
}

.architecture-layout {
  align-items: center;
  display: grid;
  gap: clamp(45px, 7vw, 96px);
  grid-template-columns: 0.9fr 1.1fr;
}

.technical-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.technical-stack code {
  color: var(--ink-secondary);
  font-size: 0.78rem;
}

.architecture-diagram {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr auto 1fr;
  padding: clamp(24px, 3vw, 32px);
}

.architecture-diagram div {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.architecture-diagram span:not(.architecture-arrow) {
  color: var(--ink-secondary);
  font-size: 0.72rem;
}

.architecture-diagram code {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.architecture-diagram strong {
  font-size: 0.86rem;
  font-weight: 550;
}

.architecture-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.closing {
  padding: var(--space-9) 0;
}

.closing-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(42px, 6vw, 68px);
  padding-top: clamp(42px, 6vw, 68px);
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 570;
  letter-spacing: -0.05em;
  line-height: 1.06;
  max-width: 770px;
}

.closing p {
  color: var(--ink-secondary);
  margin-top: var(--space-5);
  max-width: 660px;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-7) 0 var(--space-6);
}

.footer-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(255px, 1fr) auto;
}

.footer-brand p {
  color: var(--ink-secondary);
  font-size: 0.86rem;
  margin-top: var(--space-3);
  max-width: 390px;
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-note {
  border-top: 1px solid var(--border-soft);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  grid-column: 1 / 3;
  padding-top: var(--space-5);
}

.animated-connector {
  animation: dash 9s linear infinite;
}

.running-indicator {
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -48;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.66;
  }
}

@media (max-width: 1099px) {
  .header-inner {
    gap: var(--space-4);
  }

  .primary-nav {
    display: none;
  }

  .menu-trigger {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 42px;
    justify-content: center;
    order: 2;
    width: 43px;
  }

  .menu-trigger span {
    background: var(--ink-secondary);
    height: 1px;
    width: 17px;
  }

  .header-actions {
    margin-left: auto;
    order: 1;
  }

  .primary-nav.is-open {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0;
    left: var(--container-padding);
    padding: 7px;
    position: absolute;
    right: var(--container-padding);
    top: calc(100% - 3px);
  }

  .primary-nav.is-open a {
    padding: 11px 13px;
    width: 100%;
  }

  .hero-layout {
    gap: var(--space-8);
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .workflow-preview {
    margin-left: auto;
    margin-right: auto;
    max-width: 690px;
    width: 100%;
  }

  .chapter-layout,
  .architecture-layout {
    gap: var(--space-7);
    grid-template-columns: 1fr;
  }

  .chapter.reverse .chapter-copy {
    order: 0;
  }

  .mini-preview,
  .feature-card {
    max-width: 560px;
    width: 100%;
  }

  .architecture-diagram {
    max-width: 690px;
  }

  .story-rail {
    gap: var(--space-4);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    height: 64px;
    gap: 10px;
  }

  .brand span:last-child {
    font-size: 0.96rem;
  }

  .brand-mark {
    transform: scale(0.92);
  }

  .menu-trigger {
    height: 40px;
    order: 2;
    width: 40px;
  }

  .header-actions {
    gap: 8px;
    margin-left: auto;
  }

  .segmented-switcher button {
    min-width: 38px;
    padding: 8px 8px;
  }

  .header-cta {
    display: inline-flex;
    font-size: 0.84rem;
    height: 40px;
    padding-left: 12px;
    padding-right: 12px;
    width: auto;
  }

  .hero {
    padding: 42px 0 var(--space-9);
  }

  .hero-layout {
    gap: var(--space-7);
  }

  .hero h1 {
    font-size: 2.45rem;
    line-height: 1.04;
    margin: 18px 0;
  }

  :lang(zh-CN) .hero h1 {
    line-height: 1.2;
  }

  .hero-body {
    font-size: 1rem;
    line-height: 1.68;
  }

  .cta-row {
    flex-direction: column;
    margin-top: var(--space-5);
  }

  .button {
    height: 48px;
    width: 100%;
  }

  .button.header-cta {
    height: 40px;
    width: auto;
  }

  .support-line {
    line-height: 1.7;
    margin-top: var(--space-5);
  }

  .technical-pill {
    max-width: 100%;
    overflow-x: auto;
  }

  .workflow-preview {
    box-shadow: 0 1px 2px rgba(26, 26, 23, 0.04), 0 12px 34px rgba(26, 26, 23, 0.07);
  }

  .preview-toolbar {
    min-height: 60px;
    padding: 10px 12px;
  }

  .preview-title .micro {
    display: none;
  }

  .decorative-action {
    font-size: 0.7rem;
    padding: 0 11px;
  }

  .hero-canvas {
    height: 306px;
  }

  .node {
    padding: 8px;
    top: 42px;
    width: clamp(67px, 22vw, 78px);
  }

  .ticket,
  .review {
    left: 12px;
  }

  .plan,
  .node.gate {
    left: 50%;
    transform: translateX(-50%);
  }

  .code,
  .done {
    left: auto;
    right: 12px;
  }

  .review {
    top: 175px;
    width: clamp(72px, 24vw, 82px);
  }

  .node.gate {
    top: 175px;
    width: clamp(72px, 24vw, 82px);
  }

  .done {
    top: 175px;
    width: clamp(72px, 24vw, 82px);
  }

  .node.gate .branch.rework {
    bottom: -24px;
    left: -24px;
  }

  .node.gate .branch.replan {
    bottom: -24px;
    right: -16px;
    top: auto;
  }

  .connections:not(.mobile-connections) {
    display: none;
  }

  .mobile-connections {
    display: block;
  }

  .session-dock {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chapter {
    padding-bottom: var(--space-8);
  }

  .chapter-layout {
    gap: var(--space-6);
  }

  .chapter h2,
  .story h2,
  .architecture h2,
  .setup h2 {
    font-size: 1.8rem;
    line-height: 1.16;
  }

  .mini-preview,
  .feature-card {
    height: 255px;
  }

  .mini-node.input {
    left: 7.3%;
  }

  .mini-node.step {
    left: 39.6%;
  }

  .mini-node.gate,
  .mini-node.end {
    left: 72.9%;
    right: auto;
  }

  .gate-preview {
    gap: 11px 14px;
    grid-template-columns: 102px 1fr;
    padding: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .story {
    padding: var(--space-8) 0;
  }

  .story-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-6);
  }

  .story-rail li {
    border-left: 1px solid var(--border);
    border-top: 0;
    min-height: auto;
    padding: 0 0 30px 24px;
  }

  .story-rail li:not(:last-child)::after {
    left: -4px;
    right: auto;
    top: 4px;
  }

  .story-rail h3 {
    margin: 8px 0;
  }

  .architecture-diagram {
    align-items: start;
    grid-template-columns: 1fr;
    padding: var(--space-5);
  }

  .architecture-arrow {
    transform: rotate(90deg);
  }

  .closing {
    padding: var(--space-8) 0;
  }

  .closing-card {
    align-items: stretch;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    text-align: left;
  }

  .closing h2 {
    font-size: 2rem;
    line-height: 1.12;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
  }

  .footer-note {
    grid-column: 1;
  }
}

@media (max-width: 399px) {
  .header-inner .brand > span:last-child {
    display: none;
  }

  .header-inner .brand {
    gap: 0;
  }

  .header-actions {
    gap: 6px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11.5vw, 2.38rem);
  }

  .preview-title strong {
    font-size: 0.82rem;
  }

  .session-dock p {
    font-size: 0.71rem;
  }

  .gate-preview {
    grid-template-columns: 88px 1fr;
    padding: 16px;
  }

  .profiles-preview code {
    width: 98px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .preview *,
  .reveal,
  .animated-connector,
  .running-indicator,
  .site-header,
  .skip-link {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .button {
    animation: none !important;
    transition: none !important;
  }

  .button:hover,
  .button:active {
    transform: none !important;
  }
}

/* Aflow refresh */
body {
  background:
    radial-gradient(circle at 13% 20%, color-mix(in oklch, var(--accent) 10%, transparent) 0 18%, transparent 34%),
    radial-gradient(circle at 78% 15%, color-mix(in oklch, var(--running) 9%, transparent) 0 16%, transparent 35%),
    var(--bg);
}

.site-header {
  background: transparent;
  border-bottom: 0;
  padding: 14px var(--container-padding) 0;
}

.site-header.has-scroll {
  background: transparent;
  border-color: transparent;
}

.header-inner {
  background: color-mix(in oklch, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in oklch, var(--border) 72%, transparent);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(17, 22, 15, 0.08);
  max-width: var(--container-max);
  padding: 0 18px 0 24px;
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .header-inner {
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.brand {
  font-size: 1.36rem;
  letter-spacing: -0.045em;
}

.brand-mark {
  align-items: center;
  background: #f8fbff;
  border: 1px solid color-mix(in oklch, var(--accent) 26%, var(--border));
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  object-fit: initial;
  padding: 6px;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

[data-theme="dark"] .brand-mark {
  background: #050806;
  border-color: #2b342d;
}

.icon {
  fill: none;
  height: 1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1em;
}

.button {
  gap: 9px;
}

.button.primary {
  color: #07120b;
}

.icon-switcher {
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.icon-switcher button {
  align-items: center;
  border-radius: 999px;
  color: var(--ink-secondary);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 38px;
}

.icon-switcher button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(26, 26, 23, 0.08);
  color: var(--accent-ink);
}

.hero {
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 110px);
  position: relative;
}

.hero-orbit {
  border: 58px solid color-mix(in oklch, var(--accent) 8%, transparent);
  border-radius: 999px;
  height: 520px;
  left: 26%;
  pointer-events: none;
  position: absolute;
  top: 24px;
  transform: rotate(32deg);
  width: 520px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.product-pill {
  align-items: center;
  background: color-mix(in oklch, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  box-shadow: var(--shadow-card);
}

.product-pill .brand-mark {
  height: 34px;
  width: 34px;
}

.product-pill strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.product-pill span:not(.brand-mark) {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 6px 12px;
}

.eyebrow {
  display: none;
}

.hero h1 {
  font-weight: 760;
  letter-spacing: -0.045em;
}

:lang(zh-CN) .hero h1 {
  font-weight: 780;
}

.hero-body {
  max-width: 680px;
}

.workflow-preview {
  border-radius: 18px;
}

.preview-toolbar {
  min-height: 76px;
  padding-left: 20px;
  padding-right: 20px;
}

.decorative-action {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  line-height: 38px;
}

.node {
  min-height: 84px;
  width: 82px;
}

.node-icon {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: auto;
}

.node.step .node-icon,
.node.gate .node-icon {
  color: var(--accent-ink);
}

.hero-canvas .branch {
  display: none;
}

.use-case {
  padding: var(--space-9) 0;
}

.use-case-layout {
  align-items: start;
  display: grid;
  gap: clamp(44px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
}

.use-case h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.use-case p {
  color: var(--ink-secondary);
  line-height: 1.72;
}

.use-case-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 10px;
}

.use-case-steps li {
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 16px;
  min-height: 66px;
  padding: 0 12px;
}

.use-case-steps li:last-child {
  border-bottom: 0;
}

.use-case-steps span {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.use-case-steps strong {
  font-size: 0.95rem;
}

@media (max-width: 1099px) {
  .site-header {
    padding-left: 0;
    padding-right: 0;
  }

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

@media (max-width: 767px) {
  .header-inner {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .header-cta span {
    display: none;
  }

  .hero-orbit {
    display: none;
  }
}

/* Product polish round two */
.agent-stack {
  align-items: center;
  color: var(--accent-ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 650;
  gap: 8px;
  margin-top: var(--space-4);
}

.agent-stack::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.hero-orbit {
  align-items: center;
  border: 0;
  color: color-mix(in oklch, var(--accent) 10%, transparent);
  display: flex;
  font-family: var(--font-display);
  font-size: 31rem;
  font-weight: 800;
  height: auto;
  justify-content: center;
  left: 18%;
  line-height: 0.7;
  opacity: 0.74;
  top: 72px;
  transform: rotate(-8deg);
  width: auto;
}

.node.gate,
.mini-node.gate {
  clip-path: none;
}

.node.gate {
  background: var(--surface);
  border-color: color-mix(in oklch, var(--accent) 36%, var(--border));
}

.flow-statement {
  display: none;
}

.flow-map {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: var(--space-6);
}

.flow-map span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--ink-secondary);
  display: flex;
  font-size: 0.78rem;
  font-weight: 650;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
  position: relative;
  text-align: center;
}

.flow-map span:not(:last-child)::after {
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  height: 1px;
  position: absolute;
  right: -18px;
  top: 50%;
  width: 24px;
  z-index: 1;
}

.recommendation-stack {
  display: grid;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.recommendation-stack span {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 560;
  padding: 12px 14px;
}

.technical-stack {
  flex-direction: row;
  flex-wrap: wrap;
}

.technical-stack span {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 24%, var(--border));
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 8px 12px;
}

.architecture-diagram code {
  display: none;
}

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

  .flow-map span:not(:last-child)::after {
    display: none;
  }
}

/* Aflow neon homepage */
:root {
  --neon-bg: #07090f;
  --neon-panel: #0f1620;
  --neon-panel-2: #131c27;
  --neon-text: #eef7ff;
  --neon-muted: #9aa8b7;
  --neon-line: rgba(145, 168, 190, 0.20);
  --neon-green: #7cffb2;
  --neon-cyan: #5eead4;
  --neon-amber: #f7e38b;
  --neon-pink: #ff6bd5;
}

body {
  background:
    radial-gradient(circle at 14% 16%, rgba(124, 255, 178, 0.16), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(94, 234, 212, 0.14), transparent 25%),
    radial-gradient(circle at 72% 72%, rgba(255, 107, 213, 0.09), transparent 28%),
    var(--neon-bg);
  color: var(--neon-text);
}

body::before {
  background:
    linear-gradient(rgba(145, 168, 190, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 168, 190, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black 0%, black 54%, transparent 100%);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 255, 178, 0.18), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(94, 234, 212, 0.14), transparent 24%),
    #eef1ec;
  color: var(--ink);
}

[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(17, 22, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 15, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
}

.site-header,
.site-header.has-scroll {
  background: transparent;
  border: 0;
}

.header-inner {
  background: rgba(9, 13, 20, 0.72);
  border-color: var(--neon-line);
  border-radius: 18px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .header-inner {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(17, 22, 15, 0.08);
}

.brand {
  color: var(--neon-text);
  letter-spacing: 0;
}

[data-theme="light"] .brand {
  color: var(--ink);
}

.brand-mark {
  background: #08100d;
  border-color: rgba(124, 255, 178, 0.46);
  box-shadow: 0 0 28px rgba(124, 255, 178, 0.16);
}

.primary-nav a,
.footer-links a,
.support-line,
.hero-body,
.section-heading > p,
.value-card p,
.case-card p,
.architecture-layout > div:first-child > p:not(.section-label),
.closing p,
.download-hero p,
.release-card p,
.download-section .section-heading p,
.footer-brand p,
.footer-note {
  color: var(--neon-muted);
}

[data-theme="light"] .primary-nav a,
[data-theme="light"] .footer-links a,
[data-theme="light"] .support-line,
[data-theme="light"] .hero-body,
[data-theme="light"] .section-heading > p,
[data-theme="light"] .value-card p,
[data-theme="light"] .case-card p,
[data-theme="light"] .architecture-layout > div:first-child > p:not(.section-label),
[data-theme="light"] .closing p,
[data-theme="light"] .download-hero p,
[data-theme="light"] .release-card p,
[data-theme="light"] .download-section .section-heading p,
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-note {
  color: var(--ink-secondary);
}

.primary-nav a:hover,
.footer-links a:hover {
  background: rgba(124, 255, 178, 0.10);
  color: var(--neon-green);
}

.button {
  border-radius: 8px;
  font-weight: 760;
}

.button.primary {
  background: var(--neon-green);
  border: 1px solid rgba(124, 255, 178, 0.5);
  box-shadow: 0 0 36px rgba(124, 255, 178, 0.22);
  color: #06100b;
}

.button.primary:hover {
  background: #9dffc5;
  box-shadow: 0 0 48px rgba(124, 255, 178, 0.30);
}

.button.secondary {
  background: rgba(15, 22, 32, 0.72);
  border-color: var(--neon-line);
  color: var(--neon-text);
}

.button.secondary:hover {
  background: rgba(124, 255, 178, 0.10);
  border-color: rgba(124, 255, 178, 0.34);
}

[data-theme="light"] .button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.icon-switcher,
.segmented-switcher {
  background: rgba(15, 22, 32, 0.82);
  border-color: var(--neon-line);
}

[data-theme="light"] .icon-switcher,
[data-theme="light"] .segmented-switcher {
  background: var(--bg-panel);
  border-color: var(--border);
}

.icon-switcher button[aria-pressed="true"],
.segmented-switcher button[aria-pressed="true"] {
  background: var(--neon-panel-2);
  color: var(--neon-green);
}

[data-theme="light"] .icon-switcher button[aria-pressed="true"],
[data-theme="light"] .segmented-switcher button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent-ink);
}

.hero {
  min-height: calc(100vh - 86px);
  padding-bottom: clamp(80px, 8vw, 132px);
  padding-top: clamp(74px, 8vw, 124px);
}

.hero-layout {
  grid-template-columns: minmax(340px, 0.86fr) minmax(560px, 1.14fr);
}

.hero h1 {
  color: var(--neon-text);
  font-size: clamp(3.7rem, 6.6vw, 7.05rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.93;
  max-width: 850px;
}

[data-theme="light"] .hero h1 {
  color: var(--ink);
}

:lang(zh-CN) .hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.9rem);
  line-height: 1.05;
}

.hero h1::after {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan), var(--neon-amber));
  border-radius: 999px;
  box-shadow: 0 0 32px rgba(94, 234, 212, 0.36);
  content: "";
  display: block;
  height: 5px;
  margin-top: 24px;
  width: min(360px, 70%);
}

.hero-body {
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  max-width: 760px;
}

.product-pill {
  background: rgba(15, 22, 32, 0.74);
  border-color: var(--neon-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 70px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .product-pill {
  background: rgba(255, 255, 255, 0.78);
}

.product-pill span:not(.brand-mark) {
  background: rgba(124, 255, 178, 0.12);
  color: var(--neon-green);
}

[data-theme="light"] .product-pill span:not(.brand-mark) {
  color: var(--accent-ink);
}

.agent-stack {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 560;
  max-width: 700px;
}

[data-theme="light"] .agent-stack {
  color: var(--accent-ink);
}

.hero-orbit {
  color: rgba(124, 255, 178, 0.075);
  font-size: min(43vw, 34rem);
  left: 13%;
  top: 70px;
}

.workflow-preview,
.value-card,
.case-card,
.command-card,
.release-card,
.download-command,
.closing-card {
  background:
    linear-gradient(145deg, rgba(15, 22, 32, 0.92), rgba(8, 12, 18, 0.86));
  border: 1px solid var(--neon-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 90px rgba(0, 0, 0, 0.34);
}

[data-theme="light"] .workflow-preview,
[data-theme="light"] .value-card,
[data-theme="light"] .case-card,
[data-theme="light"] .command-card,
[data-theme="light"] .release-card,
[data-theme="light"] .download-command,
[data-theme="light"] .closing-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(216, 220, 209, 0.86);
  box-shadow: var(--shadow-card);
}

.preview-toolbar {
  background: rgba(6, 10, 16, 0.72);
  border-bottom-color: var(--neon-line);
}

[data-theme="light"] .preview-toolbar {
  background: rgba(246, 248, 244, 0.72);
}

.preview-title strong,
.value-card h2,
.case-card h3,
.architecture h2,
.closing h2,
.download-hero h1,
.release-card h2,
.download-section h2,
.download-command h3 {
  color: var(--neon-text);
  letter-spacing: 0;
}

[data-theme="light"] .preview-title strong,
[data-theme="light"] .value-card h2,
[data-theme="light"] .case-card h3,
[data-theme="light"] .architecture h2,
[data-theme="light"] .closing h2,
[data-theme="light"] .download-hero h1,
[data-theme="light"] .release-card h2,
[data-theme="light"] .download-section h2,
[data-theme="light"] .download-command h3 {
  color: var(--ink);
}

.preview-canvas {
  background-color: #09101a;
  background-image:
    radial-gradient(rgba(124, 255, 178, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(124, 255, 178, 0.12), transparent 30%),
    radial-gradient(circle at 72% 28%, rgba(94, 234, 212, 0.10), transparent 28%);
  background-size: 24px 24px, 100% 100%, 100% 100%;
}

[data-theme="light"] .preview-canvas {
  background-color: var(--bg);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
}

.hero-canvas {
  height: clamp(430px, 34vw, 540px);
  overflow: hidden;
}

.neo-orbit {
  border: 1px solid rgba(124, 255, 178, 0.18);
  border-radius: 999px;
  box-shadow: 0 0 80px rgba(124, 255, 178, 0.10), inset 0 0 72px rgba(94, 234, 212, 0.05);
  height: 330px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 330px;
}

.neo-orbit::before,
.neo-orbit::after {
  border: 1px solid rgba(94, 234, 212, 0.14);
  border-radius: inherit;
  content: "";
  inset: 58px;
  position: absolute;
}

.neo-orbit::after {
  border-color: rgba(247, 227, 139, 0.15);
  inset: 116px;
}

.neo-node {
  background: rgba(6, 10, 16, 0.80);
  border: 1px solid rgba(145, 168, 190, 0.26);
  border-radius: 13px;
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 118px;
  padding: 14px;
  position: absolute;
  width: 178px;
  z-index: 3;
}

.neo-node::before {
  background: linear-gradient(135deg, rgba(124, 255, 178, 0.55), transparent 40%, rgba(94, 234, 212, 0.22));
  border-radius: inherit;
  content: "";
  inset: -1px;
  opacity: 0.56;
  position: absolute;
  z-index: -1;
}

.neo-node span {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.neo-node strong {
  color: var(--neon-text);
  font-size: 1rem;
  line-height: 1.25;
}

.neo-node code {
  color: var(--neon-muted);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.neo-node em {
  align-self: flex-start;
  background: var(--neon-green);
  border-radius: 999px;
  color: #07100d;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-style: normal;
  margin-top: auto;
  padding: 3px 8px;
}

.neo-node.waiting em {
  background: var(--neon-amber);
}

.neo-node.queued em {
  background: #8392a4;
}

.neo-node-1 { left: 4%; top: 38%; }
.neo-node-2 { left: 25%; top: 12%; }
.neo-node-3 { left: 42%; top: 48%; }
.neo-node-4 { right: 10%; top: 16%; }
.neo-node-5 { right: 4%; bottom: 10%; }

.connector.neon {
  stroke: var(--neon-green);
}

.connector.cyan {
  stroke: var(--neon-cyan);
}

.connector.warning {
  stroke: var(--neon-amber);
}

.neo-trace {
  background: rgba(3, 6, 11, 0.84);
  border-top-color: var(--neon-line);
}

.neo-trace p {
  align-items: center;
  color: #b8c6d5;
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  gap: 9px;
  line-height: 1.9;
}

.neo-trace p span {
  color: var(--neon-green);
}

[data-theme="light"] .neo-trace {
  background: rgba(4, 8, 14, 0.9);
  border-top-color: rgba(124, 255, 178, 0.2);
}

[data-theme="light"] .neo-trace .dock-tabs {
  border-bottom-color: rgba(124, 255, 178, 0.16);
}

[data-theme="light"] .neo-trace .dock-tabs span {
  color: #9fb0c2;
}

[data-theme="light"] .neo-trace .dock-tabs .active {
  border-bottom-color: var(--neon-green);
  color: #eef7ff;
}

[data-theme="light"] .neo-trace p {
  color: #dce8f5;
}

[data-theme="light"] .neo-trace p span {
  color: var(--neon-green);
}

.workflow-preview figcaption {
  color: var(--neon-muted);
}

[data-theme="light"] .workflow-preview figcaption {
  color: var(--ink-secondary);
}

.value-grid,
.use-case,
.architecture,
.closing,
.download-section {
  padding: clamp(72px, 8vw, 116px) 0;
}

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

.value-card,
.case-card {
  border-radius: 16px;
  padding: clamp(22px, 3vw, 30px);
}

.value-card span {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.value-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  margin: 18px 0 14px;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 48px);
  max-width: 780px;
}

.section-heading h2 {
  color: var(--neon-text);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 18px;
}

[data-theme="light"] .section-heading h2 {
  color: var(--ink);
}

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

.case-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 390px;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  line-height: 1.1;
}

.case-card code {
  background: rgba(124, 255, 178, 0.09);
  border: 1px solid rgba(124, 255, 178, 0.18);
  border-radius: 10px;
  color: #dce8f5;
  display: block;
  font-size: 0.74rem;
  line-height: 1.7;
  margin-top: auto;
  padding: 14px;
  white-space: normal;
}

[data-theme="light"] .case-card code {
  color: var(--ink-secondary);
}

.case-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-card div span,
.technical-stack span {
  background: rgba(8, 12, 18, 0.55);
  border: 1px solid var(--neon-line);
  border-radius: 999px;
  color: #b8c6d5;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 7px 10px;
}

[data-theme="light"] .case-card div span,
[data-theme="light"] .technical-stack span {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

[data-theme="light"] .command-card {
  background:
    linear-gradient(145deg, rgba(9, 15, 24, 0.96), rgba(4, 8, 14, 0.92));
  border-color: rgba(124, 255, 178, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 60px rgba(17, 22, 15, 0.18);
}

.architecture-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(330px, 0.74fr);
}

.command-card {
  border-radius: 16px;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
}

.command-card code {
  color: #dce8f5;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.9;
}

.command-card code:first-child {
  color: var(--neon-green);
}

[data-theme="light"] .command-card code {
  color: #dce8f5;
}

[data-theme="light"] .command-card code:first-child {
  color: var(--neon-green);
}

.closing-card {
  border-radius: 22px;
}

.download-page {
  min-height: 100vh;
}

.download-hero {
  padding: clamp(72px, 8vw, 124px) 0 clamp(52px, 6vw, 84px);
}

.download-hero-layout {
  align-items: stretch;
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
}

.download-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 18px 0;
}

.download-hero p {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  max-width: 720px;
}

.release-card {
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
}

.release-card span {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.release-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.05;
  margin: 22px 0 16px;
}

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

.download-command {
  border-radius: 16px;
  padding: 22px;
}

.download-command h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.download-command pre {
  background: rgba(3, 6, 11, 0.78);
  border: 1px solid rgba(124, 255, 178, 0.18);
  border-radius: 10px;
  margin: 0;
  overflow-x: auto;
  padding: 16px;
}

.download-command code {
  color: #dce8f5;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

[data-theme="light"] .download-command pre {
  background: rgba(4, 8, 14, 0.9);
  border-color: rgba(124, 255, 178, 0.2);
}

[data-theme="light"] .download-command code {
  color: #dce8f5;
}

.site-footer {
  border-top-color: var(--neon-line);
}

@media (max-width: 1099px) {
  .hero-layout,
  .download-hero-layout,
  .architecture-layout {
    grid-template-columns: 1fr;
  }

  .workflow-preview {
    max-width: 760px;
  }

  .values-layout,
  .case-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero h1,
  .download-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  :lang(zh-CN) .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .hero-canvas {
    height: 690px;
  }

  .neo-node {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(230px, calc(100vw - 76px));
  }

  .neo-node-1 { top: 24px; }
  .neo-node-2 { top: 150px; }
  .neo-node-3 { top: 276px; }
  .neo-node-4 { top: 402px; }
  .neo-node-5 { bottom: auto; top: 528px; }

  .connections {
    display: none;
  }

  .neo-orbit {
    height: 300px;
    width: 300px;
  }

  .case-card {
    min-height: auto;
  }

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

  .download-command code,
  .command-card code {
    font-size: 0.72rem;
  }
}

/* Aflow product-family refinements */
.product-menu {
  position: relative;
}

.product-menu > button {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--neon-muted);
  display: inline-flex;
  font-size: 0.92rem;
  gap: 5px;
  padding: 6px 8px;
}

.product-menu > button:hover {
  background: rgba(124, 255, 178, 0.10);
  color: var(--neon-green);
}

[data-theme="light"] .product-menu > button {
  color: var(--ink-secondary);
}

.product-menu-panel {
  background: rgba(9, 13, 20, 0.96);
  border: 1px solid var(--neon-line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 4px;
  left: 0;
  min-width: 240px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
}

[data-theme="light"] .product-menu-panel {
  background: rgba(255, 255, 255, 0.96);
}

.product-menu:hover .product-menu-panel,
.product-menu:focus-within .product-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-menu-item {
  border-radius: 8px;
  color: var(--neon-text);
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  text-align: left;
}

[data-theme="light"] .product-menu-item {
  color: var(--ink);
}

.product-menu-item:hover {
  background: rgba(124, 255, 178, 0.10);
}

.product-menu-item em {
  color: var(--neon-muted);
  font-size: 0.76rem;
  font-style: normal;
}

.product-menu-item.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.product-menu-item.is-disabled:hover {
  background: transparent;
}

.hero {
  padding-top: clamp(42px, 5vw, 76px);
}

.hero-layout {
  gap: clamp(26px, 3.5vw, 48px);
}

.hero h1 {
  font-size: clamp(3.25rem, 5.8vw, 6.2rem);
}

:lang(zh-CN) .hero h1 {
  font-size: clamp(2.7rem, 4.7vw, 5.05rem);
}

.product-pill {
  margin-bottom: 2px;
}

.products-page {
  min-height: 100vh;
}

.products-hero {
  padding: clamp(62px, 7vw, 108px) 0 clamp(36px, 4vw, 64px);
}

.products-hero h1 {
  color: var(--neon-text);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.6vw, 6rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 18px 0;
  max-width: 980px;
}

[data-theme="light"] .products-hero h1 {
  color: var(--ink);
}

.products-hero p:not(.section-label) {
  color: var(--neon-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.72;
  max-width: 780px;
}

[data-theme="light"] .products-hero p:not(.section-label) {
  color: var(--ink-secondary);
}

.products-section {
  padding: 0 0 clamp(76px, 8vw, 120px);
}

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

.product-card {
  background: linear-gradient(145deg, rgba(15, 22, 32, 0.92), rgba(8, 12, 18, 0.86));
  border: 1px solid var(--neon-line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 90px rgba(0, 0, 0, 0.34);
  min-height: 360px;
  padding: clamp(24px, 3.2vw, 38px);
}

[data-theme="light"] .product-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(216, 220, 209, 0.86);
  box-shadow: var(--shadow-card);
}

.product-card > span {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.product-card h2 {
  color: var(--neon-text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 22px 0 18px;
}

[data-theme="light"] .product-card h2 {
  color: var(--ink);
}

.product-card p {
  color: var(--neon-muted);
  line-height: 1.75;
}

[data-theme="light"] .product-card p {
  color: var(--ink-secondary);
}

.product-card.coming-soon {
  position: relative;
  overflow: hidden;
}

.product-card.coming-soon::after {
  background: radial-gradient(circle, rgba(255, 107, 213, 0.16), transparent 55%);
  content: "";
  height: 280px;
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
}

.product-cta {
  margin-top: 22px;
}

@media (max-width: 1099px) {
  .primary-nav.is-open .product-menu {
    width: 100%;
  }

  .primary-nav.is-open .product-menu > button {
    justify-content: space-between;
    padding: 11px 13px;
    width: 100%;
  }

  .primary-nav.is-open .product-menu-panel {
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    width: 100%;
  }

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

@media (max-width: 767px) {
  .hero {
    padding-top: 34px;
  }

  .products-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .product-card {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .header-actions {
    gap: 6px;
  }

  .icon-switcher {
    background: rgba(6, 10, 16, 0.74);
    border-color: rgba(124, 255, 178, 0.22);
    display: inline-flex;
    padding: 2px;
  }

  [data-theme="light"] .icon-switcher {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(18, 82, 46, 0.18);
  }

  .icon-switcher button {
    height: 28px;
    width: 30px;
  }
}
