:root {
    color-scheme: dark;
    --brand: #00d459;
    --page: #101112;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(
            ellipse 112% 72% at 100% 0%,
            rgba(44, 41, 72, 0.82) 0%,
            rgba(31, 30, 48, 0.56) 38%,
            rgba(21, 21, 24, 0) 78%
        ),
        linear-gradient(
            180deg,
            #1c1b27 0%,
            #18181e 20%,
            #151518 42%,
            #151518 82%,
            #141417 100%
        );
    background-color: #151518;
}

::selection {
    color: #07130b;
    background: var(--brand);
}

.logo-slot {
    width: min(220px, 48vw);
    height: 50px;
}

.logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.page-title {
    text-shadow: 0 14px 70px rgba(0, 0, 0, 0.35);
    animation: reveal 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accent-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 17px;
}

.accent-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 82px;
    height: 3px;
    border-radius: 999px;
    content: '';
    background: var(--brand);
    box-shadow: 0 0 22px rgba(0, 212, 89, 0.35);
}

.copy-panel {
    animation: reveal 700ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.steps {
    position: relative;
    padding-left: 25px;
}

.steps::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 1px;
    width: 1px;
    content: '';
    background: linear-gradient(180deg, var(--brand), rgba(0, 212, 89, 0.07));
}

.steps p {
    position: relative;
}

.steps p::before {
    position: absolute;
    top: 0.72em;
    left: -29px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--page);
    border-radius: 999px;
    content: '';
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 212, 89, 0.13), 0 0 17px rgba(0, 212, 89, 0.28);
}

.steps strong {
    color: white;
    font-weight: 700;
}

.form-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: clamp(1.35rem, 3.3vw, 2.55rem);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    animation: reveal 700ms 150ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-panel::before {
    position: absolute;
    top: -1px;
    left: 10%;
    width: 40%;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.7;
}

.form-panel.is-error {
    border-color: rgba(255, 94, 94, 0.48);
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.field-group label span {
    color: var(--brand);
}

.field-group input,
.field-group textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    color: #17191a;
    background: #f4f5f6;
    font-family: inherit;
    font-size: 0.91rem;
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.field-group input {
    height: 56px;
    padding: 0 17px;
}

.field-group textarea {
    min-height: 156px;
    resize: vertical;
    padding: 16px 17px;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #8e9298;
    opacity: 1;
}

.field-group input:hover,
.field-group textarea:hover {
    border-color: rgba(0, 212, 89, 0.48);
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 212, 89, 0.12);
    transform: translateY(-1px);
}

.field-group input:user-invalid,
.field-group textarea:user-invalid {
    border-color: #f06f6f;
}

.check-row {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, 0.73);
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1.75;
}

.check-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-check {
    position: relative;
    display: block;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    transition: 170ms ease;
}

.check-row:hover .custom-check {
    border-color: var(--brand);
}

.check-row input:checked + .custom-check {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 18px rgba(0, 212, 89, 0.18);
}

.check-row input:checked + .custom-check::after {
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #06150b;
    border-bottom: 2px solid #06150b;
    content: '';
    transform: rotate(45deg);
}

.check-row input:focus-visible + .custom-check {
    box-shadow: 0 0 0 4px rgba(0, 212, 89, 0.15);
}

.submit-button {
    position: relative;
    display: inline-flex;
    min-width: 245px;
    height: 58px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    color: white;
    background: var(--brand);
    box-shadow: 0 15px 35px rgba(0, 212, 89, 0.2);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    cursor: pointer;
    transition: box-shadow 170ms ease, filter 170ms ease;
}

.button-arrow {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.submit-button::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    transform: skewX(-20deg);
    transition: left 500ms ease;
}

.submit-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 19px 42px rgba(0, 212, 89, 0.28);
}

.submit-button:hover::before {
    left: 150%;
}

.submit-button:focus-visible {
    outline: 4px solid rgba(0, 212, 89, 0.2);
    outline-offset: 4px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.button-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 999px;
    animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-spinner {
    display: block;
}

.submit-button.is-loading .button-arrow {
    display: none;
}

.form-message {
    margin-top: 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.6;
}

.form-message[hidden] {
    display: none;
}

.form-message.is-success {
    border-color: rgba(0, 212, 89, 0.32);
    color: #baffd6;
    background: rgba(0, 212, 89, 0.09);
}

.form-message.is-error {
    border-color: rgba(255, 94, 94, 0.32);
    color: #ffc0c0;
    background: rgba(255, 94, 94, 0.08);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(8, 8, 10, 0.2);
}

.footer-shell {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 460px;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: 28px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    line-height: 1.7;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    line-height: 1.6;
    text-align: right;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color 170ms ease, text-decoration-color 170ms ease;
}

.footer-links a:hover {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 89, 0.55);
}

.footer-links a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(0, 212, 89, 0.18);
    outline-offset: 4px;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

    .form-panel {
        width: 100%;
        max-width: 800px;
        margin-inline: auto;
    }
}

@media (max-width: 639px) {
    .submit-button {
        width: 100%;
    }

    .form-panel {
        border-radius: 20px;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
