.deep-dive-page main {
    padding: 12px 18px 34px;
}

.deep-dive-article {
    max-width: 940px;
    margin: 0 auto;
}

.deep-dive-hero {
    border-radius: 24px;
    padding: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.84) 0%, rgba(247, 251, 255, 0.76) 56%, rgba(244, 245, 255, 0.82) 100%);
    box-shadow: 0 20px 56px rgba(5, 10, 20, 0.12);
}

.deep-dive-kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(5, 10, 20, 0.12);
    background: rgba(255, 255, 255, 0.78);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deep-dive-hero h1 {
    margin: 12px 0 4px;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.deep-dive-subtitle {
    margin: 0 0 12px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(11, 15, 24, 0.66);
}

.deep-dive-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(11, 15, 24, 0.76);
    max-width: 72ch;
}

.deep-dive-meta {
    margin: 14px 0 0;
    font-size: 12px;
    color: rgba(11, 15, 24, 0.58);
}

.deep-dive-toc {
    margin-top: 18px;
    border-radius: 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(5, 10, 20, 0.10);
}

.deep-dive-toc h2 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.deep-dive-toc ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.deep-dive-section {
    margin-top: 20px;
    border-radius: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(5, 10, 20, 0.10);
    box-shadow: 0 12px 36px rgba(5, 10, 20, 0.08);
}

.deep-dive-section h2 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.4rem, 2.1vw, 1.9rem);
    letter-spacing: -0.02em;
}

.deep-dive-section h3 {
    margin: 16px 0 6px;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.deep-dive-section p {
    margin: 0;
    color: rgba(11, 15, 24, 0.76);
    line-height: 1.72;
    font-size: 15px;
}

.deep-dive-section p + p,
.deep-dive-section p + ul,
.deep-dive-section ul + p,
.deep-dive-section h3 + p {
    margin-top: 10px;
}

.deep-dive-section ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: rgba(11, 15, 24, 0.78);
    line-height: 1.62;
    font-size: 14px;
}

.deep-dive-figure,
.deep-dive-diagram {
    margin: 12px 0 0;
}

.deep-dive-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(5, 10, 20, 0.10);
    background: rgba(255, 255, 255, 0.82);
}

.deep-dive-figure figcaption,
.deep-dive-diagram figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(11, 15, 24, 0.68);
}

.deep-dive-diagram svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(5, 10, 20, 0.10);
    background: rgba(250, 252, 255, 0.9);
    color: rgba(11, 15, 24, 0.7);
}

.deep-dive-diagram rect {
    fill: rgba(214, 230, 255, 0.72);
    stroke: rgba(5, 10, 20, 0.22);
}

.deep-dive-diagram text {
    fill: rgba(11, 15, 24, 0.86);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.deep-dive-diagram line,
.deep-dive-diagram path {
    stroke: currentColor;
    stroke-width: 1.4;
    fill: none;
}

.deep-dive-compare {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.deep-dive-compare-card {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(5, 10, 20, 0.10);
}

.deep-dive-compare-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.deep-dive-compare-card p {
    font-size: 13px;
    line-height: 1.58;
}

.deep-dive-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(11, 15, 24, 0.7);
}

.deep-dive-code {
    margin: 10px 0 0;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(5, 10, 20, 0.12);
    overflow-x: auto;
}

.deep-dive-code code {
    display: block;
    margin: 0;
    white-space: pre;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.58;
    color: rgba(11, 15, 24, 0.88);
}

.deep-dive-end {
    margin-top: 20px;
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 238, 189, 0.88) 0%, rgba(255, 212, 190, 0.84) 46%, rgba(205, 240, 255, 0.82) 100%);
    box-shadow: 0 18px 52px rgba(5, 10, 20, 0.14);
}

.deep-dive-end h2 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    letter-spacing: -0.02em;
}

.deep-dive-end p {
    margin: 0;
    color: rgba(11, 15, 24, 0.80);
    line-height: 1.62;
    font-size: 14px;
}

.deep-dive-end .cta-row {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .deep-dive-compare {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .deep-dive-page main {
        padding: 8px 12px 28px;
    }

    .deep-dive-hero,
    .deep-dive-toc,
    .deep-dive-section,
    .deep-dive-end {
        padding: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    .deep-dive-hero {
        background: linear-gradient(160deg, rgba(17, 26, 42, 0.90) 0%, rgba(15, 24, 39, 0.86) 56%, rgba(17, 29, 45, 0.90) 100%);
        box-shadow: 0 24px 58px rgba(1, 5, 14, 0.48);
    }

    .deep-dive-kicker {
        border-color: rgba(176, 200, 238, 0.24);
        background: rgba(176, 200, 238, 0.12);
        color: rgba(237, 244, 255, 0.86);
    }

    .deep-dive-lead,
    .deep-dive-section p,
    .deep-dive-section ul,
    .deep-dive-note {
        color: rgba(208, 219, 240, 0.82);
    }

    .deep-dive-subtitle {
        color: rgba(208, 219, 240, 0.7);
    }

    .deep-dive-meta {
        color: rgba(208, 219, 240, 0.64);
    }

    .deep-dive-toc,
    .deep-dive-section,
    .deep-dive-compare-card {
        background: rgba(17, 27, 44, 0.78);
        border-color: rgba(176, 200, 238, 0.20);
        box-shadow: 0 16px 40px rgba(1, 5, 14, 0.40);
    }

    .deep-dive-figure img,
    .deep-dive-diagram svg {
        border-color: rgba(176, 200, 238, 0.2);
        background: rgba(12, 20, 34, 0.82);
    }

    .deep-dive-figure figcaption,
    .deep-dive-diagram figcaption {
        color: rgba(208, 219, 240, 0.7);
    }

    .deep-dive-diagram svg {
        color: rgba(208, 219, 240, 0.66);
    }

    .deep-dive-diagram rect {
        fill: rgba(108, 153, 221, 0.16);
        stroke: rgba(176, 200, 238, 0.26);
    }

    .deep-dive-diagram text {
        fill: rgba(232, 240, 255, 0.9);
    }

    .deep-dive-code {
        background: rgba(10, 17, 29, 0.92);
        border-color: rgba(176, 200, 238, 0.22);
    }

    .deep-dive-code code {
        color: rgba(222, 233, 250, 0.9);
    }

    .deep-dive-end {
        background: linear-gradient(135deg, rgba(27, 32, 47, 0.96) 0%, rgba(30, 25, 43, 0.94) 46%, rgba(25, 43, 58, 0.94) 100%);
        box-shadow: 0 22px 58px rgba(1, 5, 14, 0.52);
    }

    .deep-dive-end p {
        color: rgba(208, 219, 240, 0.82);
    }
}
