﻿/* =====================================================================
   BaYaHoo Messenger â€” طµظپط­ظ‡ظ” آ«ط¨ظ‡â€Œط²ظˆط¯غŒآ»
   ظ¾ط§ظ„طھ ط¨ط±ظ†ط¯: ط³ط±ظ…ظ‡â€Œط§غŒ #0a2647 / #061224 ظˆ ط·ظ„ط§غŒغŒ #d4a747 / #e8c86a
   ===================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --navy-950: #061224;
    --navy-900: #081b33;
    --navy-800: #0a2647;
    --gold: #d4a747;
    --gold-2: #e8c86a;
    --text: #e7eef8;
    --muted: #93a7c1;
    --line: rgba(212, 167, 71, .24);
    --card: rgba(255, 255, 255, .035);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: clamp(1.2rem, 5vw, 3rem);
    font-family: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(212, 167, 71, .10), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(10, 38, 71, .9), transparent 65%),
        linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, #06172c);
    background-attachment: fixed;
    overflow-x: hidden;
    text-align: center;
}

/* ---------- ظ‡ط§ظ„ظ‡â€Œظ‡ط§غŒ ظ¾ط³â€Œط²ظ…غŒظ†ظ‡ ---------- */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

.glow--one {
    width: 420px;
    height: 420px;
    top: -140px;
    inset-inline-start: -120px;
    background: radial-gradient(circle, rgba(212, 167, 71, .45), transparent 70%);
}

.glow--two {
    width: 520px;
    height: 520px;
    bottom: -220px;
    inset-inline-end: -160px;
    background: radial-gradient(circle, rgba(30, 90, 160, .5), transparent 70%);
}

/* ---------- ع©ط§ط±طھ ط§طµظ„غŒ ---------- */
.card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), var(--card));
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
}

/* ---------- ط¨ط±ظ†ط¯ ---------- */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1.6rem;
}

.die {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 18px rgba(212, 167, 71, .35));
}

.brand__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.brand__name {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #b8892f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__sub {
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
}

/* ---------- ظ†ط´ط§ظ† آ«ط¨ظ‡â€Œط²ظˆط¯غŒآ» ---------- */
.badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .32rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(212, 167, 71, .1);
    color: var(--gold-2);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2px;
}

h1 {
    margin: 0 0 .8rem;
    font-size: clamp(1.55rem, 5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.35;
}

.lead {
    margin: 0 auto 1.5rem;
    max-width: 42ch;
    color: var(--muted);
    font-size: clamp(.94rem, 2.6vw, 1.02rem);
    line-height: 1.95;
}

/* ---------- ظˆغŒعکع¯غŒâ€Œظ‡ط§ ---------- */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 0 0 1.8rem;
    padding: 0;
    list-style: none;
}

.features li {
    padding: .38rem .8rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: #c6d5e8;
    font-size: .8rem;
}

/* ---------- ط¯ع©ظ…ظ‡â€Œظ‡ط§ ---------- */
.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #0a2647;
    box-shadow: 0 10px 26px rgba(212, 167, 71, .28);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(212, 167, 71, .38);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    cursor: not-allowed;
}

/* ---------- ظ¾ط§ظ†ظˆط´طھ ---------- */
.footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    color: rgba(147, 167, 193, .75);
    font-size: .78rem;
}

.footer__sep { opacity: .5; }

.footer__motto {
    font-family: system-ui, 'Segoe UI', sans-serif;
    letter-spacing: .3px;
}

.noscript {
    position: relative;
    z-index: 1;
    max-width: 46ch;
    color: var(--muted);
    font-size: .8rem;
}

/* ---------- ط¯ط³طھط±ط³â€Œظ¾ط°غŒط±غŒ ظˆ ظ…ظˆط¨ط§غŒظ„ ---------- */
@media (max-width: 420px) {
    .brand { gap: .55rem; }
    .die { width: 52px; height: 52px; }
    .brand__name { font-size: 1.45rem; }
    .features li { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}

.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 3px;
}

.footer__link {
    color: var(--gold-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 167, 71, .35);
}

.footer__link:hover {
    color: var(--gold);
}
