:root {
    --brand-scarlet: #ff0808;
    --page: #0a0a0a;
    --panel: #141414;
    --panel-border: #2a2a2a;
    --text: #f4f4f4;
    --muted: #a5a5a5;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--text);
}

a:hover,
a:focus-visible {
    color: var(--brand-scarlet);
}

.brand-red {
    color: var(--brand-scarlet);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0;
}

.site-header {
    border-bottom: 1px solid var(--panel-border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.hero,
.platform-grid,
.document {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    padding: 6rem 0 3rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--brand-scarlet);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.1;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    letter-spacing: -0.05em;
}

.hero-copy {
    max-width: 38rem;
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 5rem;
}

.platform-card {
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 0.75rem;
}

.platform-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid var(--brand-scarlet);
    border-radius: 50%;
    color: var(--brand-scarlet);
    font-weight: 700;
}

.platform-card h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.35rem;
}

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

.button {
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--brand-scarlet);
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
}

.button-disabled {
    border-color: var(--panel-border);
    color: #777;
}

.site-footer {
    border-top: 1px solid var(--panel-border);
    color: var(--muted);
    font-size: 0.85rem;
}

.document {
    max-width: 48rem;
    padding: 4rem 0;
}

.document h1 {
    margin: 2rem 0;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.document h2 {
    margin-top: 2.5rem;
}

.document p {
    color: #c8c8c8;
}

.back-link {
    color: var(--brand-scarlet);
    text-decoration: none;
}

@media (max-width: 760px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding-top: 4rem;
    }

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

@media (max-width: 460px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}
