/* ============================================
   MIDNIGHT ATELIER — Premium Dating Lander
   Design System: Velvet Obsidian
   ============================================ */

/* --- Design Tokens --- */
:root {
    --bg: #131316;
    --surface: #131316;
    --surface-low: #1b1b1e;
    --surface-container: #1f1f22;
    --surface-high: #2a2a2d;
    --surface-highest: #353438;
    --surface-variant: #353438;
    --surface-lowest: #0e0e11;

    --primary: #cdbdff;
    --primary-container: #5c1fde;
    --primary-fixed: #e8deff;
    --on-primary: #370096;
    --on-primary-fixed: #20005f;

    --secondary: #ffb2be;
    --secondary-container: #d70357;
    --on-secondary: #660025;

    --on-surface: #e4e1e6;
    --on-surface-variant: #cbc3d9;
    --outline: #958da2;
    --outline-variant: #494456;

    --radius-card: 1.25rem;
    --radius-btn: 9999px;
    --radius-md: 0.75rem;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--on-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Bokeh Background --- */
.bokeh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.bokeh-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-container);
    top: -200px;
    left: -100px;
}

.bokeh-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-container);
    bottom: -100px;
    right: -80px;
}

.bokeh-3 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 50%;
    left: 35%;
    opacity: 0.08;
}

/* --- Top Nav --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #f0f0f0;
    text-transform: uppercase;
    font-style: italic;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse-glow 2s infinite;
}

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    border: 1px solid rgba(73, 68, 86, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-btn);
}

/* --- Main Container --- */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 100px;
}

/* --- Steps --- */
.step {
    display: none;
    width: 100%;
    max-width: 580px;
    animation: fadeSlideIn 0.5s ease;
}

.step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* --- Glass Card --- */
.glass-card {
    background: rgba(53, 52, 56, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(73, 68, 86, 0.2);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(79, 0, 208, 0.08);
}

.glass-card--centered {
    text-align: center;
}

.glass-card--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Brand Block (Step 1) --- */
.brand-block {
    margin-bottom: 28px;
}

.brand-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    font-style: italic;
    color: #f0f0f0;
    margin-bottom: 8px;
}

.members-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.members-badge--bottom {
    margin-top: 32px;
    background: var(--surface-low);
    padding: 10px 18px;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(73, 68, 86, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse-glow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--secondary); }
    50% { opacity: 0.6; box-shadow: 0 0 16px var(--secondary); }
}

.members-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
}

/* --- Heading Block --- */
.heading-block {
    margin-bottom: 28px;
}

.heading-block h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.heading-block h1 em {
    font-style: italic;
    color: var(--primary);
}

.heading-block p {
    font-size: 15px;
    color: var(--on-surface-variant);
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
}

.btn {
    display: block;
    width: 100%;
    padding: 18px 24px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary-fixed);
    box-shadow: 0 8px 30px -8px rgba(92, 31, 222, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px -8px rgba(92, 31, 222, 0.7);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 16px -4px rgba(92, 31, 222, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--on-surface-variant);
    border: 1px solid rgba(73, 68, 86, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(73, 68, 86, 0.5);
}

/* --- Trust Row --- */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-high);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}

.trust-icon--secondary .material-symbols-outlined {
    color: var(--secondary);
}

.trust-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.trust-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-surface);
}

.trust-sub {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.trust-sub--live {
    color: var(--secondary);
    font-weight: 700;
}

/* --- Progress Section --- */
.progress-section {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-section--top {
    margin-top: 0;
    margin-bottom: 24px;
    max-width: 100%;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--surface-highest);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    transition: width 0.5s ease;
    border-radius: 2px;
}

.progress-fill--glow {
    box-shadow: 0 0 16px rgba(92, 31, 222, 0.5);
}

.step-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
}

/* --- STEP 2: Header --- */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    gap: 16px;
}

.step2-heading {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 6px;
    color: var(--on-surface);
}

.members-live-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.members-live-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--on-surface-variant);
}

.members-live-text strong {
    color: var(--secondary);
}

/* --- Intent Cards --- */
.intent-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.intent-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(53, 52, 56, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(73, 68, 86, 0.12);
    border-radius: var(--radius-card);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    outline: none;
    font-family: var(--font);
    width: 100%;
}

.intent-card:hover {
    border-color: rgba(205, 189, 255, 0.3);
    background: rgba(53, 52, 56, 0.5);
    transform: translateX(4px);
}

.intent-card:active {
    transform: scale(0.98);
}

.intent-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(73, 68, 86, 0.2);
}

.intent-icon .material-symbols-outlined {
    font-size: 24px;
}

.intent-text {
    flex: 1;
    min-width: 0;
}

.intent-text h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin-bottom: 2px;
}

.intent-text p {
    font-size: 13px;
    color: var(--on-surface-variant);
    font-weight: 500;
}

.intent-arrow {
    color: var(--on-surface-variant);
    font-size: 20px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.intent-card:hover .intent-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Urgency Strip --- */
.urgency-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--surface-low);
    border-radius: var(--radius-card);
    border: 1px solid rgba(73, 68, 86, 0.15);
}

.urgency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.urgency-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.urgency-number--hot {
    color: var(--secondary);
    animation: pulse-glow-text 2s infinite;
}

@keyframes pulse-glow-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.urgency-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--on-surface-variant);
    margin-top: 4px;
}

.urgency-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.08);
}

.urgency-strip--compact {
    margin-bottom: 0;
}

/* --- STEP 3: Loading --- */
.spinner-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

.spinner-icon {
    font-size: 28px;
    color: var(--primary);
}

.loading-heading {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-style: italic;
    margin-bottom: 8px;
}

.loading-sub {
    font-size: 14px;
    color: var(--on-surface-variant);
    font-weight: 500;
    margin-bottom: 28px;
}

.status-list {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(228, 225, 230, 0.7);
    transition: color 0.3s;
}

.status-text.done {
    color: var(--on-surface);
}

.status-text.active-status {
    color: var(--primary);
    animation: pulse-glow-text 1.5s infinite;
}

.status-icon {
    flex-shrink: 0;
}

.status-icon--pending {
    opacity: 0.4;
}

.status-icon--done {
    opacity: 1;
}

.mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(205, 189, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-check {
    color: var(--secondary);
    font-size: 18px;
}

/* Loading CTA (fallback button on step 3) */
.loading-cta {
    margin-top: 24px;
    width: 100%;
    max-width: 300px;
}

/* --- Footer --- */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #444;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #8b5cf6;
}

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */
@media (max-width: 640px) {
    .main-container {
        padding: 70px 14px 80px;
        justify-content: center;
    }

    .glass-card {
        padding: 28px 20px;
    }

    .brand-title {
        font-size: 15px;
    }

    .heading-block h1 {
        font-size: 26px;
    }

    .heading-block p {
        font-size: 14px;
    }

    .btn {
        padding: 16px 20px;
        font-size: 14px;
    }

    .trust-row {
        gap: 16px;
    }

    /* Step 2 Mobile */
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .step2-heading {
        font-size: 24px;
    }

    .members-live-widget {
        display: none;
    }

    .intent-card {
        padding: 16px;
    }

    .intent-icon {
        width: 42px;
        height: 42px;
    }

    .intent-text h3 {
        font-size: 15px;
    }

    .intent-text p {
        font-size: 12px;
    }

    .urgency-strip {
        padding: 14px 16px;
        gap: 14px;
    }

    .urgency-number {
        font-size: 20px;
    }

    .urgency-label {
        font-size: 8px;
    }

    /* Step 3 Mobile */
    .loading-heading {
        font-size: 20px;
    }

    /* Footer mobile */
    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-copy {
        font-size: 8px;
    }
}

/* Desktop enhancements */
@media (min-width: 641px) {
    .main-container {
        min-height: 100vh;
        justify-content: center;
    }

    .heading-block h1 {
        font-size: 38px;
    }

    .step2-heading {
        font-size: 38px;
    }
}

/* Material Symbols baseline */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
