:root {
    --bg-top: #f4f7fb;
    --bg-bottom: #edf2f7;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-soft: #f8fbff;
    --line: #d7e0ea;
    --line-strong: #c9d7e6;
    --text: #122033;
    --muted: #4f647a;
    --accent: #1277b3;
    --accent-dark: #0f4c81;
    --accent-deep: #18468f;
    --shadow: 0 16px 40px rgba(15, 76, 129, 0.16);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

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

.shell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    backdrop-filter: blur(18px);
    background: rgba(244, 247, 251, 0.82);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.main-nav a,
.text-link {
    color: var(--accent-dark);
    font-weight: 600;
}

code {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.95rem;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3.5rem;
}

.hero,
.section-block,
.detail-panel,
.next-step {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.5rem;
    border-radius: 28px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-copy {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    max-width: 10ch;
}

.eyebrow,
.card-tag {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.hero-copy .eyebrow,
.hero-copy .lead,
.hero-copy h1 {
    color: #ffffff;
}

.lead,
.section-heading p,
.info-card p,
.next-step p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-actions {
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
}

.button.primary {
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(24, 70, 143, 0.18);
}

.button.secondary {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: #23364d;
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.stat-card,
.info-card {
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
}

.stat-card.muted {
    background: var(--surface-soft);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label,
.card-meta {
    color: var(--muted);
}

.section-block,
.next-step {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
}

.section-block.compact {
    padding-top: 1.25rem;
}

.section-heading {
    margin-bottom: 1.25rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.info-card h2,
.info-card h3 {
    margin: 0 0 0.75rem;
}

.card-url {
    word-break: break-word;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9rem;
    color: #35506b;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-command {
    align-items: flex-start;
}

.detail-command code {
    display: inline-block;
    max-width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    word-break: break-word;
}

@media (max-width: 800px) {
    .shell-header,
    .main-nav,
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .page-shell {
        width: min(100% - 1rem, 1120px);
    }
}
