/* Landing page — pixel match to cosmic hero mockup */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.landing-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Onest', 'Inter', sans-serif;
    font-weight: 400;
    color: #fff;
    background: #070a18;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga' 1, 'calt' 1;
    display: flex;
    flex-direction: column;
}

/* ── Background layers ── */

.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 50% at 12% 22%, rgba(45, 65, 130, 0.28) 0%, transparent 60%),
        linear-gradient(120deg, #060912 0%, #0e1326 38%, #181f42 62%, #121830 100%);
}

.landing-bg__nebula {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 72% 68% at 66% 46%,
            rgba(215, 45, 105, 0.38) 0%,
            rgba(165, 55, 140, 0.26) 20%,
            rgba(105, 75, 195, 0.18) 38%,
            rgba(65, 90, 185, 0.12) 52%,
            transparent 68%),
        radial-gradient(ellipse 48% 42% at 80% 72%,
            rgba(65, 105, 220, 0.18) 0%,
            rgba(45, 75, 160, 0.1) 45%,
            transparent 62%);
}

.landing-bg__stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.landing-bg__noise {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

.landing-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 92% 82% at 50% 46%,
            transparent 0%,
            rgba(6, 9, 20, 0.12) 40%,
            rgba(4, 6, 15, 0.58) 68%,
            rgba(3, 5, 12, 0.94) 100%
        ),
        linear-gradient(90deg, rgba(4, 6, 14, 0.82) 0%, transparent 16%, transparent 84%, rgba(4, 6, 14, 0.82) 100%),
        linear-gradient(180deg, rgba(4, 6, 14, 0.7) 0%, transparent 14%, transparent 86%, rgba(4, 6, 14, 0.75) 100%);
}

.landing-bg__bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 2;
}

.landing-bg__bokeh--1 {
    width: 340px;
    height: 340px;
    top: 18%;
    right: 6%;
    background: rgba(220, 55, 115, 0.18);
    animation: landing-bokeh-drift 12s ease-in-out infinite;
}

.landing-bg__bokeh--2 {
    width: 260px;
    height: 260px;
    bottom: 18%;
    right: 20%;
    background: rgba(70, 105, 220, 0.16);
    animation: landing-bokeh-drift 9s ease-in-out infinite reverse;
}

@keyframes landing-bokeh-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.1); }
}

/* ── Header ── */

.landing-header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 3rem;
}

.landing-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    gap: 1rem;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.landing-brand:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.92;
}

.landing-brand__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
}

.landing-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.2;
}

.landing-brand__name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.landing-brand__tagline {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.58);
}

.landing-nav {
    display: flex;
    align-items: center;
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.landing-nav__link {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.landing-nav__link:hover {
    color: #fff;
    text-decoration: none;
}

.landing-nav__login {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.landing-nav__login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff !important;
}

/* ── Language menu ── */

.landing-lang {
    position: relative;
}

.landing-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.landing-lang__toggle::-webkit-details-marker {
    display: none;
}

.landing-lang__toggle:hover,
.landing-lang[open] .landing-lang__toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
}

.landing-lang__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.15rem;
    font-size: 1.05rem;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.landing-lang__chevron {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.landing-lang[open] .landing-lang__chevron {
    transform: rotate(180deg);
}

.landing-lang__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 20;
    min-width: 148px;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(12, 8, 28, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.landing-lang__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.landing-lang__label {
    line-height: 1.2;
}

.landing-lang__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.landing-lang__item.is-active {
    background: rgba(255, 80, 130, 0.18);
    color: #fff !important;
}

/* ── Hero ── */

.landing-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: visible;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem 2rem;
    min-height: calc(100vh - 120px);
    overflow: visible;
}

.landing-hero__content {
    max-width: 580px;
    padding-right: 2rem;
}

.landing-hero__title {
    margin: 0 0 1.75rem;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.landing-hero__title-line {
    display: block;
}

.landing-hero__title-line--white {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.landing-hero__title-line--gradient {
    background: linear-gradient(92deg, #ff2d95 0%, #e040fb 28%, #b388ff 52%, #80deea 78%, #69f0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    padding-bottom: 0.05em;
}

.landing-hero__subtitle {
    margin: 0 0 2.75rem;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    font-weight: 300;
    letter-spacing: 0.015em;
    color: rgba(255, 255, 255, 0.68);
    max-width: 460px;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.landing-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff006e 0%, #ff2d7a 40%, #ff4081 100%);
    color: #fff !important;
    font-family: inherit;
    text-decoration: none !important;
    box-shadow:
        0 0 40px rgba(255, 0, 110, 0.45),
        0 4px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-hero__cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    line-height: 1.15;
    text-align: left;
}

.landing-hero__cta-kicker {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.88;
}

.landing-hero__cta-desc {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.landing-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 55px rgba(255, 0, 110, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.4);
    color: #fff !important;
}

.landing-hero__cta--alt {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 0 24px rgba(255, 80, 130, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.25);
}

.landing-hero__cta--alt:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 0 36px rgba(255, 80, 130, 0.28),
        0 8px 26px rgba(0, 0, 0, 0.35);
}

.landing-hero__cta-icon {
    font-size: 1.15rem;
    line-height: 1;
}

/* ── Planet visual ── */

.landing-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    overflow: visible;
    padding: 2.5rem;
}

.landing-hero__glow {
    position: absolute;
    width: min(115%, 640px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 76%,
        rgba(255, 60, 110, 0.22) 88%,
        rgba(255, 40, 90, 0.1) 94%,
        transparent 100%
    );
    filter: blur(22px);
    pointer-events: none;
    transform-origin: center center;
    animation: landing-planet-breathe 11s ease-in-out infinite;
}

@keyframes landing-planet-breathe {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.82;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.landing-planet-wrap {
    position: relative;
    width: min(100%, 580px);
    aspect-ratio: 1;
    z-index: 1;
    transform-origin: center center;
    overflow: visible;
}

#landing-planet-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.landing-planet-fallback {
    display: none;
    width: 100%;
    height: auto;
}

.landing-planet-wrap.is-static #landing-planet-canvas {
    display: none;
}

.landing-planet-wrap.is-static .landing-planet-fallback {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .landing-bg__bokeh,
    .landing-hero__glow {
        animation: none;
        transform: none;
        opacity: 0.9;
    }

    #landing-planet-canvas {
        display: none;
    }

    .landing-planet-fallback {
        display: block;
    }
}

/* ── Footer ── */

.landing-footer {
    position: relative;
    z-index: 1;
    padding: 0.75rem 3rem 1.25rem;
}

.landing-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.32);
}

/* ── Responsive ── */

@media (max-width: 991px) {
    .landing-header {
        padding: 1rem 1.5rem;
    }

    .landing-header__actions {
        gap: 0.65rem;
    }

    .landing-lang__toggle {
        padding: 0.5rem 0.7rem;
    }

    .landing-lang__code {
        display: none;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem 2.5rem;
        min-height: auto;
        text-align: center;
    }

    .landing-hero__content {
        max-width: none;
        padding-right: 0;
        order: 1;
    }

    .landing-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero__actions {
        justify-content: center;
    }

    .landing-hero__cta-text {
        align-items: center;
        text-align: center;
    }

    .landing-hero__visual {
        order: 2;
        min-height: 300px;
        max-height: none;
        padding: 1.5rem;
    }

    .landing-planet-wrap {
        max-width: 380px;
    }
}

@media (max-width: 576px) {
    .landing-brand__tagline {
        display: none;
    }

    .landing-hero__title {
        font-size: 1.75rem;
    }

    .landing-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .landing-hero__cta {
        justify-content: center;
        width: 100%;
        max-width: 320px;
        padding: 0.78rem 1.2rem;
    }

    .landing-hero__cta-text {
        align-items: center;
        text-align: center;
    }

    .landing-hero__cta-desc {
        white-space: normal;
    }
}
