:root {
  color-scheme: light;
  --background: #f7f8f5;
  --surface: #ffffff;
  --ink: #151a22;
  --muted: #69717d;
  --line: #dde1db;
  --accent: #3157d5;
  --accent-deep: #2545ad;
  --warm: #d79b45;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(27, 36, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 64px, 1380px);
  margin: 0 auto;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  width: 23px;
  height: 19px;
  display: inline-flex;
  gap: 2px;
  transform: translateY(-1px);
}

.wordmark-mark::after {
  position: absolute;
  right: -2px;
  top: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--warm);
  content: "";
}

.wordmark-mark span {
  flex: 1;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}

.wordmark-mark span:first-child {
  border-radius: 3px 0 1px 3px;
  transform: skewY(7deg);
}

.wordmark-mark span:last-child {
  border-radius: 0 3px 3px 1px;
  transform: skewY(-7deg);
}

.release-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.release-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.1);
}

.hero {
  min-height: 650px;
  padding: 72px 0 78px;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 94px);
}

.hero-copy {
  animation: enter 600ms ease-out both;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 5.2vw, 76px);
  line-height: 1.08;
  font-weight: 690;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.82;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-action {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

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

.primary-action:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.25);
  outline-offset: 3px;
}

.quiet-note {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  min-width: 0;
  min-height: 476px;
  padding: 22px 24px 26px;
  border: 1px solid #e3e6e1;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: enter 700ms 80ms ease-out both;
}

.visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #838b96;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.book-scene {
  position: relative;
  min-height: 408px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 42px;
  overflow: hidden;
}

.book-scene::before {
  position: absolute;
  inset: 38px 44% 38px auto;
  width: 1px;
  background: var(--line);
  content: "";
}

.book-object {
  position: relative;
  height: 222px;
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  filter: drop-shadow(0 18px 18px rgba(35, 42, 55, 0.08));
}

.page {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #d8ddd7;
  background: #fbfcf9;
}

.page-left {
  border-radius: 7px 0 0 7px;
  transform: perspective(500px) rotateY(6deg);
  transform-origin: right center;
}

.page-right {
  border-radius: 0 7px 7px 0;
  transform: perspective(500px) rotateY(-6deg);
  transform-origin: left center;
}

.book-spine {
  z-index: 1;
  background: #e6e8e3;
  box-shadow: inset 0 0 0 1px #d5d9d3;
}

.page span {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 1px;
  background: #dfe3de;
}

.page span:nth-last-child(1) {
  width: 72%;
}

.page .page-kicker {
  width: 32%;
  height: 4px;
  background: rgba(49, 87, 213, 0.42);
}

.page .page-title {
  width: 82%;
  height: 12px;
  margin: 2px 0 10px;
  background: #88909b;
}

.page .page-highlight {
  height: 26px;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: #edf1ff;
}

.knowledge-path {
  position: absolute;
  left: 44%;
  top: 50%;
  z-index: 2;
  width: 16%;
  height: 1px;
  background: var(--accent);
}

.knowledge-path::after {
  position: absolute;
  right: -2px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.knowledge-node {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  animation: signal 2.8s ease-in-out infinite;
}

.node-one {
  left: 7%;
}

.node-two {
  left: 48%;
  animation-delay: 300ms;
}

.node-three {
  right: 2%;
  animation-delay: 600ms;
}

.agent-output {
  padding-left: 3px;
}

.agent-label {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.agent-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

.agent-question {
  margin: 0;
  color: #252c36;
  font-size: 17px;
  font-weight: 640;
  line-height: 1.65;
}

.response-lines {
  margin-top: 26px;
  display: grid;
  gap: 9px;
}

.response-lines span {
  display: block;
  width: 100%;
  height: 6px;
  background: #e0e4df;
}

.response-lines span:nth-child(2) {
  width: 88%;
}

.response-lines span:nth-child(3) {
  width: 62%;
}

.source-note {
  margin: 30px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #8a929d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1.6;
}

.workflow {
  padding: 72px 0 76px;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(580px, 1.25fr);
  gap: clamp(48px, 7vw, 110px);
  border-top: 1px solid var(--line);
}

.workflow-heading .eyebrow {
  margin-bottom: 18px;
}

.workflow h2 {
  max-width: 480px;
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.workflow-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.workflow-list li {
  min-width: 0;
  padding: 2px 28px 2px 30px;
  border-left: 1px solid var(--line);
}

.workflow-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.step-number {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.workflow h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 670;
  letter-spacing: -0.02em;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 650;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(100% - 48px, 1380px);
  }

  .hero {
    grid-template-columns: minmax(360px, 0.85fr) minmax(460px, 1.15fr);
    gap: 38px;
  }

  h1 {
    font-size: clamp(48px, 5.3vw, 60px);
  }

  .hero-visual {
    padding-inline: 20px;
  }

  .book-scene {
    gap: 32px;
  }

  .workflow {
    grid-template-columns: 0.68fr 1.32fr;
    gap: 48px;
  }

  .workflow-list li {
    padding-inline: 20px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 32px, 1380px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

