*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #1a56db;
    --navy: #0f2044;
    --muted: #64748b;
    --border: rgba(15, 32, 68, 0.12);
    --surface: #f8faff;
    --white: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--navy);
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── LEFT PANEL ── */
.left {
    background: linear-gradient(160deg, #0f2044 0%, #1a3a6b 60%, #1d4ed8 100%);
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    top: -120px;
    right: -150px;
    pointer-events: none;
}

.left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: 80px;
    left: -80px;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    width: fit-content;
    margin-bottom: 28px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 3.8vw, 50px);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-title .accent {
    color: rgba(147, 197, 253, 1);
    font-weight: 300;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 360px;
    margin-bottom: 44px;
    font-weight: 300;
}

.modules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.module-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 7px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.module-chip svg {
    opacity: 0.65;
    flex-shrink: 0;
}

.left-footer {
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.2px;
}

/* ── RIGHT PANEL ── */
.right {
    background: var(--surface);
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-top {
    display: flex;
    justify-content: flex-end;
}

.waitlist-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 10px;
    margin-bottom: 44px;
}

.cd-block {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 10px 10px;
    text-align: center;
}

.cd-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.cd-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 500;
}

.form-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.form-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 32px;
    font-weight: 300;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: flex;
    align-items: center;
}

.input-icon svg {
    width: 16px;
    height: 16px;
}

input[type=text],
input[type=email] {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.18s;
    -webkit-appearance: none;
}

input[type=text]::placeholder,
input[type=email]::placeholder {
    color: #94a3b8;
}

input[type=text]:focus,
input[type=email]:focus {
    border-color: var(--blue);
}

.submit-btn {
    width: 100%;
    height: 50px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: background 0.18s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.submit-btn:hover {
    background: #1746c7;
}

.submit-btn:active {
    transform: scale(0.99);
}

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

.submit-btn svg {
    width: 16px;
    height: 16px;
}

.privacy-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* Success state */
.success-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.success-box.show {
    display: flex;
}

.success-icon {
    width: 24px;
    height: 24px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.success-icon svg {
    width: 14px;
    height: 14px;
}

.success-text p:first-child {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
    margin-bottom: 2px;
}

.success-text p:last-child {
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

/* Error state */
.error-box {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.error-box.show {
    display: flex;
}

.error-icon {
    width: 24px;
    height: 24px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.error-icon svg {
    width: 14px;
    height: 14px;
}

.error-text p:first-child {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 2px;
}

.error-text p:last-child {
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
}

.right-footer {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: #cbd5e1;
    letter-spacing: 0.3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .page {
        grid-template-columns: 1fr;
    }

    .left {
        padding: 36px 28px 40px;
        min-height: auto;
    }

    .hero-content {
        padding: 40px 0 0;
    }

    .right {
        padding: 36px 28px 40px;
    }

    .form-area {
        max-width: 100%;
    }

    .right-top {
        display: none;
    }
}