* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f6f5;
    --paper: #ffffff;
    --paper-soft: #fbfcfb;
    --ink: #152126;
    --muted: #56656f;
    --line: #d8e0e3;
    --line-soft: #e7ecee;
    --teal: #0f766e;
    --teal-soft: #e7f4f2;
    --amber: #b45309;
    --dark: #111b20;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.shell {
    width: min(100% - 48px, 1240px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.topbar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 7px;
    color: #ffffff;
    background: var(--dark);
    font-size: 13px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

nav a {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

nav a:hover {
    color: var(--ink);
    background: var(--teal-soft);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.hero-copy {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 720px;
    margin: 0;
    font-size: 56px;
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0;
}

.lead {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #eef3f2;
    font-weight: 700;
    text-decoration: none;
}

.actions a.primary {
    border-color: var(--dark);
    color: #ffffff;
    background: var(--dark);
}

.actions a:hover {
    transform: translateY(-1px);
}

.status-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--dark);
}

.status-card .eyebrow {
    color: #9ad8d1;
}

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

.stat-row div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.status-card strong {
    display: block;
    font-size: 44px;
    line-height: 1;
}

.status-card span,
.status-note {
    color: #bfd0d6;
}

.status-card span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

.status-note {
    margin: 0;
    font-size: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

article,
.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

article {
    padding: 24px;
}

article p {
    margin: 0;
    color: var(--muted);
}

.feature-grid article {
    min-height: 210px;
}

.card-kicker {
    display: inline-flex;
    min-width: 34px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 7px;
    color: var(--teal);
    background: var(--teal-soft);
    font-size: 13px;
    font-weight: 800;
}

.panel {
    margin-top: 20px;
    padding: 30px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-head p:last-child {
    margin: 0;
    color: var(--muted);
}

pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 16px;
    border-radius: 8px;
    color: #dceff4;
    background: var(--dark);
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    font-family: Consolas, Monaco, "Liberation Mono", monospace;
    font-size: .95em;
}

p code,
li code {
    padding: 2px 5px;
    border-radius: 5px;
    color: #0e514c;
    background: var(--teal-soft);
}

.muted {
    color: var(--muted);
}

.guide-panel h2 {
    margin-bottom: 12px;
}

.steps {
    display: grid;
    gap: 14px;
}

.step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--paper-soft);
}

.step > strong {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 7px;
    color: #ffffff;
    background: var(--dark);
    font-size: 17px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.step pre {
    margin-top: 14px;
}

.plain-list,
.check-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

li {
    margin-bottom: 8px;
}

.guide-grid article {
    min-height: 100%;
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 28px;
    align-items: start;
}

.split-panel p {
    margin: 0;
    color: var(--muted);
}

.check-list {
    padding: 18px 18px 18px 38px;
    border-radius: 8px;
    background: #fff7ed;
}

.command-panel pre {
    margin-top: 8px;
}

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

.code-grid h3 {
    margin-bottom: 10px;
}

@media (max-width: 980px) {
    .shell {
        width: min(100% - 32px, 1240px);
        padding-top: 18px;
    }

    .topbar,
    .hero,
    .grid,
    .split-panel,
    .code-grid {
        grid-template-columns: 1fr;
    }

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

    nav {
        justify-content: flex-start;
    }

    .hero,
    .panel {
        padding: 24px;
    }

    h1 {
        font-size: 42px;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 24px, 1240px);
    }

    .hero,
    .panel,
    article {
        padding: 20px;
    }

    h1 {
        font-size: 36px;
    }

    .lead {
        font-size: 17px;
    }

    .actions a {
        width: 100%;
    }

    .stat-row,
    .step {
        grid-template-columns: 1fr;
    }
}
