/* ============================================================
   Choobin — Landing Page (دانلود اپلیکیشن)
   Dark liquid-glass monochrome, matching the Choobin app theme.
   ============================================================ */

:root {
    --bg: #050505;
    --text: #f2f2f2;
    --muted: #9a9a9a;
    --glass-border: rgba(255, 255, 255, 0.12);
    --bazaar: #ef3e36;
    --myket: #00b6e6;
    --google: #00d474;
    --accent: #ffffff;
    --radius: 18px;
}

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

html, body { height: 100%; }

body {
    font-family: "Segoe UI", Tahoma, "IRANSans", Vazirmatn, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- background ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    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: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 20%, transparent 78%);
    pointer-events: none;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 88% 12%, rgba(255,255,255,.09), transparent 60%),
        radial-gradient(800px 560px at 8% 88%, rgba(255,255,255,.06), transparent 60%);
}

.bg-orbs::before,
.bg-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.bg-orbs::before {
    width: 460px; height: 460px;
    top: -120px; right: -120px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    animation: float1 18s ease-in-out infinite alternate;
}
.bg-orbs::after {
    width: 520px; height: 520px;
    bottom: -160px; left: -140px;
    background: radial-gradient(circle, rgba(255,255,255,.09), transparent 70%);
    animation: float2 22s ease-in-out infinite alternate;
}

@keyframes float1 { to { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes float2 { to { transform: translate(50px, -30px) scale(1.08); } }

/* ---------- nav ---------- */
.nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 28px;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }

.nav-logo {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.18);
}
.nav-logo img { width: 100%; height: 100%; object-fit: cover; }

.nav-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; }

.nav-web {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.05);
    transition: all .2s ease;
}
.nav-web:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ---------- layout ---------- */
.landing {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 28px 60px;
    direction: ltr; /* physical ordering: CTA left, devices right */
}

.col { flex: 1 1 0; min-width: 0; }
.col-cta { direction: rtl; }
.col-devices { direction: ltr; }

/* ---------- left column ---------- */
.tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #0a0a0a;
    background: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: .3px;
    box-shadow: 0 8px 22px rgba(255,255,255,.18);
    animation: rise .7s ease both;
}

.title {
    font-size: clamp(40px, 5.4vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    margin: 18px 0 6px;
    letter-spacing: .5px;
    animation: rise .7s .08s ease both;
}
.title em {
    display: block;
    font-style: normal;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 2px;
}

.desc {
    color: var(--muted);
    font-size: 16px;
    max-width: 460px;
    margin: 16px 0 26px;
    animation: rise .7s .16s ease both;
}

/* ---------- store buttons ---------- */
.stores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 500px;
}

.dl {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: rise .7s ease both;
}
.dl:nth-child(1) { animation-delay: .22s; }
.dl:nth-child(2) { animation-delay: .28s; }
.dl:nth-child(3) { animation-delay: .34s; }
.dl:nth-child(4) { animation-delay: .40s; }

.dl:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0,0,0,.5);
}

.dl-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.dl-icon svg { width: 24px; height: 24px; }

.dl-text { display: flex; flex-direction: column; line-height: 1.3; }
.dl-text small { font-size: 11px; color: var(--muted); }
.dl-text strong { font-size: 15px; font-weight: 700; }

.dl-bazaar .dl-icon { background: rgba(239,62,54,.18); color: var(--bazaar); }
.dl-bazaar:hover { border-color: var(--bazaar); box-shadow: 0 16px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(239,62,54,.4); }

.dl-myket .dl-icon { background: rgba(0,182,230,.16); color: var(--myket); }
.dl-myket:hover { border-color: var(--myket); box-shadow: 0 16px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(0,182,230,.4); }

.dl-google .dl-icon { background: rgba(0,212,116,.16); color: var(--google); }
.dl-google:hover { border-color: var(--google); box-shadow: 0 16px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(0,212,116,.4); }

.dl-direct .dl-icon { background: rgba(255,255,255,.12); color: #fff; }
.dl-direct:hover { border-color: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.35); }

/* ---------- web button ---------- */
.web-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: #0a0a0a;
    background: linear-gradient(135deg, #fff, #cfcfcf);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: rise .7s .46s ease both;
}
.web-btn svg { width: 20px; height: 20px; }
.web-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,0,0,.6), 0 0 0 3px rgba(255,255,255,.18); }

/* ---------- points ---------- */
.points {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    animation: rise .7s .5s ease both;
}
.points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}
.points li::before {
    content: '';
    width: 18px; height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- right column: devices ---------- */
.stage {
    position: relative;
    height: 560px;
    animation: rise .9s .15s ease both;
}

/* monitor */
.mock.monitor {
    position: absolute;
    top: 0;
    left: 10px;
    width: 430px;
}
.monitor .screen {
    width: 100%;
    height: 270px;
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(160deg, #181818, #0c0c0c);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
    overflow: hidden;
}
.monitor .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.monitor-stand {
    width: 60px;
    height: 52px;
    margin: -2px auto 0;
    background: linear-gradient(180deg, #2a2a2a, #161616);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.monitor-base {
    width: 170px;
    height: 10px;
    margin: 0 auto;
    border-radius: 8px;
    background: linear-gradient(180deg, #333, #1a1a1a);
    box-shadow: 0 14px 26px rgba(0,0,0,.5);
}

/* phone */
.mock.phone {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    padding: 11px;
    border-radius: 34px;
    background: linear-gradient(160deg, #262626, #101010);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 40px 80px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.14);
    animation: floatPhone 6s ease-in-out infinite;
}
.phone-screen {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 20px;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(255,255,255,.1);
    z-index: 2;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* placeholders when no screenshot uploaded */
.empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,.35);
    font-size: 13px;
    text-align: center;
}
.empty svg { width: 42px; height: 42px; opacity: .6; }

/* ---------- footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 20px 34px;
    color: rgba(255,255,255,.35);
    font-size: 13px;
}

/* ---------- entrance ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

/* tablet / small desktop: scale the device stage down */
@media (max-width: 1080px) {
    .stage { height: 500px; }
    .mock.monitor { width: 380px; }
    .monitor .screen { height: 238px; }
    .mock.phone { width: 172px; }
    .phone-screen { height: 344px; }
    .mock.phone { bottom: 6px; }
}

@media (max-width: 900px) {
    .nav { padding: 16px 18px; }
    .landing {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 18px 30px;
        gap: 20px;
    }
    .col-cta { display: flex; flex-direction: column; align-items: center; }
    .desc { margin-left: auto; margin-right: auto; }
    .stores, .points { margin-left: auto; margin-right: auto; }
    .stores { max-width: 440px; }
    .stage {
        position: relative;
        height: auto;
        width: 100%;
        max-width: 460px;
        margin: 30px auto 44px;
        padding-bottom: 6px;
    }
    .mock.monitor { position: static; width: 100%; }
    .monitor .screen { height: 185px; }
    .mock.phone {
        position: absolute;
        right: 4px;
        bottom: -26px;
        width: 148px;
        box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
    }
    .phone-screen { height: 242px; }
    .points { align-items: center; }
    .points li { text-align: right; }
}

/* small tablets & large phones */
@media (max-width: 600px) {
    .title { font-size: clamp(34px, 10vw, 44px); }
    .title em { font-size: clamp(17px, 4.6vw, 22px); }
    .desc { font-size: 15px; max-width: 420px; }
    .stores { grid-template-columns: 1fr; max-width: 360px; width: 100%; }
    .dl { padding: 12px 14px; }
    .tagline { font-size: 12px; }
    .web-btn { width: 100%; justify-content: center; }
}

/* phones */
@media (max-width: 480px) {
    .nav { padding: 14px 14px; }
    .nav-logo { width: 38px; height: 38px; border-radius: 50%; }
    .nav-name { font-size: 18px; }
    .nav-web { font-size: 12px; padding: 8px 14px; }
    .landing { padding: 6px 14px 24px; }
    .mock.phone { width: 130px; bottom: -22px; right: 2px; padding: 9px; border-radius: 28px; }
    .phone-screen { height: 216px; border-radius: 20px; }
    .phone-notch { width: 56px; height: 16px; top: 6px; }
    .monitor .screen { height: 168px; padding: 9px; border-radius: 13px; }
    .stage { margin-bottom: 36px; }
    .points li { font-size: 13px; }
}

/* very small phones */
@media (max-width: 360px) {
    .nav-web { display: none; }
    .mock.phone { width: 112px; }
    .phone-screen { height: 188px; }
    .monitor .screen { height: 150px; }
    .title { font-size: 32px; }
    .dl-icon { width: 38px; height: 38px; }
    .dl-icon svg { width: 21px; height: 21px; }
    .footer { padding: 14px 16px 26px; font-size: 12px; }
}

/* short landscape phones */
@media (max-height: 600px) and (orientation: landscape) {
    .landing { padding-top: 6px; }
    .stage { margin-top: 16px; }
    .monitor .screen { height: 150px; }
    .phone-screen { height: 175px; }
    .mock.phone { width: 108px; bottom: -18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
