*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  height: fit-content;
}

:root {
  --bg: #fafaf9;
  --white: #ffffff;
  --cta-bg: #f5f5f4;
  --border: #d4d4d2;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text: #0f1114;
  --muted: #525861;
  --light: #6b7280;
  --green: #15803d;
  --blue: #2563eb;
  --accent: #3d5a80;
  --accent-hover: #2d4563;
  --nav-bg: rgba(250, 250, 249, 0.95);
  --hero-install-bg: #f2f2f1;
  --hero-install-tabs-bg: #eaeae9;
  --terminal-bg: #fafaf9;
  --terminal-bar-bg: #f2f2f1;
  --terminal-dot: #6b7280;
  --agent-question-bg: #f0f0ef;
  --agent-input-border: #c9c9c7;
  --code-inline-bg: #eeeeed;
  --code-kw: #2d4563;
  --code-fn: #0d6b5f;
  --code-str: #0a5f34;
  --code-num: #b45309;
  --code-cm: var(--muted);
  --transition-fast: 0.12s ease;
}

[data-theme="dark"] {
  --bg: #0a0d10;
  --white: #12161a;
  --border: #2a3038;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text: #e6eaef;
  --muted: #8b94a0;
  --light: #5c6470;
  --green: #34d399;
  --blue: #5b9bd8;
  --accent: #5b9bd8;
  --accent-hover: #7ab3e8;
  --nav-bg: rgba(10, 13, 16, 0.95);
  --hero-install-bg: #14181d;
  --hero-install-tabs-bg: #1a1e24;
  --terminal-bg: #14181d;
  --terminal-bar-bg: #1a1e24;
  --terminal-dot: #5c6470;
  --agent-question-bg: #1a1e24;
  --agent-input-border: #3a4048;
  --code-inline-bg: #1a1e24;
  --code-kw: #7ab3e8;
  --code-fn: #5eead4;
  --code-str: #6ee7b7;
  --code-num: #fbbf24;
  --cta-bg: #080a0c;
}

code,
pre {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 24px;
  height: 24px;
  background: var(--text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  transition: transform var(--transition-fast);
}
.logo:hover .logo-mark {
  transform: scale(1.02);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-nav {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition:
    opacity var(--transition-fast),
    border-color var(--transition-fast);
}
.btn-nav:hover {
  opacity: 0.9;
  border-color: var(--accent-hover);
}

/* Hero */
.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  opacity: 0.35;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 28px;
}
.hero-install {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
  max-width: 480px;
  transition: border-color var(--transition-fast);
}
.hero-install:hover {
  border-color: var(--accent);
}
.hero-install-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}
.hero-install-cmd {
  flex: 1;
  overflow-x: auto;
}
.hero-install-cmd .cmd-kw {
  color: var(--code-kw);
  font-weight: 500;
}
.hero-install-cmd .cmd-url {
  color: var(--code-fn);
}
.hero-install-copy {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
}
.hero-install-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.hero-install-copy.copied {
  animation: copyPop 0.15s ease forwards;
}
@keyframes copyPop {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-secondary {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 4px;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  display: inline-block;
  background: transparent;
}
.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Agent panel / Terminal */
.terminal {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast);
}
.terminal:hover {
  border-color: var(--accent);
}
.terminal-bar {
  padding: 10px 14px;
  background: var(--hero-install-tabs-bg);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terminal-dot);
}
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
}
.terminal-body {
  padding: 18px 20px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--terminal-bg);
}
.agent-question {
  background: var(--agent-question-bg);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  color: var(--text);
}
.agent-question-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.agent-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--text);
}
.agent-checkbox span {
  font-size: 11px;
}
.agent-progress {
  margin-bottom: 12px;
}
.agent-progress-line {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}
.agent-task {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.agent-task-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
  animation: agentPulse 0.8s step-end infinite;
}
.agent-task:nth-child(1) .agent-task-dot {
  animation-delay: 0s;
}
.agent-task:nth-child(2) .agent-task-dot {
  animation-delay: 0.2s;
}
.agent-task:nth-child(3) .agent-task-dot {
  animation-delay: 0.4s;
}
@keyframes agentPulse {
  0%,
  50% {
    opacity: 0.4;
  }
  51%,
  100% {
    opacity: 1;
  }
}
.agent-task-text {
  font-size: 11px;
  color: var(--muted);
}
.agent-task-name {
  font-weight: 500;
  color: var(--text);
}
.agent-input-wrap {
  border: 1px solid var(--agent-input-border);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--white);
  margin-top: 10px;
  transition: border-color var(--transition-fast);
}
.agent-input-wrap:focus-within {
  border-color: var(--accent);
}
.agent-input {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  width: 100%;
  outline: none;
  border: none;
  background: none;
}
.agent-input::placeholder {
  color: var(--light);
}
.t-cur {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--text);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Feature grid */
.feature-grid-section {
  padding: 96px 0;
  position: relative;
  background: var(--bg);
}
.feature-grid-header {
  margin-bottom: 40px;
}
.feature-grid-header h2 {
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.feature-grid-header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.feature-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}
.feature-card:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 0 1px var(--accent);
}
[data-theme="dark"] .feature-card:hover {
  background: rgba(0, 0, 0, 0.15);
}
.feature-card:nth-child(3n) {
  border-right: none;
}
.feature-card:nth-child(n + 4) {
  border-bottom: none;
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-card-icon {
  flex-shrink: 0;
  color: var(--muted);
  transition: color var(--transition-fast);
}
.feature-card:hover .feature-card-icon {
  color: var(--accent);
}
.feature-card-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.feature-card-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.feature-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}
.feature-visual {
  margin-top: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual-code {
  background: var(--code-inline-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.55;
  overflow-x: auto;
}
.feature-visual-code pre {
  margin: 0;
  white-space: pre-wrap;
}
.feature-visual-code .kw {
  color: var(--code-kw);
  font-weight: 500;
}
.feature-visual-code .fn {
  color: var(--code-fn);
}
.feature-visual-code .s {
  color: var(--code-str);
}
.feature-visual-code .num {
  color: var(--code-num);
}
.feature-visual-code .cm {
  color: var(--code-cm);
}
.feature-visual-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.feature-visual-diagram .flow-box {
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
}
.feature-visual-diagram .flow-connector {
  font-size: 12px;
  color: var(--muted);
}
.feature-visual-terminal {
  background: var(--code-inline-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
}
.feature-visual-terminal .fvt-line {
  margin-bottom: 2px;
}
.feature-visual-terminal .fvt-prompt {
  color: var(--muted);
  margin-right: 4px;
}
.feature-visual-terminal .fvt-ok {
  color: var(--green);
}
.feature-visual-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.feature-visual-logos .fv-logo-box {
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual-logos .fv-logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
  display: block;
}
[data-theme="dark"] .feature-visual-logos .fv-logo {
  filter: brightness(1.2);
}
[data-theme="dark"] .feature-visual-logos .fv-logo-box {
  background: var(--hero-install-bg);
  border-color: var(--border);
}
[data-theme="dark"] .feature-visual-code,
[data-theme="dark"] .feature-visual-diagram .flow-box,
[data-theme="dark"] .feature-visual-terminal {
  background: var(--hero-install-bg);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.reveal.revealed,
[data-reveal].revealed .reveal {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal].revealed .reveal-stagger > *:nth-child(1) {
  transition-delay: 0.02s;
}
[data-reveal].revealed .reveal-stagger > *:nth-child(2) {
  transition-delay: 0.05s;
}
[data-reveal].revealed .reveal-stagger > *:nth-child(3) {
  transition-delay: 0.08s;
}
[data-reveal].revealed .reveal-stagger > *:nth-child(4) {
  transition-delay: 0.11s;
}
[data-reveal].revealed .reveal-stagger > *:nth-child(5) {
  transition-delay: 0.14s;
}
[data-reveal].revealed .reveal-stagger > *:nth-child(6) {
  transition-delay: 0.17s;
}
[data-reveal].revealed .reveal-stagger > * {
  opacity: 1;
  transform: translateY(0);
}
.hero.revealed .hero-left,
.hero.revealed .hero-right {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.hero .hero-left,
.hero .hero-right {
  opacity: 0;
  transform: translateY(12px);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.reveal-stagger.revealed > *:nth-child(1) {
  transition-delay: 0.02s;
}
.reveal-stagger.revealed > *:nth-child(2) {
  transition-delay: 0.05s;
}
.reveal-stagger.revealed > *:nth-child(3) {
  transition-delay: 0.08s;
}
.reveal-stagger.revealed > *:nth-child(4) {
  transition-delay: 0.11s;
}
.reveal-stagger.revealed > *:nth-child(5) {
  transition-delay: 0.14s;
}
.reveal-stagger.revealed > *:nth-child(6) {
  transition-delay: 0.17s;
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Workflow section */
.workflow-section {
  background: #0c1014;
  background-image:
    linear-gradient(rgba(91, 155, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 155, 216, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #e2e6eb;
  padding: 96px 0;
  border-top: 1px solid rgba(42, 48, 56, 0.8);
  border-bottom: 1px solid rgba(42, 48, 56, 0.8);
}
.workflow-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.workflow-section.revealed .workflow-header {
  opacity: 1;
  transform: translateY(0);
}
.workflow-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7b8594;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 20px;
}
.workflow-header h2 {
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #e2e6eb;
}
.workflow-header p {
  font-size: 14px;
  color: #8b94a0;
  line-height: 1.6;
}
.workflow-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
.workflow-steps {
  position: relative;
  padding-left: 24px;
}
.workflow-progress-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.workflow-progress-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 60px;
  border-left: 1px solid #5b9bd8;
  z-index: 1;
  pointer-events: none;
  transition: top 0.15s ease;
}
.workflow-step {
  min-height: 36vh;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.workflow-step h3 {
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #e2e6eb;
}
.workflow-step p {
  font-size: 14px;
  color: #8b94a0;
  line-height: 1.6;
}
.workflow-step code {
  background: rgba(91, 155, 216, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #5b9bd8;
  border: 1px solid rgba(91, 155, 216, 0.2);
}
.workflow-panel-wrap {
  position: sticky;
  top: 100px;
  margin-top: 0;
  min-height: 480px;
}
.workflow-panels-stack {
  position: relative;
  width: 100%;
  min-height: 460px;
}
.workflow-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #14181d;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #2a3038;
  transition:
    transform 0.2s ease,
    opacity 0.18s ease;
}
.workflow-panel.wf-front {
  transform: scale(1) translateY(0);
  z-index: 10;
  opacity: 1;
  border-color: #3a4450;
}
.workflow-panel.wf-behind-1 {
  transform: scale(0.97) translateY(-36px);
  z-index: 9;
  opacity: 1;
}
.workflow-panel.wf-behind-2 {
  transform: scale(0.94) translateY(-72px);
  z-index: 8;
  opacity: 1;
}
.workflow-panel.wf-behind-3 {
  transform: scale(0.91) translateY(-108px);
  z-index: 7;
  opacity: 1;
}
.workflow-panel.wf-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.88) translateY(-144px);
  visibility: hidden;
}
.workflow-panel-bar {
  padding: 10px 14px;
  background: #101419;
  border-bottom: 1px solid #2a3038;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #7b8594;
}
.workflow-panel-dots {
  display: flex;
  gap: 4px;
}
.workflow-panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a5564;
}
.workflow-panel-filename {
  flex: 1;
  text-align: center;
}
.workflow-panel-body {
  padding: 18px 20px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: #8b94a0;
  height: 320px;
  overflow-y: auto;
  transition: opacity 0.15s ease;
}
.workflow-panel-body .kw {
  color: #7ab3e8;
  font-weight: 500;
}
.workflow-panel-body .fn {
  color: #5eead4;
}
.workflow-panel-body .s {
  color: #6ee7b7;
}
.workflow-panel-body .num {
  color: #fbbf24;
}
.workflow-panel-body .cm {
  color: #5c6470;
}
.workflow-panel-body .ok {
  color: #34d399;
}
.workflow-panel-body .agent-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6470;
  display: block;
  margin-bottom: 6px;
}
.workflow-panel-body .agent-q {
  color: #e2e6eb;
  font-weight: 500;
}
.workflow-panel-body .agent-muted {
  color: #5c6470;
}
.workflow-panel-body .agent-green {
  color: #34d399;
}
.workflow-panel-body .agent-cur {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #e2e6eb;
  vertical-align: middle;
  animation: wfBlink 0.8s step-end infinite;
}
@keyframes wfBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* CTA */
.cta-section {
  background: var(--cta-bg);
  color: var(--text);
  padding: 80px 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.cta-section.revealed .cta-inner {
  opacity: 1;
  transform: translateY(0);
}
.cta-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}
.cta-section h2 {
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}
.cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity var(--transition-fast);
  border: 1px solid transparent;
}
.btn-white:hover {
  opacity: 0.88;
}
.btn-outline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 4px;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
footer {
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-watermark {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 40px 0 56px;
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 400;
  color: var(--muted);
  opacity: 0.05;
  line-height: 1;
  text-align: center;
  letter-spacing: -2px;
  white-space: nowrap;
  pointer-events: none;
}
.footer-main {
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  gap: 40px 48px;
  max-width: 880px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .footer-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--transition-fast);
}
.footer-brand .footer-logo-link:hover {
  color: var(--accent);
}
.footer-brand .footer-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}
.footer-brand .footer-logo-text {
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.footer-tagline {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 200px;
}
.footer-theme-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-theme-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}
.footer-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  width: fit-content;
  background: var(--hero-install-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.footer-theme-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}
.footer-theme-btn:hover {
  color: var(--accent);
}
.footer-theme-btn.active {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}
[data-theme="dark"] .footer-theme-btn.active {
  background: var(--terminal-bar-bg);
  border-color: var(--border);
}
.footer-theme-btn svg {
  width: 14px;
  height: 14px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding: 20px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}
.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

[data-theme="dark"] .logo-mark,
[data-theme="dark"] .footer-brand .footer-logo-mark {
  color: #0a0d10;
}
[data-theme="dark"] .terminal {
  background: var(--terminal-bg);
  border-color: var(--border);
}
[data-theme="dark"] .terminal-bar {
  background: var(--terminal-bar-bg);
  border-color: var(--border);
}
[data-theme="dark"] .terminal-body {
  background: var(--terminal-bg);
}
[data-theme="dark"] .agent-question {
  background: var(--agent-question-bg);
}
[data-theme="dark"] .agent-input-wrap {
  background: var(--white);
  border-color: var(--agent-input-border);
}
[data-theme="dark"] .hero-install {
  background: var(--hero-install-bg);
  border-color: var(--border);
}
[data-theme="dark"] .hero-install-code {
  background: var(--hero-install-bg);
  color: var(--text);
}
[data-theme="dark"] .hero-install-cmd .cmd-kw {
  color: var(--code-kw);
}
[data-theme="dark"] .hero-install-cmd .cmd-url {
  color: var(--code-fn);
}
[data-theme="dark"] .hero-install-copy {
  background: var(--terminal-bar-bg);
  border-color: var(--border);
}
[data-theme="dark"] .btn-nav,
[data-theme="dark"] .btn-white {
  color: #0a0d10;
}
[data-theme="dark"] .btn-primary {
  color: #0a0d10;
}

@media (max-width: 960px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-links {
    display: none;
  }
  .cta-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .cta-section h2 {
    font-size: clamp(28px, 8vw, 42px);
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .cta-btns a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right .terminal {
    max-width: 100%;
    margin-top: 8px;
  }
  .hero-right .terminal-body {
    padding: 16px 18px;
    font-size: 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card:nth-child(3n) {
    border-right: 1px solid var(--border-subtle);
  }
  .feature-card:nth-child(2n) {
    border-right: none;
  }
  .feature-card:nth-child(n + 4) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .feature-card:nth-child(n + 5) {
    border-bottom: none;
  }
  .workflow-body {
    gap: 24px;
    padding: 0 20px;
  }
  .workflow-step {
    min-height: 32vh;
    padding: 16px 0;
  }
  .workflow-step h3 {
    font-size: clamp(20px, 4vw, 28px);
  }
  .workflow-panel-wrap {
    margin-top: 0;
    min-height: 320px;
  }
  .workflow-panel-body {
    padding: 14px 16px;
    font-size: 11px;
    height: 280px;
  }
}
@media (max-width: 640px) {
  .workflow-body {
    gap: 16px;
    padding: 0 16px;
  }
  .workflow-step {
    min-height: 28vh;
    padding: 12px 0;
  }
  .workflow-steps {
    padding-left: 20px;
  }
  .workflow-panel-wrap {
    margin-top: 0;
    min-height: 260px;
  }
  .workflow-panel-body {
    padding: 12px 14px;
    font-size: 10px;
    height: 220px;
  }
  .hero-right .terminal-body {
    padding: 14px 16px;
    font-size: 11.5px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card:nth-child(n) {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .feature-card:last-child {
    border-bottom: none;
  }
  .footer-main {
    padding: 48px 0 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    padding: 20px 0;
  }
  .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
  }
}
