/*
Theme Name: Messenger Landing
Theme URI: https://example.com
Author: Custom
Description: قالب تک‌صفحه‌ای وردپرس مخصوص معرفی پیام‌رسان (مشابه ایتا). تمامی متن‌ها، لینک‌ها و تصاویر از طریق بخش «شخصی‌سازی» وردپرس قابل ویرایش هستند.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: msg-landing
*/

:root{
    --orange:#f3811f;
    --orange-dark:#e06d0c;
    --orange-light:#ffe9d2;
    --dark:#1c1c1c;
    --text:#3a3a3a;
}

*{box-sizing:border-box;}

body{
    margin:0;
    font-family: Tahoma, "Vazirmatn", sans-serif;
    direction:rtl;
    color:var(--text);
    background:#fff;
}

a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
img{max-width:100%;display:block;}

.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* Header */
.site-header{
    background:var(--orange);
    position:sticky;
    top:0;
    z-index:100;
}
.site-header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:60px;
}
.site-logo img{
    height:34px;
    width:34px;
    border-radius:8px;
}
.main-nav ul{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}
.main-nav a{
    color:#fff;
    font-size:14px;
    padding:8px 12px;
    border-radius:6px;
    transition:background .2s;
}
.main-nav a:hover,
.main-nav a.is-active{
    background:rgba(255,255,255,.18);
}
.nav-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:26px;
    cursor:pointer;
}

/* Hero */
.hero{
    position:relative;
    padding:90px 0 70px;
    background-size:cover;
    background-position:center;
    color:#fff;
    overflow:hidden;
}
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg, rgba(15,15,15,.78), rgba(15,15,15,.45));
}
.hero .container{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    flex-wrap:wrap;
}
.hero-text{flex:1 1 380px;}
.hero-logo img{
    width:110px;
    height:110px;
    border-radius:26px;
    margin-bottom:24px;
}
.hero-title{
    font-size:34px;
    font-weight:700;
    margin:0 0 30px;
}
.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}
.hero-buttons a{
    background:var(--orange);
    color:#fff;
    padding:13px 26px;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:transform .15s, background .2s;
}
.hero-buttons a:hover{
    background:var(--orange-dark);
    transform:translateY(-2px);
}
.hero-image{
    flex:1 1 380px;
    text-align:center;
}
.hero-image img{
    max-height:420px;
    margin:0 auto;
    border-radius:10px;
}

/* About */
.about{
    padding:80px 0;
}
.about .container{
    display:flex;
    align-items:center;
    gap:60px;
    flex-wrap:wrap;
}
.about-image{flex:1 1 300px; text-align:center;}
.about-image img{
    max-width:280px;
    margin:0 auto;
    border:10px solid #222;
    border-radius:30px;
}
.about-text{flex:2 1 420px;}
.about-text h2{
    font-size:30px;
    color:var(--orange-dark);
    margin-bottom:18px;
    position:relative;
    padding-bottom:14px;
}
.about-text h2::after{
    content:"";
    position:absolute;
    bottom:0;
    right:0;
    width:60px;
    height:4px;
    background:var(--orange);
    border-radius:2px;
}
.about-text p{
    font-size:16px;
    line-height:2;
    margin-bottom:16px;
}

/* Why / Features */
.why{
    background:var(--orange-light);
    padding:60px 0 70px;
    text-align:center;
}
.why h2{
    font-size:30px;
    color:#c0440f;
    margin-bottom:10px;
}
.why .subtitle{
    font-size:16px;
    color:#7a4a26;
    margin-bottom:40px;
}
.feature-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:24px;
}
.feature-item{
    width:160px;
}
.feature-icon{
    width:80px;
    height:80px;
    margin:0 auto 14px;
    border-radius:50%;
    background:#fff;
    border:2px solid var(--orange);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    color:var(--orange-dark);
    overflow:hidden;
}
.feature-icon img{width:38px;height:38px;}
.feature-item .label{
    font-weight:600;
    font-size:14px;
    color:var(--dark);
}

/* Footer */
.site-footer{
    background:#15171a;
    color:#cfcfcf;
    padding:50px 0 25px;
}
.footer-grid{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:space-between;
    align-items:flex-start;
}
.footer-brand{
    display:flex;
    align-items:flex-start;
    gap:14px;
    flex:1 1 200px;
}
.footer-brand img{width:60px;}
.footer-info{
    flex:2 1 380px;
    text-align:center;
}
.footer-info .rules-link{
    color:var(--orange);
    font-weight:600;
    display:inline-block;
    margin-bottom:10px;
}
.footer-info p{
    font-size:13px;
    line-height:2;
    margin:4px 0;
    color:#9b9b9b;
}
.back-to-top{
    position:fixed;
    left:24px;
    bottom:24px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--orange);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 14px rgba(0,0,0,.25);
}

.enamad-badge{
    display:inline-block;
    margin-top:14px;
}
.enamad-badge img{
    width:80px;
}

/* Footer versions */
.footer-versions{
    margin-top:36px;
    padding-top:26px;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
}
.version-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin-bottom:18px;
}
.version-list li{
    display:flex;
    align-items:center;
    gap:6px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:30px;
    padding:8px 16px;
    font-size:13px;
    transition:border-color .2s, background .2s, transform .2s;
}
.version-list li:hover{
    border-color:var(--orange);
    background:rgba(243,129,31,.1);
    transform:translateY(-2px);
}
.version-list .v-platform{
    color:#9b9b9b;
}
.version-list .v-num{
    color:var(--orange);
    font-weight:700;
    direction:ltr;
}
.developed-by{
    font-family:"Lalezar", Tahoma, sans-serif;
    font-size:20px;
    letter-spacing:.5px;
    color:#cfcfcf;
    margin:0;
}
.developed-by span{
    background:linear-gradient(90deg, var(--orange), #ffb066, var(--orange));
    background-size:200% auto;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    animation:msgl-shine 4s linear infinite;
}
@keyframes msgl-shine{
    0%{background-position:0% center;}
    100%{background-position:200% center;}
}

/* Scroll reveal */
.reveal-up{
    opacity:0;
    transform:translateY(40px);
    transition:opacity .7s ease, transform .7s ease;
}
.reveal-up.is-visible{
    opacity:1;
    transform:translateY(0);
}

/* Responsive */

/* Tablet */
@media (max-width:900px){
    .nav-toggle{display:block;}
    .main-nav{
        position:absolute;
        top:60px;
        right:0;
        left:0;
        background:var(--orange-dark);
        display:none;
        flex-direction:column;
        z-index:999;
        box-shadow:0 8px 24px rgba(0,0,0,.3);
    }
    .main-nav.is-open{display:flex;}
    .main-nav ul{flex-direction:column;padding:8px 0;}
    .main-nav a{
        padding:12px 20px;
        border-radius:0;
        border-bottom:1px solid rgba(255,255,255,.08);
        font-size:15px;
    }

    .hero{padding:60px 0 50px;}
    .hero .container{gap:30px;}
    .hero-text{flex:1 1 300px;}
    .hero-image{flex:1 1 260px;}
    .hero-title{font-size:28px;}
    .hero-logo img{width:90px;height:90px;}

    .about .container{gap:40px;}
    .about-image{flex:1 1 240px;}
    .about-text{flex:1 1 280px;}
    .about-text h2{font-size:26px;}

    .feature-item{width:150px;}
}

/* Mobile */
@media (max-width:640px){

    /* ─── Header ─── */
    .site-header{position:sticky;top:0;z-index:100;}
    .site-header .container{height:56px;}
    .site-logo img{height:32px;width:32px;}
    .nav-toggle{font-size:24px;}
    .main-nav{top:56px;}

    /* ─── Hero: دقیقاً مثل دسکتاپ، کنار هم ─── */
    .hero{padding:30px 0 24px;}
    .hero .container{
        flex-direction:row;
        flex-wrap:nowrap;
        align-items:center;
        justify-content:space-between;
        gap:14px;
    }
    .hero-text{
        flex:1 1 0;
        min-width:0;
    }
    .hero-logo img{
        width:54px;
        height:54px;
        border-radius:14px;
        margin-bottom:10px;
    }
    .hero-title{
        font-size:15px;
        line-height:1.7;
        margin-bottom:14px;
    }
    .hero-buttons{
        flex-direction:column;
        gap:7px;
    }
    .hero-buttons a{
        padding:9px 12px;
        font-size:12px;
        border-radius:9px;
        gap:5px;
    }
    .hero-image{
        flex:0 0 auto;
        width:42%;
        text-align:center;
    }
    .hero-image img{
        width:100%;
        max-height:none;
        border-radius:10px;
        margin:0 auto;
    }

    /* ─── About: کنار هم مثل دسکتاپ ─── */
    .about{padding:30px 0;}
    .about .container{
        flex-direction:row;
        flex-wrap:nowrap;
        align-items:center;
        gap:16px;
    }
    .about-image{
        flex:0 0 auto;
        width:38%;
        text-align:center;
    }
    .about-image img{
        max-width:100%;
        border-width:6px;
        border-radius:20px;
    }
    .about-text{
        flex:1 1 0;
        min-width:0;
        text-align:right;
    }
    .about-text h2{
        font-size:15px;
        margin-bottom:10px;
        padding-bottom:10px;
    }
    .about-text h2::after{
        right:0;
        transform:none;
        width:40px;
        height:3px;
    }
    .about-text p{
        font-size:12px;
        line-height:1.9;
        margin-bottom:8px;
    }

    /* ─── Why / Features ─── */
    .why{padding:36px 0 40px;}
    .why h2{font-size:18px;}
    .why .subtitle{font-size:12.5px;margin-bottom:22px;}
    .feature-grid{gap:10px;}
    .feature-item{width:calc(50% - 10px);max-width:140px;}
    .feature-icon{width:58px;height:58px;font-size:22px;}
    .feature-icon img{width:28px;height:28px;}
    .feature-item .label{font-size:12px;}

    /* ─── Footer ─── */
    .site-footer{padding:36px 0 16px;}
    .footer-grid{
        flex-direction:column;
        align-items:center;
        gap:0;
        text-align:center;
    }
    .footer-brand{
        flex-direction:column;
        align-items:center;
        gap:10px;
        width:100%;
        margin-bottom:22px;
    }
    .footer-brand img:first-child{width:46px;}
    .enamad-badge{margin-top:6px;}
    .enamad-badge img{width:64px;}
    .footer-info{width:100%;flex:none;text-align:center;}
    .footer-info p{font-size:12px;}
    .footer-versions{margin-top:20px;padding-top:16px;}
    .version-list{gap:7px;}
    .version-list li{font-size:11px;padding:5px 10px;}
    .developed-by{font-size:16px;}

    /* ─── Back to top ─── */
    .back-to-top{left:12px;bottom:14px;width:36px;height:36px;font-size:15px;}
}

