/* ==========================================
   شهپارس کلود — استایل اصلی (تم تاریک) 
   ========================================== */

:root {
    --bg: #0b0e17;
    --bg-alt: #11141f;
    --card: #151a28;
    --border: #232a3d;
    --text: #e8ecf5;
    --muted: #93a0b8;
    --accent: #5b8cff;
    --accent-2: #22d3ee;
    --green: #34d399;
    --danger: #f87171;
    --radius: 14px;
    --glow: 0 8px 30px rgba(91, 140, 255, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Vazirmatn, "Vazir", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
b { color: var(--accent); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ========== هدر ========== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo { font-size: 22px; font-weight: 800; display: flex; gap: 2px; }
.logo-brand { color: var(--text); }
.logo-underline { color: var(--accent); }

.nav-links { display: flex; gap: 26px; color: var(--muted); font-size: 15px; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
    border: 1px solid transparent; transition: all 0.2s; }

.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(91, 140, 255, 0.1); }

.btn-glow {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: var(--glow);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(91, 140, 255, 0.4); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ========== هیرو ========== */
.hero {
    background:
        radial-gradient(800px 300px at 20% 0%, rgba(91, 140, 255, 0.12), transparent 60%),
        radial-gradient(700px 300px at 90% 10%, rgba(34, 211, 238, 0.08), transparent 60%),
        var(--bg);
    padding: 90px 0 110px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 18px;
}
.hero p {
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 640px;
    margin: 0 auto 34px;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 40px; justify-content: center; margin-top: 54px; flex-wrap: wrap;
}
.hero-stats b { display: block; font-size: 30px; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* ========== بخش‌ها ========== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-title { font-size: 30px; font-weight: 800; text-align: center; }
.section-subtitle { color: var(--muted); text-align: center; margin: 8px 0 40px; }

/* ========== کارت پلن ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s, border-color 0.25s;
    animation: fadeInUp 0.5s ease both;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }

.card-title { font-size: 21px; font-weight: 800; }

.price-container { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.price-main { font-size: 26px; font-weight: 900; color: var(--accent); }
.price-unit { color: var(--muted); font-size: 14px; margin-right: 6px; }
.price-note { color: var(--muted); font-size: 13px; margin-top: 4px; }

.card-features { list-style: none; display: flex; flex-direction: column; gap: 9px; color: var(--muted); font-size: 14px; }
.card-features li { display: flex; align-items: center; }

.order-btn { margin-top: auto; }

/* ========== اسکلتون / خطا ========== */
.skeleton-card {
    background: linear-gradient(90deg, var(--card), var(--bg-alt), var(--card));
    background-size: 200% 100%;
    border-radius: var(--radius);
    height: 320px;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.state-empty, .state-error { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.state-error { color: var(--danger); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== چرا ما ========== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
}
.why-icon { font-size: 34px; margin-bottom: 12px; }
.why-card h3 { margin-bottom: 8px; font-size: 17px; }
.why-card p { color: var(--muted); font-size: 14px; }

/* ========== لوکیشن‌ها ========== */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.location-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.flag-icon { font-size: 28px; }
.loc-name { font-weight: 700; }
.loc-country { color: var(--muted); font-size: 13px; margin-right: auto; }

/* ========== سوالات ========== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question {
    padding: 17px 20px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-arrow { transition: transform 0.25s; color: var(--muted); }
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    color: var(--muted); padding: 0 20px; font-size: 15px;
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 17px; }

/* ========== فوتر ========== */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 40px 0; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-note { display: flex; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ========== ریسپانسیو ========== */
@media (max-width: 860px) {
    .nav-links {
        position: fixed; top: 68px; right: 0; left: 0;
        background: var(--bg); flex-direction: column; gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%); transition: transform 0.3s;
        z-index: 40;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { padding: 16px 22px; border-top: 1px solid var(--border); }
    .menu-toggle { display: flex; }
    .header-actions .btn { font-size: 13px; padding: 9px 14px; }
}