/* ── Vazirmatn — self-hosted (no Google Fonts) ─────────────── */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/Vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/Vazirmatn-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/Vazirmatn-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

/* ── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items: center;
  padding: 0 2rem; gap: 1.5rem;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-size: 0.88rem; color: #374151;
  text-decoration: none; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 0.5rem 1.3rem; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
  margin-top: 3rem;
}
.site-footer .footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.65); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--primary-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-version { font-size: 0.78rem; opacity: 0.45; }

/* ── Page hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 3rem 2rem; text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; font-size: 1rem; }

/* ── Container & Cards ─────────────────────────────────────── */
.container { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem;
}
.card h2 {
  font-size: 1.2rem; font-weight: 700; color: #1e293b;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.card h3 { font-size: 1rem; font-weight: 600; color: #334155; margin: 1.25rem 0 0.5rem; }
.card p { color: #475569; margin-bottom: 0.75rem; }
.card ul { color: #475569; padding-right: 1.5rem; margin-bottom: 0.75rem; }
.card ul li { margin-bottom: 0.4rem; }
.card a { color: var(--primary); text-decoration: none; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}
.plan-badge {
  position: absolute; top: -12px; right: 50%; transform: translateX(50%);
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 1rem; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }
.plan-price span { display: block; font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-top: 0.25rem; }
.plan-features { list-style: none; text-align: right; margin-bottom: 1.75rem; flex-grow: 1; }
.plan-features li {
  padding: 0.45rem 0; color: #475569; font-size: 0.92rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.plan-features li::before { content: '✓'; color: #16a34a; font-weight: 800; }
.plan-cta {
  display: block; padding: 0.75rem 1.5rem; border-radius: 10px;
  background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 600; transition: background 0.2s, transform 0.15s;
}
.plan-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.plan-cta.outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.plan-cta.outline:hover { background: rgba(99, 102, 241, 0.08); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; max-width: 640px; margin: 2rem auto 0; }
.pricing-loading { text-align: center; color: var(--text-muted); grid-column: 1 / -1; padding: 2rem 0; }

/* ── Contact grid ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.contact-item { background: var(--bg); border-radius: 12px; padding: 1.25rem; text-align: center; }
.contact-item .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.contact-item strong { display: block; font-size: 0.9rem; color: #374151; margin-bottom: 0.25rem; }
.contact-item span { font-size: 0.85rem; color: var(--text-muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; }
  .container { padding: 1.5rem 1rem; }
  .site-footer .footer-inner { flex-direction: column; text-align: center; }
}
