@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0b1014;
  --panel: #10171c;
  --text: #f1f1e9;
  --muted: #9aa6ad;
  --line: #263138;
  --accent: #9ce8d5;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: flex; align-items: center; font-weight: 750; letter-spacing: 1.7px; font-size: 17px; }
.wordmark-dot, .footer-brand span { color: var(--accent); }
.brand-icon { width: 33px; height: 33px; display: block; margin-right: 13px; }
.header nav { display: flex; gap: 32px; font-size: 13px; color: #c7cece; }
.header nav a:hover, .text-link:hover, .card-link:hover { color: var(--accent); }
.header nav span { margin-left: 8px; color: var(--accent); }
.hero { padding-block: 88px 73px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 16px; align-items: center; }
.eyebrow { font: 10px/1.7 var(--mono); letter-spacing: 1.8px; color: var(--muted); margin: 0 0 24px; }
.hero .eyebrow { color: var(--accent); display: flex; align-items: center; gap: 9px; }
.signal { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #9ce8d544; }
h1 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 550; line-height: 1.08; letter-spacing: -2.8px; margin: 0; }
h1 > span { color: var(--accent); }
.hero-description { max-width: 435px; margin-block: 26px 30px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; padding: 17px 21px; font-size: 13px; font-weight: 600; border-radius: 3px; }
.primary { background: var(--accent); color: #10251f; transition: background .2s, transform .2s; }
.primary:hover { background: #baffec; transform: translateY(-2px); }
.text-link { font-size: 12px; }
.text-link span { margin-left: 9px; }
.hero-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 33px; color: var(--muted); font: 9px/1.6 var(--mono); }
.hero-facts span::before { content: '✓'; margin-right: 6px; color: var(--accent); }
.hero-art { position: relative; min-width: 0; padding-top: 25px; background: radial-gradient(ellipse at center, #27404c25, transparent 70%); }
.hero-art img { width: 100%; height: auto; display: block; mix-blend-mode: lighten; }
.art-label, .art-caption { display: flex; align-items: center; justify-content: space-between; color: #71818b; font: 9px/1.5 var(--mono); letter-spacing: 1.2px; }
.art-label { justify-content: flex-end; gap: 9px; }
.cross { font-size: 20px; color: var(--accent); }
.art-caption { border-top: 1px solid var(--line); padding-top: 15px; margin: 18px 12px 0; }
.art-caption > span:last-child { color: var(--accent); font-size: 20px; }
.flow-section { border-block: 1px solid var(--line); background: #0e1519; }
.flow-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: center; padding-block: 38px; }
.flow-layout .eyebrow { font-size: 9px; letter-spacing: 1px; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3vw, 39px); line-height: 1.2; font-weight: 500; letter-spacing: -1.2px; margin: 0; }
.flow-layout h2 { font-size: 27px; letter-spacing: -.7px; }
.flow { display: flex; align-items: center; gap: 13px; font: 11px/1.5 var(--mono); }
.flow strong { color: var(--accent); font-weight: 400; border: 1px solid #9ce8d540; background: #9ce8d508; padding: 10px 14px; border-radius: 3px; }
.flow-arrow { color: #75828a; }
.flow-content > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 0; max-width: 520px; }
.section { padding-top: 82px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 33px; }
.section-heading .eyebrow, .notes-section .eyebrow { margin-bottom: 15px; }
.section-aside { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0 0 3px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform-card { min-width: 0; padding: 27px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; transition: border-color .2s; }
.platform-card:hover { border-color: #456b62; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.platform-symbol { color: var(--accent); font-size: 35px; line-height: 1; }
.gemini { color: #a5beff; }
.openrouter { color: #e0d4f9; font-size: 40px; }
.tag { font: 8px/1.4 var(--mono); letter-spacing: 1.1px; border: 1px solid var(--line); border-radius: 3px; padding: 5px 7px; color: var(--muted); }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -.4px; margin: 0; }
.platform-card > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 13px 0 23px; flex-grow: 1; }
.endpoint { background: #0b1014; border: 1px solid #202b30; border-radius: 3px; padding: 12px; }
.endpoint > span { display: block; color: #87969e; font: 8px var(--mono); letter-spacing: 1px; margin-bottom: 8px; }
.endpoint code { color: var(--accent); font: 10px/1.7 var(--mono); overflow-wrap: anywhere; }
.card-link { display: flex; justify-content: space-between; margin-top: 22px; font-size: 11px; }
.card-link > span { color: var(--accent); }
.future-card { background: #0d1418; border-style: dashed; }
.config-note { display: flex; gap: 15px; align-items: center; min-height: 65px; }
.config-note > span { color: #7e8c94; font: 24px var(--mono); flex-shrink: 0; }
.config-note p { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 0; }
.config-note code { color: #cfdbd4; font-size: 10px; }
.card-footnote { font: 9px var(--mono); color: #7e8c94; margin-top: 22px; }
.examples-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 25px; }
.example-menu { display: flex; flex-direction: column; gap: 8px; }
.example-choice { width: 100%; display: flex; text-align: left; gap: 15px; align-items: center; padding: 20px 17px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--muted); }
.example-choice.active { border-color: var(--line); background: var(--panel); color: var(--text); }
.example-choice:hover { background: var(--panel); }
.example-number { font: 10px var(--mono); align-self: flex-start; padding-top: 3px; }
.example-choice.active .example-number, .example-choice.active .choice-arrow { color: var(--accent); }
.example-choice strong { display: block; font-size: 12px; font-weight: 500; }
.example-choice small { display: block; font-size: 10px; color: var(--muted); margin-top: 8px; }
.choice-arrow { margin-left: auto; }
.code-panel { min-width: 0; background: #080d10; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 47px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); gap: 15px; }
.code-toolbar > span { display: flex; align-items: center; gap: 9px; }
.terminal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.code-toolbar button { color: #c4d2c5; border: 0; background: none; font: 10px var(--mono); padding: 8px 0 8px 8px; }
.code-toolbar button:hover { color: var(--accent); }
.code-toolbar button span { margin-left: 7px; }
pre { margin: 0; padding: 25px; overflow-x: auto; min-height: 292px; tab-size: 2; }
pre code { font: 11px/1.95 var(--mono); color: #c5e4dc; }
.code-note { margin: 0; padding: 14px 25px; color: var(--muted); font-size: 10px; line-height: 1.8; border-top: 1px solid #1b252b; }
.copy-status { min-height: 20px; font-size: 11px; line-height: 1.7; color: var(--accent); margin: 12px 0 0; }
.notice { font-size: 13px; line-height: 1.7; color: var(--muted); }
.access-notice { padding: 22px 25px; margin-bottom: 25px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 4px; background: var(--panel); }
.access-notice h3 { font-size: 15px; letter-spacing: 0; }
.access-notice p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 12px 0 0; }
.access-notice code { color: var(--accent); font: 11px/1.9 var(--mono); overflow-wrap: anywhere; }
.notes-section { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-block: 60px 75px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 33px 38px; }
.note-icon { display: block; font: 24px var(--mono); color: var(--accent); margin-bottom: 12px; }
.notes-grid h3 { font-size: 13px; letter-spacing: 0; }
.notes-grid p { margin: 9px 0 0; font-size: 11px; line-height: 1.9; color: var(--muted); }
.footer { border-top: 1px solid var(--line); min-height: 135px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { font-size: 14px; letter-spacing: 1.7px; font-weight: 650; }
.footer p { font: 9px var(--mono); color: var(--muted); margin-top: 10px; }
.footer > span { font-size: 10px; line-height: 1.8; color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2; padding: 12px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }

@media (min-width: 1500px) { .hero { padding-block: 105px 90px; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .hero { padding-block: 65px; }
  h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-description { font-size: 13px; }
  .flow-layout { gap: 30px; }
  .flow { gap: 9px; font-size: 9px; }
  .flow strong { padding: 10px; }
  .platform-card { padding: 20px; }
  .examples-layout { grid-template-columns: 255px minmax(0, 1fr); gap: 16px; }
  .notes-section { gap: 30px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 80px; gap: 15px; }
  .wordmark { font-size: 12px; letter-spacing: 1px; }
  .brand-icon { width: 26px; height: 26px; font-size: 19px; margin-right: 9px; }
  .header nav { font-size: 11px; gap: 18px; }
  .header nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 47px 30px; gap: 10px; }
  h1 { font-size: clamp(37px, 8.4vw, 61px); }
  .hero-description { font-size: 14px; max-width: 490px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; padding-top: 18px; }
  .hero-facts { font-size: 8px; gap: 13px; margin-top: 26px; }
  .hero-actions { gap: 23px; }
  .art-caption { margin-top: 5px; }
  .flow-layout { grid-template-columns: 1fr; gap: 25px; padding-block: 30px; }
  .flow-layout h2 br { display: none; }
  .flow-layout h2 { font-size: 24px; }
  .flow { font-size: 10px; gap: 12px; flex-wrap: wrap; }
  .section { padding-top: 54px; }
  h2 { font-size: 31px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-aside { margin-top: 17px; }
  .section-aside br { display: none; }
  .platform-grid { grid-template-columns: 1fr; gap: 13px; }
  .platform-card { padding: 24px; }
  .card-top { margin-bottom: 17px; }
  .endpoint code { font-size: 11px; }
  .platform-card > p { font-size: 13px; }
  .examples-layout { grid-template-columns: 1fr; }
  .example-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .example-choice { padding: 14px 11px; gap: 8px; align-items: flex-start; }
  .example-choice strong { font-size: 11px; line-height: 1.5; }
  .example-choice small { font-size: 9px; line-height: 1.5; margin-top: 4px; }
  .example-number { font-size: 8px; }
  .choice-arrow { display: none; }
  pre { padding: 20px 16px; min-height: 290px; }
  pre code { font-size: 10px; }
  .code-toolbar { padding-inline: 16px; }
  .code-note { padding: 14px 16px; }
  .notes-section { grid-template-columns: 1fr; padding-block: 42px 45px; }
  .notes-grid { gap: 27px 23px; }
  .footer { flex-wrap: wrap; padding-block: 28px; gap: 24px; }
  .footer > span { max-width: 170px; font-size: 9px; }
  .footer .text-link { width: 100%; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
