:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-raised: #0f0f16;
  --surface: #12121a;
  --surface-2: #171720;
  --surface-3: #1e1e29;
  --text: #f7f5ff;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(139, 92, 246, 0.3);
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-soft: #b9a0ff;
  --success: #55c98f;
  --warning: #e9b75d;
  --danger: #ee7185;
  --info: #65a7ef;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --header-height: 78px;
  --radius: 18px;
  --content-width: 1480px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6fb;
  --bg-raised: #fff;
  --surface: #fff;
  --surface-2: #f0eef7;
  --surface-3: #e9e6f2;
  --text: #18151f;
  --muted: #655f70;
  --faint: #827b8d;
  --line: rgba(34, 24, 48, 0.1);
  --line-strong: rgba(109, 40, 217, 0.25);
  --purple-soft: #6d28d9;
  --shadow: 0 24px 70px rgba(51, 31, 82, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -10%, rgba(139, 92, 246, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  transition: background-color .25s ease, color .25s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}
body.locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(139, 92, 246, .32); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-raised); }
::-webkit-scrollbar-thumb { background: #544177; border: 2px solid var(--bg-raised); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: var(--purple); color: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; }

.loading-screen { position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; gap: 20px; background: var(--bg); transition: opacity .4s ease, visibility .4s ease; }
.loading-screen img { filter: drop-shadow(0 16px 36px rgba(139,92,246,.22)); animation: loading-mark .9s ease both; }
.loading-screen.done { opacity: 0; visibility: hidden; }
.loading-line { width: 96px; height: 2px; border-radius: 2px; overflow: hidden; background: var(--line); }
.loading-line i { display: block; width: 45%; height: 100%; background: var(--purple); animation: loading-slide .9s ease infinite; }
@keyframes loading-slide { from { transform: translateX(-110%); } to { transform: translateX(250%); } }
@keyframes loading-mark { from { opacity: 0; transform: scale(.88) translateY(8px); } to { opacity: 1; transform: none; } }

.reading-progress { position: fixed; inset: 0 0 auto; z-index: 101; height: 2px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--purple-deep), var(--purple-soft)); box-shadow: 0 0 12px rgba(139,92,246,.45); }
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px); transition: height .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.scrolled { height: 66px; border-color: var(--line); box-shadow: 0 10px 35px rgba(0,0,0,.1); }
.header-inner { width: min(calc(100% - 40px), var(--content-width)); height: 100%; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; line-height: 1.1; }
.brand img { width: 45px; height: 45px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(139,92,246,.18)); }
.brand span { display: grid; gap: 4px; }
.brand b { font-family: "Outfit", sans-serif; font-size: 16px; letter-spacing: -.02em; }
.brand small { color: var(--faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a, .text-link { position: relative; color: var(--muted); font-size: 13px; font-weight: 700; }
.desktop-nav a::after, .text-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--purple); transition: right .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active, .text-link:hover { color: var(--text); }
.desktop-nav a:hover::after, .desktop-nav a.active::after, .text-link:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.icon-button, .primary-button, .secondary-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.icon-button { min-width: 42px; padding: 0 11px; color: var(--muted); background: color-mix(in srgb, var(--surface) 76%, transparent); }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.icon-button kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font: 10px "Manrope", sans-serif; }
.search-trigger { min-width: 110px; }
.primary-button { padding: 0 17px; border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); font-weight: 800; box-shadow: 0 10px 24px rgba(109,40,217,.2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(109,40,217,.3); }
.secondary-button { padding: 0 17px; color: var(--text); background: var(--surface); font-weight: 750; }
.secondary-button:hover, .ghost-button:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.ghost-button { padding: 0 16px; color: var(--muted); background: transparent; font-weight: 700; }
.sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
.mobile-menu-button { display: none; }

[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 9px); right: 0; z-index: 10; width: max-content; max-width: 200px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-3); box-shadow: var(--shadow); font-size: 11px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s ease; pointer-events: none; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; transform: none; }

#main-content { min-height: calc(100vh - var(--header-height)); }
.home-page { overflow: hidden; }
.home-hero { position: relative; width: min(calc(100% - 40px), 1320px); min-height: 720px; margin: 0 auto; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 68px; padding: 90px 0 110px; }
.hero-ambient { position: absolute; width: 680px; height: 680px; right: -160px; top: -110px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.17), transparent 64%); filter: blur(8px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; width: max-content; margin-bottom: 24px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--purple-soft); background: rgba(139,92,246,.07); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.home-hero h1 { max-width: 780px; margin: 0; font: 700 clamp(3.4rem, 6.2vw, 6.7rem)/.98 "Outfit", sans-serif; letter-spacing: -.065em; }
.home-hero h1 em { color: var(--purple-soft); font-style: normal; }
.home-hero .lede { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions a, .hero-actions button { min-height: 49px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: var(--faint); font-size: 12px; }
.hero-note span { width: 34px; height: 1px; background: var(--line-strong); }
.hero-visual { position: relative; min-height: 540px; display: grid; place-items: center; }
.logo-orbit { position: absolute; width: 470px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; animation: orbit-turn 40s linear infinite; }
.logo-orbit::before, .logo-orbit::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 9px; height: 9px; border-radius: 2px; background: var(--purple); box-shadow: 0 0 18px rgba(139,92,246,.7); }
.logo-orbit::before { transform: translate(-50%, -50%) translateY(-235px) rotate(45deg); }
.logo-orbit::after { transform: translate(-50%, -50%) translateY(235px) rotate(45deg); }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
.hero-logo-shell { position: relative; width: min(370px, 78vw); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 38% 62% 55% 45% / 54% 42% 58% 46%; background: linear-gradient(145deg, rgba(139,92,246,.12), rgba(255,255,255,.015)); box-shadow: inset 0 0 80px rgba(139,92,246,.06), 0 45px 100px rgba(0,0,0,.25); animation: shell-float 7s ease-in-out infinite; }
.hero-logo-shell img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 24px 35px rgba(0,0,0,.26)); }
@keyframes shell-float { 50% { transform: translateY(-10px) rotate(1deg); } }
.floating-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(12px); font-size: 12px; font-weight: 700; }
.floating-chip svg { color: var(--purple-soft); }
.floating-chip.one { left: 0; top: 19%; }
.floating-chip.two { right: -10px; bottom: 17%; }
.section-wrap { width: min(calc(100% - 40px), 1320px); margin: 0 auto; padding: 105px 0; }
.section-kicker { margin: 0 0 12px; color: var(--purple-soft); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 470px); gap: 40px; align-items: end; margin-bottom: 40px; }
.section-heading h2 { margin: 0; font: 650 clamp(2.2rem, 4vw, 4rem)/1.03 "Outfit", sans-serif; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px; }
.quick-card { position: relative; min-height: 220px; grid-column: span 3; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 72%, transparent)); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.quick-card:nth-child(1), .quick-card:nth-child(6) { grid-column: span 4; }
.quick-card:nth-child(2), .quick-card:nth-child(7) { grid-column: span 5; }
.quick-card:nth-child(3), .quick-card:nth-child(8) { grid-column: span 3; }
.quick-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 55px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.04); }
.quick-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -75px; bottom: -70px; border-radius: 50%; background: rgba(139,92,246,.12); filter: blur(15px); transition: transform .25s ease; }
.quick-card:hover::after { transform: scale(1.3); }
.card-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--purple-soft); background: rgba(139,92,246,.08); }
.quick-card h3 { margin: 24px 0 5px; font: 650 18px "Outfit", sans-serif; }
.quick-card p { margin: 0; color: var(--muted); font-size: 13px; }
.quick-card .card-arrow { position: absolute; right: 21px; top: 21px; color: var(--faint); transition: transform .2s ease, color .2s ease; }
.quick-card:hover .card-arrow { color: var(--purple-soft); transform: translateX(3px); }
.signal-strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 56%, transparent); }
.signal-inner { width: min(calc(100% - 40px), 1320px); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-item { display: flex; align-items: center; gap: 13px; padding: 25px 28px; border-right: 1px solid var(--line); }
.signal-item:last-child { border: 0; }
.signal-item svg { color: var(--purple-soft); }
.signal-item strong { display: block; font: 650 14px "Outfit", sans-serif; }
.signal-item small { color: var(--faint); }

.docs-shell { width: min(100%, var(--content-width)); min-height: calc(100vh - var(--header-height)); margin: 0 auto; display: grid; grid-template-columns: 275px minmax(0, 1fr) 230px; }
.docs-sidebar { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); padding: 28px 22px 60px 20px; overflow: auto; border-right: 1px solid var(--line); scrollbar-width: thin; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; margin: 0 4px 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sidebar-brand img { width: 34px; height: 34px; object-fit: contain; }
.sidebar-brand span { font: 650 13px "Outfit", sans-serif; }
.sidebar-group { margin-bottom: 7px; }
.sidebar-group-button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 8px; border: 0; border-radius: 8px; color: var(--faint); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-align: left; text-transform: uppercase; }
.sidebar-group-button svg { width: 15px; height: 15px; transition: transform .2s ease; }
.sidebar-group.collapsed .sidebar-group-button svg { transform: rotate(-90deg); }
.sidebar-links { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .22s ease; }
.sidebar-links > div { min-height: 0; overflow: hidden; }
.sidebar-group.collapsed .sidebar-links { grid-template-rows: 0fr; }
.sidebar-link { position: relative; display: block; margin: 2px 0; padding: 7px 9px 7px 15px; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; transition: color .18s, background .18s; }
.sidebar-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; border-radius: 2px; background: var(--purple); transform: translateY(-50%); transition: height .18s; }
.sidebar-link:hover { color: var(--text); background: var(--surface); }
.sidebar-link.active { color: var(--purple-soft); background: rgba(139,92,246,.08); }
.sidebar-link.active::before { height: 17px; }
.docs-main { min-width: 0; padding: 58px clamp(32px, 5vw, 82px) 100px; }
.docs-main article { max-width: 820px; margin: 0 auto; }
.toc { position: sticky; top: calc(var(--header-height) + 30px); align-self: start; max-height: calc(100vh - var(--header-height) - 60px); padding: 58px 23px 40px 0; overflow: auto; }
.toc h2 { margin: 0 0 15px; color: var(--faint); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0 5px 13px; border-left: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.45; transition: color .18s, border-color .18s; }
.toc a:hover, .toc a.active { color: var(--purple-soft); border-color: var(--purple); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--faint); font-size: 11px; }
.breadcrumbs a:hover { color: var(--purple-soft); }
.breadcrumbs svg { width: 12px; height: 12px; }
.article-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--purple-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-badge span { width: 16px; height: 1px; background: var(--purple); }
.article-header h1 { margin: 0; font: 680 clamp(2.5rem, 5vw, 4.8rem)/1.02 "Outfit", sans-serif; letter-spacing: -.055em; }
.article-description { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 25px 0 42px; padding-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.article-body h2, .article-body h3 { scroll-margin-top: 105px; font-family: "Outfit", sans-serif; letter-spacing: -.025em; }
.article-body h2 { margin: 54px 0 14px; font-size: 27px; line-height: 1.25; }
.article-body h3 { margin: 32px 0 10px; font-size: 19px; }
.article-body p { margin: 0 0 18px; color: var(--muted); }
.article-body strong { color: var(--text); }
.article-body a { color: var(--purple-soft); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.article-body a:hover { text-decoration-color: var(--purple); }
.article-body ul, .article-body ol { margin: 15px 0 24px; padding-left: 21px; color: var(--muted); }
.article-body li { margin: 8px 0; padding-left: 5px; }
.article-body li::marker { color: var(--purple); font-weight: 800; }
.inline-code, .article-body code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--purple-soft); background: var(--surface); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.callout { display: grid; grid-template-columns: 35px 1fr; gap: 12px; margin: 28px 0; padding: 17px; border: 1px solid var(--callout-line); border-radius: 14px; background: var(--callout-bg); box-shadow: inset 3px 0 var(--callout-accent); }
.callout.info { --callout-line: rgba(101,167,239,.25); --callout-bg: rgba(101,167,239,.07); --callout-accent: var(--info); }
.callout.tip { --callout-line: rgba(85,201,143,.25); --callout-bg: rgba(85,201,143,.07); --callout-accent: var(--success); }
.callout.note { --callout-line: rgba(139,92,246,.25); --callout-bg: rgba(139,92,246,.07); --callout-accent: var(--purple); }
.callout.warning { --callout-line: rgba(233,183,93,.28); --callout-bg: rgba(233,183,93,.07); --callout-accent: var(--warning); }
.callout.danger { --callout-line: rgba(238,113,133,.28); --callout-bg: rgba(238,113,133,.07); --callout-accent: var(--danger); }
.callout-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--callout-accent); background: color-mix(in srgb, var(--callout-accent) 13%, transparent); font-weight: 900; }
.callout strong { display: block; margin-bottom: 3px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.callout p { margin: 0; font-size: 13px; }
.code-block { margin: 25px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0d0c13; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.code-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 10px 0 15px; border-bottom: 1px solid rgba(255,255,255,.07); color: #777181; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: 7px; color: #a1a1aa; background: transparent; cursor: pointer; font-size: 10px; }
.copy-button:hover { color: #fff; background: rgba(255,255,255,.06); }
.copy-button svg { width: 14px; height: 14px; }
.code-block pre { margin: 0; padding: 19px; overflow-x: auto; color: #ded8ed; font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-block .command { color: #bda7ff; }
.table-wrap { margin: 25px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 15px; color: var(--faint); background: var(--surface-2); font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 14px 15px; border-top: 1px solid var(--line); color: var(--muted); }
tbody tr:hover { background: rgba(139,92,246,.035); }
.steps { display: grid; gap: 12px; margin: 22px 0; counter-reset: steps; }
.step { position: relative; min-height: 66px; padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 15px; top: 15px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--purple-soft); background: rgba(139,92,246,.08); font-weight: 800; }
.step strong { display: block; font-size: 13px; }
.step p { margin: 2px 0 0; font-size: 12px; }
.feature-grid, .product-grid, .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.mini-card, .product-card, .related-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: .2s ease; }
.mini-card:hover, .product-card:hover, .related-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.mini-card h3, .product-card h3, .related-card h3 { margin: 7px 0 5px; font-size: 15px; }
.mini-card p, .product-card p, .related-card p { margin: 0; color: var(--muted); font-size: 12px; }
.mini-card svg { color: var(--purple-soft); }
.product-card { overflow: hidden; }
.product-card.featured { border-color: var(--purple); box-shadow: inset 0 0 40px rgba(139,92,246,.08); }
.product-card .popular { position: absolute; top: 13px; right: 13px; padding: 4px 7px; border-radius: 999px; color: #fff; background: var(--purple-deep); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.product-card .amount { margin: 24px 0 0; font: 700 28px "Outfit", sans-serif; }
.product-card .price { color: var(--purple-soft); font-weight: 800; }
.article-navigation { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 65px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav-card { display: grid; gap: 3px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: .2s ease; }
.article-nav-card.next { text-align: right; }
.article-nav-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.article-nav-card small { color: var(--faint); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.article-nav-card strong { font: 600 13px "Outfit", sans-serif; }
.related-section { margin-top: 42px; }
.related-section > h2 { font-size: 19px; }
.related-card { min-height: 124px; }
.related-card small { color: var(--purple-soft); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.docs-landing { width: min(calc(100% - 40px), 1180px); margin: auto; padding: 76px 0 110px; }
.docs-landing-hero { position: relative; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 50px; min-height: 380px; padding: clamp(34px, 6vw, 72px); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface-2) 75%, transparent)); box-shadow: var(--shadow); }
.docs-landing-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -170px; border-radius: 50%; background: rgba(139,92,246,.18); filter: blur(35px); }
.docs-landing-hero h1 { position: relative; z-index: 1; margin: 0; font: 680 clamp(2.8rem, 5vw, 5rem)/1 "Outfit", sans-serif; letter-spacing: -.055em; }
.docs-landing-hero p { position: relative; z-index: 1; max-width: 650px; color: var(--muted); font-size: 16px; }
.docs-landing-hero img { position: relative; z-index: 1; width: 240px; height: 240px; object-fit: contain; filter: drop-shadow(0 25px 35px rgba(0,0,0,.25)); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.category-card { display: flex; flex-direction: column; min-height: 210px; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: .22s ease; }
.category-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.category-card svg { color: var(--purple-soft); }
.category-card h2 { margin: auto 0 5px; font: 650 19px "Outfit", sans-serif; }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; }
.category-card span { margin-top: 14px; color: var(--faint); font-size: 10px; }

.faq-page, .support-page, .not-found-page { width: min(calc(100% - 40px), 1050px); margin: auto; padding: 85px 0 120px; }
.page-hero { max-width: 760px; margin-bottom: 45px; }
.page-hero h1 { margin: 0; font: 680 clamp(3rem, 6vw, 5.6rem)/.98 "Outfit", sans-serif; letter-spacing: -.06em; }
.page-hero p { color: var(--muted); font-size: 16px; }
.faq-category { margin: 50px 0; }
.faq-category h2 { margin-bottom: 16px; font: 650 22px "Outfit", sans-serif; }
.faq-list { display: grid; gap: 9px; }
.faq-item { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: border-color .2s; }
.faq-item.open { border-color: var(--line-strong); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 17px 18px; border: 0; color: var(--text); background: transparent; cursor: pointer; font-weight: 750; text-align: left; }
.faq-question svg { flex: none; color: var(--faint); transition: transform .22s; }
.faq-item.open .faq-question svg { color: var(--purple-soft); transform: rotate(90deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.faq-answer > div { min-height: 0; overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.support-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin: 35px 0; padding: 30px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(135deg, rgba(139,92,246,.1), var(--surface)); box-shadow: var(--shadow); }
.support-card h2 { margin: 0 0 6px; font: 650 24px "Outfit", sans-serif; }
.support-card p { margin: 0; color: var(--muted); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.not-found-page { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding-block: 50px; }
.not-found-card { position: relative; width: 100%; display: grid; justify-items: center; padding: clamp(35px, 7vw, 72px); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.not-found-card::before { content: ""; position: absolute; width: 430px; height: 430px; top: -300px; border-radius: 50%; background: rgba(139,92,246,.25); filter: blur(55px); }
.not-found-card img { position: relative; width: 110px; height: 110px; object-fit: contain; }
.not-found-card .error-code { margin: 18px 0 0; color: var(--purple-soft); font: 750 clamp(4rem, 11vw, 8rem)/1 "Outfit", sans-serif; letter-spacing: -.08em; }
.not-found-card h1 { margin: 10px 0; font: 650 clamp(1.8rem, 4vw, 3.2rem) "Outfit", sans-serif; }
.not-found-card p { max-width: 580px; margin: 0; color: var(--muted); }
.not-found-actions, .quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.quick-links { margin-top: 24px; color: var(--faint); font-size: 12px; }
.quick-links a:hover { color: var(--purple-soft); }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-raised) 78%, transparent); }
.footer-grid { width: min(calc(100% - 40px), 1320px); margin: auto; display: grid; grid-template-columns: 2.2fr repeat(3, 1fr); gap: 50px; padding: 65px 0 55px; }
.footer-brand { display: flex; align-items: flex-start; gap: 17px; max-width: 430px; }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; }
.footer-brand strong { font: 650 17px "Outfit", sans-serif; }
.footer-brand p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.footer-grid h2 { margin: 0 0 13px; color: var(--faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid a, .link-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.footer-grid a:hover, .link-button:hover { color: var(--purple-soft); }
.footer-bottom { width: min(calc(100% - 40px), 1320px); margin: auto; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }

.search-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: 10vh 20px 30px; background: rgba(5,4,9,.72); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: .2s ease; }
.search-modal.open { opacity: 1; visibility: visible; }
.search-panel { width: min(720px, 100%); max-height: 72vh; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-raised); box-shadow: 0 35px 100px rgba(0,0,0,.55); transform: translateY(-15px) scale(.985); transition: transform .22s ease; }
.search-modal.open .search-panel { transform: none; }
.search-topbar { height: 66px; display: flex; align-items: center; gap: 13px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.search-topbar > svg { flex: none; color: var(--purple-soft); }
.search-topbar input { width: 100%; height: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.search-topbar input::placeholder { color: var(--faint); }
.escape-button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); background: var(--surface); cursor: pointer; font-size: 9px; font-weight: 800; }
.search-meta { display: flex; justify-content: space-between; gap: 20px; padding: 10px 17px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 9px; }
.search-results { max-height: calc(72vh - 108px); overflow-y: auto; padding: 8px; }
.search-result { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 11px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.search-result:hover, .search-result.selected { border-color: var(--line-strong); background: rgba(139,92,246,.08); }
.search-result-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--purple-soft); background: var(--surface); }
.search-result strong { display: block; font: 600 13px "Outfit", sans-serif; }
.search-result p { margin: 2px 0 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.search-result small { color: var(--faint); font-size: 9px; }
mark { padding: 0 2px; color: var(--text); background: rgba(139,92,246,.32); border-radius: 3px; }
.search-empty { display: grid; justify-items: center; padding: 55px 25px; color: var(--faint); text-align: center; }
.search-empty svg { width: 34px; height: 34px; margin-bottom: 12px; color: var(--purple-soft); }
.search-empty strong { color: var(--text); }
.recent-searches { padding: 10px; }
.recent-searches h3 { margin: 6px 6px 10px; color: var(--faint); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.recent-chip { display: inline-flex; margin: 4px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 10px; }
.recent-chip:hover { border-color: var(--line-strong); color: var(--text); }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(12px); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; border-color: var(--purple); background: var(--purple-deep); }
.toast-region { position: fixed; right: 20px; bottom: 76px; z-index: 400; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 210px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: var(--surface-3); box-shadow: var(--shadow); font-size: 11px; animation: toast-in .25s ease both; }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px rgba(139,92,246,.65); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 250; width: min(390px, 88vw); padding: 18px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-raised); box-shadow: var(--shadow); transform: translateX(-102%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
.mobile-drawer.open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 240; background: rgba(5,4,9,.62); opacity: 0; visibility: hidden; transition: .25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-search { width: 100%; display: flex; align-items: center; gap: 10px; margin: 15px 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--faint); background: var(--surface); cursor: pointer; text-align: left; }
.mobile-nav .sidebar-group-button { padding-inline: 5px; }
.mobile-nav .sidebar-link { padding-block: 10px; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
  .home-hero { grid-template-columns: 1fr .8fr; }
  .logo-orbit { width: 390px; }
  .logo-orbit::before { transform: translate(-50%, -50%) translateY(-195px) rotate(45deg); }
  .logo-orbit::after { transform: translate(-50%, -50%) translateY(195px) rotate(45deg); }
  .quick-card, .quick-card:nth-child(n) { grid-column: span 4; }
}
@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .desktop-nav, .header-actions .desktop-only, .header-actions .search-trigger { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .mobile-menu-button { display: inline-flex; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 10px; padding-top: 70px; }
  .home-hero h1 { max-width: 800px; }
  .hero-visual { min-height: 480px; }
  .floating-chip.one { left: 8%; }
  .floating-chip.two { right: 7%; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .quick-card, .quick-card:nth-child(n) { grid-column: span 6; }
  .signal-inner { grid-template-columns: repeat(2, 1fr); }
  .signal-item:nth-child(2) { border-right: 0; }
  .signal-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs-shell { display: block; }
  .docs-sidebar { display: none; }
  .docs-main { padding-inline: max(22px, 6vw); }
  .docs-landing-hero { grid-template-columns: 1fr 190px; }
  .docs-landing-hero img { width: 190px; height: 190px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .header-inner, .section-wrap, .home-hero, .signal-inner, .footer-grid, .footer-bottom, .docs-landing, .faq-page, .support-page, .not-found-page { width: min(calc(100% - 28px), 100%); }
  .brand small { display: none; }
  .brand img { width: 39px; height: 39px; }
  .home-hero { padding-block: 56px 70px; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions > * { flex: 1 1 calc(50% - 8px); }
  .hero-actions > *:first-child { flex-basis: 100%; }
  .hero-visual { min-height: 390px; }
  .hero-logo-shell { width: min(285px, 74vw); }
  .logo-orbit { width: 330px; }
  .logo-orbit::before { transform: translate(-50%, -50%) translateY(-165px) rotate(45deg); }
  .logo-orbit::after { transform: translate(-50%, -50%) translateY(165px) rotate(45deg); }
  .floating-chip { padding: 8px 10px; font-size: 10px; }
  .floating-chip.one { left: 0; top: 15%; }
  .floating-chip.two { right: 0; bottom: 11%; }
  .section-wrap { padding-block: 78px; }
  .quick-grid { display: grid; grid-template-columns: 1fr; }
  .quick-card, .quick-card:nth-child(n) { min-height: 195px; grid-column: auto; }
  .signal-item { padding: 20px 12px; }
  .docs-main { padding: 40px 18px 80px; }
  .article-header h1 { font-size: clamp(2.5rem, 13vw, 3.7rem); }
  .article-description { font-size: 14px; }
  .feature-grid, .product-grid, .related-grid { grid-template-columns: 1fr; }
  .article-navigation { grid-template-columns: 1fr; }
  .article-nav-card.next { text-align: left; }
  .docs-landing { padding-block: 45px 80px; }
  .docs-landing-hero { grid-template-columns: 1fr; padding: 31px; }
  .docs-landing-hero img { width: 150px; height: 150px; justify-self: center; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 175px; }
  .support-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .search-modal { padding: 0; place-items: stretch; }
  .search-panel { width: 100%; max-height: 100vh; height: 100vh; border: 0; border-radius: 0; }
  .search-results { max-height: calc(100vh - 108px); }
  .search-meta span:last-child { display: none; }
  .search-result { grid-template-columns: 34px 1fr; }
  .search-result > small { display: none; }
}
@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .signal-inner { grid-template-columns: 1fr; }
  .signal-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .signal-item:last-child { border-bottom: 0; }
  .not-found-actions { display: grid; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
