.site-header {
    position: sticky;
    top: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.88);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(20px);
}

.site-header .brand span {
    color: #67e8f9;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: #67e8f9;
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.button-primary {
    color: #001018;
    background: linear-gradient(135deg, #67e8f9, #22d3ee);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border);
    color: #94a3b8;
}

.site-footer p {
    margin: 0.4rem 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.guide-hero {
    padding-bottom: 2rem;
}

.guide-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.guide-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #f0abfc, #67e8f9, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 4rem;
}

.guide-content {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: linear-gradient(155deg, rgba(38, 10, 57, 0.72), rgba(2, 6, 23, 0.94) 58%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.guide-content h2 {
    margin: 2.5rem 0 1rem;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.guide-content h2:first-child {
    margin-top: 0;
}

.guide-content h3 {
    margin: 1.7rem 0 0.7rem;
    color: #fff;
    font-size: 1.25rem;
}

.guide-content p,
.guide-content li {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.78;
}

.guide-content p {
    margin: 0 0 1rem;
}

.guide-content ul,
.guide-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.guide-content li {
    margin: 0.45rem 0;
}

.guide-content a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(103, 232, 249, 0.35);
    text-underline-offset: 0.2em;
}

.guide-content code {
    padding: 0.12rem 0.32rem;
    border: 1px solid rgba(103, 232, 249, 0.15);
    border-radius: 0.3rem;
    color: #a5f3fc;
    background: rgba(8, 51, 68, 0.28);
    font: 0.9em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.guide-code {
    overflow-x: auto;
    margin: 1rem 0 1.4rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 0.75rem;
    background: #030712;
    box-shadow: inset 3px 0 #22d3ee;
}

.guide-code code {
    padding: 0;
    border: 0;
    color: #d8f9ff;
    background: transparent;
    font-size: 0.86rem;
    line-height: 1.7;
    white-space: pre;
}

.guide-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: #020617;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.guide-note {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 0.75rem;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.16);
    line-height: 1.65;
}

.guide-note.is-info {
    border-color: rgba(34, 211, 238, 0.28);
    color: #cffafe;
    background: rgba(8, 51, 68, 0.18);
}

.guide-toc {
    position: sticky;
    top: 6rem;
    align-self: start;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.86);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.guide-toc strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guide-toc a {
    display: block;
    padding: 0.42rem 0;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.35;
}

.guide-toc a:hover {
    color: #67e8f9;
}

.guide-updated {
    margin: 0 0 1.5rem;
    color: #94a3b8;
    font-size: 0.84rem;
}

.guide-cta {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.guide-content .product-buy-btn,
.guide-content .product-buy-btn:hover {
    color: #fff;
    text-decoration: none;
    text-decoration-color: transparent;
}

.guide-content .product-buy-kicker {
    color: #fce7f3;
}

.guide-content .product-buy-links a {
    color: #94a3b8;
    text-decoration: none;
}

.guide-content .product-buy-links a:hover {
    color: #67e8f9;
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
        top: 0;
        flex-wrap: wrap;
        border-radius: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: static;
        grid-row: 1;
    }

    .site-footer {
        flex-direction: column;
    }
}
