:root {
  --paper: #f6f3ec;
  --paper-2: #fdfcf8;
  --ink: #1b1813;
  --ink-soft: #4d473d;
  --coffee: #8b7357;
  --coffee-deep: #5f4f3b;
  --muted: #7c756a;
  --line: #e2dccd;
  --line-strong: #cfc7b6;
  --signal: #2e5c48;
  --display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
/* In-page smooth scrolling is handled in app.js (with reduced-motion respected).
   CSS scroll-behavior:smooth also animates the initial #anchor jump on page load,
   which Chrome can abort midway — leaving deep links stranded between sections. */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--paper-2); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}
.brand-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.2; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  padding: 8px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.nav-toggle-line {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

/* ---------- shared type ---------- */

main > section, .site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.eyebrow {
  margin-bottom: 20px;
  color: var(--coffee);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; margin-bottom: 28px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; margin-bottom: 18px; }
h2 em, h1 em { font-style: italic; color: var(--coffee-deep); }
.section-head { max-width: 640px; }
.section-lede { color: var(--ink-soft); font-size: 17px; max-width: 540px; }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 9vh, 104px) 0 clamp(64px, 9vh, 110px); }
.hero-copy { max-width: 760px; }
.hero-lede {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
}
.hero-steps {
  list-style: none;
  counter-reset: hero-step;
  display: grid;
  max-width: 560px;
  margin-bottom: 36px;
  padding: 0;
}
.hero-steps li { counter-increment: hero-step; }
.hero-steps li + li { border-top: 1px solid var(--line); }
.hero-steps a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 4px;
  transition: background 0.15s ease;
}
.hero-steps a:hover { background: var(--paper-2); }
.hero-steps a::before {
  content: counter(hero-step);
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.1;
  color: var(--coffee);
}
.hero-steps strong { font-size: 15px; letter-spacing: -0.01em; }
.hero-steps a:hover strong { color: var(--coffee-deep); }
.hero-steps span { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--coffee-deep); transform: translateY(-1px); }
.text-link { color: var(--coffee-deep); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

.hero-visual { margin-top: clamp(48px, 7vh, 76px); }
.mac-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(27, 24, 19, 0.05), 0 24px 60px -18px rgba(27, 24, 19, 0.18);
}
.mac-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mac-lights { display: flex; gap: 6px; }
.mac-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mac-lights i:first-child { background: #e0897a; }
.mac-lights i:nth-child(2) { background: #ddb56e; }
.mac-lights i:last-child { background: #93b98a; }
.mac-window-title {
  flex: 1;
  text-align: center;
  margin-right: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.control-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 12.5px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 14%, transparent); }
.control-strip-label { color: var(--muted); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }
.control-strip-list { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; padding: 0; list-style: none; }
.control-strip-list li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- workflow ---------- */

.workflow, .computer, .capabilities, .trust { padding: clamp(72px, 11vh, 130px) 0; border-top: 1px solid var(--line); }
.workflow-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 6vh, 64px);
}
.workflow-steps { list-style: none; padding: 0; display: grid; }
.workflow-steps li + li { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  width: 100%;
  padding: 20px 14px 20px 12px;
  border-left: 2px solid transparent;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.step:hover { background: var(--paper-2); }
.step.is-active { border-left-color: var(--signal); background: var(--paper-2); }
.step-index {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--line-strong);
  line-height: 1.1;
}
.step.is-active .step-index { color: var(--signal); }
.step-body { display: grid; gap: 6px; }
.step-body strong { font-size: 15.5px; letter-spacing: -0.01em; }
.step-body > span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.workflow-capture figcaption { margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 11px; }

.storyboard { max-width: 720px; margin-top: clamp(56px, 8vh, 88px); }
.storyboard video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink);
  object-fit: cover;
}
.storyboard figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.storyboard.video-missing { display: none; }

/* ---------- agent computer ---------- */

.computer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(24px, 3.5vw, 48px);
  margin-top: clamp(36px, 5vh, 56px);
}
.computer-cell { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.computer-cell-strong { border-top: 2px solid var(--signal); }
.computer-cell h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.computer-cell-strong h3 { color: var(--signal); }
.computer-cell p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.computer-capture { max-width: 820px; margin-top: clamp(42px, 6vh, 68px); }
.computer-capture figcaption { margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 11px; }

/* ---------- capabilities ---------- */

.capability-list { margin-top: clamp(36px, 5vh, 56px); }
.capability {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.6fr;
  gap: 16px 48px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.capability:last-child { border-bottom: 1px solid var(--line); }
.capability dt {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.capability dd { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 560px; }
.tag {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--coffee-deep);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- trust ---------- */

.trust-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vh, 56px);
}
.trust-col { padding: 26px 28px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper-2); }
.trust-col h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.trust-col p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ---------- alpha ---------- */

.alpha { padding: 0 0 clamp(72px, 10vh, 110px); }
.alpha-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
}
.alpha-panel .eyebrow { color: #c2a37e; }
.alpha-panel h2 em { color: #c2a37e; }
.alpha-copy p:not(.eyebrow) { color: #c9c2b4; font-size: 16px; line-height: 1.65; max-width: 480px; }
.alpha-facts { list-style: none; padding: 0; display: grid; }
.alpha-facts li { display: grid; gap: 5px; padding: 18px 0; border-top: 1px solid #3a352c; }
.alpha-facts li:last-child { border-bottom: 1px solid #3a352c; }
.alpha-facts strong { font-size: 15px; }
.alpha-facts span { color: #a49d8f; font-size: 13.5px; line-height: 1.5; }

/* ---------- faq ---------- */

.faq { padding: 0 0 clamp(72px, 10vh, 110px); }
.faq-list { max-width: 820px; margin-top: clamp(34px, 5vh, 56px); border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--coffee); font-family: var(--sans); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }
.faq-list details p { max-width: 650px; padding: 0 48px 22px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: baseline;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
}
.footer-copy { flex: 1 1 320px; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 460px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .workflow-body { grid-template-columns: 1fr; }
  .workflow-capture { order: -1; }
  .computer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-columns { grid-template-columns: 1fr; }
  .alpha-panel { grid-template-columns: 1fr; }
  .capability { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
}

@media (max-width: 700px) {
  main > section, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px 18px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line-strong);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 10px 4px; font-size: 15px; }
  .site-nav .nav-cta { width: auto; margin-top: 8px; }
  .hero { padding-top: 44px; }
  .control-strip-list { margin-left: 0; width: 100%; }
  .step { grid-template-columns: 26px 1fr; padding: 16px 10px; }
  .computer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
