@font-face {
    font-family: 'IRANSans';
    src: url('/static/fonts/IRANSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
:root {
    --page-bg: #f6f8fb;
    --page-bg-alt: #eef4ef;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.55);
    --surface-border: rgba(15, 23, 42, 0.08);
    --surface-border-strong: rgba(15, 23, 42, 0.12);

    --text-main: #102033;
    --text-muted: #5f6f82;
    --text-soft: #7d8b9a;

    --accent: #22c55e;
    --accent-2: #16a34a;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --accent-soft-2: rgba(34, 197, 94, 0.08);

    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.10);

    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --radius-xs: 12px;
}

/* Page base */
.download-page,
.home-page {
    direction: rtl;
    text-align: right;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 30%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.06), transparent 28%),
        linear-gradient(180deg, var(--page-bg) 0%, #ffffff 55%, var(--page-bg-alt) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Section spacing */
.hero-section,
.features-section,
.download-section,
.footer-section {
    padding: 4rem 0;
    position: relative;
}

/* Shared card / glass system */
.hero-card,
.role-card,
.platform-card,
.footer-cta,
.glass-section {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.hero-card::before,
.role-card::before,
.platform-card::before,
.footer-cta::before,
.glass-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.34), transparent 40%);
    pointer-events: none;
}

.hero-card > *,
.role-card > *,
.platform-card > *,
.footer-cta > *,
.glass-section > * {
    position: relative;
    z-index: 1;
}

/* Hero */
.hero-badge,
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .95rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #14532d;
    border: 1px solid rgba(34, 197, 94, 0.20);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.badge-icon {
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.2));
}

.hero-title,
.section-title {
    font-size:clamp(1.2rem, 2.2vw, 2.2rem);
    color: var(--text-main);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin: 1rem 0 1rem;
    line-height:1.25;
}

.hero-title .accent {
    color: var(--accent-2);
    text-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.hero-description,
.section-subtitle,
.role-meta p,
.platform-top p,
.note-box {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 16px;
    padding: .85rem 1.2rem;
    font-weight: 800;
    transition: all .25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.btn-outline-primary,
.btn-outline-secondary {
    border: 1px solid var(--surface-border-strong);
    background: rgba(255,255,255,0.65);
    color: var(--text-main);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: var(--accent-soft);
    border-color: rgba(34, 197, 94, 0.24);
    color: #14532d;
    transform: translateY(-2px);
}

/* Hero media */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.hero-visual img {
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.12));
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}

.stat-card .num {
    display: block;
    color: var(--accent-2);
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: .35rem;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.8;
}

/* Sections */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    margin-bottom: .75rem;
}

.section-subtitle {
    max-width: 820px;
    margin: 0 auto;
}

/* Role cards */
.role-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.role-card {
    padding: 1.5rem;
}

.role-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.role-meta h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: .4rem;
}

.role-meta p {
    margin: 0;
    max-width: 900px;
}

.screenshot-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.shot {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: .75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.device {
    border-radius: 16px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.device img {
    width: 100%;
    height: auto;
    display: block;
}

.shot-caption {
    margin-top: .75rem;
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: #14532d;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
}

/* Download grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.platform-card {
    padding: 1.3rem;
    min-height: 100%;
}

.platform-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-info {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.platform-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.06));
    border: 1px solid rgba(34, 197, 94, 0.18);
    font-size: 1.6rem;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
}

.platform-top h4 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
}

.platform-top p {
    margin: .25rem 0 0;
    font-size: .95rem;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-top: 1rem;
}

.download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    transition: all .22s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    background: rgba(34, 197, 94, 0.09);
    border-color: rgba(34, 197, 94, 0.22);
    color: var(--text-main);
}

.name {
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: .2rem;
}

.desc {
    font-size: .9rem;
    color: var(--text-muted);
}

.go {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border: 1px solid rgba(34, 197, 94, 0.16);
    color: var(--accent-2);
    font-weight: 900;
    flex: 0 0 auto;
}

.note-box {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

/* Footer CTA */
.footer-cta {
    padding: 2rem;
    text-align: center;
}

.footer-cta h3 {
    margin-bottom: .85rem;
    font-size: clamp(1.1rem, 2.2vw, 2rem);
    font-weight: 900;
    color: var(--text-main);
}

.footer-cta p {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.9;
}

/* Responsive */
@media (max-width: 1199px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .screenshot-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .hero-section,
    .features-section,
    .download-section,
    .footer-section {
        padding: 2.5rem 0;
    }

    .hero-card,
    .role-card,
    .platform-card,
    .footer-cta {
        border-radius: 20px;
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .role-head,
    .platform-top {
        flex-direction: column;
    }

    .screenshot-strip {
        grid-template-columns: 1fr;
    }
}
