:root {
    --bg: #0c1220;
    --bg-soft: #111827;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --accent: #10b981;
    --success: #34d399;
    --gradient: linear-gradient(135deg, #f59e0b 0%, #10b981 55%, #06b6d4 100%);
    --shadow: 0 24px 80px rgba(245, 158, 11, 0.16);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(11, 15, 26, 0.78);
    border-bottom: 1px solid var(--border);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.15rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover { background: var(--surface-hover); }

.hero {
    position: relative;
    padding: 140px 0 90px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.14), transparent 30%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.hero-stat span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

.flow-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.flow-step:last-child { border-bottom: none; }

.flow-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.flow-step strong { display: block; margin-bottom: 2px; }
.flow-step p { color: var(--text-muted); font-size: 0.88rem; }

.section {
    padding: 84px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: background 0.2s, transform 0.2s;
}

.feature-card:hover {
    background: var(--surface-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fde68a;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
}

.step-card .num {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.step-card h3 { font-size: 0.98rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.85rem; }

.gateways-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
}

.gateways-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gateway-chip {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: 0.86rem;
    color: #e2e8f0;
}

.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.api-panel {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.api-panel-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
}

.api-code {
    padding: 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #cbd5e1;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    white-space: pre;
}

.api-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.api-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.method {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.method-get { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.method-post { background: rgba(245, 158, 11, 0.15); color: #fde68a; }

.api-item code {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #cbd5e1;
    direction: ltr;
    text-align: left;
    word-break: break-all;
}

.cta {
    padding: 72px 0;
}

.cta-box {
    background: var(--gradient);
    border-radius: 28px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.cta-box p {
    opacity: 0.92;
    margin-bottom: 24px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-actions .btn-ghost {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.operator-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.operator-card:hover { transform: translateY(-4px); }

.operator-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}

.operator-card h3 { margin-bottom: 8px; }
.operator-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.btn-sm { padding: 10px 16px; font-size: 0.85rem; }

.buy-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.buy-form,
.buy-aside {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
}

.buy-aside h3 { margin-bottom: 16px; font-size: 1.1rem; }

.buy-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.buy-benefits li {
    position: relative;
    padding-right: 22px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.buy-benefits li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 800;
}

.trust-box {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.trust-box p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.45);
}

.form-hint {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amount-chip input { display: none; }

.amount-chip span {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s;
}

.amount-chip input:checked + span {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

.recharge-preview .recharge-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.recharge-preview .recharge-line:last-child { border-bottom: none; }
.recharge-preview .recharge-line span { color: var(--text-muted); }
.recharge-preview .recharge-line.success strong { color: var(--success); }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 960px) {
    .hero-grid,
    .features-grid,
    .steps-grid,
    .api-grid,
    .operators-grid,
    .buy-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        flex-direction: column;
        padding: 20px;
        background: rgba(11, 15, 26, 0.96);
        border-bottom: 1px solid var(--border);
    }

    .site-nav.open { display: flex; }

    .menu-toggle { display: inline-flex; }
}
