@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@200;300;400;500;600;700;800&display=swap');

:root{
  --bg:#f6f8fb;
  --bg2:#ffffff;

  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;

  --accent:#10b981;
  --accent2:#14b8a6;
  --accentSoft: rgba(16,185,129,.12);

  --border: rgba(15,23,42,.10);
  --border2: rgba(15,23,42,.08);

  --shadow: 0 18px 45px rgba(15,23,42,.08);
  --shadow2: 0 10px 25px rgba(15,23,42,.06);

  --r12:12px;
  --r16:16px;
  --r20:20px;
  --r24:24px;

  --container:1180px;

  --space-1:6px;
  --space-2:10px;
  --space-3:14px;
  --space-4:18px;
  --space-5:24px;
  --space-6:32px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  direction:rtl;
  color:var(--text);
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(16,185,129,.10), transparent 55%),
    radial-gradient(820px 520px at 10% 0%, rgba(20,184,166,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), #eef3f8 55%, #f7f9fc);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
button{font-family:inherit}
img{max-width:100%; display:block}

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

/* =========================
   NAV (mobile-first)
========================= */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border2);
}
.nav:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.25;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.16) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,.32));
}
.nav-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
  min-width:0;
}
.brand .logo{
  width:34px;height:34px;border-radius:10px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.92), transparent 60%),
    linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 25px rgba(16,185,129,.18);
}
.brand span{white-space:nowrap}
.tag{
  display:none; /* در موبایل حذف تا هدر تمیز شود */
  margin-right:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
}

.menu{display:none} /* موبایل: فقط drawer */

.nav-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Buttons */
.btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  transition:.18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow: var(--shadow2);
}
.btn:hover{transform:translateY(-1px)}

.btn.primary{
  border:none;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 30px rgba(16,185,129,.18);
}
.btn.whatsapp{
  border:none;
  color:#fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 14px 30px rgba(22,163,74,.14);
}

.burger{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  box-shadow: var(--shadow2);
}
.burger span{
  display:block;
  width:20px;height:2px;
  background: rgba(15,23,42,.85);
  margin:5px auto;
  border-radius:3px;
}

/* Drawer */
.mobile-drawer{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.35);
  z-index:200;
}
.drawer-panel{
  position:absolute;
  top:0; right:0;
  width:min(360px, 86%);
  height:100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-left:1px solid var(--border2);
  padding:16px;
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 0 14px;
}
.drawer-links{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.drawer-links a{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border2);
  background:#fff;
  color:var(--text);
  font-weight:900;
}

/* Sticky WA */
.sticky-wa{
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:120;
  display:block;
}

/* =========================
   HERO (mobile-first)
========================= */
.hero{
  padding:16px 0 8px;
}
.hero .container{
  position:relative;
}
.hero .container:before{
  content:"";
  position:absolute;
  inset:-14px -14px auto -14px;
  height: 250px;
  border-radius: var(--r24);
  background:
    radial-gradient(520px 220px at 85% 25%, rgba(16,185,129,.16), transparent 62%),
    radial-gradient(520px 260px at 15% 10%, rgba(20,184,166,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.55));
  border:1px solid var(--border2);
  box-shadow: var(--shadow2);
  pointer-events:none;
}
.hero .container:after{
  content:"";
  position:absolute;
  inset:-14px -14px auto -14px;
  height: 250px;
  border-radius: var(--r24);
  pointer-events:none;
  opacity:.20;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.20) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at 25% 40%, rgba(0,0,0,1), rgba(0,0,0,.25), transparent 70%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr; /* موبایل: 1 ستون */
  gap:12px;
  align-items:start;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: var(--accentSoft);
  border:1px solid rgba(16,185,129,.20);
  color:var(--muted);
  font-weight:900;
  font-size:12.5px;
}

.h1{
  margin:10px 0 8px;
  font-size:28px;
  line-height:1.55;
  letter-spacing:-.2px;
}
.h1 strong{font-weight:900}

.lead{
  margin:0 0 10px;
  color:var(--muted);
  font-size:14.5px;
  line-height:2.05;
}

.hero-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.hero-actions .btn{width:100%}

.hero-meta{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.meta-pill{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  color:var(--muted);
  font-size:12.5px;
  font-weight:900;
}

/* Hero Visual: در موبایل به جای 2×2، 1 ستون شیک */
.hero-visual{
  border-radius: var(--r24);
  background: rgba(255,255,255,.90);
  border:1px solid var(--border2);
  box-shadow: var(--shadow2);
  padding:14px;
}
.mini-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.mini-card{
  border-radius: var(--r20);
  background:#fff;
  border:1px solid var(--border2);
  padding:12px;
  box-shadow: var(--shadow2);
}
.mini-card b{display:block; font-size:14px; margin-bottom:4px}
.mini-card span{display:block; color:var(--muted2); font-size:13px; line-height:1.85}

.mini-note{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: var(--r20);
  background: rgba(16,185,129,.08);
  border:1px solid rgba(16,185,129,.18);
  color:var(--muted);
  font-weight:900;
  font-size:13px;
}
.dot-ok{
  width:10px;height:10px;border-radius:50%;
  background: var(--accent);
  box-shadow: 0 10px 18px rgba(16,185,129,.25);
}

/* =========================
   SECTIONS / GRID (mobile-first)
========================= */
.section{padding:18px 0}
.section-head{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}
.section-head .btn{justify-self:start}

.h2{margin:0; font-size:20px; line-height:1.6}
.h3{margin:0 0 8px; font-size:15px}
.p{margin:0; color:var(--muted); font-size:13.8px; line-height:2}

/* Grid: موبایل = 1 ستون */
.grid{display:grid; gap:12px}
.grid.cards{grid-template-columns:1fr}
.grid.pricing{grid-template-columns:1fr}
.grid.portfolio{grid-template-columns:1fr}
.grid.two{grid-template-columns:1fr}

.card{
  border-radius: var(--r24);
  background:#fff;
  border:1px solid var(--border2);
  padding:14px;
  box-shadow: var(--shadow2);
  transition:.18s ease;
}
.card:hover{transform: translateY(-2px); box-shadow: var(--shadow)}
.card h3{margin:0 0 6px; font-size:15.5px}
.card p{margin:0; color:var(--muted); font-size:13.5px; line-height:2}

.link{
  display:inline-flex;
  margin-top:10px;
  font-weight:900;
  color: var(--accent2);
}
.link:hover{text-decoration:underline}

/* service icons */
.icon{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  margin-bottom:10px;
  position:relative;
  overflow:hidden;
}
.icon:before{
  content:"";
  position:absolute;
  inset:-18px -18px auto auto;
  width:60px;height:60px;
  background: radial-gradient(circle, rgba(16,185,129,.28), transparent 65%);
}
.icon.i2:before{background: radial-gradient(circle, rgba(20,184,166,.26), transparent 65%)}
.icon.i3:before{background: radial-gradient(circle, rgba(16,185,129,.18), transparent 65%)}

.seo-block{
  margin-top:12px;
  border-radius: var(--r24);
  background: rgba(255,255,255,.86);
  border:1px dashed rgba(15,23,42,.16);
  padding:14px;
  box-shadow: var(--shadow2);
}

/* Pricing helpers */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
}
.badge.hot{background: rgba(16,185,129,.14); border-color:rgba(16,185,129,.22)}
.badge.new{background: rgba(20,184,166,.12); border-color:rgba(20,184,166,.20)}

.price-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.plan-title{display:flex; flex-direction:column; gap:4px}
.plan-title b{font-size:16px}
.plan-title span{color:var(--muted2); font-size:12.5px}
.plan-cta{margin-top:14px; width:100%; justify-content:center}

.list{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.95;
}
.check{
  width:20px;height:20px;
  border-radius:8px;
  background: rgba(16,185,129,.10);
  border:1px solid rgba(16,185,129,.22);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  margin-top:2px;
}
.check:before{content:"✓"; font-weight:900; color: var(--accent)}

.quick{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.pill{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  font-weight:900;
  font-size:12.5px;
  color:var(--muted);
}

/* Reveal */
.reveal{opacity:0; transform:translateY(10px); transition:.5s ease}
.reveal.show{opacity:1; transform:translateY(0)}

/* =========================
   FOOTER (mobile-first)
========================= */
.footer{
  margin-top:20px;
  background:
    radial-gradient(700px 260px at 80% 0%, rgba(16,185,129,.12), transparent 60%),
    radial-gradient(720px 320px at 10% 10%, rgba(20,184,166,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  border-top:1px solid var(--border2);
}
.footer-top{
  padding:18px 0;
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.footer-brand .brand{margin-bottom:8px}

.footer-cta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.footer-cta .btn{width:100%}

.footer-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.fcol{
  border-radius: var(--r24);
  background: rgba(255,255,255,.90);
  border:1px solid var(--border2);
  padding:14px;
  box-shadow: var(--shadow2);
}
.fcol h3{margin:0 0 10px; font-size:15px}
.fcol a{
  display:block;
  padding:8px 0;
  color:var(--muted);
  font-weight:900;
}
.fcol a:hover{color:var(--text)}
.mini-btn{
  padding:10px 12px !important;
  border-radius:14px;
  border:1px solid var(--border2);
  background:#fff;
  box-shadow: var(--shadow2);
  margin-bottom:8px;
}

.footer-bottom{
  padding:12px 0 18px;
  border-top:1px solid var(--border2);
}
.small{color:var(--muted2); font-size:13px; line-height:2}

/* =========================
   DESKTOP / TABLET Enhancements
========================= */
@media (min-width: 820px){
  .container{width:min(var(--container), calc(100% - 44px))}
  .menu{display:flex; align-items:center; gap:8px}
  .menu a{
    padding:10px 12px;
    border-radius:12px;
    color:var(--muted);
    font-weight:900;
    font-size:14px;
    transition:.18s ease;
  }
  .menu a:hover{background:rgba(15,23,42,.04); color:var(--text)}
  .menu a.active{
    background: var(--accentSoft);
    color:var(--text);
    border:1px solid rgba(16,185,129,.22);
  }

  .burger{display:none}
  .tag{display:inline-flex}

  .hero{padding:42px 0 16px}
  .hero-grid{grid-template-columns: 1.05fr .95fr; gap:16px}
  .h1{font-size:36px}
  .hero-actions{grid-template-columns: auto auto; justify-content:start; width:max-content}
  .hero-actions .btn{width:auto}

  .mini-grid{grid-template-columns: 1fr 1fr} /* دسکتاپ: 2×2 */
  .grid.cards{grid-template-columns: repeat(3, 1fr)}
  .grid.pricing{grid-template-columns: repeat(3, 1fr)}
  .grid.portfolio{grid-template-columns: repeat(3, 1fr)}
  .grid.two{grid-template-columns: repeat(2, 1fr)}

  .section-head{
    grid-template-columns: 1fr auto;
    align-items:end;
  }
  .footer-top{
    grid-template-columns: 1.05fr .95fr;
    gap:18px;
  }
  .footer-cols{grid-template-columns: repeat(3, 1fr)}
  .footer-cta{grid-template-columns: auto auto; width:max-content}
}

@media (max-width: 360px){
  .hero-actions{grid-template-columns:1fr}
  .footer-cta{grid-template-columns:1fr}
  .btn{font-size:13.5px}
}
