:root {
    --accent: #0f766e;
    --accent-strong: #111827;
    --border: #d9dde5;
    --ink: #111827;
    --muted: #5c6574;
    --soft: #f8fafc;
    --surface: #ffffff;
    --warm: #9a3412;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--soft);
    color: var(--ink);
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 46px;
    line-height: 1.08;
    margin-bottom: 18px;
    max-width: 760px;
}

h2 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 0;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    line-height: 1.65;
}

.site-header,
.site-footer {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 22px 28px;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--accent-strong);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.site-nav,
.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a,
.text-link {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--ink);
}

.site-nav .nav-button,
.button {
    align-items: center;
    background: var(--accent-strong);
    border: 1px solid var(--accent-strong);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
}

.button-secondary {
    background: var(--surface);
    color: var(--accent-strong);
}

.hero-section {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
    margin: 0 auto;
    max-width: 1180px;
    min-height: calc(100vh - 172px);
    padding: 30px 28px 54px;
}

.lead {
    color: var(--muted);
    font-size: 19px;
    margin-bottom: 26px;
    max-width: 690px;
}

.eyebrow {
    color: var(--warm);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.inline-visual {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
    display: block;
    height: auto;
    margin-top: 32px;
    max-width: 440px;
    width: min(100%, 440px);
}

.content-band,
.details-band,
.document-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 54px 28px;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

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

.feature-card,
.document {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px;
}

.feature-card p,
.document p {
    color: var(--muted);
    margin-bottom: 0;
}

.details-band {
    border-top: 1px solid var(--border);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
}

.details-band p {
    color: var(--muted);
    margin-bottom: 0;
}

.details-list {
    display: grid;
    gap: 12px;
}

.details-list p {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 14px 16px;
}

.signin-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 22px;
}

.signin-form {
    align-self: center;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
}

.signin-form h2 {
    font-size: 26px;
    margin-bottom: 2px;
}

.signin-form label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
}

.signin-form input {
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
}

.signin-form input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(15, 118, 110, 0.16);
}

.signin-form button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.form-status {
    color: #b91c1c;
    font-size: 14px;
    font-weight: 800;
    min-height: 23px;
}

.document {
    max-width: 780px;
}

.document h1 {
    font-size: 40px;
}

.document h2 {
    font-size: 22px;
    margin: 28px 0 10px;
}

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

@media (max-width: 860px) {
    h1 {
        font-size: 36px;
    }

    .hero-section,
    .feature-grid,
    .details-band {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 26px;
    }

    .details-band {
        align-items: start;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 18px 16px;
    }

    .site-nav {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .site-nav a {
        min-height: 38px;
    }

    .hero-section,
    .content-band,
    .details-band,
    .document-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .hero-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }
}
