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

:root {
    --yellow: #fffc00;
    --yellow-soft: #ffe600;
    --black: #0a0a0a;
    --gray: #2a2a2a;
}

html, body {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--black);
    color: var(--yellow);
    -webkit-font-smoothing: antialiased;
}

/* Subtle animated background dots */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 252, 0, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    animation: drift 60s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 280px 280px; }
}

.marquee {
    background: var(--yellow);
    color: var(--black);
    overflow: hidden;
    padding: 14px 0;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 3px solid var(--black);
    box-shadow: 0 4px 24px rgba(255, 252, 0, 0.18);
    position: relative;
    z-index: 30;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: marquee-scroll 24s linear infinite;
    will-change: transform;
}

.marquee-track .dot {
    color: rgba(10, 10, 10, 0.55);
    font-weight: 400;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    position: relative;
}

.title {
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--yellow);
    text-transform: uppercase;
}

.title .rotator {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 0 18px;
    border-radius: 14px;
    transform: rotate(-2deg);
    margin-left: 6px;
    overflow: hidden;
    height: 1em;
    vertical-align: top;
    line-height: 1;
}

.rotator-track {
    display: flex;
    flex-direction: column;
    animation: rotate-words 9s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.rotator-track .word {
    display: block;
    height: 1em;
    line-height: 1;
}

@keyframes rotate-words {
    0%, 20%   { transform: translateY(0); }
    25%, 45%  { transform: translateY(-1em); }
    50%, 70%  { transform: translateY(-2em); }
    75%, 95%  { transform: translateY(-3em); }
    100%      { transform: translateY(-4em); }
}

@media (prefers-reduced-motion: reduce) {
    .rotator-track {
        animation: none;
    }
}

.ghost-logo {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    vertical-align: -0.18em;
    margin: 0 0.08em;
    filter: drop-shadow(0 6px 16px rgba(255, 252, 0, 0.35));
}

.tagline {
    margin-top: 16px;
    margin-bottom: 48px;
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(255, 252, 0, 0.75);
    max-width: 520px;
}

/* The central bubble */
.bubble {
    width: min(572px, 92vw);
    height: min(572px, 92vw);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, var(--yellow) 0%, var(--yellow-soft) 60%, #d8c700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 0 8px rgba(255, 252, 0, 0.08),
        0 0 0 24px rgba(255, 252, 0, 0.04),
        0 30px 80px rgba(255, 252, 0, 0.25),
        inset -20px -30px 60px rgba(0, 0, 0, 0.15),
        inset 30px 30px 50px rgba(255, 255, 255, 0.4);
    animation: float 3.4s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.bubble.loading {
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-32px); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 8px rgba(255, 252, 0, 0.12),
            0 0 0 24px rgba(255, 252, 0, 0.06),
            0 30px 80px rgba(255, 252, 0, 0.35),
            inset -20px -30px 60px rgba(0, 0, 0, 0.15),
            inset 30px 30px 50px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 0 14px rgba(255, 252, 0, 0.18),
            0 0 0 36px rgba(255, 252, 0, 0.08),
            0 40px 100px rgba(255, 252, 0, 0.45),
            inset -20px -30px 60px rgba(0, 0, 0, 0.15),
            inset 30px 30px 50px rgba(255, 255, 255, 0.4);
    }
}

.bubble::before {
    content: "";
    position: absolute;
    top: 14%;
    left: 22%;
    width: 28%;
    height: 16%;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.bubble-stack {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
}

.bubble-inner,
.loader {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.username-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--black);
    border-radius: 999px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.5);
    color: var(--black);
    text-align: center;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}

.username-input::placeholder {
    color: rgba(10, 10, 10, 0.45);
    font-weight: 500;
}

.username-input:focus {
    outline: none;
    background: var(--black);
    color: var(--yellow);
    transform: scale(1.02);
}

.username-input:focus::placeholder {
    color: rgba(255, 252, 0, 0.5);
}

.meo-btn {
    background: var(--black);
    color: var(--yellow);
    border: none;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.meo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.meo-btn:active {
    transform: translateY(0);
}

.meo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-heading {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(10, 10, 10, 0.2);
    color: var(--black);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    max-width: 280px;
    letter-spacing: -0.005em;
}

.contact-heading .hl {
    color: #e6112a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--black);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.15s, transform 0.15s;
}

.contact-link:hover {
    background: rgba(10, 10, 10, 0.12);
    transform: translateY(-1px);
}

.contact-link svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Loader */
.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(10, 10, 10, 0.15);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.checkmark {
    width: 64px;
    height: 64px;
    background: #22e07a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(34, 224, 122, 0.25), 0 8px 24px rgba(34, 224, 122, 0.45);
    animation: checkmark-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmark-pop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

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

.loader-text {
    color: var(--black);
    font-weight: 700;
    font-size: 16px;
}

.progress {
    width: 100%;
    height: 8px;
    background: rgba(10, 10, 10, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--black);
    border-radius: 999px;
    transition: width 0.2s linear;
}

.loader-percent {
    color: var(--black);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.footnote {
    margin-top: 56px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 252, 0, 0.75);
}

.badge {
    position: absolute;
    top: -8%;
    right: -28%;
    width: 210px;
    background: var(--black);
    border: 3px solid var(--yellow);
    border-radius: 18px;
    padding: 14px 16px 16px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(255, 252, 0, 0.08);
    transform: rotate(8deg);
    z-index: 10;
    pointer-events: none;
    animation: badge-wobble 5s ease-in-out infinite;
}

.badge-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 8px;
    filter: drop-shadow(0 0 6px rgba(230, 17, 42, 0.4));
}

.badge-text {
    color: #ff2c3a;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 44, 58, 0.35);
}

.badge-text span {
    font-weight: 800;
    color: #22e07a;
    font-size: 12px;
    display: block;
    margin-top: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(34, 224, 122, 0.35);
}

@keyframes badge-wobble {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50%      { transform: rotate(6deg) translateY(-6px); }
}

@media (max-width: 880px) {
    .badge {
        position: static;
        width: 220px;
        margin: 24px auto 0;
        transform: rotate(-2deg);
        animation: none;
    }
}

.hidden {
    display: none !important;
}

/* FAQ — drawer */
.faq-fab {
    display: block;
    position: fixed;
    top: 50%;
    right: 0;
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 42px 33px;
    border-radius: 22px 0 0 22px;
    font-weight: 900;
    font-size: 33px;
    letter-spacing: 0.12em;
    cursor: pointer;
    font-family: inherit;
    z-index: 40;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.6), 0 0 0 5px rgba(255, 252, 0, 0.14);
    transform: translateY(-50%) translateX(0);
    animation: faq-fab-wiggle 1.8s ease-in-out infinite;
}

.faq-fab:hover {
    animation: none;
    transform: translateY(-50%) translateX(-14px);
    transition: transform 0.18s ease;
}

@keyframes faq-fab-wiggle {
    0%, 50%, 100% { transform: translateY(-50%) translateX(0) scale(1); }
    62% { transform: translateY(-50%) translateX(-26px) scale(1.14); }
    72% { transform: translateY(-50%) translateX(-6px) scale(1.03); }
    82% { transform: translateY(-50%) translateX(-18px) scale(1.09); }
    92% { transform: translateY(-50%) translateX(-2px) scale(1.01); }
}

.faq-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s;
}

body.faq-open .faq-backdrop {
    display: block;
    opacity: 1;
}

.faq {
    position: fixed;
    top: 0;
    right: 0;
    width: min(972px, 96vw);
    height: 100vh;
    overflow-y: auto;
    background: #0d0d0d;
    border-top: none;
    border-left: 3px solid var(--yellow);
    padding: 80px 56px 80px;
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.7);
}

body.faq-open .faq {
    transform: translateX(0);
}

.faq-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--yellow);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
    font-family: inherit;
    font-weight: 300;
    transition: transform 0.15s;
}

.faq-close:hover {
    transform: scale(1.15) rotate(90deg);
}

.faq-title {
    text-align: left;
    margin-top: 12px;
    font-size: clamp(48px, 6vw, 72px);
}

.faq-sub {
    text-align: left;
    margin-bottom: 36px;
    font-size: 18px;
}

.faq-item {
    padding: 22px 28px;
    border-radius: 16px;
}

.faq-item summary {
    font-size: 20px;
    padding-right: 44px;
}

.faq-item summary::after {
    font-size: 32px;
}

.faq-item p {
    font-size: 16px;
    margin-top: 16px;
}

@media (max-width: 720px) {
    .faq {
        padding: 64px 28px 64px;
    }
    .faq-fab {
        font-size: 18px;
        padding: 22px 18px;
    }
}

.faq-inner {
    max-width: 880px;
    margin: 0 auto;
}

.faq-title {
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.faq-sub {
    color: rgba(255, 252, 0, 0.6);
}

.faq-item {
    background: rgba(255, 252, 0, 0.05);
    border: 1px solid rgba(255, 252, 0, 0.18);
    margin-bottom: 14px;
    transition: border-color 0.2s, background 0.2s;
}

.faq-item[open] {
    background: rgba(255, 252, 0, 0.09);
    border-color: rgba(255, 252, 0, 0.4);
}

.faq-item summary {
    color: var(--yellow);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 300;
    color: var(--yellow);
    transition: transform 0.25s;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    color: rgba(255, 252, 0, 0.82);
    line-height: 1.6;
}

.faq-item.faq-cta {
    background: var(--yellow);
    border-color: var(--yellow);
    margin-top: 8px;
}

.faq-item.faq-cta summary,
.faq-item.faq-cta summary::after {
    color: var(--black);
}

.faq-item.faq-cta p {
    color: rgba(10, 10, 10, 0.85);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 720px) {
    /* Marquee — smaller text, faster scroll */
    .marquee {
        font-size: 13px;
        padding: 10px 0;
        letter-spacing: 0.06em;
    }
    .marquee-track { gap: 24px; animation-duration: 18s; }

    /* Stage padding */
    .stage {
        padding: 28px 16px 40px;
        min-height: auto;
    }

    /* Title — keep dramatic but fit */
    .title {
        font-size: clamp(44px, 13vw, 64px);
        line-height: 1.05;
    }
    .ghost-logo {
        width: 0.85em;
        height: 0.85em;
    }

    /* Tagline */
    .tagline {
        font-size: 14px;
        margin-bottom: 28px;
        max-width: 92vw;
    }

    /* Bubble — fits screen */
    .bubble {
        width: min(380px, 88vw) !important;
        height: min(380px, 88vw) !important;
        animation: float-mobile 3.4s ease-in-out infinite;
    }

    @keyframes float-mobile {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-14px); }
    }

    .bubble-stack {
        width: 86%;
        gap: 10px;
    }

    .username-input { font-size: 14px; padding: 12px 16px; }
    .meo-btn { font-size: 15px; padding: 12px 28px; }

    .contact-heading {
        font-size: 12px;
        max-width: 240px;
        padding-top: 8px;
    }

    .contact-link {
        font-size: 14px;
        gap: 9px;
        padding: 5px 10px;
    }
    .contact-link svg { width: 22px; height: 22px; }

    /* Badge — repositioned below bubble on mobile (still absolute) */
    .badge {
        position: absolute !important;
        top: auto !important;
        right: auto !important;
        bottom: -150px !important;
        left: 50% !important;
        width: min(280px, 80vw) !important;
        transform: translateX(-50%) rotate(-2deg) !important;
        animation: badge-wobble-mobile 3.6s ease-in-out infinite !important;
        padding: 12px 18px 14px !important;
    }

    @keyframes badge-wobble-mobile {
        0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
        50%      { transform: translateX(-50%) rotate(-3deg) translateY(-6px); }
    }

    .badge-icon { width: 56px; height: 56px; }
    .badge-text { font-size: 14px; }
    .badge-text span { font-size: 11px; }

    /* Footnote — smaller, fits one line; extra margin to clear badge below bubble */
    .footnote {
        font-size: 14px;
        margin-top: 180px;
        letter-spacing: 0.12em;
    }

    /* FAQ FAB */
    .faq-fab {
        font-size: 20px;
        padding: 26px 18px;
        letter-spacing: 0.08em;
    }

    /* FAQ drawer */
    .faq {
        width: 100vw !important;
        padding: 60px 22px 60px;
        border-left: none;
    }

    .faq-title { font-size: 42px !important; }
    .faq-sub { font-size: 14px; margin-bottom: 24px; }

    .faq-item { padding: 16px 18px; border-radius: 12px; }
    .faq-item summary { font-size: 16px; padding-right: 36px; }
    .faq-item summary::after { font-size: 26px; }
    .faq-item p { font-size: 14px; margin-top: 12px; }

    .faq-close {
        font-size: 38px;
        top: 14px;
        right: 18px;
    }

    /* Loader */
    .spinner, .checkmark {
        width: 52px;
        height: 52px;
    }
    .loader-text { font-size: 14px; }
    .loader-percent { font-size: 13px; }
}

@media (max-width: 380px) {
    .title { font-size: 38px; }
    .badge { width: min(260px, 86vw) !important; }
    .footnote { font-size: 12px; letter-spacing: 0.1em; }
    .marquee { font-size: 12px; }
}
