:root {
    --sky: #38bdf8;
    --sky-dim: rgba(56, 189, 248, 0.15);
    --sky-glow: rgba(56, 189, 248, 0.4);
    --bg: #060b14;
    --bg2: #0c1422;
    --bg3: #101c2e;
    --text: #e2eaf4;
    --muted: #7a93b0;
    --border: rgba(56, 189, 248, 0.12);
    --card: rgba(16, 28, 46, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn','Tahoma', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Background grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

section,
nav,
footer {
    position: relative;
    z-index: 1;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0;
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sky);
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-brand .lock-icon {
    width: 32px;
    height: 32px;
    background: var(--sky-dim);
    border: 1px solid var(--sky);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--sky-glow);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s;
}

.nav-links a:hover {
    color: var(--sky);
    background: var(--sky-dim);
}

.nav-lang-btn {
    background: var(--sky-dim);
    border: 1px solid var(--border);
    color: var(--sky);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn','Tahoma', sans-serif;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.nav-lang-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--sky);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.25s;
}

.hamburger:hover {
    border-color: var(--sky);
    background: var(--sky-dim);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sky);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 11, 20, 0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 12px;
    transition: all 0.25s;
    width: 240px;
    text-align: center;
    border: 1px solid transparent;
}

.mobile-nav a:hover {
    color: var(--sky);
    background: var(--sky-dim);
    border-color: var(--border);
}

.mobile-nav .m-lang {
    margin-top: 20px;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sky-dim);
    border: 1px solid var(--border);
    color: var(--sky);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    font-family: 'Space Mono', monospace;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--sky);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #fff;
}

.hero h1 .sky {
    color: var(--sky);
}

.hero p.sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--sky);
    color: #060b14;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Vazirmatn','Tahoma', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background: #7dd3fc;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--sky);
    border: 1px solid var(--sky);
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Vazirmatn','Tahoma', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.btn-outline:hover {
    background: var(--sky-dim);
    transform: translateY(-2px);
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-wrap {
    position: relative;
}

.phone-wrap::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.phone {
    width: 260px;
    background: var(--bg2);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    width: 80px;
    height: 10px;
    background: #000;
    border-radius: 10px;
    margin: 0 auto 16px;
}

.phone-screen {
    background: var(--bg3);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.phone-icon {
    width: 28px;
    height: 28px;
    background: var(--sky-dim);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    font-size: 0.75rem;
}

.phone-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sky);
    font-family: 'Space Mono', monospace;
}

.phone-msg {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.68rem;
    color: var(--muted);
    font-family: 'Space Mono', monospace;
    word-break: break-all;
    line-height: 1.5;
}

.phone-msg.out {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.25);
    color: var(--sky);
}

.phone-label {
    font-size: 0.6rem;
    color: var(--muted);
    text-align: center;
    margin-top: 4px;
}

.phone-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 4px;
}

.phone-stat-label {
    font-size: 0.65rem;
    color: var(--muted);
}

.phone-stat-val {
    font-size: 0.65rem;
    color: var(--sky);
    font-family: 'Space Mono', monospace;
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.72rem;
    color: var(--sky);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.float-badge-1 {
    top: 20px;
    left: -125px;
    animation: floatY 3s ease-in-out infinite;
}

.float-badge-2 {
    bottom: 60px;
    right: -140px;
    animation: floatY 3.5s ease-in-out infinite reverse;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ── DOWNLOAD SECTION ── */
.download-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: var(--sky-dim);
    color: var(--sky);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 16px;
    font-family: 'Space Mono', monospace;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 560px;
}

.download-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
}

.download-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.08);
    transform: translateY(-4px);
}

.android-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.05));
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.android-logo svg {
    width: 44px;
    height: 44px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.download-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.store-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sky);
    color: #060b14;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.store-btn:hover {
    background: #7dd3fc;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.store-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--sky);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--sky);
    transition: all 0.25s;
}

.store-btn-outline:hover {
    background: var(--sky-dim);
    transform: translateY(-2px);
}

.version-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--border);
    color: var(--sky);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    display: inline-block;
    margin-bottom: 8px;
}

/* QR code side */
.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qr-box {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box svg {
    width: 88px;
    height: 88px;
}

.qr-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
}

/* ── FEATURES ── */
.features-section {
    padding: 80px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feat-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.07);
}

.feat-card:hover::after {
    opacity: 1;
}

.feat-icon {
    width: 48px;
    height: 48px;
    background: var(--sky-dim);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--sky);
}

.feat-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.feat-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ── SECURITY SECTION ── */
.security-section {
    padding: 80px 24px;
    background: var(--bg2);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sec-item {
    display: flex;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.25s;
}

.sec-item:hover {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(16, 28, 46, 0.95);
}

.sec-num {
    width: 32px;
    height: 32px;
    background: var(--sky-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sec-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sec-content p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

.security-visual {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.crypto-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--sky-dim);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    margin: 6px;
    min-width: 130px;
}

.crypto-badge .algo {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sky);
}

.crypto-badge .desc {
    font-size: 0.7rem;
    color: var(--muted);
}

.crypto-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

/* ── ABOUT ── */
.about-section {
    padding: 80px 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 48px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 0.97rem;
    line-height: 1.85;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sky);
    font-family: 'Space Mono', monospace;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

.about-img {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
}

.offline-badge .icon {
    color: var(--sky);
    font-size: 1.1rem;
}

.offline-badge .text {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
}

.offline-badge .sub {
    font-size: 0.75rem;
    color: var(--muted);
    display: block;
}

/* ── FOOTER ── */
footer {
    background: rgba(6, 11, 20, 0.95);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sky);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--sky);
}

.footer-copy {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.8;
}

/* ── DIVIDER ── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    .float-badge-1 {
        left: -60px;
        top: -20px;
    }

    .float-badge-2 {
        right: -50px;
        bottom: -40px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .store-badges {
        justify-content: center;
    }

    .download-qr {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* ── LTR OVERRIDES ── */
html[dir="ltr"] body {
    font-family: 'Space Mono', 'Vazirmatn','Tahoma', sans-serif;
}

html[dir="ltr"] .nav-brand {
    font-family: 'Space Mono', monospace;
}

html[dir="ltr"] .hero h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

html[dir="ltr"] .section-sub {
    text-align: left;
}

html[dir="ltr"] body {
    font-family: 'Vazirmatn','Tahoma', sans-serif;
}

/* ── SCROLL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}