:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .09);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, .09);
  --ok: #1a9c3e;
  --bad: #d7263d;
  --code-bg: #f5f5f7;
  --code-ink: #1d1d1f;
  --code-line: rgba(0, 0, 0, .08);
  --code-mut: #6e6e73;
  --ck: #ad3da4; --ca: #a2541c; --cs: #c41a16; --ct: #1c6b8c;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}
.dark {
  --bg: #000000;
  --bg-soft: #111113;
  --ink: #f5f5f7;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, .10);
  --accent: #409cff;
  --accent-soft: rgba(64, 156, 255, .12);
  --ok: #30d158;
  --bad: #ff4d63;
  --code-bg: #0b0c0f;
  --code-ink: #e6e6e6;
  --code-line: rgba(255, 255, 255, .08);
  --code-mut: #8e8e93;
  --ck: #ff7ab2; --ca: #ffa14f; --cs: #fc6a5d; --ct: #5dd8ff;
}
.jx-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
.jx-nav-bar, .jx-nav-mobile { max-width: var(--wrap) !important; }

.s-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.s-sec { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.s-sec.soft { background: var(--bg-soft); }
.s-hero { padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 7vw, 96px); background: var(--bg); color: var(--ink); }

.s-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.s-h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; }
.s-h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.s-h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.s-lead { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 46rem; }
.s-p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
.s-small { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.s-accent { color: var(--accent); }

.s-hero-grid > *, .s-split > *, .s-grid-2 > *, .s-grid-3 > *, .s-grid-4 > *, .s-phases > *, .s-cta > * { min-width: 0; }
.s-hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .s-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.s-split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .s-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.s-grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.s-grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.s-grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .s-grid-2 { grid-template-columns: 1fr 1fr; } .s-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .s-grid-3 { grid-template-columns: repeat(3, 1fr); } .s-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.s-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.s-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; border: 1px solid transparent; text-decoration: none; }
.s-btn-primary { background: var(--accent); color: #fff; }
.s-btn-primary:hover { filter: brightness(1.08); }
.s-btn-ghost { border-color: var(--line); color: var(--ink); }
.s-btn-ghost:hover { background: var(--accent-soft); }

.s-cmd { display: flex; align-items: center; gap: 10px; margin-top: 22px; max-width: 100%; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: .82rem; color: var(--ink); }
.s-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.s-cmd code::before { content: '$ '; color: var(--muted); }
.s-copy { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .75rem; font-weight: 600; cursor: pointer; }
.s-copy:hover { border-color: var(--accent); color: var(--accent); }

.s-code { background: var(--code-bg); color: var(--code-ink); border-radius: 14px; border: 1px solid var(--code-line); overflow: hidden; }
.s-code-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--code-line); font-size: .75rem; color: var(--code-mut); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.s-code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: clamp(.74rem, .7rem + .15vw, .84rem); line-height: 1.65; font-family: 'SF Mono', Menlo, Consolas, monospace; }
.s-code .k { color: var(--ck); } .s-code .a { color: var(--ca); } .s-code .s { color: var(--cs); } .s-code .t { color: var(--ct); }

.s-stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .s-stats { grid-template-columns: repeat(4, 1fr); } }
.s-stat { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.s-stat b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.s-stat span { font-size: .85rem; color: var(--muted); }

.s-item { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.s-item .s-p { font-size: .9rem; }
.s-item code, .s-p code, .s-table code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: .85em; padding: 1px 5px; border-radius: 5px; background: var(--accent-soft); color: var(--ink); }

.s-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.s-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
@media (max-width: 640px) { .s-table { font-size: .82rem; } .s-table th, .s-table td { padding: 10px 12px; } }
.s-table th, .s-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.s-table th { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.s-table tr:last-child td { border-bottom: 0; }
.s-table td.n, .s-table th.n { text-align: center; white-space: nowrap; }
.s-table .jx { color: var(--accent); font-weight: 700; }
.s-yes { color: var(--ok); font-weight: 700; }
.s-no { color: var(--bad); font-weight: 700; }
.s-na { color: var(--muted); }

.s-bars { display: grid; gap: 10px; }
.s-bar { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) 4.2rem; gap: 12px; align-items: center; font-size: .85rem; }
.s-bar-track { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.s-bar-fill { height: 100%; border-radius: 999px; background: var(--muted); opacity: .45; }
.s-bar.jx .s-bar-fill { background: var(--accent); opacity: 1; }
.s-bar.jx { font-weight: 700; color: var(--accent); }
.s-bar-val { text-align: right; font-variant-numeric: tabular-nums; }

.s-phases { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: stage; }
@media (min-width: 720px) { .s-phases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .s-phases { grid-template-columns: repeat(4, 1fr); } }
.s-phase { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.s-phase.sec { border-color: var(--accent); background: var(--accent-soft); }
.s-phase ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.s-phase li { counter-increment: stage; font-size: .88rem; color: var(--ink); display: flex; gap: 10px; }
.s-phase li::before { content: counter(stage); flex: none; width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.s-phase.sec li::before { background: var(--accent); color: #fff; }

.s-note { margin-top: 18px; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.s-note a, .s-p a { color: var(--accent); text-decoration: none; }
.s-note a:hover, .s-p a:hover { text-decoration: underline; }

.s-cta { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .s-cta { grid-template-columns: 1fr auto; } }
html, body { overflow-x: clip; }

.d-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(20px, 3vw, 36px) 0 72px; }
@media (min-width: 960px) { .d-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.d-layout > * { min-width: 0; }
.d-side { display: none; }
@media (min-width: 960px) { .d-side { display: block; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.d-side a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.d-side a:hover { background: var(--accent-soft); color: var(--ink); }
.d-side p { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.d-mnav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.d-mnav a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--ink); text-decoration: none; }
@media (min-width: 960px) { .d-mnav { display: none; } }
.d-sec { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.d-sec:first-of-type { border-top: 0; padding-top: 8px; }
.d-sec h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; }
.d-sec h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.d-sec p, .d-sec li { font-size: .95rem; line-height: 1.65; color: var(--muted); }
.d-sec ul { margin: 8px 0 0 18px; list-style: disc; }
.d-sec p code, .d-sec li code, .d-sec td code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: .85em; padding: 1px 5px; border-radius: 5px; background: var(--accent-soft); color: var(--ink); }
.d-code { margin-top: 14px; background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); border-radius: 12px; overflow: hidden; }
.d-code span { display: block; padding: 8px 16px; border-bottom: 1px solid var(--code-line); font-size: .72rem; color: var(--code-mut); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.d-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: clamp(.74rem, .7rem + .12vw, .82rem); line-height: 1.65; font-family: 'SF Mono', Menlo, Consolas, monospace; }
.d-sec .s-table-wrap { margin-top: 14px; }
.d-code + p, .d-code + h3, .s-table-wrap + p { margin-top: 14px; }
