/* ═══════════════════════════════════════════════════════
   DEMO PAGE — Base + Cinematic Onboarding + Questionnaire
   Aligned with Homepage Dark Theme & Lime Accent
   ═══════════════════════════════════════════════════════ */

/* ─── BASE ─────────────────────────────────────────── */
.demo-experience {
    min-height: 100vh;
    background: transparent;
    position: relative;
    color: var(--ink);
}

/* ─── OVERLAYS ─────────────────────────────────────── */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: #000000 !important; /* Solid black background */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ─── CINEMATIC ONBOARDING ───────────────────────────── */
.demo-overlay-cinematic {
    background: #000000 !important; /* Solid black background */
    color: #e5e7eb;
}

.cinematic-onboarding__glow {
    display: none;
    /* Replaced by atmos-bg */
}

/* Atmos Background Integration */
.demo-overlay-cinematic .atmos-bg {
    z-index: 1;
}

.demo-overlay-cinematic .atmos-sky {
    background: #000000 !important; /* Solid black background */
}

.demo-overlay-cinematic .atmos-orb {
    display: none !important; /* Hide transparent orbs */
}

.cinematic-onboarding__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    padding: 120px 40px 20px;
    /* Pushed down to clear the 76px navbar and add premium spacing */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* changed from center to avoid centering issues pushing content under fixed navbar */
}

.cinematic-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.typewriter-text {
    font-family: var(--font-primary);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    min-height: 60px;
    color: var(--ink);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

#intro-text-1 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--pink);
    text-shadow: 0 0 12px rgba(255, 61, 138, 0.5);
    margin-bottom: 24px;
    min-height: auto;
}

#intro-text-2 {
    font-family: 'Space Grotesk', var(--font-primary);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.cinematic-question-prefix {
    display: none;
}

/* ─── CINEMATIC QUESTION TITLE ─── */
.cinematic-question {
    color: var(--ink);
    margin-bottom: 16px;
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    position: relative;
    padding-bottom: 14px;
}

/* Pink underline accent below the question */
.cinematic-question::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--pink);
    box-shadow: 0 0 10px rgba(255, 61, 138, 0.6);
}

/* Gradient accent for the last word of each question heading */
.cq-accent {
    background: linear-gradient(135deg, var(--ink) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 400;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}


/* ─── QUESTIONNAIRE OPTION BUTTONS — Premium Boxy Theme ─── */
.cinematic-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 280px));
    gap: 8px 10px;
    justify-content: center;
    align-items: stretch;
    opacity: 0;
    margin-top: 12px;
    pointer-events: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cinematic-btn {
    opacity: 0;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--ink-soft);
    padding: 10px 16px;
    border-radius: 12px !important;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
    line-height: 1.4;
    min-height: 44px;
}

/* Tick mark icon on the left */
.cinematic-btn::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 61, 138, 0.3);
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
    background: transparent;
    position: static;
    opacity: 1;
}

/* Pink left-border glow strip */
.cinematic-btn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pink);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cinematic-btn:hover {
    background: rgba(255, 61, 138, 0.07) !important;
    border-color: rgba(255, 61, 138, 0.5) !important;
    box-shadow:
        0 0 20px rgba(255, 61, 138, 0.1),
        inset 0 0 20px rgba(255, 61, 138, 0.04);
    transform: translateX(3px);
    color: var(--ink);
}

.cinematic-btn:hover::before {
    border-color: var(--pink);
    background: rgba(255, 61, 138, 0.15);
    opacity: 1;
}

.cinematic-btn:hover::after {
    opacity: 1;
}

.cinematic-btn.selected {
    background: rgba(255, 61, 138, 0.12) !important;
    border-color: var(--pink) !important;
    border-left-width: 2px !important;
    box-shadow:
        0 0 28px rgba(255, 61, 138, 0.2),
        inset 0 0 16px rgba(255, 61, 138, 0.06) !important;
    color: var(--ink) !important;
    font-weight: 600 !important;
    transform: none;
}

/* The checkbox square becomes a filled pink square when selected */
.cinematic-btn.selected::before {
    background: var(--pink) !important;
    border-color: var(--pink) !important;
    box-shadow: 0 0 8px rgba(255, 61, 138, 0.5);
    opacity: 1;
}

.cinematic-btn.selected::after {
    opacity: 1;
}

/* ─── Step Indicator — Lime Accent ─── */
.cinematic-step-indicator {
    color: rgba(255, 61, 138, 0.5);
}

/* Processing State */
.processing-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    display: block;
}

.processing-main-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 61, 138, 0.1);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: cinematicSpin 1s linear infinite;
    margin: 0 auto 40px;
}

@keyframes cinematicSpin {
    100% {
        transform: rotate(360deg);
    }
}

.processing-logs {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--ink-soft);
    text-align: left;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.processing-log-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(10px);
    animation: cinematicLogFadeIn 0.4s ease forwards;
}

.processing-log-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 61, 138, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pink);
}

@keyframes cinematicLogFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ready-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    color: var(--ink);
    text-shadow: 0 0 32px rgba(255, 61, 138, 0.3);
    font-family: var(--font-primary);
    letter-spacing: -0.02em;
}

/* ─── NAVBAR OVERRIDES REMOVED — HANDLED BY LAYOUT.CSS ─── */

/* Hamburger */
.deca-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.deca-nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── RESPONSIVE ───────────────────────────────────── */

/* Tablet */
@media (max-width: 960px) {
    .cinematic-options {
        grid-template-columns: repeat(2, minmax(180px, 280px));
        gap: 8px 10px;
        max-width: 620px;
    }

    .cinematic-btn {
        padding: 14px 16px;
        font-size: 13px;
        min-height: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .domain-selector {
        padding: 100px 20px 40px;
    }

    .domain-selector__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .domain-selector__subtitle {
        margin-bottom: 36px;
    }

    .personalization {
        padding: 100px 20px 40px;
    }

    .personalization__chips {
        gap: 8px;
    }

    .personalization__chip {
        padding: 12px 20px;
        font-size: 14px;
    }

    .deca-nav-hamburger {
        display: flex;
    }

    .deca-nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(16px);
        padding: 20px;
        gap: 4px;
    }

    .deca-nav-links.open {
        display: flex;
    }

    .deca-cta-btn {
        display: none;
    }

    .cinematic-onboarding__inner {
        padding: 120px 20px 40px;
        /* Pushed down on mobile as well to clear the navbar */
    }

    .cinematic-options {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 400px;
        gap: 8px;
    }

    .cinematic-options .cinematic-btn:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .cinematic-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px !important;
        text-align: left;
    }

    .typewriter-text {
        font-size: clamp(22px, 5vw, 32px);
    }

    .cinematic-question {
        margin-bottom: 36px;
    }

    .processing-title {
        font-size: 20px;
        flex-direction: column;
    }

    .ready-title {
        font-size: clamp(26px, 5vw, 36px);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cinematic-options {
        max-width: 100%;
    }

    .cinematic-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .typewriter-text {
        font-size: clamp(20px, 5vw, 28px);
        min-height: 40px;
    }
}
