:root {
  color-scheme: dark light;
  --ink: oklch(0.155 0.012 25);
  --ink-raised: oklch(0.205 0.014 25);
  --paper: oklch(0.955 0.014 76);
  --paper-muted: oklch(0.91 0.018 72);
  --coral: oklch(0.72 0.12 25);
  --coral-deep: oklch(0.42 0.07 25);
  --text-on-dark: oklch(0.94 0.012 76);
  --text-on-light: oklch(0.22 0.018 25);
  --text-dim: oklch(0.72 0.014 76);
  --text-faint: oklch(0.69 0.016 74);
  --line-dark: oklch(0.4 0.02 25 / 0.5);
  --line-light: oklch(0.72 0.02 70 / 0.6);
  --run: oklch(0.78 0.16 148);
  --need: oklch(0.75 0.13 55);
  --track: oklch(0.76 0.11 225);
  --font-sans: "MiSans", "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text-on-dark);
  background: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.dark-section { color: var(--text-on-dark); background: var(--ink); }
.light-section { color: var(--text-on-light); background: var(--paper); }

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--text-on-dark);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-dark);
  background: oklch(0.155 0.012 25 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-link img { width: 27px; height: 27px; border-radius: 7px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.language-toggle button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--text-faint);
  background: transparent;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.language-toggle button[aria-pressed="true"] { color: var(--text-on-dark); background: var(--ink-raised); }
.bracket-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--coral);
  border-radius: 9px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.bracket-link:hover { color: var(--ink); background: var(--coral); transform: translateY(-1px); }

/* Hero */
.hero { min-height: 100svh; padding: clamp(96px, 12vw, 176px) 0 0; overflow: clip; }
.hero-inner { display: flex; flex-direction: column; }
.eyebrow {
  margin: 0 0 26px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-title { max-width: 1180px; margin: 0; font-size: clamp(3.4rem, 8vw, 7.8rem); line-height: 0.91; letter-spacing: -0.07em; font-weight: 600; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--coral); }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-top: 40px; }
.hero-description { max-width: 30ch; margin: 0; color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.5; }
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--coral);
  border-radius: 10px;
  color: var(--ink);
  background: var(--coral);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.primary-cta:hover { transform: translateY(-2px); background: oklch(0.76 0.12 25); }
.hero-stage { min-height: 560px; margin-top: clamp(72px, 10vw, 132px); }

/* Notch shell (real AgentDock preview) */
.notch-shell {
  position: relative;
  min-height: 560px;
  border: 13px solid oklch(0.09 0.008 25);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: var(--ink-raised) url("./hero-wallpaper.jpg") center / cover no-repeat;
  box-shadow: 0 -1px 0 oklch(0.55 0.02 25 / 0.5), 0 -30px 80px oklch(0.06 0.01 25 / 0.5);
}
.menu-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: oklch(0.9 0.008 76);
  background: oklch(0.13 0.01 25 / 0.88);
  border-bottom: 1px solid oklch(0.36 0.015 25 / 0.4);
  font-size: 12px;
}
.menu-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.menu-brand img { width: 17px; height: 17px; border-radius: 5px; }
.menu-meta { display: flex; gap: 18px; color: var(--text-dim); font-family: var(--font-mono); }
.notch-wrap {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 4;
  width: min(520px, calc(100% - 44px));
  transform: translateX(-50%);
}
.notch-trigger {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 1px;
  padding: 0 16px 6px;
  border: 0;
  border-radius: 0 0 26px 26px;
  color: var(--text-on-dark);
  background: oklch(0.08 0.006 25);
  cursor: pointer;
}
.notch-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border-right: 1px solid oklch(0.28 0.01 25 / 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.notch-chip:last-child { border-right: 0; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.state-dot.run { background: var(--run); box-shadow: 0 0 0 4px oklch(0.78 0.16 148 / 0.14); }
.state-dot.need { background: var(--need); box-shadow: 0 0 0 4px oklch(0.75 0.13 55 / 0.14); }
.state-dot.usage { background: var(--track); box-shadow: 0 0 0 4px oklch(0.76 0.11 225 / 0.14); }
.notch-chip.run { color: var(--run); }
.notch-chip.need { color: var(--need); }
.notch-chip.usage { color: var(--track); }
[data-demo-view] {
  opacity: 0.42;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 180ms var(--ease-out), font-weight 180ms var(--ease-out);
}
[data-active-state="running"] [data-demo-view="running"],
[data-active-state="waiting"] [data-demo-view="waiting"],
[data-active-state="usage"] [data-demo-view="usage"] {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}
.notch-panel {
  visibility: hidden;
  position: absolute;
  top: 50px;
  left: 50%;
  width: min(440px, calc(100% - 20px));
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  color: var(--text-on-dark);
  background: oklch(0.145 0.012 25 / 0.97);
  box-shadow: 0 28px 60px oklch(0.05 0.01 25 / 0.66);
  opacity: 0;
  transform: translate(-50%, -12px) scale(0.97);
  transform-origin: top center;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
}
.notch-wrap.is-open .notch-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 13px;
  border-bottom: 1px solid var(--line-dark);
}
.panel-title strong { font-size: 13px; letter-spacing: 0.1em; }
.panel-title span { color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.session-list { display: grid; gap: 1px; margin-top: 7px; }
.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-dark);
}
.session-row:last-child { border-bottom: 0; }
.session-name { font-size: 13px; font-weight: 600; }
.session-detail { margin-top: 5px; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; }
.session-status { font-family: var(--font-mono); font-size: 10px; }
.session-status.run { color: var(--run); }
.session-status.need { color: var(--need); }
.session-status.usage { color: var(--track); }
.stage-note {
  position: absolute;
  right: 24px;
  bottom: 20px;
  max-width: 260px;
  margin: 0;
  color: oklch(0.85 0.01 76);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

/* Chapters */
.chapter { padding: clamp(88px, 12vw, 168px) 0; }
.chapter-head { max-width: 68ch; }
.chapter-index {
  margin: 0 0 20px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.light-section .chapter-index { color: var(--coral-deep); }
.dark-section .chapter-index { color: var(--coral); }
.chapter-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.chapter-lede { max-width: 62ch; margin: 24px 0 0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; }
.chapter-body { margin: 20px 0 0; max-width: 48ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.58; }
.dark-section .chapter-lede, .dark-section .chapter-body { color: var(--text-dim); }
.light-section .chapter-lede, .light-section .chapter-body { color: oklch(0.4 0.02 25); }
.chapter-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

/* Value chapter — numbered editorial list */
.value-statements {
  list-style: none;
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: 0;
}
.value-statement {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line-light);
}
.value-statement:last-child { border-bottom: 1px solid var(--line-light); }
.value-num { grid-column: 1; grid-row: 1 / span 2; font-family: var(--font-mono); font-size: 13px; color: var(--coral); }
.light-section .value-num { color: var(--coral-deep); }
.dark-section .value-num { color: var(--coral); }
.value-statement h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
.value-statement p { grid-column: 2; grid-row: 2; margin: 10px 0 0; max-width: 52ch; color: oklch(0.4 0.02 25); font-size: 1.05rem; line-height: 1.5; }

/* Status chapter — real agent rows */
.agent-list { margin-top: clamp(48px, 7vw, 88px); }
.agent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line-dark);
}
.agent-row:last-child { border-bottom: 1px solid var(--line-dark); }
.agent-name { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; }
.agent-note { margin: 10px 0 0; max-width: 56ch; color: var(--text-dim); font-size: 1.02rem; line-height: 1.5; }
.agent-state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.agent-state.run { color: var(--run); }
.agent-state.need { color: var(--need); }
.agent-state.usage { color: var(--track); }

/* Approval chapter — demo panel */
.approval-panel {
  padding: 26px;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: oklch(0.99 0.008 76);
  box-shadow: 0 24px 60px oklch(0.5 0.03 40 / 0.12);
}
.approval-request { padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.approval-agent { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-deep); }
.approval-ask { margin: 10px 0 0; font-size: 1.15rem; font-weight: 600; }
.approval-status { min-height: 1.4em; margin: 16px 0; font-family: var(--font-mono); font-size: 13px; color: oklch(0.42 0.02 25); }
.approval-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.approval-btn {
  min-height: 46px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: transparent;
  color: var(--text-on-light);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.approval-btn:hover { transform: translateY(-1px); }
.approval-btn.allow:hover, .approval-btn.allow[aria-pressed="true"] { background: var(--run); border-color: var(--run); color: var(--ink); }
.approval-btn.review:hover, .approval-btn.review[aria-pressed="true"] { background: var(--track); border-color: var(--track); color: var(--ink); }
.approval-btn.deny:hover, .approval-btn.deny[aria-pressed="true"] { background: var(--need); border-color: var(--need); color: var(--ink); }

/* Usage chapter — labeled meters */
.usage-meters { margin-top: clamp(48px, 7vw, 88px); display: grid; gap: 28px; max-width: 760px; }
.usage-meter { display: grid; gap: 12px; }
.usage-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.usage-name { font-size: 1.1rem; font-weight: 600; }
.usage-figure { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.usage-track { height: 8px; border-radius: 999px; background: oklch(0.32 0.015 25); overflow: hidden; }
.usage-fill { display: block; height: 100%; border-radius: 999px; background: var(--track); }
.usage-foot { margin: 6px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* Return chapter */
.return-targets { list-style: none; margin: 0; padding: 0; align-self: center; }
.return-targets li { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-light); font-size: 1.05rem; font-weight: 600; }
.return-targets li:last-child { border-bottom: 1px solid var(--line-light); }
.return-how { color: oklch(0.45 0.02 25); font-family: var(--font-mono); font-size: 12px; font-weight: 400; text-align: right; }

/* Integrations chapter — sticky narrative */
.chapter-sticky {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.sticky-copy { position: sticky; top: 120px; }
.integration-item { padding: 34px 0; border-top: 1px solid var(--line-dark); }
.integration-item:first-child { padding-top: 0; border-top: 0; }
.integration-name { margin: 0 0 12px; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.integration-item p { margin: 0; max-width: 62ch; color: var(--text-dim); font-size: 1.02rem; line-height: 1.55; }

/* Privacy chapter — boundary definitions */
.privacy-list { margin: clamp(48px, 7vw, 88px) 0 0; }
.privacy-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
}
.privacy-row:last-child { border-bottom: 1px solid var(--line-light); }
.privacy-row dt { margin: 0; font-size: 1.1rem; font-weight: 600; }
.privacy-row dd { margin: 0; max-width: 58ch; color: oklch(0.4 0.02 25); font-size: 1.05rem; line-height: 1.5; }

/* Final download chapter */
.final-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.final-cta .chapter-title { max-width: 22ch; }
.final-meta { margin: 0; color: var(--text-dim); font-size: 14px; }
.final-meta b { color: var(--text-on-dark); }

/* Scroll reveal */
/* [skill: go-team-standards · dev-dna] 仅在脚本启用后隐藏待揭示内容 */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding-inline: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--text-dim);
  background: var(--ink);
  font-size: 13px;
}
footer img { width: 20px; height: 20px; border-radius: 5px; }

/* Tablet & below: collapse split narratives, drop sticky, demos go full-width */
@media (max-width: 980px) {
  .chapter-split { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); }
  .chapter-sticky { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); }
  .sticky-copy { position: static; top: auto; }
  .hero-stage { min-height: 500px; }
  .notch-wrap { width: min(560px, calc(100% - 40px)); }
  .privacy-row { grid-template-columns: 200px minmax(0, 1fr); }
  .approval-demo, .notch-shell { width: 100%; }
}

/* Phones: 30px page gutter, stacked hero, ≥44px tap targets, no h-scroll */
@media (max-width: 700px) {
  .shell { width: min(var(--shell), calc(100% - 60px)); }
  .site-nav { min-height: 64px; gap: 12px; }
  .language-toggle button { min-height: 44px; }
  .brand-link { min-height: 44px; }
  .skip-link { min-height: 44px; padding-block: 12px; }
  .bracket-link { display: none; }
  .hero { padding-top: clamp(72px, 16vw, 96px); }
  .hero-title { font-size: clamp(2.4rem, 11.5vw, 3.4rem); line-height: 0.96; letter-spacing: -0.05em; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 24px; }
  .primary-cta { width: 100%; }
  .hero-description { max-width: none; }
  .hero-stage { min-height: 420px; margin-inline: -8px; }
  .notch-shell { min-height: 400px; border-width: 8px; border-radius: 26px 26px 0 0; }
  .menu-bar { height: 34px; padding-inline: 14px; }
  .menu-meta span:first-child { display: none; }
  .notch-wrap { width: calc(100% - 24px); }
  .notch-trigger { min-height: 54px; padding-inline: 6px; }
  .notch-chip { padding-inline: 5px; font-size: 9px; }
  .notch-chip .state-dot { width: 6px; height: 6px; }
  .notch-panel { top: 46px; padding: 14px; width: min(440px, calc(100% - 16px)); }
  .session-detail { word-break: break-word; }
  .stage-note { left: 16px; right: 16px; bottom: 14px; max-width: none; text-align: left; }
  .chapter { padding: clamp(64px, 14vw, 96px) 0; }
  .value-statement { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .agent-row { grid-template-columns: 1fr; gap: 14px; }
  .privacy-row { grid-template-columns: 1fr; gap: 8px; }
  .return-targets li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .return-how { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .has-js .reveal { opacity: 1; transform: none; }
}
