:root {
    --bg: #f4f7f8;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --primary: #176c67;
    --primary-soft: #d9f3ee;
    --secondary: #33516c;
    --secondary-soft: #dee9f3;
    --accent: #7b6030;
    --accent-soft: #f3e2be;
    --rose: #c24156;
    --rose-soft: #fad9de;
    --text: #0e171e;
    --muted: #425564;
    --line: rgba(66, 85, 100, 0.14);
    --shadow: 0 24px 60px rgba(17, 27, 34, 0.08);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(217, 243, 238, 0.95), transparent 30%),
        radial-gradient(circle at top right, rgba(222, 233, 243, 0.9), transparent 24%),
        linear-gradient(180deg, #f8fbfb 0%, var(--bg) 42%, #edf3f5 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 90%);
    opacity: 0.36;
}

a {
    color: inherit;
    text-decoration: none;
}

code,
pre {
    font-family: "JetBrains Mono", monospace;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 32px rgba(17, 27, 34, 0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f5fffd;
    background: linear-gradient(135deg, var(--primary), #205f88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span {
    font-size: 0.86rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(23, 108, 103, 0.08);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(66, 85, 100, 0.12);
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(23, 108, 103, 0.08);
    transform: translateY(-1px);
}

.hero,
.intro-strip,
.section,
.site-footer,
.developer-card {
    margin-bottom: 28px;
}

.hero > *,
.intro-strip > *,
.configure-layout > *,
.safety-layout > *,
.steps-grid > *,
.feature-grid > *,
.benefit-grid > *,
.cta-card > *,
.developer-card > * {
    min-width: 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-preview,
.intro-card,
.intro-points article,
.step-card,
.content-panel,
.feature-card,
.benefit-card,
.warning-card,
.cta-card,
.developer-card {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 34px;
}

.eyebrow,
.label,
.tag,
.step-number,
.mini-chip {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 800;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(23, 108, 103, 0.1);
}

.hero h1,
.section h2,
.intro-card h2,
.cta-card h2 {
    margin: 18px 0 0;
    line-height: 1.02;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 5vw, 5rem);
    letter-spacing: -0.05em;
}

.hero-text,
.section-heading p,
.intro-card p,
.feature-card p,
.benefit-card p,
.warning-card p,
.content-panel p,
.cta-card p {
    color: var(--muted);
    line-height: 1.72;
    font-size: 1rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #f7fbff;
    background: linear-gradient(135deg, var(--primary), #205f88);
    box-shadow: 0 18px 36px rgba(23, 108, 103, 0.22);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
}

.package-card {
    margin-top: 28px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 248, 0.82));
    border: 1px solid rgba(66, 85, 100, 0.1);
}

.package-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.package-header h2,
.section-heading h2,
.content-panel h3,
.feature-card h3,
.benefit-card h3,
.warning-card h3,
.step-card h3 {
    margin: 0;
}

.package-grid {
    display: grid;
    gap: 16px;
}

.package-grid div {
    display: grid;
    gap: 6px;
}

.label,
.tag {
    color: var(--secondary);
}

a.tag {
    display: inline-block;
    transition: color 180ms ease;
}

a.tag:hover,
a.tag:focus-visible {
    color: var(--primary);
}

.package-grid code {
    display: block;
    width: 100%;
    padding: 12px 14px;
    overflow-x: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: 14px;
    background: #eff4f6;
    color: var(--secondary);
}

.hero-preview {
    position: relative;
    padding: 22px;
    overflow: hidden;
}

.hero-preview::before,
.hero-preview::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}

.hero-preview::before {
    width: 240px;
    height: 240px;
    top: -50px;
    right: -30px;
    background: rgba(23, 108, 103, 0.13);
}

.hero-preview::after {
    width: 180px;
    height: 180px;
    bottom: -30px;
    left: -20px;
    background: rgba(51, 81, 108, 0.12);
}

.preview-window {
    position: relative;
    height: 100%;
    min-height: 560px;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fcfefe, #f0f5f7);
    border: 1px solid rgba(66, 85, 100, 0.08);
}

.preview-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.preview-topbar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(66, 85, 100, 0.24);
}

.preview-body {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 16px;
    height: calc(100% - 28px);
}

.preview-sidebar,
.preview-content {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(66, 85, 100, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.preview-sidebar {
    display: grid;
    align-content: start;
    gap: 10px;
}

.preview-pill {
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 700;
    color: var(--muted);
    background: #f2f6f7;
}

.preview-pill-active {
    color: var(--primary);
    background: rgba(23, 108, 103, 0.1);
}

.preview-content {
    display: grid;
    align-content: start;
    gap: 14px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metric-card,
.preview-request {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(66, 85, 100, 0.08);
    background: var(--surface-strong);
}

.metric-card span,
.preview-request p {
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
}

.preview-request {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
}

.preview-request strong {
    display: block;
    margin-bottom: 6px;
}

.request-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #0a2927;
    background: var(--primary-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.request-method-post {
    color: #2b2110;
    background: var(--accent-soft);
}

.preview-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-chip {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--secondary);
    background: rgba(51, 81, 108, 0.1);
}

.intro-strip,
.configure-layout,
.safety-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.intro-card {
    padding: 28px;
}

.intro-points {
    display: grid;
    gap: 18px;
}

.intro-points article,
.benefit-card,
.feature-card,
.warning-card {
    padding: 24px;
}

.intro-points strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.intro-points p,
.benefit-card p,
.warning-card li,
.feature-card li,
.content-panel li,
.step-card li {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.section {
    padding: 34px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
}

.section-compact {
    padding: 0;
    border: 0;
    background: transparent;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 24px;
}

.steps-grid,
.feature-grid,
.benefit-grid {
    display: grid;
    gap: 22px;
}

.step-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    padding: 28px;
}

.step-meta {
    min-width: 0;
}

.step-code {
    min-width: 0;
}

.step-code > .snippet-card:first-child,
.step-code > .snippet-tabs:first-child {
    margin-top: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(23, 108, 103, 0.1);
}

.snippet-tabs {
    display: grid;
    gap: 14px;
}

.snippet-card {
    margin-top: 16px;
    border: 1px solid rgba(66, 85, 100, 0.09);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(14, 23, 30, 0.98);
}

.snippet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(240, 245, 248, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.snippet-head span {
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy-button {
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f0f5f8;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 180ms ease, transform 180ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.copy-button.copied {
    color: #0a2927;
    background: var(--primary-soft);
}

.snippet-card pre {
    margin: 0;
    padding: 18px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    color: #dce7f2;
}

.note-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
}

.note-card-soft {
    background: rgba(217, 243, 238, 0.56);
    border: 1px solid rgba(23, 108, 103, 0.12);
}

.note-card strong {
    display: block;
    margin-bottom: 10px;
}

ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.configure-layout {
    align-items: start;
}

.content-panel {
    padding: 26px;
}

.side-panel {
    background: linear-gradient(180deg, rgba(222, 233, 243, 0.58), rgba(255, 255, 255, 0.84));
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
}

.feature-icon-teal {
    color: #0a2927;
    background: var(--primary-soft);
}

.feature-icon-slate {
    color: #142736;
    background: var(--secondary-soft);
}

.feature-icon-sand {
    color: #2b2110;
    background: var(--accent-soft);
}

.feature-icon-rose {
    color: #4a101a;
    background: var(--rose-soft);
}

.benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-card {
    background: rgba(255, 255, 255, 0.78);
}

.warning-card {
    background: linear-gradient(180deg, rgba(250, 217, 222, 0.72), rgba(255, 255, 255, 0.84));
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(23, 108, 103, 0.12), rgba(222, 233, 243, 0.7), rgba(243, 226, 190, 0.48));
}

.developer-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(222, 233, 243, 0.65), rgba(255, 255, 255, 0.92), rgba(217, 243, 238, 0.56));
}

.developer-copy h2 {
    margin: 18px 0 0;
    line-height: 1.08;
}

.developer-copy p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.72;
}

.developer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 12px 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--primary);
    font-weight: 700;
}

.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero,
    .intro-strip,
    .configure-layout,
    .safety-layout,
    .cta-card,
    .developer-card {
        grid-template-columns: 1fr;
    }

    .preview-window {
        min-height: 520px;
    }
}

@media (max-width: 980px) {
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-card {
        grid-template-columns: 180px 1fr;
        gap: 22px;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: min(calc(100% - 24px), var(--content-width));
        padding-top: 14px;
    }

    .site-header {
        position: static;
        align-items: center;
        border-radius: 28px;
    }

    .brand {
        flex: 1 1 auto;
    }

    .brand-copy span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .js .site-nav {
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 8px;
    }

    .js .site-header.is-open .site-nav {
        display: grid;
    }

    .js .site-nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px;
        border: 1px solid rgba(66, 85, 100, 0.08);
        background: rgba(255, 255, 255, 0.72);
    }

    .hero-copy,
    .hero-preview,
    .section,
    .intro-card,
    .intro-points article,
    .step-card,
    .content-panel,
    .feature-card,
    .benefit-card,
    .warning-card,
    .cta-card {
        border-radius: 24px;
    }

    .section,
    .hero-copy,
    .hero-preview {
        padding: 22px;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.3rem, 10vw, 3.4rem);
    }

    .hero-actions,
    .cta-actions,
    .developer-links {
        width: 100%;
    }

    .preview-body,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        grid-auto-flow: column;
        grid-auto-columns: minmax(120px, 1fr);
        overflow-x: auto;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cta-card,
    .developer-card {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    html {
        scroll-padding-top: 24px;
    }

    .site-nav {
        gap: 8px;
    }

    .site-nav a,
    .button {
        width: 100%;
    }

    .hero-actions,
    .cta-actions,
    .developer-links {
        width: 100%;
    }

    .package-header {
        align-items: flex-start;
    }

    .package-card,
    .intro-card,
    .content-panel,
    .feature-card,
    .benefit-card,
    .warning-card,
    .step-card,
    .cta-card,
    .developer-card {
        padding: 20px;
    }

    .snippet-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-button {
        width: 100%;
    }

    .preview-window {
        min-height: 440px;
        padding: 14px;
    }

    .preview-sidebar,
    .preview-content {
        padding: 14px;
    }

    .preview-request {
        grid-template-columns: 1fr;
    }

    .preview-pill {
        min-width: 112px;
        text-align: center;
    }

    .metric-card strong {
        font-size: 1.7rem;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-inline: 4px;
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: min(calc(100% - 16px), var(--content-width));
    }

    .hero-copy,
    .hero-preview,
    .section {
        padding: 18px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .brand-copy strong {
        font-size: 0.95rem;
    }

    .brand-copy span {
        font-size: 0.8rem;
    }
}
