:root {
  color-scheme: dark;
  --paper: #0b111b;
  --paper-deep: #101826;
  --ink: #e5e0d4;
  --muted: #89919f;
  --hairline: rgba(255, 255, 255, 0.1);
  --brass: #d9a441;
  --safe: #57b8a5;
  --navy: #0b111b;
  --navy-panel: #101826;
  --bone: #d6d1c4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 70rem 38rem at 50% -8%, rgba(217,164,65,.09), transparent 65%);
  background-repeat: no-repeat;
}
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.wordmark svg { width: 31px; height: 31px; border-radius: 8px; box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.25); }
.header-link { color: var(--muted); font-size: 13px; text-decoration: none; transition: color 150ms ease; }
.header-link:hover { color: var(--ink); }

.hero { padding: 112px 24px 150px; text-align: center; }
.eyebrow { margin: 0 0 26px; color: var(--brass); font: 650 11px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font: 600 clamp(64px, 9.3vw, 126px)/.88 var(--serif);
  letter-spacing: -.058em;
}
.hero-copy {
  max-width: 640px;
  margin: 38px auto 31px;
  color: #a9afba;
  font: 400 20px/1.55 var(--serif);
}
.download-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: #e5e0d4;
  box-shadow: 0 1px 1px rgba(255,255,255,.4) inset, 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.18);
  color: #0b111b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.download-button svg { width: 18px; height: 18px; fill: currentColor; }
.download-button:hover { transform: translateY(-1px); background: #faf7ee; box-shadow: 0 1px 1px rgba(255,255,255,.4) inset, 0 2px 4px rgba(0,0,0,.25), 0 12px 28px rgba(0,0,0,.22); }
.download-button:active { transform: translateY(0); }
.download-button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brass) 45%, transparent); outline-offset: 4px; }
.download-note { margin: 12px 0 0; color: #687282; font-size: 11px; }

.agent-support { margin: 55px auto 0; }
.agent-support > p { margin: 0 0 17px; color: #687282; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.agent-marks { display: flex; align-items: center; justify-content: center; gap: 9px; }
.agent-mark { min-height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.035); color: #aab1bd; font-size: 12px; font-weight: 550; }
.agent-mark svg { width: 17px; height: 17px; }
.claude-mark svg { color: #d9a441; }
.codex-mark svg { color: #a7b5ae; }
.opencode-mark svg { color: #e5e0d4; }

.stage { width: min(1260px, calc(100vw - 48px)); margin: 90px auto 0; position: relative; perspective: 1800px; }
.stage-glow { position: absolute; inset: 3% 2% -12%; background: radial-gradient(ellipse, rgba(217,164,65,.13), transparent 68%); filter: blur(46px); }
.app-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.83;
  border-radius: 13px;
  background: #0d1521;
  text-align: left;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.16), 0 2px 8px rgba(0,0,0,.35), 0 24px 70px rgba(0,0,0,.45), 0 55px 100px rgba(0,0,0,.25);
  transform: rotateX(1.2deg);
  transform-origin: bottom center;
  animation: window-arrive 900ms cubic-bezier(.2,.75,.2,1) both;
}
.titlebar { height: 7.8%; min-height: 42px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); background: #172131; color: #89919f; font-size: clamp(8px, .84vw, 11px); }
.traffic-lights { width: 21.5%; padding-left: 1.45%; display: flex; gap: 7px; }
.traffic-lights i { width: clamp(7px, .8vw, 11px); aspect-ratio: 1; border-radius: 50%; background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }
.titlebar > span { flex: 1; color: #a9afba; }
.sync-state { margin-right: 1.6%; display: flex; align-items: center; gap: 6px; }
.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 3px rgba(78,142,130,.1); }
.app-body { height: 92.2%; display: grid; grid-template-columns: 21.5% minmax(0, 1fr) 34%; }

.app-sidebar { position: relative; padding: 2.2% 1.2%; border-right: 1px solid rgba(255,255,255,.08); background: #101826; color: #a3aab5; font-size: clamp(7px, .9vw, 12px); }
.vault-name, .tree-label { margin: 0 4% 6%; color: #667182; font-size: .78em; font-weight: 700; letter-spacing: .11em; }
.search-row { height: 7%; min-height: 25px; margin-bottom: 9%; padding: 0 5%; display: flex; align-items: center; gap: 6px; border: .5px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(255,255,255,.04); }
.search-row kbd { margin-left: auto; color: #667182; font: inherit; }
.file-row { height: clamp(22px, 3vw, 34px); padding: 0 5%; display: flex; align-items: center; gap: 7px; border-radius: 5px; }
.file-row span { width: 12px; color: #667182; text-align: center; }
.file-row.child { padding-left: 13%; }
.file-row.active { position: relative; background: rgba(217,164,65,.1); color: #e5e0d4; font-weight: 600; }
.file-row.active::before { position: absolute; inset: 23% auto 23% 1px; width: 2px; border-radius: 2px; background: var(--brass); content: ""; }
.tree-label.second { margin-top: 13%; }
.account-row { position: absolute; right: 0; bottom: 0; left: 0; height: 10%; min-height: 40px; padding: 0 7%; display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); color: #667182; font-size: .85em; }
.account-row .avatar { width: clamp(19px, 2.2vw, 29px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(217,164,65,.12); color: var(--brass); font-weight: 700; }
.account-row i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--safe); }

.document-pane { min-width: 0; background: #0d1521; }
.document-tabs { height: 6%; min-height: 29px; display: flex; border-bottom: 1px solid rgba(255,255,255,.08); background: #101826; color: #667182; font-size: clamp(7px, .82vw, 11px); }
.tab { width: 36%; padding: 0 3%; display: flex; align-items: center; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.07); }
.active-tab { background: #0d1521; box-shadow: inset 0 2px var(--brass); color: #d6d1c4; }
.note { max-width: 570px; margin: 0 auto; padding: 10% 9%; color: #d6d1c4; }
.note-kicker { margin: 0 0 5%; color: var(--brass); font: 650 clamp(6px, .7vw, 9px)/1 var(--sans); letter-spacing: .12em; }
.note h2 { margin: 0 0 6%; font: 600 clamp(17px, 2.5vw, 33px)/1.05 var(--serif); letter-spacing: -.03em; }
.note > p:not(.note-kicker):not(.note-meta) { margin: 0 0 9%; color: #9aa2ae; font: clamp(8px, 1.15vw, 15px)/1.62 var(--serif); }
.note h3 { margin: 0 0 4%; font: 600 clamp(10px, 1.3vw, 17px)/1.2 var(--serif); }
.note label { margin: 0 0 3.5%; display: flex; align-items: center; gap: 8px; color: #89919f; font: clamp(7px, .9vw, 12px)/1.3 var(--sans); }
.note input { width: clamp(10px, 1.1vw, 14px); margin: 0; accent-color: var(--safe); }
.note .current-task { color: #d6d1c4; font-weight: 550; }
.note-meta { margin-top: 12%; color: #667182; font: clamp(6px, .72vw, 9px)/1 var(--mono); }
.green-dot { width: 5px; height: 5px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--safe); }

.agent-pane { min-width: 0; border-left: 1px solid rgba(255,255,255,.09); background: #080d15; color: #d6d1c4; }
.agent-header { height: 13%; min-height: 55px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--navy-panel); }
.agent-header strong { display: block; font-size: clamp(7px, .85vw, 11px); }
.agent-header strong span { margin-right: 5px; color: #d9a441; }
.agent-header small { margin-top: 5px; display: block; color: #747e8e; font-size: clamp(6px, .68vw, 9px); }
.agent-actions { display: flex; gap: clamp(7px, 1.2vw, 16px); color: #89919f; font-size: clamp(6px, .72vw, 10px); }
.terminal { padding: 6% 6%; font: clamp(7px, .93vw, 12px)/1.55 var(--mono); }
.claude-welcome { display: flex; align-items: center; gap: 8%; color: #d6d1c4; }
.claude-glyph { color: #d97757; font-weight: 700; line-height: .9; letter-spacing: -.08em; white-space: nowrap; }
.claude-glyph span { padding-left: 23%; }
.claude-welcome strong { display: block; margin-bottom: 4%; color: #f0ece3; }
.claude-welcome strong span, .claude-welcome p { color: #747e8e; font-weight: 400; }
.claude-welcome p { margin: 1.5% 0; }
.terminal-rule { height: 1px; margin: 6% 0; background: rgba(255,255,255,.1); }
.terminal-command { min-height: 1.7em; }
.terminal-command b { color: #d9a441; font-weight: 400; }
.cursor { width: .55em; height: 1.15em; margin-left: 2px; display: inline-block; vertical-align: -.2em; background: #d9a441; animation: blink 1s steps(1) infinite; }
.terminal-response { margin-top: 7%; opacity: 0; transform: translateY(5px); transition: opacity 350ms ease, transform 350ms ease; }
.terminal-response.visible { opacity: 1; transform: translateY(0); }
.terminal-response p { max-width: 44ch; margin: 0 0 6%; }
.terminal-response .term-muted { color: #747e8e; }
.terminal-response .term-safe { color: #89919f; }
.claude-bullet { color: #d97757; }
.terminal-response .tool-call { color: #b7bdc7; }
.terminal-response .tool-call span { color: #687282; }

.prose { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 180px; border-top: 1px solid var(--hairline); }
.prose-intro { max-width: 860px; margin: 0 auto; padding-bottom: 100px; }
.prose-intro .eyebrow { margin-bottom: 30px; font-size: 13px; }
.prose h2 { max-width: 820px; margin: 0; font: 500 clamp(45px, 6.2vw, 74px)/.98 var(--serif); letter-spacing: -.045em; }
.feature-list { max-width: 860px; margin: 0 auto; }
.feature-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 26px; padding: 48px 0 54px; border-top: 1px solid var(--hairline); }
.feature-list article:last-child { border-bottom: 1px solid var(--hairline); }
.feature-number { grid-row: 1 / span 2; margin: 7px 0 0; color: var(--brass); font: 600 15px/1 var(--mono); letter-spacing: .08em; }
.feature-list h3 { grid-column: 2; margin: 0 0 17px; font: 600 clamp(25px, 3vw, 36px)/1.12 var(--serif); letter-spacing: -.025em; }
.feature-list article > p:last-child { grid-column: 2; max-width: 680px; margin: 0; color: #a9afba; font: 18px/1.72 var(--serif); }
code { padding: .08em .28em; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: rgba(255,255,255,.045); color: #75c8b8; font: .78em var(--mono); }

.closing { padding: 160px 24px 170px; background: #e9e4d8; color: #171b1d; text-align: center; }
.closing > svg { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.15), 0 8px 20px rgba(0,0,0,.12); }
.closing h2 { margin: 40px auto 42px; font: 500 clamp(52px, 7.5vw, 96px)/.94 var(--serif); letter-spacing: -.052em; }
.dark-button { background: #101826; color: #e5e0d4; box-shadow: 0 1px 1px rgba(255,255,255,.12) inset, 0 8px 28px rgba(0,0,0,.16); }
.dark-button:hover { background: #1a2638; }

footer { min-height: 100px; padding: 0 max(24px, calc((100vw - 1080px)/2)); display: flex; align-items: center; gap: 28px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.07); color: #747e8e; font-size: 11px; }
footer span:nth-child(2) { margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--bone); }

@keyframes window-arrive { from { opacity: 0; transform: translateY(28px) rotateX(4deg) scale(.985); } to { opacity: 1; transform: translateY(0) rotateX(1.2deg) scale(1); } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); height: 68px; }
  .hero { padding: 82px 16px 100px; }
  .hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-copy { max-width: 520px; margin-top: 29px; font-size: 18px; }
  .agent-support { margin-top: 43px; }
  .agent-marks { gap: 6px; }
  .agent-mark { padding: 0 9px; gap: 6px; font-size: 10px; }
  .agent-mark svg { width: 14px; height: 14px; }
  .stage { width: calc(100% + 8px); margin-left: -4px; margin-top: 78px; }
  .app-window { aspect-ratio: 1.15; }
  .app-body { grid-template-columns: 26% 1fr; }
  .agent-pane { position: absolute; right: 2.5%; bottom: 3%; width: 68%; height: 82%; border: .5px solid rgba(255,255,255,.16); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.28); overflow: hidden; }
  .titlebar { height: 7%; }
  .app-body { height: 93%; }
  .traffic-lights { width: 26%; }
  .agent-header { min-height: 44px; }
  .document-tabs { min-height: 25px; }
  .note { padding-top: 12%; }
  .note h2 { font-size: clamp(17px, 4vw, 27px); }
  .note > p:not(.note-kicker):not(.note-meta) { font-size: clamp(8px, 2vw, 13px); }
  .note label { font-size: clamp(7px, 1.7vw, 11px); }
  .prose { width: calc(100% - 40px); padding: 105px 0 115px; }
  .prose-intro { padding-bottom: 70px; }
  .prose-intro .eyebrow { margin-bottom: 24px; font-size: 12px; }
  .prose h2 { font-size: clamp(42px, 12vw, 65px); }
  .feature-list article { grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding: 44px 0 47px; }
  .feature-number { margin-top: 6px; font-size: 12px; }
  .feature-list h3 { font-size: 28px; }
  .feature-list article > p:last-child { font-size: 17px; }
  .closing { padding: 110px 20px 120px; }
  footer { min-height: 120px; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 32px 20px; text-align: center; }
  footer span:nth-child(2) { margin-left: 0; }
}

@media (max-width: 430px) {
  .header-link { font-size: 12px; }
  .hero { padding-top: 65px; }
  .hero h1 { font-size: 58px; }
  .hero-copy { font-size: 17px; }
  .app-sidebar { padding-top: 4%; }
  .search-row { display: none; }
  .file-row { font-size: 7px; }
  .tree-label { margin-top: 8%; }
  .account-row span:nth-child(2) { display: none; }
  .agent-pane { width: 72%; height: 84%; }
  .agent-actions { display: none; }
  .agent-header { min-height: 36px; }
  .terminal { padding: 4.5% 5%; font-size: 6px; line-height: 1.42; }
  .terminal-rule { margin: 4% 0; }
  .terminal-response { margin-top: 4%; }
  .terminal-response p { margin-bottom: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
