:root {
    --bg: #05050a;
    --bg-soft: #0a0a12;
    --surface: rgba(255,255,255,.055);
    --surface-hover: rgba(255,255,255,.085);
    --border: rgba(255,255,255,.10);
    --text: #f7f7fb;
    --muted: #9a9aa9;
    --purple: #8b5cf6;
    --purple-light: #b794ff;
    --blue: #38bdf8;
    --pink: #ec4899;
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", sans-serif;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* Background */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(139,92,246,.16),
            transparent 42%
        ),
        var(--bg);
}

.grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );
    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 75%
    );
}

.orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .18;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
    background: var(--purple);
    top: -180px;
    right: -120px;
}

.orb-2 {
    background: var(--blue);
    left: -180px;
    top: 35%;
    animation-delay: -4s;
}

.orb-3 {
    background: var(--pink);
    right: 20%;
    bottom: -300px;
    animation-delay: -8s;
}

@keyframes floatOrb {
    from {
        transform: translate3d(0,0,0) scale(1);
    }

    to {
        transform: translate3d(40px,-30px,0) scale(1.12);
    }
}


/* Stars */

.stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: white;
    opacity: .35;
    animation: twinkle 3s infinite alternate;
}

.stars span:nth-child(1) {
    top: 18%;
    left: 10%;
}

.stars span:nth-child(2) {
    top: 31%;
    left: 76%;
}

.stars span:nth-child(3) {
    top: 13%;
    left: 58%;
}

.stars span:nth-child(4) {
    top: 65%;
    left: 18%;
}

.stars span:nth-child(5) {
    top: 73%;
    left: 82%;
}

.stars span:nth-child(6) {
    top: 45%;
    left: 91%;
}

.stars span:nth-child(7) {
    top: 83%;
    left: 47%;
}

.stars span:nth-child(8) {
    top: 25%;
    left: 36%;
}

@keyframes twinkle {
    from {
        opacity: .1;
        transform: scale(.7);
    }

    to {
        opacity: .7;
        transform: scale(1.5);
    }
}


/* Navbar */

.navbar {
    width: min(1220px, calc(100% - 48px));
    height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #a78bfa,
            #6d28d9
        );

    box-shadow:
        0 0 30px rgba(139,92,246,.35);

    font-size: 18px;
    font-weight: 900;
    transform: rotate(-5deg);
}

.logo-mark span {
    transform: rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-size: 19px;
    letter-spacing: 2px;
}

.logo-text small {
    margin-top: 5px;
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--muted);
    direction: ltr;
}

.nav-links {
    display: flex;
    gap: 36px;
    color: #a8a8b5;
    font-size: 13px;
}

.nav-links a {
    transition: .25s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn,
.nav-signup {
    padding: 10px 17px;
    border-radius: 12px;
    color: #ddd;
    background: transparent;
    transition: .25s ease;
}

.login-btn:hover {
    background: var(--surface);
}

.nav-signup {
    color: white;
    background: rgba(139,92,246,.14);
    border: 1px solid rgba(139,92,246,.3);
}

.nav-signup:hover {
    background: rgba(139,92,246,.25);
}


/* Hero */

.hero {
    width: min(1220px, calc(100% - 48px));
    min-height: 700px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;
    margin-bottom: 26px;

    border: 1px solid rgba(139,92,246,.25);
    background: rgba(139,92,246,.07);
    border-radius: 100px;

    color: #c4b5fd;
    font-size: 11px;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 14px #a78bfa;
    animation: pulse 1.7s infinite;
}

@keyframes pulse {
    50% {
        transform: scale(1.7);
        opacity: .45;
    }
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.05;
    letter-spacing: -4px;
    font-weight: 900;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            100deg,
            #fff,
            #a78bfa 42%,
            #38bdf8
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 570px;
    margin-top: 25px;

    color: #92929f;
    font-size: 15px;
    line-height: 2.1;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.primary-btn {
    min-height: 52px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border-radius: 15px;

    color: white;

    background:
        linear-gradient(
            110deg,
            #8b5cf6,
            #6d3de0
        );

    box-shadow:
        0 15px 40px rgba(124,58,237,.22);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.primary-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 50px rgba(124,58,237,.35);
}

.primary-btn:hover svg {
    transform: translateX(-4px);
}

.secondary-btn {
    height: 52px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 9px;

    border-radius: 15px;
    border: 1px solid var(--border);

    color: #c4c4cf;
    background: rgba(255,255,255,.035);

    transition: .25s ease;
}

.secondary-btn:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.17);
}

.play-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255,255,255,.08);

    font-size: 8px;
    padding-right: 1px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 50px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item strong {
    font-size: 15px;
}

.meta-item span {
    font-size: 9px;
    color: #686875;
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,.1);
}


/* Hero visual */

.hero-visual {
    height: 580px;
    position: relative;
    display: grid;
    place-items: center;
}

.visual-glow {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: #7c3aed;
    filter: blur(130px);
    opacity: .13;
}

.social-card {
    position: relative;
    width: 350px;
    padding: 17px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.025)
        );

    backdrop-filter: blur(25px);

    box-shadow:
        0 35px 90px rgba(0,0,0,.5);

    transform:
        perspective(1000px)
        rotateY(-8deg)
        rotateX(3deg);

    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%,100% {
        transform:
            perspective(1000px)
            rotateY(-8deg)
            rotateX(3deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(1000px)
            rotateY(-6deg)
            rotateX(2deg)
            translateY(-13px);
    }
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 9px;
}

.avatar,
.mini-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}

.avatar {
    width: 38px;
    height: 38px;
}

.avatar-purple {
    background:
        linear-gradient(
            135deg,
            #f0abfc,
            #7c3aed
        );
}

.user-info strong,
.user-info span {
    display: block;
}

.user-info strong {
    font-size: 12px;
}

.user-info span {
    color: #747480;
    font-size: 8px;
    margin-top: 2px;
}

.more-btn {
    color: #777783;
    background: transparent;
    letter-spacing: 2px;
}

.post-image {
    position: relative;
    height: 285px;
    overflow: hidden;
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 65% 30%,
            rgba(167,139,250,.8),
            transparent 13%
        ),
        linear-gradient(
            160deg,
            #15112c,
            #32175d 50%,
            #080a18
        );
}

.image-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 25% 30%,
            rgba(56,189,248,.25),
            transparent 30%
        );
}

.moon {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 38px;
    right: 48px;

    border-radius: 50%;
    background: #f4efff;

    box-shadow:
        0 0 50px rgba(220,210,255,.55);
}

.mountain {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mountain-back {
    position: absolute;
    width: 130%;
    height: 60%;
    bottom: -15%;
    left: -15%;

    background: #17152d;
    clip-path: polygon(
        0 100%,
        25% 32%,
        39% 60%,
        57% 10%,
        78% 55%,
        100% 22%,
        100% 100%
    );
}

.mountain-front {
    position: absolute;
    width: 130%;
    height: 50%;
    bottom: -15%;
    left: -15%;

    background: #080913;
    clip-path: polygon(
        0 100%,
        20% 55%,
        38% 75%,
        62% 20%,
        82% 63%,
        100% 40%,
        100% 100%
    );
}

.image-label {
    position: absolute;
    left: 18px;
    bottom: 17px;

    font-size: 8px;
    letter-spacing: 3px;
    color: rgba(255,255,255,.6);
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.action-group {
    display: flex;
    gap: 6px;
}

.icon-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;

    border-radius: 10px;
    background: transparent;
    color: #a6a6b1;

    transition: .2s ease;
}

.icon-button:hover {
    background: rgba(255,255,255,.08);
    color: white;
}

.icon-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.heart:hover {
    color: #f472b6;
}

.likes {
    color: #777782;
    font-size: 9px;
}


/* Floating cards */

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.11);

    background: rgba(13,13,22,.72);
    backdrop-filter: blur(20px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    50% {
        transform: translateY(-10px);
    }
}

.notification-card {
    top: 105px;
    right: -8px;
}

.message-card {
    bottom: 105px;
    left: -10px;
    animation-delay: -2s;
}

.notification-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;

    border-radius: 11px;
    color: #f0abfc;
    background: rgba(236,72,153,.13);
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    font-size: 9px;
}

.floating-card span {
    margin-top: 3px;
    color: #71717d;
    font-size: 7px;
}

.notification-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 10px #a78bfa;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    color: white;
    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );
}


/* About */

.about-section {
    width: min(1220px, calc(100% - 48px));
    margin: 80px auto 0;
    padding: 110px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-label {
    color: #9b7bea;
    font-size: 9px;
    letter-spacing: 3px;
    direction: ltr;
}

.section-heading h2,
.cta-content h2 {
    margin-top: 15px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.2;
    letter-spacing: -2px;
}

.section-heading p {
    margin-top: 18px;
    color: #777783;
    font-size: 13px;
    line-height: 2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 290px;
    padding: 28px;

    overflow: hidden;

    border-radius: var(--radius);
    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    top: -90px;
    right: -70px;
    background: #8b5cf6;
    filter: blur(70px);
    opacity: .13;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167,139,250,.3);
    background: var(--surface-hover);
}

.feature-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;
    background: rgba(139,92,246,.11);
    border: 1px solid rgba(139,92,246,.17);

    color: #b794ff;
    font-size: 20px;
}

.feature-card h3 {
    margin-top: 38px;
    font-size: 19px;
}

.feature-card p {
    margin-top: 12px;
    color: #747480;
    font-size: 12px;
    line-height: 2;
}

.feature-number {
    position: absolute;
    bottom: 20px;
    left: 25px;

    color: rgba(255,255,255,.08);
    font-size: 45px;
    font-weight: 900;
}


/* CTA */

.cta-section {
    width: min(1220px, calc(100% - 48px));
    min-height: 420px;
    margin: 30px auto 100px;

    position: relative;
    overflow: hidden;

    display: grid;
    place-items: center;

    border-radius: 35px;
    border: 1px solid rgba(255,255,255,.1);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(139,92,246,.18),
            transparent 50%
        ),
        rgba(255,255,255,.025);
}

.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(167,139,250,.08);
}

.cta-section::before {
    transform: scale(1.5);
}

.cta-section::after {
    transform: scale(2.2);
}

.cta-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: #7c3aed;
    filter: blur(130px);
    opacity: .15;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content p {
    margin: 15px 0 25px;
    color: #777783;
    font-size: 13px;
}

.cta-button {
    margin: auto;
}


/* Footer */

footer {
    width: min(1220px, calc(100% - 48px));
    min-height: 100px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid rgba(255,255,255,.07);

    color: #555560;
    font-size: 9px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaaab5;
}

.logo-mark.small {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a:hover {
    color: white;
}


/* Modal */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(15px);
}

.modal-box {
    width: min(430px,100%);
    position: relative;
    z-index: 2;

    padding: 35px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            rgba(24,23,36,.96),
            rgba(10,10,17,.97)
        );

    box-shadow:
        0 40px 100px rgba(0,0,0,.65);

    transform: translateY(20px) scale(.97);
    transition: .3s ease;
}

.modal.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 17px;
    left: 17px;

    width: 32px;
    height: 32px;

    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: #8a8a96;

    font-size: 22px;
}

.modal-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #a78bfa,
        #6d28d9
    );

    font-weight: 900;
    font-size: 21px;

    box-shadow:
        0 15px 35px rgba(124,58,237,.3);
}

.modal-label {
    display: block;
    margin-top: 23px;

    color: #9273dd;
    font-size: 8px;
    letter-spacing: 3px;
    direction: ltr;
}

.modal-box h2 {
    margin-top: 8px;
    font-size: 27px;
}

.modal-box > p {
    margin-top: 8px;
    color: #777783;
    font-size: 11px;
}

#signupForm {
    margin-top: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 7px;

    color: #9b9ba7;
    font-size: 10px;
}

.input-group input {
    width: 100%;
    height: 48px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    outline: none;

    background: rgba(255,255,255,.045);
    color: white;

    padding: 0 14px;

    direction: ltr;
    transition: .25s ease;
}

.input-group input::placeholder {
    color: #555560;
}

.input-group input:focus {
    border-color: rgba(139,92,246,.6);
    box-shadow: 0 0 0 3px rgba(139,92,246,.08);
}

.form-submit {
    width: 100%;
    margin-top: 7px;
}

.modal-note {
    display: block;
    margin-top: 15px;
    text-align: center;

    color: #555560;
    font-size: 8px;
    line-height: 1.8;
}


/* Responsive */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 600px;
    }

    .hero-visual {
        height: 540px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .navbar,
    .hero,
    .about-section,
    .cta-section,
    footer {
        width: min(100% - 28px, 1220px);
    }

    .navbar {
        height: 70px;
    }

    .logo-text {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 55px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-meta {
        gap: 10px;
    }

    .meta-divider {
        height: 25px;
    }

    .hero-visual {
        transform: scale(.87);
        margin: -30px -35px;
    }

    .notification-card {
        right: -15px;
    }

    .message-card {
        left: -15px;
    }

    .about-section {
        padding-top: 80px;
    }

    .section-heading h2,
    .cta-content h2 {
        font-size: 35px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
        text-align: center;
    }

    .modal-box {
        padding: 28px 22px;
    }
}


/* =========================
   LOGIN MODAL
========================= */

#loginModal {
    z-index: 110;
}

#loginModal .modal-box {
    animation: loginModalGlow 5s ease-in-out infinite alternate;
}

@keyframes loginModalGlow {

    from {
        box-shadow:
            0 40px 100px rgba(0, 0, 0, .65),
            0 0 0 rgba(139, 92, 246, 0);
    }

    to {
        box-shadow:
            0 40px 100px rgba(0, 0, 0, .65),
            0 0 60px rgba(139, 92, 246, .08);
    }

}


#loginForm {
    margin-top: 25px;
}


#loginForm .form-submit {
    margin-top: 7px;
}


#loginModal .modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, .09);
}