:root {
  color-scheme: dark;
  --bg: #111214;
  --surface: #1a1c1f;
  --ink: #f3f2ed;
  --muted: #b1b3b5;
  --line: #34363a;
  --accent: #c6f36b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
.wrap { width: min(100% - 6rem, 80rem); margin-inline: auto; }
.skip { position: absolute; top: -7rem; left: 1rem; background: var(--accent); color: #111; padding: .75rem; z-index: 30; }
.skip:focus { top: 1rem; }
.header { position: sticky; top: .75rem; z-index: 10; min-height: 4.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding: .5rem 1rem; margin-top: .75rem; border: 1px solid #ffffff19; border-radius: 1rem; background: #191a1de8; box-shadow: 0 .75rem 2rem #0003; backdrop-filter: blur(20px); }
.header > .brand { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.4rem; line-height: 1; font-weight: 720; letter-spacing: -.035em; }
.brand svg { width: 1.9rem; height: 1.9rem; color: var(--accent); }
.brand-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.5vw, 1.5rem); font-size: .9rem; color: #c8c9ca; }
.nav a { padding: .5rem .65rem; border-radius: .6rem; }
.nav a:hover { background: #ffffff0a; }
.nav a, .footer a, .inline-link { transition: color .18s ease; }
.nav a:hover, .footer a:hover, .inline-link:hover { color: var(--accent); }
.nav-cta { background: var(--action-fill); color: var(--action-ink); border-radius: .65rem; padding: .5rem .65rem; font-size: .9rem; white-space: nowrap; }
.nav-cta:hover { background: var(--action-hover); color: var(--action-ink); }
.nav-cta span { margin-left: 1rem; }
.nav .nav-cta { display: none; }
.header-tools { display: flex; align-items: center; justify-self: end; gap: 10px; }
.menu-toggle { display: none; }
.hero { min-height: 40rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(3rem, 6vw, 7rem); padding-block: 6rem 7rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.035em; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(3.8rem, 6.4vw, 6.4rem); line-height: 1.02; margin-bottom: 1.75rem; }
h1 em, h2 em { font-style: normal; color: inherit; }
.eyebrow { margin: 0 0 1.5rem; color: #c3c6c2; font-size: .75rem; font-weight: 650; letter-spacing: .1em; }
.pulse { display: inline-block; background: var(--accent); width: .45rem; height: .45rem; border-radius: 50%; margin-right: .55rem; }
.hero-lead, .section-copy { color: var(--muted); line-height: 1.7; font-size: 1.08rem; max-width: 31rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 2rem; min-height: 3.5rem; padding: 0 1.25rem; border-radius: .75rem; font-size: .95rem; font-weight: 650; transition: background .18s ease, border-color .18s ease, transform .1s ease; }
.button span { font-size: 1.1rem; }
.primary { background: var(--accent); color: #171b11; box-shadow: 0 .5rem 1.5rem #0003; }
.primary:hover { background: #d7fa9a; }
.text-button { border: 1px solid #494b4e; background: #ffffff08; }
.text-button:hover { border-color: #9a9c9d; }
.button:active, button:active { transform: scale(.97); transition-duration: .08s; }
.hero-art { min-width: 0; padding: 1.4rem; border: 1px solid #ffffff1c; border-radius: 1.5rem; background: linear-gradient(145deg, #292b2e, #191a1d 65%); box-shadow: 0 2rem 5rem #0005, inset 0 1px #ffffff0d; }
.route-top, .route-bottom { display: flex; justify-content: space-between; gap: 1rem; color: #a9abad; font-size: .75rem; letter-spacing: .025em; }
.route-indicator { color: #c4d5a5; font-size: .7rem; }
.route-diagram { min-height: 19rem; display: grid; grid-template-columns: 1fr 2.5rem 1.2fr; align-items: center; padding: 2rem .25rem; }
.route-source, .route-targets > div { border: 1px solid #ffffff1a; background: #303236; border-radius: .85rem; box-shadow: 0 .6rem 1.4rem #0003, inset 0 1px #ffffff0d; }
.route-source { display: flex; align-items: center; gap: .8rem; padding: 1rem; }
.route-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .65rem; background: #c6f36b; color: #1a2013; font-size: 1.6rem; }
.route-icon svg { width: 1.5rem; height: 1.5rem; }
.route-source > div { min-width: 0; }
.route-source small, .route-source strong { display: block; }
.route-source small { color: #b7b9bb; font-size: .75rem; letter-spacing: .04em; }
.route-source strong { font-size: 1rem; }
.route-lines { height: 10rem; position: relative; border-right: 1px solid #85898b; }
.route-lines span { position: absolute; right: 0; width: 100%; border-top: 1px solid #85898b; }
.route-lines span:first-child { top: 0; width: 50%; }
.route-lines span:nth-child(2) { top: 50%; }
.route-lines span:last-child { bottom: 0; width: 50%; }
.route-targets { display: grid; gap: .75rem; }
.route-targets > div { display: flex; align-items: center; gap: .65rem; min-height: 4.25rem; padding: .8rem; font-size: .85rem; font-weight: 600; }
.route-targets span { color: #b2b5b6; font-size: .7rem; }
.route-targets b { margin-left: auto; color: #b9cb9c; }
.route-bottom { padding-top: 1rem; border-top: 1px solid rgba(198, 243, 107, .5); }
.compat { border-block: 1px solid var(--line); background: #18191b; }
.compat-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.compat-inner > span { font-size: .7rem; letter-spacing: .07em; color: #a3a5a6; }
.compat-inner div { font-size: 1rem; font-weight: 600; color: #d7d8d7; }
.compat-inner i { font-style: normal; color: #777a7b; margin-inline: 1rem; }
.section { padding-block: 7rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2.5rem; margin-bottom: 3.25rem; }
.section-head > p { max-width: 23rem; color: var(--muted); font-size: 1rem; margin-bottom: .3rem; }
h2 { font-size: clamp(2.6rem, 4.2vw, 4.5rem); line-height: 1.08; margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps article { padding: 1.75rem 2rem 2rem 0; }
.steps article + article { padding-left: 2rem; border-left: 1px solid var(--line); }
.step-number { color: #a8aaab; font-size: .8rem; }
.step-icon { font-size: 1.7rem; color: #d5e9b6; margin: 2rem 0 1rem; }
.steps h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .65rem; }
.steps p { max-width: 20rem; color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.quickstart { background: #1a1b1e; border-block: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: center; }
.quick-grid .section-copy { margin-top: 1.75rem; }
.endpoint { margin-top: 2rem; border-left: 2px solid #aabd92; padding: .2rem 0 .2rem 1rem; display: grid; gap: .3rem; }
.endpoint span, .small-note { color: var(--muted); font-size: .8rem; }
.endpoint code { font-size: .9rem; overflow-wrap: anywhere; }
.small-note { line-height: 1.6; margin-top: 1rem; }
.code-window { min-width: 0; background: #141518; border: 1px solid #3a3c40; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 1.5rem 3rem #0004; }
.code-top, .code-bottom { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 1.25rem; }
.tabs { display: flex; gap: 1.5rem; }
.tabs button, .copy { min-height: 3.5rem; background: none; border: 0; color: #b1b3b5; cursor: pointer; font-size: .85rem; }
.tabs button { min-width: 2.75rem; }
.tabs button[aria-selected=true] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
.copy:hover { color: var(--accent); }
.copy-wrap { position: relative; }
.copy-status { position: absolute; right: 0; top: 100%; z-index: 1; width: max-content; color: var(--ink); background: #34363a; border-radius: .4rem; font-size: .8rem; }
.copy-status:not(:empty) { padding: .3rem .6rem; }
pre { min-height: 19rem; margin: 0; padding: 1.75rem 1.5rem; overflow: auto; color: #e0e1df; font: .85rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-bottom { border-top: 1px solid var(--line); border-bottom: 0; padding-block: .9rem; color: #a6a8aa; font-size: .72rem; letter-spacing: .05em; }
.code-bottom i { display: inline-block; width: .4rem; height: .4rem; background: var(--accent); border-radius: 50%; margin-right: .45rem; }
.wallet { background: linear-gradient(120deg, #242629, #1a1b1e); border-block: 1px solid var(--line); }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end; }
.wallet-lead { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.25; letter-spacing: -.025em; max-width: 32rem; }
.inline-link { display: inline-flex; gap: 3rem; border-bottom: 1px solid #777; padding: .8rem 0; font-size: .95rem; font-weight: 650; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary span { color: #cbdcb4; font-size: 1.5rem; line-height: 1; transition: transform .18s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 1rem; max-width: 35rem; padding: 0 2rem 1.4rem 0; margin: 0; }
.closing { border-block: 1px solid var(--line); background: #1c1e21; }
.closing-inner { padding-block: 5rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.footer { min-height: 9rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer > span, .footer > div { color: var(--muted); font-size: .85rem; }
.footer > div { display: flex; gap: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-block: 4.5rem; }
  .hero-art { width: 100%; max-width: 38rem; justify-self: center; }
  .quick-grid { grid-template-columns: 1fr; }
  .route-diagram { grid-template-columns: 1fr 1.25rem 1.2fr; }
  .route-source { padding: .7rem; gap: .5rem; }
  .route-targets > div { padding: .65rem; }
  .compat-inner > span:last-child { display: none; }
  .quick-grid, .wallet-grid, .faq { gap: 2.5rem; }
  .section { padding-block: 5.5rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  .header { min-height: 4rem; padding-inline: 1rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-block: 4.5rem 4rem; gap: 3rem; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5rem); }
  .hero-art { max-width: 34rem; }
  .route-diagram { min-height: 15rem; grid-template-columns: .85fr 1.25rem 1.3fr; }
  .route-source { padding: .7rem; gap: .5rem; }
  .route-source small { font-size: .7rem; }
  .route-targets > div { font-size: .8125rem; padding: .6rem; }
  .compat-inner { padding-block: 1.4rem; align-items: start; flex-direction: column; gap: .75rem; }
  .compat-inner div { font-size: .9rem; line-height: 2; }
  .compat-inner i { margin-inline: .4rem; }
  .section { padding-block: 4.5rem; }
  .section-head { display: block; margin-bottom: 2.5rem; }
  .section-head > p { margin-top: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article + article { border-left: 0; padding: 1.5rem 0; }
  .steps article + article { border-top: 1px solid var(--line); }
  .step-icon { margin: 1rem 0 .6rem; }
  .quick-grid, .wallet-grid, .faq { grid-template-columns: 1fr; gap: 2.5rem; }
  .closing-inner { align-items: start; flex-direction: column; padding-block: 4rem; }
  .footer { padding-block: 2rem; align-items: start; flex-direction: column; gap: 1rem; }
  .footer > div { flex-wrap: wrap; gap: 1rem; }
  pre { font-size: .8rem; padding: 1.5rem 1rem; min-height: 17rem; }
  .code-top { padding-inline: .8rem; }
  .tabs { gap: .8rem; }
}
@media (max-width: 560px) {
  .route-diagram { grid-template-columns: 1fr; padding: 1.5rem 0; }
  .route-source { justify-self: center; min-width: 12rem; padding: .8rem 1rem; }
  .route-source small { font-size: .75rem; }
  .route-lines { width: 1px; height: 1.25rem; justify-self: center; }
  .route-lines span { display: none; }
  .route-targets { gap: .5rem; }
  .route-targets > div { min-height: 3.25rem; padding: .6rem .85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-reduced-transparency: reduce) { .header { background: #191a1d; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --muted: #d1d1d1; --line: #777; } .header, .hero-art, .code-window { border-color: #aaa; } }


.hero-copy h1 em { font-style: italic; color: var(--accent); font-weight: 600; }

h2 em { font-style: italic; color: var(--accent); }

/* Model provider strip */
.brand-strip { background:#18191b; border-block:1px solid #34363a; overflow:hidden; }
.brand-inner { max-width:80rem; margin:auto; display:flex; align-items:center; gap:2rem; padding:1.4rem 2rem; }
.brand-label { flex:none; color:#b1b3b5; font-size:.7rem; font-weight:650; letter-spacing:.1em; }
.brand-marquee { display:flex; overflow:hidden; flex:1; mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.brand-track { display:flex; flex:none; align-items:center; gap:2rem; padding-right:2rem; animation:brand-scroll 25s linear infinite; }
.brand-name { color:#f3f2ed; white-space:nowrap; font-size:1.1rem; font-weight:650; letter-spacing:-.03em; }
.brand-strip .brand-dot { color:#c6f36b; }
@keyframes brand-scroll { to { transform:translateX(-100%); } }
@media (max-width:680px) { .brand-inner { display:block; padding:1.2rem 0; } .brand-label { display:block; margin:0 1.5rem 1rem; } }
@media (prefers-reduced-motion:reduce) { .brand-marquee { mask-image:none; } .brand-track { animation:none; flex-wrap:wrap; padding:0 1.5rem; } .brand-track[aria-hidden="true"] { display:none; } }

@media(max-width:960px) {
  .header { display:flex; justify-content:space-between; }
  .header-tools .nav-cta { display:none; }
  .menu-toggle { display:flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:7px 10px; background:transparent; color:var(--ink); border:1px solid var(--control-line); border-radius:9px; }
  .menu-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; }
  .header .nav { position:absolute; inset:auto 0 auto 0; top:calc(100% + .5rem); padding:.6rem; background:var(--surface); border:1px solid var(--control-line); border-radius:.85rem; box-shadow:0 .75rem 2rem #0002; align-items:stretch; flex-direction:column; gap:0; visibility:hidden; opacity:0; transform:translateY(-.35rem); transition:opacity .16s ease, transform .16s ease, visibility .16s; }
  .header .nav.open { visibility:visible; opacity:1; transform:none; }
  .header .nav a { min-height:44px; padding:.8rem; }
  .header .nav .nav-cta { display:block; margin-top:.4rem; color:var(--action-ink); }
  .header .nav .nav-cta:hover { background:var(--action-hover); }
}
@media(max-width:560px) {
  .header { gap:10px; padding-inline:12px; }
  .header-tools { gap:8px; }
  .header .brand { font-size:1.2rem; gap:7px; }
  .header .brand svg { width:25px; height:25px; }
  .menu-toggle .menu-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .menu-toggle { padding:8px; }
}

/* Compose the light page's surfaces; color meaning stays shared with the cabinet. */
:root[data-theme="light"] .header { background:#fffffff0; border-color:var(--line); box-shadow:0 .75rem 2rem #25351410; }
:root[data-theme="light"] .nav { color:var(--muted); }
:root[data-theme="light"] .eyebrow { color:var(--muted); }
:root[data-theme="light"] .text-button { background:var(--surface); border-color:var(--control-line); }
:root[data-theme="light"] .text-button:hover { border-color:var(--accent); }
:root[data-theme="light"] .primary { box-shadow:0 .5rem 1.5rem #34471512; }
:root[data-theme="light"] .hero-art { background:linear-gradient(145deg,#edf2e5,#fff 65%); border-color:var(--line); box-shadow:0 1.5rem 4rem #23340e14; }
:root[data-theme="light"] .route-top,
:root[data-theme="light"] .route-bottom,
:root[data-theme="light"] .route-source small,
:root[data-theme="light"] .route-targets span { color:var(--muted); }
:root[data-theme="light"] .route-indicator,
:root[data-theme="light"] .route-targets b { color:var(--accent); }
:root[data-theme="light"] .route-source,
:root[data-theme="light"] .route-targets>div { background:var(--surface); border-color:var(--line); box-shadow:0 6px 16px #263a0b0c; }
:root[data-theme="light"] .route-lines,
:root[data-theme="light"] .route-lines span { border-color:var(--control-line); }
:root[data-theme="light"] .route-bottom { border-color:var(--line); }
:root[data-theme="light"] .compat,
:root[data-theme="light"] .brand-strip { background:#eaf0e2; border-color:var(--line); }
:root[data-theme="light"] .compat-inner>span,
:root[data-theme="light"] .brand-label,
:root[data-theme="light"] .step-number { color:var(--muted); }
:root[data-theme="light"] .compat-inner div,
:root[data-theme="light"] .brand-name { color:var(--ink); }
:root[data-theme="light"] .brand-strip .brand-dot,
:root[data-theme="light"] .step-icon { color:var(--accent); }
:root[data-theme="light"] .quickstart { background:#edf1e7; }
:root[data-theme="light"] .endpoint { border-color:var(--accent); }
:root[data-theme="light"] .code-window { background:var(--surface); border-color:var(--line); box-shadow:0 1rem 3rem #2738100e; }
:root[data-theme="light"] .tabs button,
:root[data-theme="light"] .copy,
:root[data-theme="light"] .code-bottom { color:var(--muted); }
:root[data-theme="light"] .tabs button[aria-selected="true"],
:root[data-theme="light"] pre { color:var(--ink); }
:root[data-theme="light"] .copy-status { background:var(--raised); }
:root[data-theme="light"] .wallet { background:linear-gradient(120deg,#e9f0df,#f6f8f2); }
:root[data-theme="light"] summary span { color:var(--accent); }
:root[data-theme="light"] .closing { background:#eaf0e2; }
@media(prefers-reduced-transparency:reduce) { :root[data-theme="light"] .header { background:var(--surface); } }
