:root {
    --bg-base: #020617;
    --bg-surface: #0f172a;
    --bg-elevated: #1e293b;
    --bg-overlay: rgba(2, 6, 23, 0.85);
    --text-primary: #f9fafb;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(16px);
    --highlight: #06b6d4;
    --brand-gradient: linear-gradient(135deg, #5b5cf6, #7c3aed);
    --brand-shadow: 0 8px 25px rgba(91, 92, 246, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    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),
        radial-gradient(circle at 15% 50%, rgba(91, 92, 246, 0.12), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.12), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08), transparent 35%);
    background-size: 50px 50px, 50px 50px, auto, auto, auto;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 6px;
    transition: 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: var(--brand-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(91, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-2px);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes strokeWave {
    0% {
        stroke: #5b5cf6;
    }

    50% {
        stroke: #06b6d4;
    }

    100% {
        stroke: #5b5cf6;
    }
}

.logo .text-gradient {
    background: linear-gradient(270deg, #5b5cf6, #06b6d4, #7c3aed, #5b5cf6);
    background-size: 300% 300%;
    animation: gradientWave 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo svg {
    animation: strokeWave 5s ease infinite;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--highlight);
}

.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero-text {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: var(--text-secondary);
    margin: 0 auto 32px;
    max-width: 580px;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.community-tag {
    margin: 32px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/bgcard1.png');
    background-size: cover;
    background-position: center;
}

.mockup-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.2);
    pointer-events: none;
}

@keyframes floatProfile {
    0% {
        transform: translateX(var(--base-tx, 0px)) scale(var(--base-scale, 1)) translateY(0px);
    }

    50% {
        transform: translateX(var(--base-tx, 0px)) scale(var(--base-scale, 1)) translateY(-10px);
    }

    100% {
        transform: translateX(var(--base-tx, 0px)) scale(var(--base-scale, 1)) translateY(0px);
    }
}

@keyframes floatChat {
    0% {
        transform: translateX(var(--base-tx, 0px)) scale(var(--base-scale, 1)) translateY(0px);
    }

    50% {
        transform: translateX(var(--base-tx, 0px)) scale(var(--base-scale, 1)) translateY(-10px);
    }

    100% {
        transform: translateX(var(--base-tx, 0px)) scale(var(--base-scale, 1)) translateY(0px);
    }
}

.mockup-profile {
    position: absolute;
    left: 8%;
    top: 15%;
    width: 260px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    animation: floatProfile 7s ease-in-out infinite 1s;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mp-banner {
    height: 70px;
    background: var(--brand-gradient);
    width: 100%;
}

.mp-header {
    padding: 0 16px;
    position: relative;
}

.mp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #0f172a;
    background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQaC5aRA2TkWpoR257QCPh4CuTxAXR4Va0Vpw&s') center/cover;
    margin-top: -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    position: relative;
    color: #fff;
}

.mp-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.mp-info {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-name {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.mp-bio {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    border-left: 2px solid var(--highlight);
}

.mp-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.mp-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.mp-tag.host {
    background: #ef4444;
    color: #fff;
}

.mp-tag.vip {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #000;
    border: 1px solid #ca8a04;
}

.mp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.mp-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.mp-stat span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mockup-chat {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: 320px;
    height: 400px;
    max-height: 90%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    animation: floatChat 6s ease-in-out infinite;
    z-index: 2;
}

.m-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.m-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.m-body::-webkit-scrollbar {
    width: 4px;
}

.m-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.m-msg {
    background: var(--bg-elevated);
    padding: 8px 12px;
    border-radius: 12px 12px 12px 2px;
    font-size: 12px;
    max-width: 90%;
    word-break: break-word;
    text-align: left;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom left;
}

.m-msg.me {
    background: var(--brand-gradient);
    border-radius: 12px 12px 2px 12px;
    align-self: flex-end;
    transform-origin: bottom right;
}

.m-sys {
    background: transparent;
    text-align: center;
    color: var(--highlight);
    font-size: 10px;
    font-weight: bold;
    width: 100%;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.m-input {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.m-input-box {
    flex: 1;
    background: var(--bg-base);
    border-radius: 20px;
    height: 32px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.m-input-box:focus {
    border-color: var(--highlight);
}

.m-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.m-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.features {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    width: 100%;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    flex: 1 1 280px;
    max-width: 360px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.f-icon {
    width: 60px;
    height: 60px;
    background: rgba(91, 92, 246, 0.1);
    color: var(--highlight);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.f-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    text-align: center;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.cta-section {
    padding-top: 60px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.cta-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9)), url('https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-gradient);
    opacity: 0.15;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-align: center;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .nav-wrapper {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 130px;
        gap: 32px;
    }

    .mockup-wrapper {
        aspect-ratio: 4/3;
    }

    .mockup-chat {
        width: 280px;
        height: 360px;
    }

    .mockup-profile {
        left: 2%;
        --base-scale: 0.9;
        transform-origin: left top;
    }

    .cta-box {
        padding: 60px 24px;
        border-radius: 24px;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 120px;
    }

    .container {
        padding: 0 16px;
    }

    nav {
        padding: 16px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    .mockup-wrapper {
        aspect-ratio: auto;
        height: 650px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .mockup-profile {
        display: flex;
        left: 50%;
        top: 40px;
        --base-tx: -50%;
        --base-scale: 0.85;
        transform-origin: center top;
    }

    .mockup-chat {
        width: calc(100% - 32px);
        max-width: 340px;
        height: 320px;
        left: 50%;
        --base-tx: -50%;
        bottom: 24px;
    }

    .feature-card {
        padding: 32px 20px;
    }
}