/* آتوسا — استایل اصلی سایت
   رنگ‌ها: سبز + کرم طلایی */
:root {
  --green-900: #0d332c;
  --green-800: #10403a;
  --green-700: #17574b;
  --green-600: #1f6f5f;
  --green-100: #e2eeea;
  --gold-600: #a5752c;
  --gold-500: #c39446;
  --gold-300: #e2c88a;
  --cream-50: #f8f3ea;
  --cream-100: #f2e9d8;
  --cream-200: #eadfc8;
  --ink: #1b2a23;
  --muted: #5b6b63;
  --line: #e4d8c0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 64, 58, .10);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--cream-50);
  color: var(--ink);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { line-height: 1.5; color: var(--green-900); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; right: -999px; }
.skip:focus { right: 16px; top: 16px; background: var(--gold-500); color: var(--green-900); padding: 8px 14px; border-radius: 8px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 234, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--green-900); }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: var(--cream-100); box-shadow: 0 0 0 2px var(--gold-300); object-fit: cover; }
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--gold-600); line-height: 1; }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--green-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-family: inherit; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--green-900); }
.btn-gold:hover { color: var(--green-900); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(195,148,70,.35); }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-ghost:hover { background: var(--green-700); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(195,148,70,.25), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(31,111,95,.18), transparent 60%),
    var(--cream-100);
  padding: 80px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--green-100); color: var(--green-700);
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; margin-bottom: 16px;
}
.eyebrow.gold { background: rgba(195,148,70,.18); color: var(--gold-600); }
.hero h1 span { color: var(--green-700); position: relative; }
.hero h1 span::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 4px; height: 10px;
  background: var(--gold-300); opacity: .6; z-index: -1; border-radius: 4px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--green-800); font-weight: 500; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--gold-600); font-weight: 800; margin-left: 6px; }

/* Dashboard mockup */
.mock {
  background: #fff; border-radius: 22px; box-shadow: 0 30px 60px rgba(16,64,58,.18);
  border: 1px solid var(--line); overflow: hidden;
}
.mock-top { background: var(--green-800); padding: 12px 16px; display: flex; gap: 6px; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-300); opacity: .8; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { background: var(--cream-100); border-radius: 12px; padding: 12px; }
.mock-stat b { display: block; font-size: 1.2rem; color: var(--green-800); }
.mock-stat span { font-size: .78rem; color: var(--muted); }
.mock-chart { height: 130px; border-radius: 12px; background: var(--cream-50); border: 1px solid var(--line); padding: 12px; display: flex; align-items: flex-end; gap: 8px; }
.mock-chart div { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--green-600), var(--green-800)); }
.mock-chart div:nth-child(even) { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--cream-50); font-size: .85rem; }
.pill { font-size: .72rem; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-weight: 700; }
.pill.gold { background: rgba(195,148,70,.2); color: var(--gold-600); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.bg-white { background: #fff; }
.bg-cream { background: var(--cream-100); }
.bg-green { background: var(--green-900); color: var(--cream-100); }
.bg-green h2, .bg-green h3 { color: var(--cream-50); }
.bg-green p { color: #cfe0d6; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: var(--gold-300);
}
.icon svg { width: 28px; height: 28px; }
.card ul { margin: 14px 0 0; padding: 0 18px 0 0; color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step, persian);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-500); color: var(--green-900); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 2.2rem; color: var(--gold-300); font-weight: 800; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { padding: 8px 34px 8px 0; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; right: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.panel { background: var(--cream-100); border-radius: 24px; padding: 32px; border: 1px solid var(--line); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); }
th { background: var(--green-800); color: var(--cream-50); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green-700); font-weight: 800; }
td.no { color: #b0574a; }

/* Pricing */
.price-card { position: relative; text-align: center; }
.price-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -14px; right: 50%; transform: translateX(50%); background: var(--gold-500); color: var(--green-900); padding: 4px 16px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--green-800); margin: 10px 0; }
.price-card ul { text-align: right; list-style: none; padding: 0; margin: 20px 0; }
.price-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: 28px; padding: 56px 32px; text-align: center; color: var(--cream-100); position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(195,148,70,.18); top: -120px; left: -80px; }
.cta-box h2 { color: var(--cream-50); position: relative; }
.cta-box p { color: #cfe0d6; position: relative; max-width: 620px; margin: 0 auto 24px; }
.cta-box .btn { position: relative; }

/* Article (blog) */
.page-hero { background: var(--cream-100); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "‹"; margin-left: 6px; color: var(--gold-600); }
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-right: 22px; }
.article li { margin-bottom: 6px; }
.tldr { background: #fff; border-right: 5px solid var(--gold-500); border-radius: 12px; padding: 20px 24px; margin: 24px 0; box-shadow: var(--shadow); }
.tldr strong { color: var(--green-800); }
.toc { background: var(--green-100); border-radius: 14px; padding: 20px 24px; margin: 24px 0; }
.toc ol { margin: 8px 0 0; }
.meta { color: var(--muted); font-size: .9rem; }
.post-card h3 a { color: var(--green-900); }

/* Contact form */
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; color: var(--green-900); font-size: .95rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); margin-top: 6px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold-500); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe0d6; padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--gold-300); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe0d6; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .brand { color: var(--cream-50); margin-bottom: 12px; }
.copy { border-top: 1px solid rgba(227,204,143,.2); margin-top: 40px; padding-top: 20px; text-align: center; font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 72px; right: 0; left: 0; flex-direction: column; background: var(--cream-50);
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line); display: none;
  }
  .menu.open { display: flex; }
  .nav-cta .btn-gold { display: none; }
  .hero-grid, .split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 520px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
}
