/* ==========================================================
   SPACE — Cinematic liquid-glass theme
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600&display=swap');

:root {
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Barlow', sans-serif;
    --space-black: #000;
}

/* ---- Liquid glass (exact spec) ---- */
.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.liquid-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.15) 80%,
        rgba(255, 255, 255, 0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.liquid-glass-strong {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: none;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}
.liquid-glass-strong::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---- Base overrides ---- */
body.space-site {
    background: var(--space-black) !important;
    background-image: none !important;
    color: #fff;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body.space-site .bg-fluid,
body.space-site .bg-mesh,
body.space-site .bg-grid,
body.space-site .particles-global,
body.space-site .aura-video-wrap,
body.space-site .aura-guide,
body.space-site .custom-cursor {
    display: none !important;
}
body.space-site .content {
    background: transparent;
    animation: none;
}
body.space-site .navbar { display: none !important; }
body.space-site .footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 20;
}
body.space-site .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.85rem;
}
body.space-site .footer-links a:hover { color: #fff; }
body.space-site .footer p { color: rgba(255, 255, 255, 0.35); font-size: 0.8rem; }

/* ---- Fading video containers ---- */
.space-fv-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.space-fv-wrap--hero {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.space-fv-wrap--hero .space-fv-el {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: top center;
}
.space-fv-wrap--full .space-fv-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.space-subpage-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.space-subpage-video .space-fv-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.space-subpage-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* ---- Fixed space navbar ---- */
.space-nav {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .space-nav { padding: 0 4rem; }
}
.space-nav > * { pointer-events: auto; }
.space-nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.space-nav-center {
    display: none;
    align-items: center;
    gap: 0;
    border-radius: 9999px;
    padding: 0.35rem 0.35rem;
}
@media (min-width: 768px) {
    .space-nav-center { display: flex; }
}
.space-nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 9999px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.space-nav-link:hover,
.space-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.space-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 0.35rem;
    transition: transform 0.2s, background 0.2s;
}
.space-nav-cta:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.02);
}
.space-nav-cta svg { width: 16px; height: 16px; }
.space-nav-spacer { width: 48px; flex-shrink: 0; }
.space-nav-mobile {
    display: flex;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .space-nav-mobile { display: none; }
}
.space-nav-burger {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Mobile menu drawer */
.space-mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    z-index: 49;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
}
.space-mobile-menu.open { display: flex; }
.space-mobile-menu a {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 9999px;
}
.space-mobile-menu a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---- Hero section ---- */
.space-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.space-hero-inner {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1rem 2rem;
}
.space-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 9999px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}
.space-badge-chip {
    background: #fff;
    color: #000;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 9999px;
}
.space-badge-text {
    padding: 0 0.75rem 0 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
}
.space-headline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    color: #fff;
    line-height: 0.85;
    letter-spacing: -0.08em;
    max-width: 42rem;
    margin: 0 auto;
}
.blur-text-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.1em;
}
.blur-word {
    display: inline-block;
    margin-right: 0.28em;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(50px);
}
.blur-text-active .blur-word {
    animation: blurWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes blurWordIn {
    0% { opacity: 0; filter: blur(10px); transform: translateY(50px); }
    50% { opacity: 0.5; filter: blur(5px); transform: translateY(-5px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.space-sub {
    margin-top: 1rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.35;
    max-width: 36rem;
}
.space-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.space-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}
.space-btn-primary:hover { transform: scale(1.03); }
.space-btn-primary svg { width: 20px; height: 20px; }
.space-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.875rem;
    font-family: var(--font-body);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.space-btn-ghost svg { width: 16px; height: 16px; fill: currentColor; }
.space-stats {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.space-stat-card {
    padding: 1.25rem;
    width: 220px;
    border-radius: 1.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.space-stat-icon {
    width: 28px;
    height: 28px;
    color: #fff;
}
.space-stat-value {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.25rem;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}
.space-stat-label {
    font-size: 0.75rem;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 300;
    margin-top: 0.5rem;
}
.space-partners {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}
.space-partners-chip {
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: #fff;
    border-radius: 9999px;
}
.space-partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #fff;
    letter-spacing: -0.02em;
}

/* ---- Capabilities section ---- */
.space-capabilities {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
    z-index: 1;
}
.space-cap-inner {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
@media (min-width: 768px) {
    .space-cap-inner { padding: 6rem 4rem 2.5rem; }
}
@media (min-width: 1024px) {
    .space-cap-inner { padding: 6rem 5rem 2.5rem; }
}
.space-cap-header { margin-bottom: auto; }
.space-cap-kicker {
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}
.space-cap-heading {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.05em;
}
.space-cap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}
@media (min-width: 768px) {
    .space-cap-grid { grid-template-columns: repeat(3, 1fr); }
}
.space-cap-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.space-cap-card:hover {
    transform: translateY(-6px);
}
.space-cap-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.space-cap-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.space-cap-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    color: #fff;
}
.space-cap-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    max-width: 70%;
}
.space-cap-tag {
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    white-space: nowrap;
}
.space-cap-spacer { flex: 1; }
.space-cap-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 1.5rem;
}
.space-cap-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.4;
    max-width: 32ch;
}

/* ---- Motion entrance ---- */
[data-motion] {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
}
[data-motion].motion-in {
    animation: spaceMotionIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes spaceMotionIn {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* ---- Subpages ---- */
body.space-site .page-shell {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 80px);
    padding: 6rem 1.5rem 3rem;
    max-width: 72rem;
    margin: 0 auto;
}
body.space-site .page-shell .section-title,
body.space-site .page-shell h1,
body.space-site .page-shell h2 {
    font-family: var(--font-heading);
    font-style: italic;
    color: #fff;
    letter-spacing: -0.03em;
}
body.space-site .auth-section,
body.space-site .verify-section {
    position: relative;
    z-index: 10;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}
body.space-site .auth-box,
body.space-site .verify-box {
    border-radius: 1.25rem !important;
    max-width: 420px;
    width: 100%;
}
body.space-site .product-card,
body.space-site .game-card,
body.space-site .step-card,
body.space-site .advantage-card,
body.space-site .review-card,
body.space-site .faq-item {
    border-radius: 1.25rem !important;
}
body.space-site .btn-primary {
    border-radius: 9999px !important;
    background: #fff !important;
    color: #000 !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    animation: none !important;
}
body.space-site .btn-outline {
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    font-family: var(--font-body) !important;
}
body.space-site .section-subtitle,
body.space-site .text-muted,
body.space-site p {
    color: rgba(255, 255, 255, 0.75);
}
body.space-site .container {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
    padding-bottom: 4rem;
}
body.space-site .page-loader {
    background: #000 !important;
}
body.space-site .page-loader .loader-text {
    font-family: var(--font-heading) !important;
    font-style: italic;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    background: none !important;
    filter: none !important;
}

/* Quick nav section on home */
.space-quick-nav {
    position: relative;
    z-index: 10;
    background: #000;
    padding: 4rem 2rem;
}
.space-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 48rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .space-quick-grid { grid-template-columns: repeat(4, 1fr); }
}
.space-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s;
}
.space-quick-link:hover { transform: translateY(-4px); }
.space-quick-link svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

/* ============ FOOTER ============ */
.site-footer {
    position: relative;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #000000;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 40px 28px;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand {
    flex: 1;
    max-width: 420px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}
.footer-logo-text {
    font-family: 'Inter', var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}
.footer-desc {
    color: #64748b;
    font-family: 'Inter', var(--font-body);
    font-size: 0.82rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.25s;
    text-decoration: none;
}
.footer-social-link:hover {
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    transform: translateY(-2px);
}
.footer-links-only {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.footer-heading {
    font-family: 'Inter', var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-family: 'Inter', var(--font-body);
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #e2e8f0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    color: #475569;
    font-family: 'Inter', var(--font-body);
    font-size: 0.78rem;
}
.footer-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-badge {
    color: #475569;
    font-family: 'Inter', var(--font-body);
    font-size: 0.75rem;
}
@media (max-width: 768px) {
    .footer-inner {
        padding: 40px 20px 24px;
    }
    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }
    .footer-brand {
        max-width: none;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-badges {
        justify-content: center;
    }
}
