/* ============================================================
   SA Silver — استایل وب‌سایت عمومی (۵ صفحه‌ای)
   تم فیروزه‌ای / زمردی — روشن و تاریک — کاملاً ریسپانسیو
   ============================================================ */

/* ---------- فونت برند ---------- */
@font-face {
    font-family: 'BHOMA';
    src: url('../font/bhoma.woff2') format('woff2'),
         url('../font/bhoma.woff') format('woff'),
         url('../font/bhoma.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- متغیرها ---------- */
:root {
    --teal-1: #0d9488;
    --teal-2: #14b8a6;
    --cyan:   #06b6d4;
    --accent-gradient: linear-gradient(135deg, #0d9488, #14b8a6, #06b6d4);

    --bg:        #f2faf8;
    --bg-soft:   #ffffff;
    --surface:   #ffffff;
    --surface-2: #f0faf8;
    --text:      #0f2e2a;
    --text-2:    #3d5d57;
    --muted:     #7fa39c;
    --border:    #d9ece8;

    --shadow-sm: 0 2px 10px rgba(13, 148, 136, .08);
    --shadow:    0 16px 45px rgba(13, 148, 136, .14);
    --shadow-lg: 0 30px 80px rgba(13, 148, 136, .18);

    --radius:    20px;
    --radius-sm: 14px;
    --header-h:  72px;
}

[data-theme="dark"] {
    --bg:        #06110f;
    --bg-soft:   #0a1a17;
    --surface:   #0d211d;
    --surface-2: #0f2723;
    --text:      #e8f5f2;
    --text-2:    #bcd8d2;
    --muted:     #7fa39c;
    --border:    #1c3733;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .45);
    --shadow:    0 18px 50px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 90px rgba(0, 0, 0, .6);
}

/* ---------- پایه ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.site-body {
    font-family: 'BHOMA', 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.9;
    overflow-x: hidden;
    transition: background .3s ease, color .3s ease;
}

.site-body a { text-decoration: none; color: inherit; }
.site-body img { max-width: 100%; }
.site-body i[class*="fa-"] { font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands'; }
.site-body input, .site-body button, .site-body textarea, .site-body select { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- لوگو ---------- */
.site-brand { display: inline-flex; align-items: center; }
.site-logo-img { height: 38px; width: auto; max-width: 180px; object-fit: contain; }
.site-logo-text { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.site-logo-text span {
    font-weight: 400;
    background: var(--accent-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   هدر
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 900;
    height: var(--header-h);
    display: flex; align-items: center;
    background: var(--bg-soft);
    background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav-link {
    padding: 9px 16px; border-radius: 999px; font-size: 15px; color: var(--text-2);
    transition: all .2s ease; white-space: nowrap;
}
.site-nav-link:hover { color: var(--teal-1); background: var(--surface-2); }
.site-nav-link.active { color: var(--teal-1); background: var(--surface-2); font-weight: 700; }
.site-nav-cta { color: #fff !important; background: var(--accent-gradient); font-weight: 700; }
.site-nav-cta:hover { filter: brightness(1.05); background: var(--accent-gradient); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.theme-toggle-btn:hover { color: var(--teal-1); border-color: var(--teal-1); transform: rotate(15deg); }

.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 18px; cursor: pointer;
}
.nav-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(6, 17, 15, .55);
    z-index: 850; backdrop-filter: blur(2px);
}
.nav-backdrop.show { display: block; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 700;
    cursor: pointer; border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 12px 30px rgba(13, 148, 136, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(13, 148, 136, .4); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { color: var(--teal-1); border-color: var(--teal-1); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .24); }

/* ============================================================
   هیرو
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    padding: 70px 0 90px;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(20, 184, 166, .18), transparent 60%),
        radial-gradient(800px 450px at 5% 5%, rgba(6, 182, 212, .12), transparent 60%),
        var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--teal-1);
    font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.35; font-weight: 800; margin-bottom: 18px; }
.hero h1 .grad {
    background: var(--accent-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17px; color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--teal-1); }

.hero-panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
    box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-panel-head h3 { font-size: 16px; font-weight: 800; }
.market-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.market-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-1); box-shadow: 0 0 0 0 rgba(13,148,136,.6); animation: pulse 2s infinite; }
.market-status.closed .dot { background: #f59e0b; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(13,148,136,0); } 100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); } }

/* ---------- کارت‌های قیمت ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.price-card {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; transition: all .25s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--teal-2); }
.price-card.feature { background: var(--accent-gradient); border: none; color: #fff; box-shadow: 0 14px 34px rgba(13,148,136,.3); }
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.price-card-label { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.price-card.feature .price-card-label { color: rgba(255,255,255,.92); }
.price-card-value { font-size: 26px; font-weight: 800; letter-spacing: .3px; }
.price-card-value small { font-size: 12px; font-weight: 400; color: var(--muted); }
.price-card.feature .price-card-value small { color: rgba(255,255,255,.85); }
.price-card-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.price-card.feature .price-card-note { color: rgba(255,255,255,.82); }

.change { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; }
.change.up { color: #0f9d6b; background: rgba(16, 185, 129, .13); }
.change.down { color: #e11d48; background: rgba(225, 29, 72, .12); }
.price-card.feature .change.up, .price-card.feature .change.down { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- نوار قیمت متحرک ---------- */
.ticker {
    background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden; padding: 12px 0;
}
.ticker-track { display: flex; gap: 44px; width: max-content; animation: ticker 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; white-space: nowrap; color: var(--text-2); }
.ticker-item b { color: var(--text); }
.ticker-item i { color: var(--teal-1); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ============================================================
   بخش‌ها
   ============================================================ */
.section { padding: 74px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.section-eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal-1);
    background: var(--surface-2); border: 1px solid var(--border); padding: 6px 15px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 16px; }

/* ---------- شبکه ویژگی‌ها ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; transition: all .28s ease; position: relative; overflow: hidden;
}
.feature-box::after {
    content: ''; position: absolute; inset: 0 0 auto auto; width: 0; height: 3px;
    background: var(--accent-gradient); transition: width .35s ease;
}
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--teal-2); }
.feature-box:hover::after { width: 100%; }
.feature-ico {
    width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; background: var(--accent-gradient); margin-bottom: 16px;
}
.feature-box h3 { font-size: 17px; margin-bottom: 8px; }
.feature-box p { color: var(--text-2); font-size: 14px; }

/* ---------- مراحل ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -16px; right: 22px; width: 34px; height: 34px; border-radius: 12px;
    background: var(--accent-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.step h3 { font-size: 16px; margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: 13.5px; }

/* ---------- آمار ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { font-size: 32px; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 13.5px; }

/* ---------- جدول قیمت ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.price-table th, table.price-table td { padding: 14px 16px; text-align: right; font-size: 13.5px; border-bottom: 1px solid var(--border); }
table.price-table th { background: var(--surface-2); color: var(--text-2); font-weight: 700; }
table.price-table tr:last-child td { border-bottom: none; }
table.price-table td.val { font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
    width: 100%; text-align: right; background: none; border: none; color: var(--text);
    font-size: 15px; font-weight: 700; padding: 18px 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-q i { color: var(--teal-1); transition: transform .3s ease; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--text-2); font-size: 14px; }
.faq-a > div { padding: 0 20px 18px; }

/* ---------- CTA ---------- */
.cta-band {
    background: var(--accent-gradient); color: #fff; border-radius: 28px; padding: 54px 40px;
    text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px;
    background: rgba(255,255,255,.14); border-radius: 50%;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .95; margin-bottom: 24px; position: relative; }
.cta-band .btn-light, .cta-band .btn-primary { position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--teal-1); box-shadow: 0 12px 30px rgba(0,0,0,.2); }

/* ---------- صفحات داخلی ---------- */
.page-hero { padding: 56px 0 34px; background: radial-gradient(800px 340px at 90% -20%, rgba(20,184,166,.16), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-2); max-width: 640px; font-size: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--teal-1); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.info-card .feature-ico { margin-bottom: 14px; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p { color: var(--text-2); font-size: 14px; }

.prose { max-width: 860px; margin: 0 auto; color: var(--text-2); font-size: 15.5px; line-height: 2.1; }
.prose h2 { color: var(--text); font-size: 24px; margin: 30px 0 12px; }
.prose h3 { color: var(--text); font-size: 18px; margin: 22px 0 10px; }
.prose ul { padding-right: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- فرم ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; color: var(--text-2); }
.field input, .field textarea, .field select {
    background: var(--surface); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14.5px; outline: none; transition: all .2s ease; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal-1); box-shadow: 0 0 0 4px rgba(13,148,136,.12); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert.success { background: rgba(16,185,129,.12); color: #0f9d6b; border: 1px solid rgba(16,185,129,.3); }
.alert.error { background: rgba(225,29,72,.1); color: #e11d48; border: 1px solid rgba(225,29,72,.28); }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-card i { font-size: 26px; color: var(--teal-1); margin-bottom: 10px; }
.contact-card .k { font-size: 13px; color: var(--muted); }
.contact-card .v { font-size: 16px; font-weight: 700; margin-top: 4px; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--teal-1); }
.footer-about p { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.footer-contact { display: flex; align-items: center; gap: 9px; }
.footer-contact i, .footer-badge i { color: var(--teal-1); }
.footer-badge { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13.5px; padding: 4px 0; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
.footer-made i { color: #e11d48; }

/* ---------- انیمیشن ورود ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .feature-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 62px; }
    .site-nav {
        position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(82vw, 320px);
        background: var(--bg-soft); border-left: 1px solid var(--border); flex-direction: column;
        align-items: stretch; gap: 4px; padding: 18px; z-index: 880; transform: translateX(100%);
        transition: transform .3s ease; overflow-y: auto;
    }
    .site-nav.open { transform: translateX(0); }
    .site-nav-link { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; text-align: right; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-actions .btn-ghost, .header-actions .btn-primary { display: none; }
    .hero { padding: 44px 0 60px; }
    .price-cards { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .feature-grid, .info-grid, .stats, .footer-grid, .contact-cards, .form-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; row-gap: 30px; }
    .cta-band { padding: 40px 22px; }
}

@media (max-width: 420px) {
    .site-logo-text { font-size: 22px; }
    .hero h1 { font-size: 27px; }
}

/* ---------- حالت چاپ ---------- */
@media print {
    .site-header, .site-footer, .nav-toggle, .cta-band { display: none !important; }
    body.site-body { background: #fff; color: #000; }
}
