/* ===================================================================
   SimBazaar (سیم‌بازار) - Premium Landing Page Stylesheet
   Ultra-Fast, SEO-Optimized, Mobile-First Persian RTL Design
   =================================================================== */

:root {
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Color Palette */
    --bg-primary: #090D16;
    --bg-secondary: #0F172A;
    --bg-card: rgba(17, 24, 39, 0.78);
    --bg-card-hover: rgba(30, 41, 59, 0.88);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.45);

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Brand Gradients */
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --accent-indigo: #6366F1;
    --accent-purple: #8B5CF6;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;

    /* Store Colors */
    --bazaar-green: #10B981;
    --bazaar-dark: #059669;

    --shadow-sm: 0 4px 10px -1px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 22px 42px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 38px rgba(99, 102, 241, 0.25);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

body {
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ambient Background Lights Wrapper */
.ambient-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.35;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6366F1 0%, transparent 70%);
    top: -50px;
    left: -50px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8B5CF6 0%, #EC4899 40%, transparent 70%);
    bottom: 10%;
    right: -50px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Section Header */
.section-header {
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #A5B4FC;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-bazaar {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.32);
}

.btn-bazaar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.48);
}

.btn-lg {
    padding: 0.9rem 1.65rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
}

.btn-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.25;
}

.btn-text-wrap strong {
    font-size: 0.95rem;
}

.btn-text-wrap span {
    font-size: 0.75rem;
    opacity: 0.88;
    font-weight: 400;
}

.store-svg, .icon {
    flex-shrink: 0;
}

/* Header & Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.brand-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    display: block;
    font-size: 0.72rem;
    color: #38BDF8;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.16);
    outline: none;
}

.nav-actions {
    flex-shrink: 0;
}

.nav-actions .btn {
    white-space: nowrap;
    border-radius: 999px;
}

.nav-cta-short {
    display: none;
}

@media (max-width: 1100px) {
    .nav-links a {
        padding: 0.45rem 0.7rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 960px) {
    .nav-links a[href="/about/"],
    .nav-links a[href="#how-it-works"],
    .nav-links a[href="/#faq"] {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 3.5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.badge-tag {
    background: var(--primary-gradient);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.725rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-text {
    color: #C7D2FE;
    font-weight: 500;
    line-height: 1.4;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.32;
    margin-bottom: 1.4rem;
}

.hero-description {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.2rem;
    max-width: 610px;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-bottom: 2.6rem;
}

/* Trust Stats Grid */
.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Hero Phone Mockup (Clean single bezel + clean inner screen) */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup-wrapper {
    position: relative;
    max-width: 315px;
    width: 100%;
}

.phone-frame {
    position: relative;
    background: #0D1426;
    border: 8px solid #26334D;
    border-radius: 44px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 65px rgba(99, 102, 241, 0.28);
    aspect-ratio: 9 / 19.5;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 16px;
    background: #060911;
    border-radius: 20px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Floating Micro Badges (Positioned cleanly beside bezel) */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    white-space: nowrap;
    animation: floatAnim 4.5s ease-in-out infinite;
}

.badge-top-left {
    top: 12%;
    left: -68px;
}

.badge-bottom-right {
    bottom: 10%;
    right: -68px;
    animation-delay: -2.25s;
}

.float-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-dot-green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.float-dot-amber {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.floating-badge strong {
    display: block;
    font-size: 0.84rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.floating-badge small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card.featured {
    border-color: rgba(99, 102, 241, 0.28);
    background: linear-gradient(180deg, rgba(30, 27, 75, 0.45) 0%, rgba(17, 24, 39, 0.82) 100%);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.telegram-bg { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.apple-bg { background: linear-gradient(135deg, #334155, #0F172A); border: 1px solid rgba(255,255,255,0.18); }
.ai-bg { background: linear-gradient(135deg, #10A37F, #059669); }
.whatsapp-bg { background: linear-gradient(135deg, #25D366, #128C7E); }
.insta-bg { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.steam-bg { background: linear-gradient(135deg, #5865F2, #4752C4); }

.service-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-weight: 600;
}

.tag-hot {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-new {
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.service-name {
    font-size: 1.22rem;
    margin-bottom: 0.6rem;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.68;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-ready {
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Countries Banner */
.countries-banner {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.countries-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.country-pill:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.flag-svg {
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Searchable 90-Service Catalog Directory */
.catalog-directory {
    margin-top: 2rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.catalog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.catalog-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.catalog-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.catalog-search-wrap {
    position: relative;
    flex: 1 1 280px;
    max-width: 380px;
}

.search-icon {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    padding: 0.7rem 2.6rem 0.7rem 1rem;
    background: rgba(9, 13, 22, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.catalog-search-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.catalog-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}

.catalog-tab:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.4);
}

.catalog-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
}

.catalog-chips-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 0.65rem;
    max-height: 360px;
    overflow-y: auto;
    padding-left: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.catalog-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.catalog-chip[hidden] {
    display: none;
}

.catalog-chip:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(30, 41, 59, 0.7);
}

.catalog-chip small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    direction: ltr;
    text-align: left;
    flex-shrink: 0;
}

.catalog-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1.25rem 0 0.25rem;
}

/* How-To 3-Step Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.step-title {
    font-size: 1.18rem;
    margin-bottom: 0.65rem;
}

.step-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.feature-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.icon-emerald { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.3); color: #34D399; }
.icon-amber   { background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.3); color: #FBBF24; }
.icon-purple  { background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3); color: #A78BFA; }
.icon-blue    { background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.3); color: #60A5FA; }
.icon-cyan    { background: rgba(6, 182, 212, 0.14);  border: 1px solid rgba(6, 182, 212, 0.3);  color: #22D3EE; }
.icon-pink    { background: rgba(236, 72, 153, 0.14); border: 1px solid rgba(236, 72, 153, 0.3); color: #F472B6; }

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.feature-text {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.72;
}

/* Guides Section */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.guide-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #D8B4FE;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.guide-title {
    font-size: 1.18rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.guide-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.guide-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.guide-checklist li {
    font-size: 0.875rem;
    color: var(--text-primary);
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.65;
}

.guide-checklist li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--accent-emerald);
    font-weight: 800;
}

/* Screenshots Responsive Showcase Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-glow);
}

.screenshot-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: #090D16;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.screenshot-item:hover .screenshot-frame img {
    transform: scale(1.03);
}

.screenshot-caption {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    line-height: 1.45;
    padding: 0 0.25rem 0.25rem;
}

/* Screenshot Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    gap: 1rem;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-img {
    max-height: 82vh;
    max-width: 92vw;
    width: auto;
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Accordion */
.faq-container {
    max-width: 850px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(20, 27, 45, 0.82);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: right;
    gap: 1rem;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-indigo);
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Download CTA Card */
.download-banner-section {
    padding: 4rem 0;
}

.download-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.download-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card-logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 2px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.card-mini-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-card-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.download-card-desc {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 600px;
    margin: 0 auto 2.25rem;
}

.download-buttons-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.15rem;
}

/* Footer */
.footer {
    background: #060911;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 400px;
}

.footer-links-col h4, .footer-trust-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: #A5B4FC;
}

.trust-tags {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.trust-tag {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.designer-text {
    font-size: 0.8rem;
    color: #475569;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    padding: 0.75rem 1.15rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-sticky-bar.visible {
    transform: translateY(0);
}

.sticky-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sticky-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.sticky-info strong {
    display: block;
    font-size: 0.875rem;
}

.sticky-info small {
    display: block;
    font-size: 0.725rem;
    color: var(--text-muted);
}

.sticky-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===================================================================
   Responsive Breakpoints
   =================================================================== */

@media (max-width: 1200px) {
    .badge-top-left, .badge-bottom-right {
        display: none;
    }

    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .trust-stats-grid {
        justify-content: center;
    }

    .services-grid, .features-grid, .guides-grid, .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        padding: 0.5rem 0.95rem;
    }

    .nav-cta-long {
        display: none;
    }

    .nav-cta-short {
        display: inline;
    }

    .hero-section {
        padding: 2.25rem 0 2rem;
    }

    .announcement-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
        gap: 0.5rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .phone-mockup-wrapper {
        max-width: 275px;
        margin: 0 auto;
    }

    .services-grid, .features-grid, .guides-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    .catalog-directory {
        padding: 1.25rem;
    }

    .catalog-search-wrap {
        max-width: 100%;
    }

    .catalog-chips-grid {
        grid-template-columns: 1fr;
        max-height: 310px;
    }

    .screenshots-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .screenshot-item {
        flex: 0 0 245px;
        scroll-snap-align: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .trust-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .download-card {
        padding: 2.5rem 1.25rem;
    }

    .download-card-title {
        font-size: 1.6rem;
    }

    .download-buttons-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        width: 100%;
    }

    .download-buttons-wrapper .btn {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer {
        padding-bottom: 5.5rem;
    }

    .mobile-sticky-bar {
        display: flex;
    }
}

/* AUTO-PAGES:CSS START — صفحه‌های سرویس (tools/landing_pages.py) */
.page-main { position: relative; z-index: 1; padding: 110px 0 40px; }
.page-container { max-width: 860px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.page-hero { margin-bottom: 26px; }
.page-title { font-size: clamp(1.55rem, 4.5vw, 2.3rem); line-height: 1.5; font-weight: 800; margin: 14px 0; }
.page-lead { color: var(--text-secondary); font-size: 1.05rem; }
.content-card, .page-cta { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.content-card h2, .page-cta h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.content-card p { color: var(--text-secondary); }
.page-cta { border-color: var(--border-color-hover); box-shadow: var(--shadow-glow); }
.page-cta p { color: var(--text-secondary); margin-bottom: 16px; }
.page-steps { padding-right: 22px; display: grid; gap: 8px; color: var(--text-secondary); }
.page-steps li::marker { color: var(--accent-indigo); font-weight: 800; }
.page-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(16, 185, 129, 0.1); color: var(--text-primary) !important; }
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.related-link { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.related-link:hover { border-color: var(--border-color-hover); color: var(--text-primary); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.hub-card { display: block; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; color: inherit; text-decoration: none; transition: var(--transition); }
.hub-card:hover { border-color: var(--border-color-hover); transform: translateY(-2px); }
.hub-card h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.hub-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }
.hub-more { color: var(--accent-indigo); font-size: 0.9rem; font-weight: 700; }
.page-main .faq-accordion { display: grid; gap: 10px; }
.service-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.facts-wrap { overflow-x: auto; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.facts-table th, .facts-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: top; text-align: start; }
.facts-table th { width: 30%; color: var(--text-primary); font-weight: 700; }
.facts-table td { color: var(--text-secondary); }
.ltr-page { direction: ltr; text-align: left; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.ltr-page .page-main { padding-top: 48px; }
.ltr-page .page-steps { padding-right: 0; padding-left: 22px; }
.ltr-page .brand-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-bottom: 8px; }
.ltr-page .en-cta { margin-top: 16px; }
@media (max-width: 640px) {
  .page-main { padding-top: 92px; }
  .ltr-page .page-main { padding-top: 28px; }
  .facts-table th { width: 38%; }
  .facts-table th, .facts-table td { padding: 9px 8px; font-size: 0.9rem; }
  .content-card, .page-cta { padding: 18px 16px; }
  .page-cta .hero-cta-group { flex-direction: column; }
  .page-cta .btn { width: 100%; }
}
/* فوتر مشترک */
.site-footer { background: #060911; border-top: 1px solid var(--border-color); padding: 3.5rem 0 1.5rem; position: relative; z-index: 1; }
.sf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.sf-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; margin-bottom: 1rem; }
.sf-logo img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(99, 102, 241, 0.35); }
.sf-logo strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.sf-logo small { display: block; font-size: 0.72rem; color: #38BDF8; font-weight: 600; letter-spacing: 0.5px; }
.sf-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.9; max-width: 360px; margin-bottom: 1.1rem; }
.sf-cta { border-radius: 999px; white-space: nowrap; }
.sf-col h3 { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; }
.sf-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.sf-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.sf-col a:hover, .sf-col a:focus-visible { color: #A5B4FC; }
.sf-col .sf-more { color: var(--accent-indigo, #818CF8); font-weight: 700; }
.sf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border-color); padding-top: 1.25rem; }
.sf-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sf-badges li { font-size: 0.78rem; color: var(--text-secondary); padding: 0.3rem 0.75rem; border: 1px solid var(--border-color); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.sf-badges li::before { content: "✓ "; color: #34D399; }
.sf-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
@media (max-width: 960px) {
  .sf-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 2.5rem; }
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; padding-bottom: 1.75rem; }
  .sf-col:last-child { grid-column: 1 / -1; }
  .sf-col:last-child ul { grid-template-columns: 1fr 1fr; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
  body:has(.mobile-sticky-bar) .site-footer { padding-bottom: 5.5rem; }
}
/* AUTO-PAGES:CSS END */
