html {
    scroll-behavior: smooth;
    background: var(--bg-soft);
}
body {
    display: block;
    padding: 0;
    font-family: var(--sans);
    line-height: 1.5;
}
code {
    font-family: var(--mono);
}
a {
    color: inherit;
    text-decoration: none;
}

.glow {
    position: fixed;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 560px;
    background: radial-gradient(
        ellipse at center,
        var(--accent-soft),
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 90px 24px 40px;
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-xs);
    color: var(--muted);
    letter-spacing: 0.3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 22px;
}
.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(40px, 7vw, 60px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(
        135deg,
        var(--hi) 20%,
        var(--accent2) 70%,
        var(--accent) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}
.subtitle {
    font-size: var(--fs-md);
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 500;
}
.lede {
    font-size: var(--fs-lg);
    color: var(--muted);
    max-width: 52ch;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.lede code {
    color: var(--accent2);
    font-size: 0.92em;
}

.cta-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    border: 1px solid var(--border-hi);
}
.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a0900;
    border: none;
}
.btn.primary:hover {
    filter: brightness(1.08);
}
.btn.ghost {
    background: var(--bg-soft);
    color: var(--text);
}
.btn.ghost:hover {
    border-color: var(--accent);
}

.src-link {
    font-size: var(--fs-lg);
    color: var(--muted);
    margin-bottom: 40px;
}
.src-link a {
    color: var(--accent2);
}
.src-link a:hover {
    text-decoration: underline;
}

.snippet {
    max-width: 560px;
    margin: 0 auto 90px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    text-align: left;
}
.snippet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-xs);
    color: var(--dim);
}
.snippet-body {
    padding: 16px;
    font-family: var(--mono);
    font-size: var(--fs-lg);
    line-height: 1.9;
    color: var(--muted);
}
.snippet-body .c {
    color: var(--dim);
}
.snippet-body .p {
    color: var(--o3);
    font-weight: 600;
}

.lp-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 90px;
    position: relative;
    z-index: 1;
}
.lp-section h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text);
}
.lp-section .sub {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin-bottom: 36px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 760px) {
    .grid3 {
        grid-template-columns: 1fr;
    }
}

.lp-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    background: var(--bg-soft);
    transition: border-color 0.15s, transform 0.15s;
}
.lp-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-2px);
}
.lp-card .icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin-bottom: 16px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent2);
}
.lp-card h3 {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.lp-card p {
    font-size: var(--fs-lg);
    color: var(--muted);
    line-height: 1.65;
}
.lp-card code {
    color: var(--accent2);
    font-size: 0.9em;
}

.promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
}
.promo h2 {
    font-size: var(--fs-xl);
    margin-bottom: 4px;
}
.promo .btn {
    flex-shrink: 0;
}

footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--dim);
}
.layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.sidebar {
    position: sticky;
    top: 0;
    width: 240px;
    flex-shrink: 0;
    overflow-y: auto;
    padding-top: 48px;
    border-right: 1px solid var(--border);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}
.sidebar-link {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: var(--fs-sm);
    color: var(--muted);
}
.sidebar-link:hover {
    color: var(--text);
    background: rgba(255, 106, 0, 0.06);
}
.sidebar-link.is-active {
    color: var(--accent2);
    background: rgba(255, 106, 0, 0.09);
    font-weight: 600;
}

.sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
}
.sidebar-foot a {
    color: var(--muted);
}
.sidebar-foot a:hover {
    color: var(--text);
}

.lp-section.article-wrap,
.layout .lp-section {
    flex: 1;
    min-width: 0;
    padding-top: 48px;
    margin: unset;
}

@media (max-width: 820px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

kbd {
    font-family: var(--mono);
    font-size: 0.85em;
    padding: 1px 6px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg);
    color: var(--o3);
}

.article h1 {
    font-size: var(--fs-title);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--hi);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    text-shadow: 0 0 2px var(--hi), 0 0 30px rgba(245, 158, 11, 0.5);
    animation: gt-07-crt-flicker 0.15s steps(1) infinite;
}
.article h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--hi);
    margin: 36px 0 12px;
    text-shadow: 0 0 2px var(--hi), 0 0 30px rgba(245, 158, 11, 0.5);
    animation: gt-07-crt-flicker 0.15s steps(1) infinite;
}
.article h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent2);
    margin: 28px 0 10px;
    text-shadow: 0 0 2px var(--hi), 0 0 30px rgba(245, 158, 11, 0.5);
    animation: gt-07-crt-flicker 0.15s steps(1) infinite;
}
.article h4 {
    font-size: var(--fs-normal);
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 8px;
    text-shadow: 0 0 2px var(--hi), 0 0 30px rgba(245, 158, 11, 0.5);
    animation: gt-07-crt-flicker 0.15s steps(1) infinite;
}
.article p {
    margin-bottom: 14px;
    color: var(--txt);
    line-height: 1.75;
}
.article strong {
    color: var(--hi);
}
.article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}
.article a {
    color: var(--accent2);
    text-shadow: 0px 0px 5px var(--accent2), 0px 0px 2px rgba(1, 1, 1, 0.5);
    text-decoration: underline;
}
.article a:hover {
    text-decoration: underline;
}

.article ul,
.article ol {
    margin: 0 0 14px 22px;
    color: var(--txt);
}
.article ul li,
.article ol li {
    margin-bottom: 4px;
    line-height: 1.7;
}
.article ul li::marker {
    color: var(--accent);
}
.article ol li::marker {
    color: var(--accent2);
}
.article ul ul,
.article ol ol,
.article ul ol,
.article ol ul {
    margin-top: 4px;
    margin-bottom: 0;
}

.article code {
    background: var(--bdr);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.88em;
    color: var(--o3);
}

.article pre,
.article .highlight {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}
.article pre code,
.article .highlight code {
    background: none;
    border: none;
    padding: 0;
    color: var(--txt);
    font-size: 0.85rem;
    line-height: 1.6;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: var(--fs-sm);
}
.article th,
.article td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
}
.article th {
    background: var(--bg);
    color: var(--hi);
    font-weight: 600;
}
.article tr:hover td {
    background: rgba(255, 106, 0, 0.03);
}

.article blockquote {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: 10px 16px;
    border-radius: 0 6px 6px 0;
    margin: 16px 0;
    color: var(--hi);
}

.article .admonition {
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-left-color: var(--accent);
    border-radius: 6px;
    background: var(--bg);
    padding: 12px 16px;
    margin: 18px 0;
}
.article .admonition-title {
    font-weight: 700;
    color: var(--accent2);
    margin-bottom: 6px;
}
.article .admonition p:last-child {
    margin-bottom: 0;
}
.article .admonition.warning {
    border-left-color: #ffb454;
}
.article .admonition.warning .admonition-title {
    color: #ffb454;
}
.article .admonition.tip {
    border-left-color: #3ef08c;
}
.article .admonition.tip .admonition-title {
    color: #3ef08c;
}
.article .admonition.danger {
    border-left-color: #ff4d4d;
}
.article .admonition.danger .admonition-title {
    color: #ff4d4d;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}
.tag {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--o3);
    background: var(--accent-soft);
}

.tabbed-set {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.tabbed-set input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tabbed-labels {
    display: flex;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.tabbed-labels label {
    padding: 9px 16px;
    font-size: var(--fs-sm);
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    user-select: none;
}
.tabbed-labels label:hover {
    color: var(--text);
}
.tabbed-content {
    width: 100%;
    order: 99;
    padding: 14px 16px;
}
.tabbed-block {
    display: none;
}
.tabbed-block > *:last-child {
    margin-bottom: 0;
}

.tabbed-set input:nth-child(1):checked ~ .tabbed-labels label:nth-child(1),
.tabbed-set input:nth-child(2):checked ~ .tabbed-labels label:nth-child(2),
.tabbed-set input:nth-child(3):checked ~ .tabbed-labels label:nth-child(3),
.tabbed-set input:nth-child(4):checked ~ .tabbed-labels label:nth-child(4) {
    color: var(--accent2);
    border-bottom-color: var(--accent);
}
.tabbed-set
    input:nth-child(1):checked
    ~ .tabbed-content
    .tabbed-block:nth-child(1),
.tabbed-set
    input:nth-child(2):checked
    ~ .tabbed-content
    .tabbed-block:nth-child(2),
.tabbed-set
    input:nth-child(3):checked
    ~ .tabbed-content
    .tabbed-block:nth-child(3),
.tabbed-set
    input:nth-child(4):checked
    ~ .tabbed-content
    .tabbed-block:nth-child(4) {
    display: block;
}

@keyframes gt-07-crt-flicker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.97;
    }
    75% {
        opacity: 1;
    }
}
