/* پایه مشترک: فونت وزیرمتن (محلی) و متغیرهای رنگ برند — تم تیره مدرن */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #05070f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #e6eaf2;
  --ink-soft: #94a3b8;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --accent: #f59e0b;
  --grad: linear-gradient(120deg, #818cf8 0%, #22d3ee 100%);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(99, 102, 241, 0.45); }

/* پس‌زمینه: هاله‌های نور و شبکه محو */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.orb-a { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(99, 102, 241, 0.35); }
.orb-b { width: 420px; height: 420px; top: 30%; left: -160px; background: rgba(34, 211, 238, 0.18); }
.orb-c { width: 460px; height: 460px; bottom: -180px; right: 22%; background: rgba(245, 158, 11, 0.12); }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* سطوح شیشه‌ای */
.glass {
  background: rgba(13, 18, 33, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.87rem; border-radius: 10px; }
.btn-primary {
  background: var(--grad);
  color: #0b0f1d;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(99, 102, 241, 0.5); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(129, 140, 248, 0.6); }

/* انیمیشن ورود با اسکرول */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
