@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #121310;
  --muted: #5e625a;
  --paper: #f7f5ee;
  --white: #fffef8;
  --orange: #ff512a;
  --line: #dcded3;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: #fff; padding: .65rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font: 700 1.36rem/1 var(--font-display); letter-spacing: -.055em; white-space: nowrap; }
.wordmark-mark { display: inline-flex; width: 31px; height: 31px; background: var(--orange); border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); font-size: 1.1rem; letter-spacing: -.08em; }
.mark-dot { margin-left: -.09em; }
.wordmark-suffix { font-weight: 400; color: #898d83; }
.header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.4rem); font-size: .87rem; font-weight: 700; }
.header-nav a { text-decoration: none; }
.header-nav a:not(.nav-guide):hover { color: #c63817; }
.header-nav .nav-guide { border: 1px solid var(--ink); padding: .72rem .9rem; border-radius: 2px; transition: background .2s, color .2s; }
.header-nav .nav-guide:hover { background: var(--ink); color: var(--paper); }
.nav-guide span { margin-left: .55rem; }

.hero { background: #141613; color: var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); gap: 4.5rem; align-items: center; min-height: 660px; padding-block: 6.25rem; }
.hero-copy { padding-bottom: 1rem; }
.eyebrow, .overline { font: 700 .72rem/1.3 var(--font-display); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: #b8bcb0; margin: 0 0 2.25rem; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,81,42,.14); }
.eyebrow-rule { display: inline-block; width: 26px; height: 1px; background: #595e55; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: clamp(4rem, 7.9vw, 7.9rem); line-height: .99; letter-spacing: -.09em; margin-bottom: 1.65rem; font-weight: 600; }
h1 em { color: var(--orange); font-style: normal; }
.hero-lede { max-width: 560px; color: #ced0c7; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.62; margin-bottom: 2.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.button { display: inline-flex; gap: 1.5rem; align-items: center; text-decoration: none; font-weight: 700; font-size: .88rem; padding: 1rem 1.15rem; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: var(--ink); }
.button-primary:hover { background: #ff714f; }
.text-link { color: var(--paper); font-size: .87rem; font-weight: 700; text-underline-offset: .33em; text-decoration-color: #65695f; }
.text-link span { margin-left: .25rem; }

.hero-visual { position: relative; background: #20231e; border: 1px solid #40453c; padding: 1.45rem; box-shadow: 22px 22px 0 #0e100e; }
.hero-visual:before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: radial-gradient(#667063 1px, transparent 1px); background-size: 19px 19px; mask-image: linear-gradient(to bottom, transparent, black); }
.visual-label, .visual-footer { display: flex; justify-content: space-between; gap: 1rem; color: #9fa79b; font: 700 .61rem/1.3 var(--font-display); letter-spacing: .15em; position: relative; }
.visual-label { padding-bottom: 2.15rem; }
.question-line, .answer-line { position: relative; background: #30362d; padding: 1.2rem 1.3rem; border: 1px solid #4e594a; }
.question-line > span, .answer-line small, .path-card small { display: block; color: #adb9aa; font: 700 .6rem/1.3 var(--font-display); letter-spacing: .14em; }
.question-line strong, .answer-line strong { display: block; font: 600 1rem/1.3 var(--font-display); margin-top: .4rem; }
.path-lines { position: relative; height: 50px; margin: 0 1.5rem; }
.path-lines:before, .path-lines:after { content: ""; position: absolute; height: 1px; background: #5a6556; top: 25px; width: 48%; }
.path-lines:before { left: 2%; transform: rotate(-9deg); }
.path-lines:after { right: 2%; transform: rotate(9deg); }
.path-lines span { position: absolute; width: 1px; height: 17px; background: #5a6556; top: 27px; }
.path-lines span:first-child { left: 24%; }
.path-lines span:last-child { right: 24%; }
.visual-paths { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; position: relative; }
.path-card { display: flex; align-items: flex-start; gap: .8rem; min-height: 136px; background: #292f28; border: 1px solid #4d594b; padding: 1rem; }
.path-icon { display: inline-grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: .9rem; font-weight: 700; }
.path-card strong, .path-card em { display: block; }
.path-card strong { font: 600 .9rem/1.2 var(--font-display); margin: .5rem 0 .35rem; }
.path-card em { font-style: normal; color: #aeb5a9; font-size: .74rem; line-height: 1.4; }
.answer-line { display: flex; align-items: center; gap: .8rem; border-color: var(--orange); background: #3a3029; margin-top: 3.15rem; }
.answer-line:before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 3.15rem; background: var(--orange); }
.answer-icon { font-size: 1.55rem; color: var(--orange); line-height: 1; }
.visual-footer { padding-top: 1.9rem; }
.ticker { background: var(--orange); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; color: var(--ink); font: 700 .78rem/1 var(--font-display); letter-spacing: .12em; }
.ticker b { font-size: 1.2rem; font-weight: 400; }

.section-pad { padding-block: clamp(5rem, 9vw, 8.8rem); }
.section-number { font: 700 .72rem/1.3 var(--font-display); letter-spacing: .14em; }
.section-aside { display: flex; flex-direction: column; gap: 1.75rem; }
.aside-line { width: 1px; min-height: 132px; background: var(--orange); }
.aside-caption { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.intro-grid { display: grid; grid-template-columns: 1fr 2.25fr; gap: 4rem; }
.intro-main { max-width: 900px; }
.overline { color: #a83819; margin-bottom: 1.1rem; }
h2 { font-size: clamp(2.8rem, 5vw, 5.15rem); font-weight: 600; letter-spacing: -.075em; line-height: 1.08; margin-bottom: 1.75rem; }
.accent-underline { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .11em; text-underline-offset: .1em; }
.intro-main > p:not(.overline) { max-width: 800px; color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.1rem; }
.intro-main .body-large { color: var(--ink) !important; font-size: clamp(1.15rem, 1.65vw, 1.4rem) !important; line-height: 1.6 !important; }
.source-inline { display: inline-block; margin-top: 1rem; font-size: .84rem; font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: .35em; }

.framework-section { background: #e9eadf; }
.framework-head, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 2.8rem; }
.framework-head h2, .section-heading h2 { margin-bottom: 0; }
.framework-head > p, .section-heading > p { max-width: 370px; color: #545b51; line-height: 1.7; margin: 0 0 .3rem; }
.visibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.visibility-card { min-height: 410px; padding: clamp(1.6rem, 3.2vw, 3rem); display: flex; flex-direction: column; }
.memory-card { background: #1b2d25; color: #f4f7eb; }
.retrieval-card { background: #fbfaf4; color: var(--ink); border: 1px solid #d4d9cc; }
.card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: auto; }
.card-index, .card-kicker { font: 700 .65rem/1.3 var(--font-display); letter-spacing: .15em; }
.card-index { opacity: .65; }
.card-symbol { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid currentColor; border-radius: 50%; color: var(--orange); font-size: 1.5rem; }
.card-kicker { margin: 2.5rem 0 .65rem; color: var(--orange); }
.visibility-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.45rem); line-height: 1.15; letter-spacing: -.055em; margin-bottom: .9rem; }
.visibility-card p:not(.card-kicker) { color: inherit; opacity: .78; max-width: 460px; line-height: 1.7; }
.visibility-card a { width: fit-content; margin-top: .55rem; font-size: .84rem; font-weight: 700; text-underline-offset: .33em; }
.framework-note { display: flex; align-items: flex-start; gap: 1rem; max-width: 850px; color: #4c554b; margin: 2rem 0 0; font-size: .89rem; line-height: 1.65; }
.framework-note a { text-underline-offset: .2em; }
.note-glyph { color: #c84722; font-size: 1.35rem; line-height: 1; }

.workflow-section { background: var(--paper); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cfd3c8; border-bottom: 1px solid #cfd3c8; }
.workflow-item { padding: 2.4rem 2rem 2.2rem; border-right: 1px solid #cfd3c8; }
.workflow-item:first-child { padding-left: 0; }
.workflow-item:last-child { border-right: 0; }
.workflow-index { color: #bb4528; font: 700 .65rem/1.3 var(--font-display); letter-spacing: .15em; }
.workflow-item h3 { margin: 2rem 0 .8rem; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.05em; line-height: 1.2; }
.workflow-item p { color: #575f55; line-height: 1.68; min-height: 105px; }
.workflow-item a { font-size: .82rem; font-weight: 700; text-underline-offset: .3em; }
.free-note { display: flex; align-items: center; gap: 1.25rem; background: #e7e9df; margin-top: 2.2rem; padding: 1.6rem 2rem; }
.free-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--orange); font-size: 1.4rem; }
.free-note p { margin: 0; flex: 1; font-size: .9rem; line-height: 1.6; }
.free-note a { white-space: nowrap; font-size: .78rem; font-weight: 700; }

.ask-section { background: #20251f; color: #f7f5ee; }
.ask-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 5vw, 6rem); align-items: center; }
.overline-light { color: #ff815f; }
.ask-section h2 { margin-bottom: 1.55rem; }
.ask-section h2 span { color: #b6c7b4; }
.ask-section p:not(.overline) { max-width: 550px; color: #c7d0c3; line-height: 1.75; }
.ask-copy code, .usage-window-body code { font: .91em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ask-status { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; min-height: 59px; border-top: 1px solid #48554a; border-bottom: 1px solid #48554a; margin-top: 2.25rem; padding: .9rem 0; color: #c7d0c3; font-size: .79rem; }
.ask-status:empty::before { content: "Ask API status is shown when this page is served."; color: #b9c8b8; font: 700 .73rem/1.5 var(--font-display); letter-spacing: .02em; }
.ask-status strong { font: 700 .72rem/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.ask-status span:last-child { margin-left: auto; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e8bd87; }
.status-dot[data-state="active"] { background: #91d5a1; }
.ask-question-list { margin-top: 2.3rem; }
.ask-question-list > span { display: block; color: #ff9b7f; font: 700 .65rem/1.4 var(--font-display); letter-spacing: .14em; }
.ask-question-list ul { margin: .85rem 0 0; padding-left: 1.2rem; color: #c7d0c3; font-size: .86rem; line-height: 1.8; }
.ask-question-list li { padding-left: .2rem; }
.ask-question-list li::marker { color: var(--orange); }
.usage-panel { background: #101711; border: 1px solid #687467; box-shadow: 15px 15px 0 #161c16; min-width: 0; }
.usage-window-bar { display: flex; align-items: center; gap: 1rem; min-height: 48px; padding: 0 1.2rem; border-bottom: 1px solid #485649; color: #b9c6b9; font: 700 .59rem/1 var(--font-display); letter-spacing: .12em; }
.usage-window-dots { display: flex; gap: .33rem; }
.usage-window-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #f07857; }
.usage-window-dots i:nth-child(2) { background: #eebf73; }
.usage-window-dots i:nth-child(3) { background: #8eb99d; }
.usage-window-tag { margin-left: auto; border: 1px solid #5e6b5e; padding: .28rem .38rem; color: #d2ded0; }
.usage-window-body { padding: clamp(1.35rem, 2.7vw, 2rem); }
.usage-overline { color: #ff9b7f !important; font: 700 .63rem/1.3 var(--font-display); letter-spacing: .15em; margin-bottom: .85rem; }
.usage-route { display: flex; align-items: center; gap: .9rem; min-width: 0; padding-bottom: 1.4rem; border-bottom: 1px solid #405041; }
.usage-route span { background: var(--orange); color: #151911; font: 700 .7rem/1 var(--font-display); letter-spacing: .06em; padding: .48rem .56rem; }
.usage-route code { color: #f2f8ed; overflow-wrap: anywhere; font-size: clamp(.82rem, 1.3vw, 1rem); }
.usage-description { margin: 1.1rem 0 1.6rem; color: #b6c5b5 !important; font-size: .86rem; line-height: 1.65 !important; }
.usage-description code { color: #f4f6ed; }
.usage-example-head { display: flex; justify-content: space-between; gap: 1rem; color: #9eb39f; font: 700 .6rem/1.4 var(--font-display); letter-spacing: .13em; margin-bottom: .5rem; }
.usage-slot { padding: 1rem 1.1rem; border: 1px solid #5f6e5d; background: #1c261d; overflow-x: auto; }
.usage-slot pre { margin: 0; color: #e7f6e3; font: .8rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.usage-slot code { font: inherit; }
.usage-note { margin: .9rem 0 1.35rem; color: #93a693 !important; font-size: .74rem; line-height: 1.55 !important; }
.usage-guide { color: #ff9b7f; font-size: .81rem; font-weight: 700; text-underline-offset: .3em; }

.questions-section { background: #f0f0e8; }
.questions-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; }
.questions-grid h2 { margin-bottom: 1.4rem; }
.questions-grid p:not(.overline) { color: var(--muted); max-width: 400px; line-height: 1.7; }
.question-links { border-top: 1px solid #cdd1c6; }
.question-links a { display: grid; grid-template-columns: 2rem 1fr 2rem; column-gap: 1rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid #cdd1c6; text-decoration: none; transition: padding .2s; }
.question-links a:hover { padding-left: .5rem; }
.question-links span { color: #b84022; font: 700 .65rem/1 var(--font-display); }
.question-links strong { font: 600 1rem/1.3 var(--font-display); letter-spacing: -.03em; }
.question-links b { font-weight: 400; font-size: 1.2rem; justify-self: end; }
.site-footer { background: #161a16; color: #e8ecdf; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 126px; }
.site-footer .wordmark-suffix { color: #b5bfb2; }
.site-footer p { margin: 0; color: #aab4a7; font-size: .75rem; }
.site-footer div:last-child { display: flex; gap: 1.4rem; font-size: .77rem; }
.site-footer div:last-child a { text-decoration-color: #667264; text-underline-offset: .3em; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; padding-block: 5rem; }
  .hero-visual { max-width: 620px; }
  .ask-grid { gap: 3rem; }
  .questions-grid { gap: 3rem; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 1280px); }
  .header-inner { min-height: 72px; }
  .header-nav { gap: 1rem; }
  .header-nav a:not(.nav-guide) { display: none; }
  .hero-grid { padding-block: 4rem; }
  h1 { font-size: clamp(3.7rem, 12vw, 6rem); }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-aside { flex-direction: row; align-items: center; gap: 1rem; }
  .aside-line { width: 45px; min-height: 1px; height: 1px; }
  .aside-caption { display: none; }
  .framework-head, .section-heading { display: block; }
  .framework-head > p, .section-heading > p { margin-top: 1.3rem; }
  .visibility-grid, .ask-grid, .questions-grid { grid-template-columns: 1fr; }
  .visibility-card { min-height: 350px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-item, .workflow-item:first-child { padding: 1.7rem 0; border-right: 0; border-bottom: 1px solid #cfd3c8; }
  .workflow-item:last-child { border-bottom: 0; }
  .workflow-item h3 { margin-top: .8rem; }
  .workflow-item p { min-height: 0; }
  .free-note { align-items: start; flex-wrap: wrap; padding: 1.4rem; }
  .free-note p { flex-basis: calc(100% - 3.25rem); }
  .free-note a { margin-left: 3.25rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 2rem; }
}
@media (max-width: 510px) {
  .header-nav .nav-guide { padding: .6rem .7rem; font-size: .73rem; }
  .wordmark { font-size: 1.15rem; }
  .wordmark-mark { width: 28px; height: 28px; }
  .eyebrow { flex-wrap: wrap; font-size: .61rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .hero-visual { padding: 1rem; box-shadow: 10px 10px 0 #0e100e; }
  .visual-label, .visual-footer { font-size: .48rem; }
  .path-card { display: block; padding: .75rem; min-height: 150px; }
  .path-icon { margin-bottom: .6rem; }
  .path-card strong { font-size: .76rem; }
  .path-card em { font-size: .65rem; }
  .ticker-inner { font-size: .58rem; }
  .ticker-inner span:nth-of-type(4), .ticker-inner b:nth-of-type(3) { display: none; }
  .ask-status span:last-child { width: 100%; margin-left: 0; }
  .site-footer p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; }
}
