* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --navy: #07192b;
    --navy-header: #0b2744;
    --panel: #102b46;
    --panel-deep: #071f37;
    --panel-light: #173d61;
    --border: #355a7b;
    --text: #ffffff;
    --muted: #c3d2e1;
    --muted-light: #c9ddf2;
    --red: #b52d32;
    --gold: #d7a52b;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--navy);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px max(24px, calc((100% - 1100px) / 2));
    background: var(--navy-header);
    border-bottom: 3px solid var(--red);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.brand-shield {
    display: block;
    width: 36px;
    height: auto;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: var(--muted-light);
    font-weight: bold;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: white;
    text-decoration: underline;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    background: var(--red);
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.button-disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.button-disabled small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 64px;
}

.home-hero {
    max-width: 820px;
    padding-bottom: 48px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.official-logo {
    display: block;
    width: min(620px, 100%);
    height: auto;
    margin: 18px 0 28px;
}

.lede {
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}

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

.workflow article,
.validation,
.content-section {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.step-number {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: bold;
}

.development-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border: 1px solid #e5bd55;
    border-radius: 3px;
    background: #3d3217;
    color: #ffe29a;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    transform: rotate(-1deg);
}

.workflow h2,
.validation h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.workflow p,
.validation p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.validation {
    border-left: 4px solid var(--gold);
}

.security {
    margin: 20px 0 0;
    color: #aebfd0;
    font-size: 14px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 44px;
    align-items: center;
    margin-bottom: 34px;
}

.about-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1;
}

.about-lead {
    margin: 0;
    color: var(--muted-light);
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.35;
}

.product-flow {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.product-flow span {
    padding: 0 7px;
    color: var(--gold);
}

.about-logo {
    display: block;
    width: 100%;
    height: auto;
}

.content-section {
    margin-top: 22px;
    padding: 30px;
}

.content-section h2 {
    margin: 0 0 16px;
    font-size: clamp(23px, 3vw, 30px);
}

.content-section h3 {
    margin: 24px 0 10px;
    color: #e5bd55;
    font-size: 18px;
}

.content-section p,
.content-section li {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.content-section p:first-of-type {
    margin-top: 0;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul {
    columns: 2;
    gap: 36px;
    padding-left: 22px;
}

.content-section li {
    break-inside: avoid;
    margin-bottom: 7px;
}

.principle {
    margin: 24px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--gold);
    background: var(--navy-header);
    color: white;
    font-size: clamp(20px, 3vw, 27px);
    font-weight: bold;
    line-height: 1.35;
}

.clyde-expansion {
    margin: 18px 0 24px;
    color: #e5bd55;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: bold;
    line-height: 1.3;
}

blockquote {
    margin: 28px 0;
    padding: 26px 28px;
    border-left: 5px solid var(--red);
    background: var(--panel-deep);
}

blockquote p {
    margin: 0 0 14px;
    color: white !important;
    font-size: clamp(22px, 3vw, 29px) !important;
    font-weight: bold;
    line-height: 1.4 !important;
}

blockquote cite {
    color: #b9c8d8;
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
}

.status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.status-card {
    padding: 18px;
    border: 1px solid #416684;
    border-radius: 8px;
    background: var(--panel-light);
}

.status-card strong {
    display: block;
    margin-bottom: 9px;
}

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

.sources {
    margin-top: 30px;
    padding: 26px 30px;
    border-top: 1px solid var(--border);
}

.sources li {
    margin-bottom: 12px;
    color: #b9c8d8;
    line-height: 1.5;
}

.sources a {
    color: var(--muted-light);
}

.origins {
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}

.origins summary {
    padding: 22px 28px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.origins summary::marker {
    color: var(--gold);
}

.origins-content {
    padding: 0 30px 28px;
    border-top: 1px solid var(--border);
}

.origins-content h2 {
    margin: 26px 0 14px;
    font-size: 20px;
}

.origins-content p,
.origins-content li {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.origins-content li {
    margin-bottom: 12px;
}

.origins-content a {
    color: var(--muted-light);
}

.content-section a {
    color: var(--muted-light);
}

.site-footer {
    padding: 28px max(24px, calc((100% - 1100px) / 2));
    border-top: 1px solid var(--border);
    background: var(--navy-header);
    color: #b9c8d8;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: white;
}

.site-footer a {
    color: var(--muted-light);
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        padding: 18px 20px;
    }

    .public-nav {
        gap: 12px;
    }

    .workflow,
    .about-hero,
    .status-row {
        grid-template-columns: 1fr;
    }

    .about-logo {
        width: min(430px, 100%);
    }

    .content-section {
        padding: 24px 20px;
    }

    .origins summary {
        padding: 20px;
    }

    .origins-content {
        padding: 0 20px 22px;
    }

    .content-section ul {
        columns: 1;
    }

    .lede {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .site-header {
        flex-direction: column;
    }
}
