:root {
    --cream: #f5f7fa;
    --white: #ffffff;
    --forest: #334155;
    --forest-dark: #1e293b;
    --green: #0ea5e9;
    --green-light: #e0f2fe;
    --gold: #38bdf8;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #dbe3ec;
    --danger: #ef4444;
    --shadow: 0 24px 60px rgba(51, 65, 85, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

main {
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

.site-header {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--forest);
    color: var(--gold);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

nav a:hover {
    color: var(--forest);
}

nav .nav-button {
    padding: 10px 16px;
    border-radius: 7px;
    background: var(--forest);
    color: var(--white);
}

.hero {
    width: min(1180px, calc(100% - 40px));
    min-height: 590px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
    padding: 68px 0 100px;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.free-badge {
    display: table;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #e0f2fe;
    color: var(--forest);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

h1 {
    max-width: 720px;
    margin: 16px 0 22px;
    font-size: clamp(44px, 6vw, 72px);
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.hero-content > p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    padding: 12px 20px;
    border: 1px solid var(--forest);
    border-radius: 7px;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    background: var(--forest);
    color: var(--white);
}

.button-secondary {
    color: var(--green);
    border-color: var(--green);
}

.btn-brand {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.btn-brand:hover,
.btn-brand:focus {
    border-color: #0284c7;
    background: #0284c7;
    color: var(--white);
}

.btn-outline-brand {
    border-color: var(--green);
    background: transparent;
    color: var(--green);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    border-color: var(--green);
    background: var(--green-light);
    color: #075985;
}

.project-section,
.access-section {
    padding: 100px max(20px, calc((100% - 1180px) / 2));
}

.project-section {
    order: 3;
    background: var(--white);
}

.section-intro {
    max-width: 670px;
    margin-bottom: 48px;
}

.section-intro h2 {
    margin: 9px 0 12px;
    font-size: clamp(36px, 5vw, 50px);
    line-height: 1.1;
}

.section-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.feature {
    padding: 30px 28px 20px 0;
}

.feature + .feature {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.feature-number {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.feature h3 {
    margin: 35px 0 8px;
    font-size: 25px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.access-section {
    order: 2;
    background: var(--forest-dark);
}

.section-intro.light h2 {
    color: var(--white);
}

.section-intro.light p {
    color: #cbd5e1;
}

.forms-grid {
    max-width: 820px;
}

.form-card {
    display: grid;
    gap: 9px;
    padding: 32px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.form-heading {
    margin-bottom: 14px;
}

.form-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.required-mark {
    color: #dc2626;
    font-weight: 800;
}

.form-heading .required-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.form-heading span {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-heading h3 {
    margin: 3px 0 0;
    font-size: 28px;
}

.form-card label {
    font-size: 13px;
    font-weight: 750;
}

input {
    width: 100%;
    min-height: 44px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    color: var(--ink);
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(14, 165, 233, 0.16);
    border-color: var(--green);
}

.was-validated .form-control.optional-control:placeholder-shown {
    border-color: #cbd5e1;
    padding-right: 12px;
    background-image: none;
}

.password-field .form-control {
    margin-bottom: 0;
}

.was-validated .password-field:has(.form-control:invalid) + .invalid-feedback {
    display: block;
}

.toggle-password {
    min-width: 82px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.toggle-password:hover,
.toggle-password:focus {
    border-color: var(--green);
    background: var(--green-light);
    color: #075985;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.phone-row {
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 5px 0 12px;
    font-size: 12px;
}

.form-options a {
    color: var(--green);
}

.hero-login {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.register-prompt {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.register-prompt a {
    color: var(--green);
    font-weight: 750;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: 16px;
    min-height: auto;
    height: 16px;
    margin: 0;
}

.checkbox span {
    font-weight: 500;
}

.terms {
    margin: 5px 0 12px;
    color: var(--muted);
}

button {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: var(--green);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

button:hover {
    background: var(--forest);
}

footer {
    padding: 38px 20px;
    background: #111827;
    color: #94a3b8;
    text-align: center;
}

.footer-brand {
    color: var(--white);
}

.footer-brand .brand-logo {
    border: 2px solid rgba(255, 255, 255, 0.16);
}

footer p {
    margin: 14px 0 6px;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 540px;
    }

    .hero-login {
        max-width: 620px;
        justify-self: start;
    }

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

    .feature:nth-child(3) {
        border-left: 0;
    }

    .forms-grid {
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding: 14px 0;
    }

    nav a:not(.nav-button) {
        display: none;
    }

    .hero {
        padding-top: 50px;
    }

    .form-card {
        padding: 24px;
    }

    .feature-grid,
    .field-row {
        grid-template-columns: 1fr;
    }

    .feature,
    .feature + .feature {
        padding: 25px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature h3 {
        margin-top: 15px;
    }

    .project-section,
    .access-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

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