@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0f1b33;
  --muted: #5b6784;
  --line: #e3e8f2;
  --brand: #1d5bff;
  --brand-dark: #1244c7;
  --accent: #10b981;
  --navy: #0b1530;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 51, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

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

/* ---------- نوار اعلان دمو ---------- */
.demo-bar {
  background: #fff7e0;
  color: #7a5a00;
  text-align: center;
  font-size: 13px;
  padding: 6px 16px;
  border-bottom: 1px solid #f3e2a8;
}

/* ---------- هدر ---------- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #6a8dff);
  display: grid; place-items: center; color: #fff;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { white-space: nowrap; color: var(--ink); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.active { background: #eef3ff; color: var(--brand); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }

/* ---------- دکمه ---------- */
.btn {
  display: inline-block; white-space: nowrap; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; transition: background .2s, transform .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-outline:hover { background: #eef3ff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- هیرو ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, #2a4ba8 0, transparent 45%), var(--navy);
  color: #fff;
  padding-block: 80px 90px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.5; margin: 0 0 16px; }
.hero h1 span { color: #7fa2ff; }
.hero p { color: #c3cde6; margin: 0 0 28px; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; }
.hero-stats span { color: #9fb0d6; font-size: 13px; }

.server-art { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; }
.rack { background: #13214a; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.rack:last-child { margin-bottom: 0; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.led.blue { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.rack-lines { flex: 1; display: grid; gap: 6px; }
.rack-lines i { display: block; height: 5px; border-radius: 3px; background: #26386e; }
.rack-lines i:nth-child(2) { width: 70%; }
.rack-meta { font-size: 12px; color: #9fb0d6; direction: ltr; }

/* ---------- بخش‌ها ---------- */
.section { padding-block: 72px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

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

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: #eef3ff; color: var(--brand); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }

/* ---------- تعرفه‌ها ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; font: inherit; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.plan .badge { position: absolute; top: -12px; left: 20px; background: var(--brand); color: #fff; font-size: 12px; padding: 2px 12px; border-radius: 999px; }
.plan h3 { margin-top: 0; }
.price { font-size: 26px; font-weight: 800; margin: 8px 0 2px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.plan li span { color: var(--muted); }

/* ---------- دامنه ---------- */
.domain-box { background: linear-gradient(135deg, var(--brand), #4f7bff); color: #fff; border-radius: 18px; padding: 40px 28px; text-align: center; }
.domain-box h2 { margin: 0 0 6px; }
.domain-form { display: flex; gap: 8px; max-width: 560px; margin: 22px auto 16px; background: #fff; border-radius: 12px; padding: 6px; }
.domain-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 8px 12px; direction: ltr; text-align: left; }
.tlds { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.tlds b { direction: ltr; display: inline-block; }
.domain-result { min-height: 24px; font-size: 14px; margin-top: 6px; }

/* ---------- سوالات ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 14px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- صفحات داخلی ---------- */
.page-head { background: var(--navy); color: #fff; padding-block: 48px; }
.page-head h1 { margin: 0; font-size: 28px; }
.page-head p { margin: 4px 0 0; color: #9fb0d6; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #34405c; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item b { display: block; }
.contact-item span { color: var(--muted); font-size: 14px; }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; background: #fbfcfe;
}
.form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-top: 12px; }

/* ---------- فوتر ---------- */
.footer { background: var(--navy); color: #b8c3de; padding-block: 56px 0; margin-top: 0; }
.footer .container.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: #b8c3de; }
.footer a:hover { color: #fff; }
.footer p { margin: 0 0 8px; font-size: 14px; }
.trust { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-slot {
  background: #fff; border-radius: 12px; padding: 8px;
  width: 125px; min-height: 136px; display: grid; place-items: center;
}
.trust-slot img { display: block; max-width: 110px; height: auto; }
.trust-placeholder { color: #8a94ad; font-size: 12px; text-align: center; line-height: 1.6; border: 1px dashed #c8d0e2; border-radius: 8px; padding: 18px 6px; width: 100%; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-block: 18px; font-size: 13px; text-align: center; }

/* ---------- پاسخ‌گرا ---------- */
@media (max-width: 1060px) {
  .header .header-cta { display: none; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer .container.cols { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .server-art { display: none; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px; flex-direction: column; }
  .nav.open { display: flex; }
  .header .header-cta { display: none; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .footer .container.cols { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .hero { padding-block: 56px 64px; }
  .domain-form { flex-direction: column; }
  .prose { padding: 22px; }
}
