:root {
  color-scheme: light;
  --paper: #f4f5f9;
  --white: #fff;
  --ink: #202331;
  --muted: #5d6273;
  --line: #dfe2eb;
  --violet: #6454a4;
  --blue: #5277ba;
  --coral: #d97762;
  --green: #46866e;
  --code: #1d2432;
  --measure: 1180px;
  font-family: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--measure), calc(100% - 56px)); margin-inline: auto; }

.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.15rem; font-weight: 750; text-decoration: none; letter-spacing: -.04em; }
.brand img { filter: brightness(.18) saturate(.9); }
nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 30px); font-size: .9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, .text-link:hover, .footer a:hover { color: var(--violet); }
.language-menu { position: relative; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.language-menu summary { color: var(--muted); cursor: pointer; list-style: none; white-space: nowrap; }
.language-menu summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { margin-inline-start: 6px; content: "⌄"; }
.language-options { position: absolute; z-index: 10; top: calc(100% + 12px); inset-inline-end: 0; min-width: 150px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); box-shadow: 0 12px 32px #20233120; }
.language-options a { padding: 7px 10px; border-radius: 3px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.language-options a:hover, .language-options a:focus-visible { color: var(--ink); background: var(--paper); }
.nav-github { color: var(--ink); font-weight: 650; }
.nav-install { min-height: 38px; display: inline-flex; align-items: center; padding-inline: 13px; border-radius: 4px; color: var(--white); background: var(--violet); font-weight: 700; text-decoration: none; }
.nav-install:hover { color: var(--white); background: #52448e; }

.hero { min-height: 625px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: clamp(40px, 7vw, 90px); padding-block: 66px 78px; }
.hero-copy { max-width: 535px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--violet); font-size: .82rem; font-weight: 750; letter-spacing: .025em; }
.signal { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #46866e1c; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 670px; margin-bottom: 24px; font-size: clamp(2.85rem, 5.1vw, 4.65rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 730; }
.intro { max-width: 510px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 5px; font-weight: 700; text-decoration: none; transition: background-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.primary { color: var(--white); background: var(--violet); }
.primary:hover { background: #52448e; }
.secondary { color: var(--ink); border: 1px solid #aaaec1; background: transparent; }
.secondary:hover { background: var(--white); }
.text-link { color: var(--violet); font-weight: 690; text-decoration: none; }
.privacy-note { max-width: 470px; margin: 27px 0 0; padding-inline-start: 14px; border-inline-start: 2px solid #a6e3a1; color: var(--muted); font-size: .87rem; }
.privacy-note strong { color: var(--ink); }

.hero-visual { position: relative; margin: 0; padding-block-start: 19px; padding-inline-start: 19px; }
.hero-visual::before { position: absolute; z-index: -1; inset-block: 0 32px; inset-inline: 43px -20px; content: ""; border: 1px solid #d5d8e3; background: #ebeef5; }
.hero-visual > picture { display: block; }
.hero-visual > picture > img { width: 100%; border: 1px solid #c9cedc; box-shadow: 0 18px 48px #30344720; }
.spectrum { position: absolute; z-index: 2; top: 5px; inset-inline-start: 0; display: flex; gap: 4px; }
.spectrum i { display: block; width: 34px; height: 5px; border-radius: 4px; background: #f38ba8; }
.spectrum i:nth-child(2) { background: #fab387; }
.spectrum i:nth-child(3) { background: #f9e2af; }
.spectrum i:nth-child(4) { background: #a6e3a1; }
.spectrum i:nth-child(5) { background: #89b4fa; }
.spectrum i:nth-child(6) { background: #cba6f7; }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--muted); font-size: .75rem; }

.trust-band { border-block: 1px solid var(--line); background: #ebeef4; }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-block: 20px; }
.trust-items p { display: grid; gap: 2px; margin: 0; }
.trust-items b { font-size: .9rem; }
.trust-items span { color: var(--muted); font-size: .77rem; }

.section { padding-block: 104px; }
.section-heading { max-width: 650px; margin-bottom: 56px; }
.section-heading .eyebrow, .try-layout .eyebrow, .ci-copy .eyebrow { margin-bottom: 13px; }
h2 { margin-bottom: 15px; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.052em; }
.section-heading > p:last-child, .ci-copy > p:not(.eyebrow), .try-layout > div:first-child > p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: var(--muted); }
.scan-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scan-views article { min-height: 245px; padding-block: 30px; padding-inline: 0 30px; }
.scan-views article + article { padding-inline-start: 30px; border-inline-start: 1px solid var(--line); }
.view-mark { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 23px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: .82rem; font-weight: 750; }
.view-mark.config { color: var(--blue); }
.view-mark.source { color: var(--coral); }
.view-mark.runtime { color: var(--violet); }
h3 { margin-bottom: 9px; font-size: 1.22rem; letter-spacing: -.025em; }
.scan-views p { min-height: 78px; margin-bottom: 17px; color: var(--muted); font-size: .91rem; }
.scan-views code { color: var(--violet); font-size: .85rem; font-weight: 650; }

.limits-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(42px, 9vw, 120px); padding-block: 0 92px; }
.limits-section .eyebrow { margin-bottom: 12px; }
.limits-section h2 { max-width: 430px; font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.limits-copy { padding-block: 8px; padding-inline-start: 22px; border-inline-start: 2px solid var(--coral); }
.limits-copy p { max-width: 700px; margin-bottom: 15px; color: var(--muted); }

.inventory-section { padding-block: 76px; background: #ebeef4; }
.inventory-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(44px, 8vw, 105px); }
.inventory-copy h2 { max-width: 510px; }
.inventory-copy > p:not(.eyebrow) { max-width: 580px; color: var(--muted); }
.inventory-copy .inventory-privacy { margin-top: 22px; padding-inline-start: 14px; border-inline-start: 2px solid var(--green); font-size: .87rem; }
.inventory-copy .inventory-safety { font-size: .79rem; }
.inventory-code pre { padding-block: 25px; }

.try-section { padding-block: 88px; color: var(--white); background: var(--code); }
.try-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(44px, 8vw, 105px); }
.try-section .eyebrow { color: #cba6f7; }
.try-section .text-link { display: inline-block; margin-top: 26px; color: #cba6f7; }
.try-section .text-link:hover { color: var(--white); }
.try-layout h2 { max-width: 450px; }
.try-layout > div:first-child > p:not(.eyebrow) { color: #c2c7d2; }
.quick-command { display: grid; gap: 4px; margin-top: 20px; padding: 12px 14px; border-inline-start: 2px solid #cba6f7; background: #171c27; }
.quick-command span { color: #aeb5c4; font-size: .72rem; }
.quick-command code { color: #e7e3f4; font: .85rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.quick-command small { color: #aeb5c4; font-size: .72rem; line-height: 1.5; }
.install-trust { margin: 36px auto 0; padding: 15px 18px; border-inline-start: 2px solid var(--green); color: #c2c7d2; background: #202838; font-size: .87rem; }
.install-trust a { color: #cba6f7; font-weight: 650; }
.install-trust a:hover { color: var(--white); }
.code-block { overflow: hidden; border: 1px solid #51586a; border-radius: 7px; background: #171c27; box-shadow: 0 18px 44px #0003; }
.code-title { min-height: 42px; display: flex; align-items: center; gap: 7px; padding-inline: 15px; border-bottom: 1px solid #363d4b; }
.code-title > span { width: 8px; height: 8px; border-radius: 50%; background: #f38ba8; }
.code-title > span:nth-child(2) { background: #fab387; }
.code-title > span:nth-child(3) { background: #a6e3a1; }
.code-title small { margin-inline-start: 7px; color: #aeb5c4; font: .72rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { overflow-x: auto; margin: 0; padding: 20px 22px; color: #d9dfec; font: .81rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
pre code { font: inherit; }
.code-divider { height: 1px; margin-inline: 22px; background: #363d4b; }
.code-block > p { margin: 15px 22px 0; color: #aeb5c4; font-size: .75rem; }
.code-block > p + pre { padding-top: 9px; }
.package-options { margin-top: 48px; }
.package-options summary { width: fit-content; color: #e0daf1; cursor: pointer; font-weight: 650; text-underline-offset: .22em; }
.package-options summary:hover { color: var(--white); }
.manager-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin-top: 24px; }
.manager-options section { min-width: 0; padding-block: 17px; border-top: 1px solid #51586a; }
.manager-options h3 { color: #e4e0ed; font-size: .95rem; }
.manager-options pre { overflow-x: auto; padding: 12px 14px; border: 1px solid #3e4554; background: #171c27; font-size: .7rem; }
.package-options[open] { padding-bottom: 4px; }

.next-step { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: clamp(38px, 8vw, 100px); padding-block: 76px; border-bottom: 1px solid var(--line); }
.next-step h2 { max-width: 580px; }
.next-step > div:first-child > p:not(.eyebrow) { max-width: 640px; margin-bottom: 0; color: var(--muted); }
.next-command { display: grid; gap: 8px; padding: 19px 21px; border: 1px solid var(--line); border-inline-start: 3px solid var(--green); background: var(--white); }
.next-command span { color: var(--muted); font-size: .76rem; }
.next-command code { color: var(--ink); font: .92rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }

.ci-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(42px, 9vw, 120px); }
.ci-code { width: 100%; }
.closing { display: flex; align-items: center; gap: 22px; padding-block: 30px 52px; border-top: 1px solid var(--line); }
.closing > img { flex: none; filter: brightness(.18) saturate(.9); }
.closing h2 { margin: 0 0 5px; font-size: 1.3rem; }
.closing p { margin: 0; color: var(--muted); font-size: .88rem; }
.closing .button { margin-inline-start: auto; white-space: nowrap; }
.footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer > div { display: flex; gap: 20px; }
.footer a { color: inherit; text-decoration: none; }

@media (max-width: 850px) {
  .wrap { width: min(var(--measure), calc(100% - 40px)); }
  .hero { min-height: unset; grid-template-columns: 1fr; gap: 44px; padding-block: 64px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 700px; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .try-layout, .ci-section { grid-template-columns: 1fr; gap: 36px; }
  .next-step { grid-template-columns: 1fr; gap: 24px; padding-block: 65px; }
  .limits-section { grid-template-columns: 1fr; gap: 4px; padding-bottom: 68px; }
  .inventory-section { padding-block: 66px; }
  .inventory-layout { grid-template-columns: 1fr; gap: 22px; }
  .ci-section { padding-block: 74px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 34px); }
  .topbar { min-height: 70px; }
  nav { gap: 13px; font-size: .78rem; }
  nav > a:nth-child(1), nav > a:nth-child(2), nav > a:nth-child(3) { display: none; }
  .language-menu { padding-inline-start: 0; border: 0; }
  .hero { padding-block: 54px 60px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .intro { font-size: 1rem; }
  .hero-actions { gap: 17px; }
  .hero-visual { padding-inline-start: 10px; }
  .hero-visual::before { inset-block: 0 32px; inset-inline: 25px -9px; }
  .hero-visual figcaption { flex-wrap: wrap; font-size: .67rem; }
  .trust-items { gap: 18px 14px; padding-block: 18px; }
  .trust-items span { font-size: .72rem; }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 34px; }
  .scan-views { grid-template-columns: 1fr; }
  .scan-views article, .scan-views article + article { min-height: unset; padding: 24px 0; border-inline-start: 0; }
  .scan-views article + article { border-top: 1px solid var(--line); }
  .scan-views p { min-height: unset; }
  .try-section { padding-block: 68px; }
  .manager-options { grid-template-columns: 1fr; }
  pre { padding: 16px; font-size: .69rem; }
  .code-divider { margin-inline: 16px; }
  .code-block > p { margin-inline: 16px; }
  .closing { align-items: flex-start; flex-wrap: wrap; gap: 13px; padding-block: 26px 38px; }
  .closing > img { width: 42px; height: 42px; }
  .closing > div { flex: 1; }
  .closing .button { margin-block-start: 9px; margin-inline-start: 55px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding-block: 17px; }
  .footer > div { flex-wrap: wrap; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

html[dir="rtl"] { font-family: "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif; }
html[dir="rtl"] pre { direction: ltr; text-align: left; }
html[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
