/* ─────────────────────────────────────
    TOKENS
───────────────────────────────────── */
:root {
    --bg:           #080808;
    --bg-2:         #0f0f0f;
    --bg-3:         #141414;
    --bg-input:     #111111;
    --border:       rgba(255,255,255,0.07);
    --border-mid:   rgba(255,255,255,0.13);
    --border-focus: rgba(255,255,255,0.30);
    --text:         #ebebeb;
    --text-mid:     rgba(235,235,235,0.6);
    --text-dim:     rgba(235,235,235,0.32);
    --green:        #7dda7d;
    --green-dim:    rgba(125,218,125,0.15);
    --red:          #ff6b6b;
    --red-dim:      rgba(255,107,107,0.12);
    --amber:        #febc2e;
    --mono:         'Geist Mono', monospace;
    --sans:         'Geist', sans-serif;
    --display:      'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow: hidden;
}

/* ─────────────────────────────────────
    BACKGROUND
───────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.048) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    width: 720px; height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125,218,125,0.025) 0%, transparent 65%);
    bottom: -240px; right: -160px;
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 20s ease-in-out infinite alternate;
}

@keyframes orbDrift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(-70px, -50px) scale(1.09); }
}

/* ─────────────────────────────────────
    SPLIT LAYOUT
───────────────────────────────────── */
.split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 460px;
    height: 100vh;
}

/* ─────────────────────────────────────
    LEFT PANEL
───────────────────────────────────── */
.panel-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 48px;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.panel-left-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
}

.wordmark span { color: var(--text-dim); }

.nav-pill-links { display: flex; gap: 8px; }

.nav-pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.2s, color 0.2s;
}

.nav-pill:hover { border-color: var(--border-mid); color: var(--text); }

/* Display block */
.display-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.display-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease both;
}

.display-headline {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(68px, 8.5vw, 118px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    animation: fadeUp 0.6s ease 0.07s both;
}

.display-headline .dim {
    display: block;
    color: var(--text-dim);
    font-weight: 300;
    font-style: italic;
}

.display-headline .bright { display: block; }

/* waitlist counter strip */
.counter-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeUp 0.6s ease 0.14s both;
}

.counter-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.counter-num {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.counter-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.counter-divider {
    width: 1px;
    height: 36px;
    background: var(--border-mid);
}

/* info callout */
.info-callout {
    margin-top: 40px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(125,218,125,0.35);
    border-radius: 8px;
    padding: 16px 18px;
    max-width: 420px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.info-callout-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 6px;
}

.info-callout p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

.panel-left-footer {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    animation: fadeUp 0.6s ease 0.24s both;
}

/* ─────────────────────────────────────
    RIGHT PANEL
───────────────────────────────────── */
.panel-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    background: var(--bg-2);
}

.card {
    width: 100%;
    max-width: 360px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.card-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.card-heading {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    line-height: 1.15;
}

.card-sub {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── FORM ── */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.15s;
}

.field:focus-within label { color: var(--text-mid); }

.input-wrap { position: relative; }

.field input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.field input[type="password"] { padding-right: 42px; }

.field input::placeholder {
    color: var(--text-dim);
    font-size: 13px;
}

.field input:focus {
    border-color: var(--border-focus);
    background: #161616;
}

.field input.has-error  { border-color: rgba(255,107,107,0.45); }
.field input.has-success { border-color: rgba(125,218,125,0.35); }

/* password toggle */
.pw-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.pw-toggle:hover { color: var(--text-mid); }

/* field error */
.field-error {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--red);
    min-height: 14px;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s, transform 0.2s;
}

.field-error.visible { opacity: 1; transform: translateY(0); }

/* ── PASSWORD STRENGTH ── */
.strength-wrap {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--border-mid);
    transition: background 0.3s;
}

.strength-bar.weak   { background: var(--red); }
.strength-bar.fair   { background: var(--amber); }
.strength-bar.strong { background: var(--green); }

.strength-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    transition: color 0.2s;
    min-height: 14px;
}

.strength-label.weak   { color: var(--red); }
.strength-label.fair   { color: var(--amber); }
.strength-label.strong { color: var(--green); }

/* ── CREDENTIALS INFO BOX ── */
.credentials-info {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.credentials-info svg { flex-shrink: 0; margin-top: 1px; }

.credentials-info p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.55;
}

.credentials-info p strong { color: var(--text-mid); font-weight: 500; }

/* ── SUBMIT BUTTON ── */
.submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: var(--text);
    border: none;
    border-radius: 10px;
    color: #080808;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── SUCCESS STATE ── */
.success-state {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    animation: fadeUp 0.5s ease both;
}

.success-state.visible { display: flex; }

.success-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--green-dim);
    border: 1px solid rgba(125,218,125,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.success-heading {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.success-body {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
}

.success-body strong { color: var(--text); font-weight: 500; }

.success-meta {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
}

.success-meta-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.success-meta-email {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--green);
    letter-spacing: 0.02em;
}

.success-back {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.success-back:hover { color: var(--text-mid); border-color: var(--border-mid); }

/* ── FAILURE STATE ── */
.failure-state {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    animation: fadeUp 0.5s ease both;
}

.failure-state.visible { display: flex; }

.failure-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--red-dim);
    border: 1px solid rgba(255,107,107,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.failure-heading {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.failure-body {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
}

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

.retry-btn {
    padding: 10px 18px;
    background: var(--text);
    border: none;
    border-radius: 8px;
    color: #080808;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.retry-btn:hover { opacity: 0.85; }

.retry-back {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.retry-back:hover { color: var(--text-mid); border-color: var(--border-mid); }

/* ─────────────────────────────────────
    MOBILE
───────────────────────────────────── */
@media (max-width: 820px) {
    body { overflow: auto; }

    .split {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        min-height: 100vh;
    }

    .panel-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 28px 28px 36px;
    }

    .display-headline { font-size: clamp(56px, 15vw, 88px); }
    .info-callout { max-width: 100%; }
    .panel-left-footer { display: none; }
    .panel-right { padding: 40px 28px 60px; }
}

/* ─────────────────────────────────────
    ANIMATIONS
───────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(8,8,8,0.3);
    border-top-color: #080808;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}