:root {
    --bg-silver: #e3e3e3;
    --text-primary: #111111;
    --text-placeholder: #8b8b8b;
    --line: #6f6f6f;
    --message-bg: #cdcdcd;
    --page-max: 860px;
    --fs-label: clamp(0.92rem, 1.08vw, 1rem);
    --fs-input: clamp(0.88rem, 1.02vw, 0.95rem);
    --fs-textarea: clamp(0.88rem, 1.02vw, 0.95rem);
    --fs-submit: clamp(1rem, 1.55vw, 1.2rem);
}

* {
    box-sizing: border-box;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg-silver);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.close-btn {
    position: fixed;
    top: clamp(12px, 2.2vw, 22px);
    right: clamp(12px, 2.6vw, 26px);
    text-decoration: none;
    color: var(--text-primary);
    width: clamp(24px, 3.2vw, 34px);
    height: clamp(24px, 3.2vw, 34px);
    z-index: 20;
}

.close-icon {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(16px, 2.3vw, 24px);
    height: 2px;
    background: var(--text-primary);
    transform-origin: center;
}

.close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.page-wrap {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: clamp(56px, 7vw, 94px) clamp(16px, 4vw, 54px) clamp(32px, 4vw, 48px);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUpIn 0.4s ease-out forwards;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.early-access-form {
    width: 100%;
}

.early-access-form.is-success {
    min-height: clamp(320px, 50vh, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.early-access-form.is-success .row,
.early-access-form.is-success .submit-btn {
    display: none;
}

.row {
    margin-bottom: clamp(18px, 2.6vw, 30px);
}

.row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3.6vw, 38px);
}

.field label {
    display: block;
    margin-bottom: clamp(10px, 2vw, 18px);
    font-size: var(--fs-label);
    line-height: 1.1;
    font-weight: 500;
    font-family: inherit;
}

.field input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--line);
    background: transparent;
    color: var(--text-primary);
    font-size: var(--fs-input);
    line-height: 1.2;
    padding: 0 0 clamp(8px, 1.2vw, 12px);
    outline: none;
    font-family: inherit;
}

.field textarea {
    width: 100%;
    border: 0;
    border-radius: clamp(10px, 1.6vw, 16px);
    resize: vertical;
    min-height: clamp(160px, 30vh, 220px);
    background: var(--message-bg);
    color: var(--text-primary);
    font-size: var(--fs-textarea);
    line-height: 1.2;
    padding: clamp(12px, 1.8vw, 16px) clamp(14px, 2.2vw, 20px);
    outline: none;
    font-family: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-placeholder);
}

.submit-btn {
    width: 100%;
    border: 0;
    border-radius: clamp(10px, 1.4vw, 14px);
    background: #000;
    color: #fff;
    font-size: var(--fs-submit);
    font-weight: 500;
    line-height: 1;
    padding: clamp(14px, 3vw, 22px) 20px;
    cursor: pointer;
    margin-top: clamp(4px, 1.2vw, 10px);
    font-family: inherit;
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.submit-success {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    display: none;
    font-family: inherit;
}

.submit-success.is-visible {
    display: block;
}

.submit-error {
    margin: 10px 0 0;
    display: none;
    text-align: center;
    color: #b42318;
    font-size: var(--fs-input);
    font-family: inherit;
}

.submit-error.is-visible {
    display: block;
}

@media (max-width: 900px) {
    .row.two-col {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 680px) {

    .field input,
    .field textarea,
    .submit-btn {
        font-size: 16px;
    }
}