/* ===== Landing Page ===== */

body.landing-page {
    position: relative;
    background:
        radial-gradient(1200px 700px at 12% 8%, rgba(122, 92, 255, 0.22), transparent 60%),
        radial-gradient(900px 520px at 88% 16%, rgba(255, 77, 166, 0.14), transparent 58%),
        radial-gradient(1000px 620px at 58% 82%, rgba(122, 92, 255, 0.12), transparent 60%),
        linear-gradient(180deg, #0b1020 0%, #0d1224 45%, #090e1b 100%);
    background-attachment: fixed;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body.landing-page::before {
    content: "";
    position: fixed;
    inset: -12%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(122, 92, 255, 0.22), transparent 32%),
        radial-gradient(circle at 78% 26%, rgba(255, 77, 166, 0.16), transparent 30%),
        radial-gradient(circle at 62% 74%, rgba(99, 102, 241, 0.14), transparent 28%);
    filter: blur(60px);
    opacity: 0.85;
    animation: landingGlowShift 18s ease-in-out infinite alternate;
}

body.landing-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    background-size: 120px 120px, 120px 120px, 220px 220px;
    background-position: center center;
}

.landing-topbar,
.hero,
.features,
.advantages,
.how,
.rules,
.cta,
.landing-footer {
    position: relative;
    z-index: 1;
}

@keyframes landingGlowShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.78;
    }
    50% {
        transform: translate3d(1.5%, -1%, 0) scale(1.04);
        opacity: 0.92;
    }
    100% {
        transform: translate3d(-1.5%, 1.5%, 0) scale(1.08);
        opacity: 0.82;
    }
}

.hero {
    position: relative;
    padding: 88px 0 56px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 30%, rgba(0, 0, 0, 0.26), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    font-size: 14px;
    color: rgba(255,255,255,0.88);
}

.hero-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #32d583;
    box-shadow: 0 0 12px rgba(50, 213, 131, 0.9);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 40px rgba(0,0,0,0.22);
}

.hero-subtitle {
    margin: 0;
    max-width: 520px;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .btn {
    min-width: 190px;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.24);
}

.hero-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: .92rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-stat {
    min-width: 150px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.hero-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.hero-stat span {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -30px -20px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 65% 40%, rgba(122, 92, 255, 0.2), transparent 38%),
        radial-gradient(circle at 35% 75%, rgba(255, 77, 166, 0.12), transparent 32%);
    filter: blur(40px);
    animation: previewGlowFloat 12s ease-in-out infinite alternate;
}

@keyframes previewGlowFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(1.5%, -2%, 0) scale(1.05);
    }
}

.chat-preview-card {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.chat-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-preview-room {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.chat-preview-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #32d583;
    box-shadow: 0 0 10px rgba(50, 213, 131, 0.85);
}

.chat-preview-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(113, 89, 255, 0.18);
    border: 1px solid rgba(113, 89, 255, 0.28);
    color: #d8d0ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chat-preview-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
}

.chat-preview-sidebar,
.chat-preview-messages {
    border-radius: 20px;
    background: rgba(8, 13, 28, 0.72);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
}

.preview-user strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.preview-user small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.preview-user--female {
    border: 1px solid rgba(255, 105, 180, 0.20);
}

.preview-user--male {
    border: 1px solid rgba(80, 160, 255, 0.18);
}

.preview-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #7159ff, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.chat-preview-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.preview-msg {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    font-size: 14px;
    line-height: 1.5;
}

.preview-time {
    margin-right: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

.preview-name {
    margin-right: 8px;
    font-weight: 700;
    color: #c7d2fe;
}

.preview-text {
    color: rgba(255,255,255,0.82);
}

.chat-preview-input {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    font-size: 14px;
}

.chat-preview-input .btn {
    border-radius: 10px;
    pointer-events: none;
}

.hero-users-strip {
    margin-top: 26px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.16);
}

.hero-users-title {
    margin-bottom: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
}

.hero-users-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mini-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.mini-user-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.mini-user-card small {
    color: rgba(255,255,255,0.56);
    font-size: 12px;
}

.mini-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(113, 89, 255, 0.22);
    border: 1px solid rgba(113, 89, 255, 0.28);
    color: #fff;
    font-weight: 700;
}

.features,
.advantages,
.how,
.rules,
.cta {
    padding: 64px 0;
}

.section-title {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-card,
.adv-card,
.step {
    height: 100%;
    padding: 26px 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card h3,
.adv-card h4 {
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p,
.adv-card p,
.step {
    color: rgba(255,255,255,0.74);
}

.feature-card:hover,
.adv-card:hover,
.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 56px rgba(0,0,0,0.24);
    border-color: rgba(255,255,255,0.14);
}

.rules-short {
    max-width: 920px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}

.rules-short__item {
    padding: 18px 18px 17px;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.rules-short__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.rules-short__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    background: rgba(122, 92, 255, 0.18);
    border: 1px solid rgba(255,255,255,.08);
    color: #efe9ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.rules-short__icon i {
    font-size: 1rem;
    line-height: 1;
}

.rules-short__item strong {
    display: block;
    margin: 2px 0 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.rules-short__text {
    color: rgba(255,255,255,.80);
    line-height: 1.6;
    padding-left: 50px;
}

.cta {
    padding-bottom: 88px;
}

.cta h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
}

.cta .hero-actions {
    justify-content: center;
}

@media (max-width: 991.98px) {
    body.landing-page {
        background-attachment: scroll;
    }

    .hero {
        padding-top: 64px;
    }

    .hero-copy {
        max-width: none;
        text-align: center;
    }

    .hero-subtitle {
        max-width: none;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .chat-preview-body {
        grid-template-columns: 1fr;
    }

    .hero-users-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rules-short {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body.landing-page::before {
        animation: none;
        opacity: 0.8;
    }

    body.landing-page::after {
        opacity: 0.12;
    }

    .hero {
        padding: 52px 0 38px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat {
        width: 100%;
    }

    .hero-users-list {
        grid-template-columns: 1fr;
    }

    .chat-preview-card {
        padding: 14px;
        border-radius: 22px;
    }

    .chat-preview-sidebar,
    .chat-preview-messages {
        padding: 12px;
    }

    .features,
    .advantages,
    .how,
    .rules,
    .cta {
        padding: 48px 0;
    }

    .cta {
        padding-bottom: 64px;
    }
}
