:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-2: #edf2f9;
  --line: #dce3ee;
  --text: #17243a;
  --muted: #586980;
  --accent: #3159d5;
  --blue: #466bc6;
  --orange: #ab6c44;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 85% 5%, #dbe6ff9c, transparent 34%), radial-gradient(circle at 2% 32%, #e6eaff9c, transparent 36%); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #1f43ad; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
button, input { font: inherit; }
code, pre, .mono, .eyebrow, .chip, .index, .command { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: #f6f8fce8; backdrop-filter: blur(16px); transition: background .2s, box-shadow .2s; }
.site-header.is-compact { background: #f6f8fcf5; box-shadow: 0 10px 30px #14213b14; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: min-height .2s, gap .2s, padding .2s; }
.site-header.is-compact .header-inner { min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); font-size: 15px; font-weight: 760; text-decoration: none; white-space: nowrap; letter-spacing: -.02em; transition: font-size .2s; }
.site-header.is-compact .brand { font-size: 14px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; color: #ffffff; background: var(--accent); border-radius: 10px; font: 800 17px/1 ui-monospace, SFMono-Regular, Menlo, monospace; transition: width .2s, height .2s, border-radius .2s, font-size .2s; }
.site-header.is-compact .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; }
.brand em { color: var(--muted); font-style: normal; font-weight: 470; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 3px; }
.top-nav a { padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 630; text-decoration: none; border-radius: 8px; transition: padding .2s; }
.site-header.is-compact .top-nav a { padding-block: 6px; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--text); background: #e7edfa; }
.top-nav .nav-github { margin-left: 8px; color: var(--accent); border: 1px solid #9fb4ea; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; }
h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6.3vw, 6.25rem); font-weight: 750; margin: 18px 0 24px; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); margin: 0 0 18px; }
h3 { font-size: 1.35rem; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.lead { color: #4c5e75; font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 760px; line-height: 1.57; }
.hero { padding-block: clamp(74px, 11vw, 154px) 105px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: clamp(40px, 6vw, 100px); }
.hero h1 strong { color: var(--accent); font-weight: inherit; }
.hero-copy { max-width: 690px; }
.hero-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 17px; border: 1px solid #c3cede; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 720; text-decoration: none; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-1px); color: var(--text); background: #eaf0fb; }
.button.primary { color: #ffffff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { color: #ffffff; background: #2449b8; }
.button.link-journey { position: relative; isolation: isolate; overflow: hidden; gap: 14px; border-color: #b9c7e2; background: #ffffff; box-shadow: 0 3px 12px #263b650a; transition: transform .25s, border-color .25s, box-shadow .25s; }
.button.link-journey::before { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(105deg, #e9f0ff, #dbe7ff); transform: translateX(-101%); transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
.link-journey .journey-label, .link-journey .journey-arrow { position: relative; z-index: 1; }
.link-journey .journey-arrow { color: var(--accent); font-size: 18px; line-height: 1; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s; }
.button.link-journey:hover, .button.link-journey:focus-visible { border-color: #8fa8e8; background: #ffffff; box-shadow: 0 8px 22px #3159d51c; }
.button.link-journey:hover::before, .button.link-journey:focus-visible::before, .button.link-journey.is-departing::before { transform: translateX(0); }
.button.link-journey:hover .journey-arrow, .button.link-journey:focus-visible .journey-arrow { transform: translate(4px, -2px); }
.button.link-journey.is-departing .journey-arrow { transform: translate(16px, -8px); opacity: 0; }
.text-link { font-weight: 710; text-decoration: none; }
.text-link::after { content: " ↗"; }
.terminal { border: 1px solid #253957; border-radius: 18px; background: linear-gradient(145deg, #17263c, #101b2d 72%); box-shadow: 0 24px 65px #14213b24, inset 0 1px #ffffff18; overflow: hidden; transform: none; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 15px 18px; border-bottom: 1px solid #ffffff16; color: #a5b5c6; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #aeb9bc77; }
.dot:first-child { background: var(--orange); }
.terminal-bar span:last-child { margin-left: auto; }
.terminal pre { margin: 0; min-height: 290px; padding: 28px 26px 32px; color: #dce8f5; font-size: clamp(12px, 1.25vw, 15px); line-height: 1.95; white-space: pre; overflow-x: auto; }
.terminal .prompt { color: #99bbff; }
.terminal .comment { color: #9db0c7; }
.terminal .path { color: #a9c5ff; }
.section { padding-block: 90px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-head p { max-width: 520px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px #263b6520; border-color: #9fb4ea; color: var(--text); }
.card .index { color: var(--accent); font-size: 13px; }
.card-mark { position: absolute; top: 25px; right: 25px; width: 44px; height: 44px; }
.card h3 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); margin: 36px 0 14px; }
.card p { max-width: 480px; color: var(--muted); }
.card .card-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 700; }
.card .card-footer span:first-child { color: #68778c; }
.card.blue .index, .card.blue .card-footer { color: var(--blue); }
.card.orange .index, .card.orange .card-footer { color: var(--orange); }
.card.accent .index, .card.accent .card-footer { color: var(--accent); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.flow-step { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.flow-step .index { color: var(--accent); font-size: 12px; }
.flow-step h3 { margin-top: 24px; }
.flow-step p { color: var(--muted); margin: 0; }
.code-window { border: 1px solid var(--line); border-radius: 14px; background: #111d31; overflow: hidden; }
.code-window .label { padding: 11px 18px; border-bottom: 1px solid var(--line); color: #b4c1d3; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-window pre { margin: 0; padding: 20px; color: #e2ebf7; font-size: 13px; line-height: 1.8; }
.page-hero { padding-block: 85px 68px; max-width: 910px; }
.product-title { display: flex; align-items: center; gap: 24px; margin: 18px 0 24px; }
.product-title h1 { margin: 0; }
.product-logo { display: block; flex: 0 0 80px; width: 80px; height: 80px; filter: drop-shadow(0 12px 18px #3159d526); }
.page-hero h1 { font-size: clamp(3rem, 5.2vw, 5rem); }
.page-hero .lead { max-width: 790px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 30px; border: 1px solid var(--line); border-radius: 17px; background: #ffffff; }
.panel h3 { margin-top: 0; }
.panel p, .panel li { color: var(--muted); }
.panel strong { color: var(--text); }
.chip { display: inline-block; padding: 4px 9px; border: 1px solid #a7b9eb; border-radius: 100px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.chip.blue { border-color: #a5c4ff75; color: var(--blue); }
.chip.orange { border-color: #ffbd8475; color: var(--orange); }
.stack { display: grid; gap: 14px; }
.stack-row { display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack-row .index { min-width: 34px; color: var(--accent); }
.stack-row p { color: var(--muted); margin: 5px 0 0; }
.note { padding: 20px 24px; border-left: 3px solid var(--accent); background: #e9efff; color: #435571; border-radius: 0 10px 10px 0; }
.note p:last-child { margin-bottom: 0; }
.site-footer { margin-top: 85px; border-top: 1px solid var(--line); padding: 35px 0 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-inner a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.document-layout { display: grid; grid-template-columns: minmax(200px, 245px) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.doc-nav { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow: auto; padding: 18px 0; font-size: 12px; }
.doc-nav .eyebrow { margin-bottom: 18px; }
.doc-nav ul { padding-left: 16px; list-style: none; }
.doc-nav > nav > ul { margin: 0; padding-left: 0; }
.doc-nav li { margin: 7px 0; }
.doc-nav a { color: var(--muted); text-decoration: none; }
.doc-nav a:hover { color: var(--accent); }
.doc-content { min-width: 0; max-width: 760px; padding-bottom: 90px; }
.doc-content h1 { font-size: clamp(2.5rem, 4vw, 4rem); margin-top: 0; }
.doc-content h2 { font-size: 2rem; padding-top: 44px; margin-top: 45px; border-top: 1px solid var(--line); }
.doc-content h3 { font-size: 1.35rem; margin-top: 34px; }
.doc-content h4 { font-size: 1.1rem; margin-top: 30px; }
.doc-content p, .doc-content li { color: #475a72; }
.doc-content pre { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: #121f32; color: #e2ebf7; overflow-x: auto; white-space: pre; font-size: 12px; line-height: 1.65; }
.doc-content :not(pre) > code { padding: .12em .28em; border-radius: 4px; color: #274cbf; background: #e8eeff; }
.doc-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.doc-content th, .doc-content td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-content th { color: var(--text); background: #edf2f9; }
.doc-content blockquote { border-left: 3px solid var(--blue); margin: 20px 0; padding: 3px 0 3px 20px; }
.doc-content img { max-width: 100%; }
.doc-intro { padding: 62px 0 38px; }
.doc-intro h1 { font-size: clamp(2.5rem, 4vw, 4.25rem); margin: 11px 0 14px; }
.doc-intro p { color: var(--muted); max-width: 780px; }
.legal { max-width: 790px; }
.legal h2 { font-size: 1.6rem; margin-top: 38px; }
.legal p { color: #475a72; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-block: 75px 75px; }
  .terminal { max-width: 590px; transform: none; }
  .document-layout { display: block; }
  .doc-nav { position: static; max-height: none; padding: 0 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
  .doc-nav nav > ul { display: flex; flex-wrap: wrap; column-gap: 18px; }
  .doc-nav nav ul ul { display: none; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1180px); }
  html { scroll-padding-top: 140px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 15px; }
  .site-header.is-compact .header-inner { gap: 4px; padding-block: 8px; }
  .top-nav { justify-content: flex-start; gap: 0; margin-left: -10px; }
  .top-nav a { padding: 6px 10px; font-size: 12px; }
  .site-header.is-compact .top-nav a { padding-block: 4px; }
  .top-nav .nav-github { margin-left: 0; }
  .cards, .flow, .split { grid-template-columns: 1fr; }
  .product-title { gap: 14px; }
  .product-title h1 { font-size: clamp(2.35rem, 10vw, 3rem); }
  .product-logo { flex-basis: 56px; width: 56px; height: 56px; }
  .section { padding-block: 64px; }
  .section-head { display: block; }
  .card { min-height: 225px; }
  .terminal pre { min-height: 0; padding: 20px 18px 24px; font-size: 12px; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, .card, .site-header, .header-inner, .brand, .brand-mark, .top-nav a, .button.link-journey::before, .link-journey .journey-arrow { transition: none; } }

/* Language selector for translated guides. */
.language-switch { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #edf2f9; }
.language-switch a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.language-switch a:hover { color: var(--accent); }
.language-switch a[aria-current="page"] { color: var(--text); background: #fff; box-shadow: 0 1px 6px rgb(20 36 64 / 10%); }
