@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./assets/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --white: #ffffff;
  --orange: #c96f32;
  --orange-hover: #a94f1f;
  --line-light: rgba(0, 0, 0, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 48px; }
html, body { overscroll-behavior-y: none; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
main { background: var(--black); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 48px; color: rgba(255, 255, 255, 0.88); background: rgba(0, 0, 0, 0.78); border-bottom: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: saturate(180%) blur(20px); }
.nav-shell { display: grid; grid-template-columns: 1fr auto; align-items: center; width: min(var(--max), calc(100% - 40px)); height: 100%; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 7px; width: max-content; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { filter: brightness(0) invert(1); }
.brand-beta { color: #f0a06a; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-word { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 0; align-items: start; line-height: 1; }
.brand-word-lex { grid-column: 1; grid-row: 1; }
.brand-word-data { grid-column: 2; grid-row: 1; }
.brand-word .brand-beta { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 1px; font-size: 7px; line-height: 0.8; }
.nav-login, .nav-try, .nav-account { display: inline-flex; align-items: center; min-height: 44px; }
.nav-login:hover, .nav-try:hover, .nav-account:hover { color: #fff; }
.nav-actions, .auth-actions, .language-toggle { display: flex; align-items: center; }
.nav-actions { justify-self: end; gap: 18px; font-size: 12px; }
.auth-actions { gap: 15px; }
.language-toggle { min-height: 44px; gap: 4px; color: #88888d; }
.language-option { min-width: 30px; min-height: 44px; padding: 0; border: 0; color: #8e8e93; background: transparent; cursor: pointer; }
.language-option.is-active { color: #fff; font-weight: 650; }
.nav-try, .nav-account { color: rgba(255, 255, 255, 0.88); }
.nav-try::after { margin-left: 4px; content: "›"; }
.button-primary:hover { background: var(--orange-hover); }

.scene { position: relative; overflow: hidden; }
.scene-dark { color: #fff; background: var(--black); }
.scene-light { color: var(--ink); background: var(--paper); }
.shell { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
h1, h2, p { margin-top: 0; }
h1, h2 { margin-bottom: 22px; font-weight: 650; letter-spacing: -0.055em; text-wrap: balance; }
h1 { font-size: clamp(52px, 7.6vw, 88px); line-height: 1.01; }
h2 { font-size: clamp(40px, 5.7vw, 68px); line-height: 1.04; }
.actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 21px; border-radius: 999px; color: #fff; background: var(--orange); font-size: 17px; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-hover); font-size: 17px; }
.text-link::after { margin-left: 5px; content: "›"; }
.text-link-dark { color: #f0a06a; }

.sphere-story { position: relative; overflow: clip; background: transparent; }
.sphere-story > .scene-dark { background: transparent; }
.hero { z-index: 1; min-height: max(760px, calc(100svh + 96px)); padding: 142px 0 64px; text-align: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 900px; margin-inline: auto; }
.hero-lede { max-width: 720px; margin: 0 auto; color: rgba(255, 255, 255, 0.7); font-size: clamp(19px, 2vw, 24px); line-height: 1.48; letter-spacing: -0.018em; text-wrap: pretty; }
.hero .button-primary { color: #f0a06a; background: transparent; border: 1px solid var(--orange); }
.hero .button-primary:hover { color: #fff; background: rgba(217, 119, 54, 0.14); border-color: #f0a06a; }
.hero-network-stage { position: sticky; z-index: 0; top: 0; width: max(100vw, min(1400px, 108vw)); height: 100svh; height: 100dvh; margin: 0 0 -100svh 50%; margin-bottom: -100dvh; opacity: 0.82; pointer-events: none; text-align: left; transform: translateX(-50%); }
#hero-network { display: block; width: 100%; height: 100%; }

.context-scene { z-index: 1; min-height: 140svh; overflow: visible; padding: 120px 0; color: #fff; background: transparent; }
.split-layout.context-layout { min-height: calc(140svh - 240px); grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr); align-items: start; }
.context-visual-space { min-height: 560px; }
.context-scene .scene-copy { position: sticky; z-index: 2; top: clamp(180px, 28svh, 252px); }
.context-scene.has-caption-transition .scene-copy { opacity: 0; transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1); }
.context-scene.is-caption-visible .scene-copy { opacity: 1; }
.context-scene .scene-copy p { color: rgba(255, 255, 255, 0.72); }
.api-scene { min-height: 100svh; display: grid; align-items: center; padding: 136px 0; background: #fff; }
.has-article-transition .retrieval-scene { background: transparent; }
.has-article-transition .retrieval-scene.is-transition-complete { background: #fff; }
.has-article-transition .retrieval-scene > .shell { opacity: var(--section-content-progress, 1); will-change: opacity; }
.split-layout { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr); gap: 72px; align-items: center; }
.scene-copy p { max-width: 560px; color: var(--muted); font-size: clamp(18px, 1.75vw, 22px); line-height: 1.5; letter-spacing: -0.015em; }

.parser-scene { min-height: 100svh; display: grid; align-items: center; padding: 128px 0 112px; background: #fff; }
.parser-scene .shell { display: grid; gap: clamp(64px, 9vw, 104px); }
.center-copy { max-width: 830px; margin: 0; text-align: left; }
.center-copy h2 { margin-inline: 0; }
.center-copy > p:last-child { max-width: 690px; margin: 0; color: var(--muted); font-size: 21px; line-height: 1.5; }

.pipeline-visual { max-width: 960px; }
.pipeline-flow { position: relative; isolation: isolate; height: 7px; margin: 0; }
.pipeline-flow::before { position: absolute; z-index: 0; top: 3px; right: 10%; left: 10%; height: 1px; background: #b8b8bd; content: ""; }
.pipeline-signal { position: absolute; z-index: 2; top: 0; left: calc(10% - 3px); width: 7px; height: 7px; border-radius: 50%; background: #a8a8ad; box-shadow: 0 0 0 2px #fff; animation: pipeline-travel 12s infinite; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.pipeline-label { position: relative; min-height: 24px; margin-top: 18px; color: var(--ink); font-size: 14px; line-height: 1.3; text-align: center; }
.pipeline-label-text { position: absolute; inset: 0; opacity: 0; color: var(--ink); filter: blur(8px); letter-spacing: 0.06em; transform: translateY(5px) scale(0.94); transform-origin: 50% 50%; will-change: opacity, filter, letter-spacing, transform; }
.pipeline-label-text.is-result { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pipeline-label-text.is-result img { width: 14px; height: 14px; filter: brightness(0); }
.pipeline-label-text.is-document { animation: pipeline-label-document 12s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.pipeline-label-text.is-structure { animation: pipeline-label-structure 12s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.pipeline-label-text.is-relations { animation: pipeline-label-relations 12s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.pipeline-label-text.is-review { animation: pipeline-label-review 12s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.pipeline-label-text.is-result { animation: pipeline-label-result 12s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

@keyframes pipeline-travel {
  0%, 10% { left: calc(10% - 3px); }
  18%, 28% { left: calc(30% - 3px); }
  36%, 46% { left: calc(50% - 3px); }
  54%, 64% { left: calc(70% - 3px); }
  72%, 82% { left: calc(90% - 3px); }
  94%, 100% { left: calc(10% - 3px); }
}
@keyframes pipeline-label-document {
  0%, 8%, 94%, 100% { opacity: 1; filter: blur(0); letter-spacing: 0; transform: translateY(0) scale(1); }
  14%, 82% { opacity: 0; filter: blur(8px); letter-spacing: 0.06em; transform: translateY(-5px) scale(1.06); }
}
@keyframes pipeline-label-structure {
  0%, 10%, 34%, 100% { opacity: 0; filter: blur(8px); letter-spacing: 0.06em; transform: translateY(5px) scale(0.94); }
  18%, 26% { opacity: 1; filter: blur(0); letter-spacing: 0; transform: translateY(0) scale(1); }
}
@keyframes pipeline-label-relations {
  0%, 28%, 52%, 100% { opacity: 0; filter: blur(8px); letter-spacing: 0.06em; transform: translateY(5px) scale(0.94); }
  36%, 44% { opacity: 1; filter: blur(0); letter-spacing: 0; transform: translateY(0) scale(1); }
}
@keyframes pipeline-label-review {
  0%, 46%, 70%, 100% { opacity: 0; filter: blur(8px); letter-spacing: 0.06em; transform: translateY(5px) scale(0.94); }
  54%, 62% { opacity: 1; filter: blur(0); letter-spacing: 0; transform: translateY(0) scale(1); }
}
@keyframes pipeline-label-result {
  0%, 64%, 88%, 100% { opacity: 0; filter: blur(8px); letter-spacing: 0.06em; transform: translateY(5px) scale(0.94); }
  72%, 80% { opacity: 1; filter: blur(0); letter-spacing: 0; transform: translateY(0) scale(1); }
}


.api-layout { grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr); }
.api-response { min-width: 0; }
.inline-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.api-response .inline-links .text-link { color: var(--muted); transition: color 160ms ease; }
.api-response .inline-links .text-link:hover { color: var(--ink); }
.code-surface { min-width: 0; overflow: hidden; color: #1d1d1f; background: #f5f5f7; border-radius: 12px; box-shadow: none; }
.code-header { display: flex; align-items: center; gap: 18px; min-height: 50px; padding: 8px 20px; border-bottom: 1px solid #d2d2d7; }
.code-header code { min-width: 0; overflow-wrap: anywhere; color: #6e6e73; font: 12px/1.5 var(--mono); }
.code-header b { color: #c65f22; }
pre { margin: 0; padding: 22px 20px 26px; overflow-x: auto; font: 12px/1.68 var(--mono); }
pre code { font: inherit; }
.json-key { color: #515154; }
.json-string { color: #8a3f19; }
.json-number { color: #656569; }

.retrieval-scene { min-height: 100svh; padding: 152px 0 144px; background: #fff; }
.retrieval-shell { max-width: 1120px; }
.retrieval-intro { max-width: 930px; margin: 0; text-align: left; }

.retrieval-intro h2 { margin-bottom: 24px; }
.retrieval-intro p { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.75vw, 22px); line-height: 1.5; letter-spacing: -0.015em; }
.agent-demo { position: relative; width: min(720px, 100%); margin: 84px auto 0; }
.agent-sequence { position: relative; }
.agent-sequence h3 { margin: 0 0 36px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.025em; }
.agent-sequence + .agent-sequence { margin-top: 110px; }
.agent-source-note { margin: 44px 0 0; padding-left: 30px; color: var(--muted); font-size: 13px; line-height: 1.55; letter-spacing: -0.005em; }
.agent-timeline { position: relative; isolation: isolate; margin: 0; padding: 0; list-style: none; }
.agent-step { position: relative; min-height: 38px; margin: 0 0 54px; padding-left: 30px; }
.agent-step > * { position: relative; z-index: 1; }
.agent-step:last-child { margin-bottom: 0; }
.agent-step::before { position: absolute; z-index: 0; bottom: calc(100% - 10px); left: 4px; width: 1px; height: var(--connector-length, 0); background: #b8b8bd; content: ""; }
.agent-step:first-child::before { display: none; }
.agent-step::after { position: absolute; z-index: 2; top: 6px; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #a8a8ad; box-shadow: 0 0 0 2px #fff; content: ""; opacity: 1; }
.agent-step-body { min-width: 0; }
.agent-question > span { display: block; margin-bottom: 3px; color: #8e8e93; font-size: 10px; line-height: 1.9; }
.agent-question p { max-width: 650px; margin: 0; color: var(--ink); font: 500 clamp(16px, 1.4vw, 18px)/1.45 var(--serif); letter-spacing: -0.01em; }
.agent-action-label { display: block; margin-bottom: 3px; color: #8e8e93; font-size: 10px; line-height: 1.9; }
.agent-action code { color: #6e6e73; font: 12px/1.55 var(--mono); overflow-wrap: anywhere; }
.agent-action code b { color: var(--ink); font-weight: 600; }
.tool-paren { font-weight: 700; }
.agent-skeleton { position: absolute; top: var(--skeleton-top, 47px); right: 0; left: 30px; height: var(--skeleton-height, 72px); opacity: 0; transition: opacity 180ms ease; }
.agent-skeleton.is-active { opacity: 1; }
.agent-skeleton i { position: absolute; left: 0; display: block; border-radius: 4px; background: #dedee2; }
.agent-skeleton.is-active i { animation: agent-skeleton-shimmer 900ms ease-in-out infinite alternate; }
.agent-skeleton i:nth-child(1) { top: var(--skeleton-label-top, 4px); width: 38px; height: 5px; }
.agent-skeleton i:nth-child(2) { top: var(--skeleton-title-top, 23px); width: 82px; height: 7px; animation-delay: 110ms; }
.agent-skeleton i:nth-child(3) { top: var(--skeleton-body-top, 45px); width: min(82%, 490px); height: 11px; animation-delay: 220ms; }
.agent-result { margin-top: 26px; }
.agent-result > span { display: block; margin-bottom: 7px; color: #8e8e93; font-size: 10px; line-height: 1.3; }
.agent-result strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: -0.015em; }
.agent-result p { max-width: 620px; margin: 0; color: #3a3a3c; font: 400 clamp(16px, 1.45vw, 18px)/1.45 var(--serif); letter-spacing: -0.01em; }
.agent-result mark { padding: 0 0.08em; color: inherit; background-color: transparent; background-image: linear-gradient(rgba(240, 160, 106, 0.3), rgba(240, 160, 106, 0.3)); background-repeat: no-repeat; background-position: 0 50%; background-size: 0 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.agent-result.is-shown mark { animation: agent-highlight-sweep 850ms cubic-bezier(0.22, 1, 0.36, 1) 380ms forwards; }
.agent-outcome { display: flex; align-items: center; gap: 13px; }
.agent-outcome-icon { display: inline-block; flex: 0 0 auto; font-size: 19px; font-weight: 400; line-height: 1; }
.agent-outcome strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 19px; letter-spacing: -0.018em; }
.agent-outcome-error .agent-outcome-icon { color: #b42318; }
.agent-outcome-correct .agent-outcome-icon { color: #248a3d; }
.has-agent-demo [data-reveal] { opacity: 0; transform: translateY(8px); }
.has-agent-demo [data-reveal].is-shown { opacity: 1; transform: none; transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1); }
.has-agent-demo .agent-step::before { transform: scaleY(0); transform-origin: top; }
.has-agent-demo .agent-step.is-connecting::before { transform: scaleY(1); transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1); }
.has-agent-demo .agent-step::after { opacity: 0; transform: scale(0.25); }
.has-agent-demo .agent-step.is-node-shown::after { opacity: 1; transform: scale(1); transition: opacity 240ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }

.access-scene { padding: 138px 0 128px; text-align: center; }
.access-copy h2 { max-width: 820px; margin-inline: auto; }
.access-copy > p:not(.contact-note) { max-width: 670px; margin: 0 auto; color: rgba(255, 255, 255, 0.7); font-size: 21px; line-height: 1.5; }
.contact-note { margin: 30px 0 0; color: #8e8e93; font-size: 13px; }
.contact-note a { color: #f0a06a; }

.site-footer { position: relative; z-index: 2; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line-light); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; min-height: 112px; font-size: 12px; }
.footer-brand img { filter: brightness(0); }
.footer-brand { color: var(--ink); }
.footer-brand .brand-beta { color: var(--orange-hover); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--ink); }
.footer-inner p { margin: 0; text-align: right; }

@keyframes product-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes agent-skeleton-shimmer { from { opacity: 0.42; } to { opacity: 1; } }
@keyframes agent-highlight-sweep { to { background-size: 100% 100%; } }

@media (max-width: 900px) {
  .split-layout, .api-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split-layout.context-layout { grid-template-columns: minmax(0, 1fr); }
  .code-surface { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  .footer-links { justify-content: flex-start; }
  .footer-inner p { text-align: left; }
}

@media (max-width: 620px) {
  .shell, .nav-shell { width: min(var(--max), calc(100% - 32px)); }
  .site-header { height: 52px; }
  .brand { font-size: 14px; }
  .brand img { width: 22px; height: 22px; }
  .footer-brand .brand-beta { margin-top: 1px; }
  .nav-actions { gap: 7px; }
  .auth-actions { gap: 0; }
  .nav-login { display: none; }
  .nav-try, .nav-account { padding-inline: 4px; }
  .language-toggle span { display: none; }
  .language-option { min-width: 27px; }
  .hero { padding-top: 108px; }
  h1 { font-size: clamp(44px, 12vw, 50px); }
  h2 { font-size: clamp(38px, 11vw, 46px); }
  .hero-lede { font-size: 18px; }
  .actions { gap: 12px 18px; margin-top: 25px; }
  .hero-network-stage { width: 100vw; }
  .context-scene { min-height: 140svh; padding: 88px 0 40px; }
  .split-layout.context-layout { min-height: calc(140svh - 128px); gap: 20px; }
  .context-scene .scene-copy { top: max(88px, 14svh); }
  .context-visual-space { min-height: 420px; }
  .api-scene, .parser-scene, .access-scene { padding-block: 92px; }
  .retrieval-scene { padding-block: 100px 96px; }

  .agent-demo { margin-top: 58px; }
  .agent-sequence + .agent-sequence { margin-top: 84px; }
  .agent-sequence h3 { margin-bottom: 32px; font-size: 16px; }
  .agent-step { margin-bottom: 48px; padding-left: 26px; }
  .agent-skeleton { left: 26px; }
  .agent-result p { font-size: 16px; }
  .scene-copy p, .center-copy > p:last-child, .access-copy > p:not(.contact-note) { font-size: 18px; }
  .inline-links { flex-wrap: nowrap; gap: 12px; }
  .inline-links .text-link { min-width: 0; font-size: 14px; white-space: nowrap; }
  .code-header { min-height: 0; padding: 6px 17px; align-items: center; }
  pre { padding: 6px 17px 24px; font-size: 10.5px; }
  .footer-links { gap: 14px 20px; }
  .parser-scene .shell { gap: 58px; }
  .pipeline-label { font-size: 12.5px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipeline-signal { animation: none; display: none; }
  .pipeline-label-text { animation: none; opacity: 0; filter: none; letter-spacing: normal; transform: none; }
  .pipeline-label-text.is-document { opacity: 1; }
  .has-agent-demo .agent-sequence,
  .has-agent-demo [data-reveal],
  .has-agent-demo .agent-step::before,
  .has-agent-demo .agent-step::after,
  .agent-skeleton { transition: none; }
  .agent-skeleton { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
