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

:root {
  color-scheme: light;
  --bg: #fcfbff;
  --surface: #fff;
  --ink: #292732;
  --muted: #716d7d;
  --subtle: #706b7b;
  --border: #eceaf2;
  --soft: #f7f6fa;
  --pink: #b93279;
  --pink-deep: #aa276f;
  --blue: #6eafff;
  --purple: #9985f7;
  --shadow: 0 20px 55px rgba(65, 52, 105, .07);
  font-family: 'DM Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #171720;
  --surface: #22222e;
  --ink: #f3f1fa;
  --muted: #bbb6ca;
  --subtle: #9691a7;
  --border: #383646;
  --soft: #252532;
  --pink: #fa79c1;
  --pink-deep: #ec68b5;
  --blue: #84bcff;
  --purple: #b6a7ff;
  --shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { color: #322d46; background: #f8b9de; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; height: 72px; border-bottom: 1px solid rgba(230, 226, 238, .62); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(22px); }
.header-inner { height: 100%; max-width: 1500px; padding: 0 34px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-size: 18px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.brand img { flex: none; }
.header-search { width: min(300px, 28vw); height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--subtle); background: color-mix(in srgb, var(--soft) 90%, transparent); border: 1px solid var(--border); border-radius: 14px; font-size: 13px; text-align: left; }
.header-search:hover { color: var(--ink); border-color: #d7c8ea; }
.header-search kbd { margin-left: auto; padding: 2px 5px; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: 11px; color: var(--subtle); }
.header-links { display: flex; align-items: center; justify-self: end; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 600; }
.header-links > a:hover, .footer-links a:hover { color: var(--pink-deep); }
.header-links a[aria-current='page'] { color: var(--ink); }
.header-links a[aria-label='GitHub'] { display: flex; }
.lang-switch { padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; }
.icon-button { display: inline-grid; place-items: center; width: 35px; height: 35px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 9px; }
.icon-button:hover { color: var(--pink); background: var(--soft); }
.theme-moon { display: none; }
[data-theme='dark'] .theme-toggle > svg { display: none; }
[data-theme='dark'] .theme-moon { display: inline-flex; }
.mobile-actions { display: none; justify-self: end; gap: 4px; }

.hero { min-height: 670px; position: relative; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; isolation: isolate; text-align: center; background: radial-gradient(ellipse 29% 35% at 28% 16%, rgba(239, 222, 252, .52), transparent 100%), radial-gradient(ellipse 31% 42% at 70% 18%, rgba(197, 249, 252, .55), transparent 100%), radial-gradient(ellipse 26% 36% at 95% 10%, rgba(230, 216, 255, .58), transparent 100%); }
.hero-glow { position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .36; }
.hero-glow-a { top: -180px; left: 16%; background: #f6cdeb; }
.hero-glow-b { top: -160px; right: 14%; background: #bceef7; }
.hero-ring { position: absolute; border: 1px solid rgba(168, 153, 201, .12); border-radius: 50%; pointer-events: none; }
.hero-ring-one { width: 1120px; height: 1120px; top: -468px; }
.hero-ring-two { width: 1500px; height: 1500px; top: -652px; }
.hero-ring::before, .hero-ring::after { content: ''; position: absolute; width: 42px; height: 42px; border: 1px solid rgba(168, 153, 201, .15); border-radius: 50%; }
.hero-ring-one::before { top: 51%; left: -21px; }
.hero-ring-one::after { top: 63%; right: 7%; width: 56px; height: 56px; }
.hero-ring-two::before { top: 42%; right: 8%; width: 14px; height: 14px; }
.hero-star { position: absolute; color: #9b96ff; font-size: 30px; }
.hero-star-one { top: 224px; left: calc(50% - 535px); }
.hero-star-two { top: 355px; right: calc(50% - 535px); color: #ef8ed5; }
.hero-content { position: relative; z-index: 1; width: min(100%, 1040px); padding: 20px 24px 76px; }
.announcement { display: inline-flex; align-items: center; gap: 9px; color: var(--pink-deep); background: #fff1f8; border: 1px solid #ffe2f1; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.announcement:hover { background: #ffe5f2; }
.announce-spark { font-size: 17px; }
.hero-mark { display: block; width: min(305px, 80vw); height: auto; margin: -4px auto -18px; }
.hero-eyebrow { margin: 0 0 12px; color: var(--subtle); text-transform: uppercase; letter-spacing: .23em; font-size: 11px; font-weight: 800; }
.hero h1 { margin: 0 auto; max-width: 1000px; font-size: clamp(52px, 5.9vw, 82px); line-height: 1.06; letter-spacing: -.075em; font-weight: 800; }
.hero h1 span { background: linear-gradient(95deg, #308db7 0%, #577bd5 39%, #7868c8 72%, #b34691 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { max-width: 850px; margin: 18px auto 0; color: var(--muted); font-size: clamp(17px, 1.62vw, 21px); line-height: 1.65; }
.hero-cta, .final-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 23px; }
.button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-size: 15px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(120deg, #c23a80, #ae2872); box-shadow: 0 12px 27px rgba(172, 38, 112, .24); }
.button-primary:hover { box-shadow: 0 16px 35px rgba(239, 96, 178, .3); }
.button-soft { color: var(--pink-deep); background: #fff0f8; }
.button-soft:hover { background: #ffe5f3; }
.button-outline { border: 1px solid rgba(130, 111, 167, .28); background: rgba(255, 255, 255, .5); }
.hero-highlights { display: inline-flex; align-items: center; min-height: 42px; margin-top: 13px; padding: 0 17px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 8px 28px rgba(112, 93, 150, .05); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.backend-card code, .code-showcase code, .docs-content code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.command-prompt { color: var(--pink); font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.scroll-cue { position: absolute; bottom: 27px; display: flex; align-items: center; gap: 13px; color: var(--subtle); font-size: 12px; }
.scroll-cue span { font-size: 21px; }

.section { max-width: 1190px; padding: 112px 28px; margin: auto; }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; color: var(--pink-deep); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2, .example-copy h2, .final-section h2 { margin: 14px 0 17px; font-size: clamp(36px, 4.2vw, 55px); line-height: 1.14; letter-spacing: -.06em; }
.section-heading p, .example-copy > p, .final-section p { max-width: 690px; margin: auto; color: var(--muted); line-height: 1.8; font-size: 17px; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; min-height: 285px; display: flex; flex-direction: column; align-items: flex-start; padding: 32px 36px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 28px 65px rgba(65, 52, 105, .12); }
.feature-1 { background: radial-gradient(circle at 95% 2%, rgba(161, 234, 246, .34), transparent 45%), var(--surface); }
.feature-2 { background: radial-gradient(circle at 93% 3%, rgba(208, 187, 255, .38), transparent 45%), var(--surface); }
.feature-3 { background: radial-gradient(circle at 95% 2%, rgba(255, 193, 220, .35), transparent 45%), var(--surface); }
.feature-4 { background: radial-gradient(circle at 95% 2%, rgba(192, 206, 255, .4), transparent 45%), var(--surface); }
.feature-number { color: var(--pink-deep); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.feature-glyph { position: absolute; top: 19px; right: 30px; color: #bba7f5; font-size: 58px; line-height: 1; opacity: .75; }
.feature-card h3 { margin: 45px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.feature-card p { max-width: 445px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.feature-notation { display: block; max-width: 100%; margin-top: auto; padding: 18px 0 0; overflow: hidden; color: var(--pink-deep); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--pink-deep); font-size: 13px; font-weight: 800; }

.example-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; padding-top: 90px; padding-bottom: 70px; }
.intro-section { padding-top: 80px; }
.example-copy h2 { max-width: 480px; }
.example-copy > p { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 27px; color: var(--pink-deep); font-weight: 800; }
.text-link:hover svg { transform: translateX(4px); }
.text-link svg { transition: transform .2s; }
.code-showcase { position: relative; overflow: hidden; border: 1px solid #47445a; border-radius: 21px; background: #252435; box-shadow: 0 36px 75px rgba(42, 38, 75, .22); color: #eae8fa; }
.code-showcase::before { content: ''; position: absolute; width: 200px; height: 200px; top: -90px; right: -60px; background: #7b6bbf; filter: blur(100px); opacity: .28; }
.window-top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 55px; padding: 0 22px; border-bottom: 1px solid #39394c; color: #a7a2b8; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff8aa2; }
.window-dots i:nth-child(2) { background: #ffd28a; }
.window-dots i:nth-child(3) { background: #8be4c4; }
.window-icon { color: #a996f7; font-weight: 700; }
.hero-code { position: relative; margin: 0; padding: 39px 36px 35px; font-size: clamp(13px, 1.3vw, 16px); line-height: 2; overflow-x: auto; }
.syntax-purple { color: #c2a8ff; }.syntax-blue { color: #8dc8ff; }.syntax-pink { color: #f0a4ce; }.syntax-orange { color: #ffd19a; }
.code-output { display: grid; grid-template-columns: 100px 1fr; gap: 15px; padding: 18px 35px 25px; border-top: 1px solid #39394c; color: #a7a2b8; font-size: 12px; }
.code-output code { color: #eae8fa; font-size: 13px; line-height: 2; }
.terminal-result { color: #a8e6c4; }

.performance-section { padding: 105px 28px 112px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.performance-inner { max-width: 1134px; margin: auto; text-align: center; }
.performance-inner .section-heading { margin-bottom: 37px; }
.crosslang-benchmark { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--border); border-radius: 25px; background: var(--surface); box-shadow: 0 28px 75px rgba(44, 35, 88, .11); text-align: left; }
.crosslang-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 27px; }
.crosslang-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); }
.crosslang-tab { min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; }
.crosslang-tab[aria-selected='true'] { border-color: var(--border); background: var(--surface); color: var(--ink); box-shadow: 0 3px 10px rgba(38, 32, 62, .08); }
.crosslang-case[hidden] { display: none; }
.crosslang-case-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 24px; }
.crosslang-case-heading h3 { margin: 0; font-size: clamp(19px, 2vw, 24px); letter-spacing: -.04em; line-height: 1.25; }
.crosslang-case-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.crosslang-input-size { flex: none; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); color: var(--subtle); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.crosslang-figure { margin: 0; }
.crosslang-groups { border-top: 1px solid var(--border); }
.crosslang-language { display: grid; grid-template-columns: 130px minmax(110px, 1fr) 86px; align-items: center; gap: 10px; min-width: 0; padding: 12px 7px; border-bottom: 1px solid var(--border); border-radius: 11px; }
.crosslang-language h4 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
.crosslang-language-ck { margin: 4px 0; border: 1px solid color-mix(in srgb, var(--pink) 38%, var(--border)); background: color-mix(in srgb, var(--pink) 5%, var(--surface)); }
.crosslang-language-ck h4 { color: var(--pink-deep); }
.crosslang-track { height: 19px; overflow: hidden; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 85%, transparent); }
.crosslang-track > span { display: block; height: 100%; min-width: 0; border-right: 1px solid color-mix(in srgb, var(--bench-color) 62%, #fff); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--bench-color) 80%, #fff), var(--bench-color)); }
.crosslang-language[data-language='ck'] { --bench-color: #7951c7; }
.crosslang-language[data-language='cpp'] { --bench-color: #3473c8; }
.crosslang-language[data-language='rust'] { --bench-color: #bd6034; }
.crosslang-language[data-language='js'] { --bench-color: #a17a00; }
.crosslang-language[data-language='java'] { --bench-color: #286f9b; }
.crosslang-language[data-language='numpy'] { --bench-color: #278162; }
.crosslang-language[data-language='ck'] h4 { color: #7951c7; }
.crosslang-language[data-language='cpp'] h4 { color: #3473c8; }
.crosslang-language[data-language='rust'] h4 { color: #a94d27; }
.crosslang-language[data-language='js'] h4 { color: #8e6c00; }
.crosslang-language[data-language='java'] h4 { color: #286f9b; }
.crosslang-language[data-language='numpy'] h4 { color: #278162; }
:root[data-theme='dark'] .crosslang-language[data-language='ck'] h4 { color: #b89bff; }
:root[data-theme='dark'] .crosslang-language[data-language='cpp'] h4 { color: #86b8ff; }
:root[data-theme='dark'] .crosslang-language[data-language='rust'] h4 { color: #f49a70; }
:root[data-theme='dark'] .crosslang-language[data-language='js'] h4 { color: #e2c567; }
:root[data-theme='dark'] .crosslang-language[data-language='java'] h4 { color: #84c3e8; }
:root[data-theme='dark'] .crosslang-language[data-language='numpy'] h4 { color: #69c9a5; }
.crosslang-value { color: var(--ink); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.crosslang-language-ck .crosslang-value { color: var(--pink-deep); }
.crosslang-note { margin: 15px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.55; }
.crosslang-links { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 17px; }
.crosslang-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--pink-deep); font-size: 12px; font-weight: 750; }
.crosslang-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.performance-inner > .text-link { margin-top: 28px; }

.backends-section { padding-top: 122px; padding-bottom: 138px; }
.backend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.backend-card { position: relative; min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--border); border-radius: 23px; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.backend-card:hover { transform: translateY(-5px); border-color: #d6c3fa; }
.backend-glyph { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 15px; color: #5aafd7; background: #e9faff; font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 800; }
.backend-2 .backend-glyph { color: #a674dc; background: #f2eaff; }.backend-3 .backend-glyph { color: #e681b9; background: #fff0f8; }
.backend-card h3 { margin: 29px 0 9px; font-size: 23px; letter-spacing: -.04em; }
.backend-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.68; }
.backend-card code { margin-top: auto; max-width: 100%; padding: 9px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 10px; }
.backend-arrow { position: absolute; top: 36px; right: 29px; color: var(--subtle); }
.scope-note { max-width: 780px; margin: 30px auto 0; padding: 15px 19px; border: 1px solid var(--border); border-radius: 13px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.decision-section { padding: 106px 28px 116px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.decision-inner { max-width: 1134px; margin: auto; }
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.decision-card { display: flex; flex-direction: column; min-height: 420px; padding: 29px; border: 1px solid var(--border); border-radius: 23px; background: var(--surface); box-shadow: var(--shadow); }
.decision-number { color: var(--pink-deep); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.decision-card h3 { margin: 31px 0 13px; font-size: 23px; line-height: 1.25; letter-spacing: -.04em; }
.decision-card p { margin: 0 0 19px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.decision-card .card-link { margin-top: auto; }
.decision-routes { display: grid; gap: 6px; margin: 0 0 18px; }
.decision-routes > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--soft); font-size: 11px; }
.decision-routes strong { font-weight: 800; }.decision-routes span { color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.final-section { position: relative; overflow: hidden; padding: 106px 28px 115px; background: radial-gradient(circle at 20% 50%, rgba(183, 237, 250, .5), transparent 30%), radial-gradient(circle at 80% 30%, rgba(230, 204, 255, .55), transparent 31%), #f8f5ff; text-align: center; }
.final-section h2 { position: relative; }.final-section p { position: relative; }
.final-orbit { position: absolute; width: 850px; height: 850px; left: calc(50% - 425px); top: -480px; border: 1px solid rgba(150, 130, 197, .2); border-radius: 50%; }
.final-content { position: relative; z-index: 1; }.final-actions { margin-top: 28px; }
.final-section .final-editor { margin: 24px auto 0; font-size: 14px; }
.final-editor a { display: inline-flex; align-items: center; gap: 4px; color: var(--pink-deep); font-weight: 750; }
.final-editor a:hover { text-decoration: underline; text-underline-offset: 3px; }
.not-found-shell { display: grid; place-items: center; min-height: 65vh; padding: 95px 28px; text-align: center; }
.not-found-shell h1 { margin: 13px 0 16px; font-size: clamp(42px, 5vw, 65px); letter-spacing: -.06em; }
.not-found-shell p { max-width: 560px; margin: 0 auto 27px; color: var(--muted); line-height: 1.75; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: 1190px; display: flex; justify-content: space-between; gap: 40px; margin: auto; padding: 57px 28px 55px; }
.footer-brand p { margin: 12px 0 0 42px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; align-items: flex-start; gap: 28px; padding-top: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; max-width: 1134px; margin: auto; padding: 18px 0 27px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 11px; }

.docs-shell { max-width: 1510px; min-height: calc(100vh - 73px); display: grid; grid-template-columns: 250px minmax(0, 760px) 220px; justify-content: space-between; gap: clamp(24px, 3vw, 52px); margin: 0 auto; padding: 0 35px; }
.docs-sidebar { border-right: 1px solid var(--border); }
.sidebar-inner { position: sticky; top: 73px; height: calc(100vh - 73px); display: flex; flex-direction: column; padding: 29px 25px 26px 0; overflow-y: auto; scrollbar-width: thin; }
.sidebar-intro { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.sidebar-group { margin: 29px 0 10px 11px; color: var(--subtle); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-link { display: block; margin: 1px 0; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
.sidebar-link:hover { background: var(--soft); color: var(--ink); }.sidebar-link.active { color: var(--pink-deep); background: #fff0f7; }
.sidebar-github { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 22px 11px 0; color: var(--muted); font-size: 12px; font-weight: 700; }.sidebar-github svg:last-child { margin-left: auto; }
.sidebar-github:hover { color: var(--pink-deep); }
.docs-main { width: 100%; min-width: 0; padding: 43px 0 110px; }
.docs-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--subtle); font-size: 12px; }.docs-breadcrumb a:hover { color: var(--pink-deep); }.docs-breadcrumb span:last-child { color: var(--muted); }
.docs-main h1 { margin: 45px 0 12px; font-size: clamp(40px, 4vw, 57px); line-height: 1.16; letter-spacing: -.065em; }
.docs-description { margin: 0 0 37px; padding-bottom: 35px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 18px; line-height: 1.65; }
.docs-toc { position: sticky; top: 73px; align-self: start; max-height: calc(100vh - 73px); padding: 46px 0 25px 24px; overflow: auto; border-left: 1px solid var(--border); }
.docs-toc p { margin: 0 0 17px; color: var(--ink); font-size: 12px; font-weight: 800; }.docs-toc a { display: block; padding: 6px 0; color: var(--subtle); font-size: 12px; line-height: 1.5; }.docs-toc a:hover { color: var(--pink-deep); }.docs-toc .toc-depth-3 { padding-left: 12px; }
.docs-content { color: var(--muted); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.docs-content > :first-child { margin-top: 0; }
.docs-content h2, .docs-content h3 { position: relative; scroll-margin-top: 100px; color: var(--ink); letter-spacing: -.04em; }
.docs-content h2 { margin: 45px 0 16px; padding-top: 8px; font-size: 27px; line-height: 1.35; }.docs-content h3 { margin: 31px 0 12px; font-size: 20px; line-height: 1.4; }
.heading-anchor { margin-left: 9px; color: var(--pink); font-size: 15px; opacity: 0; }.docs-content h2:hover .heading-anchor, .docs-content h3:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.docs-content p { margin: 14px 0 20px; }.docs-content strong { color: var(--ink); }.docs-content a { color: #6451b0; text-decoration: underline; text-underline-offset: 3px; }.docs-content a:hover { color: var(--pink-deep); }
.docs-content ul, .docs-content ol { padding-left: 25px; margin: 14px 0 22px; }.docs-content li { padding-left: 3px; margin: 6px 0; }.docs-content li::marker { color: var(--pink); }
.docs-content :not(pre) > code { padding: 3px 6px; border-radius: 5px; background: var(--soft); color: #a12a6c; font-size: .84em; }
.docs-content pre { position: relative; margin: 20px 0 26px; padding: 23px 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 12px; line-height: 1.9; }
.docs-content pre code { display: block; width: max-content; min-width: 100%; padding-right: 35px; font-size: 12px; }
.code-copy { position: absolute; top: 9px; right: 10px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 11px; }.code-copy:hover { color: var(--pink-deep); }
.docs-content blockquote { margin: 22px 0; padding: 10px 20px; border-left: 3px solid #e493c7; border-radius: 0 9px 9px 0; background: #fff3fa; }.docs-content blockquote p { margin: 5px 0; }
.docs-content details { margin: 20px 0 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.docs-content summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: var(--pink-deep); cursor: pointer; font-weight: 800; list-style: none; }
.docs-content summary::-webkit-details-marker { display: none; }
.docs-content summary::after { content: '+'; font-size: 21px; font-weight: 500; line-height: 1; }
.docs-content details[open] summary { border-bottom: 1px solid var(--border); }
.docs-content details[open] summary::after { content: '−'; }
.docs-content details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.docs-content details > :last-child { margin-bottom: 18px; }
.docs-content table { display: block; max-width: 100%; margin: 23px 0; overflow-x: auto; border-collapse: collapse; font-size: 13px; }.docs-content th, .docs-content td { padding: 11px 15px; border: 1px solid var(--border); text-align: left; vertical-align: top; min-width: 110px; }.docs-content th { background: var(--soft); color: var(--ink); }
.docs-content hr { height: 1px; margin: 38px 0; border: 0; background: var(--border); }
.docs-reference-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 12px; line-height: 1.6; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 70px; }.docs-pager a { min-height: 79px; display: flex; flex-direction: column; justify-content: center; padding: 14px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }.docs-pager a:hover { border-color: #d9b8f3; }.docs-pager a:last-child { text-align: right; }.docs-pager span { color: var(--subtle); font-size: 11px; }.docs-pager strong { margin-top: 3px; color: var(--ink); font-size: 14px; }

.updates-shell { max-width: 920px; min-height: calc(100vh - 73px); margin: 0 auto; padding: 92px 28px 120px; }
.updates-intro { padding-bottom: 42px; border-bottom: 1px solid var(--border); }
.updates-intro h1 { margin: 14px 0 12px; color: var(--ink); font-size: clamp(42px, 6vw, 66px); line-height: 1.08; letter-spacing: -.065em; }
.updates-intro p { margin: 0 0 26px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.updates-content h2 { margin-top: 0; padding-top: 0; font-size: 25px; }
.updates-content h2:not(:first-child) { margin-top: 18px; }
.updates-content h2 .heading-anchor { display: none; }
.updates-content > h2, .updates-content > ul { padding-left: 28px; padding-right: 28px; }
.updates-content > h2 { margin-bottom: 0; padding-top: 26px; border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--surface); }
.updates-content > ul { margin: 0; padding-top: 14px; padding-bottom: 22px; padding-left: 51px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 16px 16px; background: var(--surface); }

.search-dialog { width: min(660px, calc(100vw - 30px)); max-height: min(70vh, 650px); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 35px 100px rgba(30, 26, 58, .27); }
.search-dialog::backdrop { background: rgba(26, 23, 39, .46); backdrop-filter: blur(4px); }.search-head { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--border); color: var(--subtle); }.search-head input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; }.search-head input::placeholder { color: var(--subtle); }.search-results { max-height: 450px; min-height: 145px; padding: 10px; overflow-y: auto; }.search-item { display: flex; align-items: center; gap: 15px; padding: 13px 14px; border-radius: 11px; }.search-item:hover, .search-item:focus-visible { background: var(--soft); }.search-item-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: #f7ecff; color: #9c7acb; font-family: 'JetBrains Mono', monospace; font-size: 11px; }.search-item-copy { display: flex; flex-direction: column; gap: 2px; }.search-item strong { font-size: 14px; }.search-item small { color: var(--subtle); font-size: 12px; }.search-item-arrow { margin-left: auto; color: var(--subtle); }.search-empty { padding: 20px; text-align: center; color: var(--subtle); }.search-tip { margin: 0; padding: 9px 17px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 11px; }.search-tip span { padding: 0 8px; }
.menu-scrim, .mobile-drawer { display: none; }

[data-theme='dark'] .hero { background: radial-gradient(ellipse 29% 35% at 28% 16%, rgba(120, 66, 138, .3), transparent 100%), radial-gradient(ellipse 31% 42% at 70% 18%, rgba(58, 124, 140, .3), transparent 100%), var(--bg); }
[data-theme='dark'] .hero h1 span { background: linear-gradient(95deg, #61c9f2 0%, #7c9efc 39%, #ac88f8 72%, #ee8ed3 100%); -webkit-background-clip: text; background-clip: text; }
[data-theme='dark'] .docs-content a { color: #b0a4ff; }
[data-theme='dark'] .docs-content :not(pre) > code { color: #f29acb; }
[data-theme='dark'] .announcement, [data-theme='dark'] .button-soft, [data-theme='dark'] .sidebar-link.active { background: #352439; border-color: #523049; }
[data-theme='dark'] .feature-card { background-color: var(--surface); }
[data-theme='dark'] .final-section { background: radial-gradient(circle at 20% 50%, rgba(63, 106, 132, .3), transparent 30%), radial-gradient(circle at 80% 30%, rgba(106, 72, 142, .3), transparent 31%), #1f1d2a; }
[data-theme='dark'] .button-outline { background: #302c3e; }[data-theme='dark'] .docs-content blockquote { background: #352338; }

@media (max-width: 1100px) {
  .header-links { gap: 14px; }.header-inner { padding: 0 24px; }
  .docs-shell { grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: 36px; }.docs-toc { display: none; }
  .sidebar-inner { padding-right: 18px; }
  .example-section { gap: 38px; }
  .crosslang-language { grid-template-columns: 30px 110px minmax(100px, 1fr) 78px; gap: 8px; }
}
@media (max-width: 800px) {
  .site-header { height: 64px; }.header-inner { display: flex; justify-content: space-between; padding: 0 18px; }
  .header-links, .header-search { display: none; }.mobile-actions { display: flex; }
  .hero { min-height: 680px; }.hero-content { padding-top: 29px; }.hero-mark { width: 350px; }.hero h1 { font-size: clamp(48px, 8vw, 68px); }
  .hero-ring-one { width: 920px; height: 920px; top: -320px; }.hero-ring-two { display: none; }
  .example-section { grid-template-columns: 1fr; gap: 32px; }.example-copy { text-align: center; }.example-copy h2 { margin-left: auto; margin-right: auto; }.example-copy > p { margin: auto; }
  .backend-grid { grid-template-columns: 1fr; }.backend-card { min-height: 260px; }
  .decision-grid { grid-template-columns: 1fr; }.decision-card { min-height: 0; }
  .docs-shell { display: block; padding: 0 28px; }.docs-main { max-width: 760px; margin: auto; }.docs-sidebar { display: none; }
  .updates-shell { padding-top: 70px; }
  .mobile-drawer { position: fixed; z-index: 80; top: 64px; bottom: 0; left: 0; width: min(330px, 87vw); display: block; border-right: 1px solid var(--border); background: var(--surface); transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow); }.menu-open .mobile-drawer { transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .mobile-drawer-inner { height: 100%; padding: 20px 23px; overflow-y: auto; }.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; font-weight: 800; }.mobile-drawer nav { display: block; }.drawer-home { display: block; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }.drawer-home:hover { background: var(--soft); }.drawer-actions { display: grid; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }.drawer-actions a, .drawer-actions button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; }
  .menu-open .menu-scrim { position: fixed; inset: 64px 0 0; z-index: 70; display: block; background: rgba(22, 20, 36, .36); }
}
@media (max-width: 600px) {
  .brand { font-size: 17px; }.brand img { width: 30px; height: 30px; }
  .hero { min-height: 655px; }.hero-content { padding: 26px 20px 80px; }.hero-mark { width: 285px; margin: 3px auto -12px; }.hero-eyebrow { font-size: 10px; }.hero h1 { font-size: clamp(39px, 10vw, 55px); letter-spacing: -.07em; }.hero-description { margin-top: 19px; font-size: 15px; line-height: 1.7; }.hero-cta { gap: 9px; margin-top: 24px; }.button { min-height: 46px; padding: 0 18px; font-size: 13px; }.hero-highlights { margin-top: 15px; padding: 8px 13px; font-size: 10px; }.scroll-cue { bottom: 15px; font-size: 11px; }
  .section { padding: 77px 20px; }.section-heading { margin-bottom: 32px; }.section-heading h2, .example-copy h2, .final-section h2 { font-size: 38px; }.section-heading p, .example-copy > p, .final-section p { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }.feature-card { min-height: 210px; padding: 27px; }.feature-card h3 { margin-top: 32px; font-size: 21px; }.feature-card p { font-size: 14px; }
  .example-section { padding-top: 45px; }.hero-code { padding: 25px 20px; font-size: 12px; }.code-output { padding: 14px 20px 18px; grid-template-columns: 70px 1fr; }
  .performance-section { padding: 75px 20px 82px; }
  .crosslang-benchmark { padding: 16px 13px; border-radius: 18px; }.crosslang-toolbar { margin-bottom: 21px; }.crosslang-tabs { width: 100%; }.crosslang-tab { min-height: 42px; padding: 5px 7px; font-size: 11px; line-height: 1.3; }.crosslang-case-heading { gap: 8px; margin-bottom: 20px; }.crosslang-case-heading h3 { font-size: 18px; }.crosslang-case-heading p { font-size: 12px; }.crosslang-input-size { display: none; }.crosslang-language { grid-template-columns: 78px minmax(45px, 1fr) 65px; gap: 6px; padding: 12px 4px; }.crosslang-language h4 { font-size: 12px; }.crosslang-track { height: 16px; }.crosslang-value { font-size: 10px; }.crosslang-note { font-size: 10px; }.crosslang-links { gap: 10px 15px; }.crosslang-links a { font-size: 11px; }
  .backends-section { padding-bottom: 88px; }.backend-card { min-height: 255px; padding: 25px; }.backend-card h3 { margin-top: 21px; }.final-section { padding: 80px 20px; }
  .decision-section { padding: 80px 20px; }.decision-card { padding: 25px; }.decision-card h3 { margin-top: 22px; }
  .footer-inner { display: block; padding: 45px 20px; }.footer-links { flex-wrap: wrap; gap: 16px 22px; margin-top: 20px; }.footer-bottom { padding: 17px 20px 24px; }
  .docs-shell { padding: 0 20px; }.docs-main { padding-top: 30px; }.docs-main h1 { font-size: 39px; }.docs-description { font-size: 16px; }.docs-content { font-size: 14px; }.docs-content h2 { font-size: 24px; }.docs-content pre { padding: 38px 16px 20px; }.docs-pager { margin-top: 50px; }.docs-pager a { padding: 12px; }.docs-pager strong { font-size: 12px; }
  .updates-shell { padding: 54px 18px 80px; }.updates-intro h1 { font-size: clamp(32px, 8vw, 40px); }.updates-intro p { font-size: 15px; }.updates-content > h2, .updates-content > ul { padding-right: 18px; }.updates-content > h2 { padding-left: 18px; }.updates-content > ul { padding-left: 38px; }
}
.home-page.scroll-reveal-enabled [data-scroll-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 650ms cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms), translate 650ms cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms);
}
.home-page.scroll-reveal-enabled [data-scroll-reveal].is-visible { opacity: 1; translate: 0 0; }
.home-page.scroll-reveal-enabled [data-scroll-reveal].feature-card {
  transition: opacity 650ms cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms), translate 650ms cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms), transform .25s, box-shadow .25s;
}
.home-page.scroll-reveal-enabled [data-scroll-reveal].backend-card {
  transition: opacity 650ms cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms), translate 650ms cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms), transform .2s, border-color .2s;
}
.docs-page.scroll-reveal-enabled .docs-content > [data-scroll-reveal],
.updates-page.scroll-reveal-enabled .updates-content > [data-scroll-reveal] {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 560ms cubic-bezier(.2, .7, .2, 1), translate 560ms cubic-bezier(.2, .7, .2, 1);
}
.docs-page.scroll-reveal-enabled .docs-content > [data-scroll-reveal].is-visible,
.updates-page.scroll-reveal-enabled .updates-content > [data-scroll-reveal].is-visible { opacity: 1; translate: 0 0; }

@media print {
  .home-page.scroll-reveal-enabled [data-scroll-reveal],
  .docs-page.scroll-reveal-enabled [data-scroll-reveal],
  .updates-page.scroll-reveal-enabled [data-scroll-reveal] { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .scroll-reveal-enabled [data-scroll-reveal] { opacity: 1 !important; translate: 0 0 !important; }
}
