/* ==========================================================================
   سامانه آموزش مجازی صالحان — صفحه اول (نسخه مدرن گلس)
   سبک: گلس‌مورفیزم | پالت: سرمه‌ای + فیروزه‌ای | RTL | فونت: استعداد
   حالت روشن و تیره با data-theme روی <html>
   ========================================================================== */

/* ---------- فونت ---------- */
/* اصلی: استعداد (Estedad) — مدرن و شبیه ایران‌یکان | fallback: وزیرمتن (روی سرور موجود است) */
@font-face {
  font-family: "Estedad";
  src: url("../../fonts/Estedad-Regular.woff2?v=20261115") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../../fonts/Estedad-Medium.woff2?v=20261115") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../../fonts/Estedad-SemiBold.woff2?v=20261115") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../../fonts/Estedad-Bold.woff2?v=20261115") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../../fonts/Estedad-ExtraBold.woff2?v=20261115") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../../fonts/Estedad-Black.woff2?v=20261115") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../../fonts/Vazirmatn-Regular.woff2?v=20261115") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../../fonts/Vazirmatn-Bold.woff2?v=20261115") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- متغیرها: حالت روشن ---------- */
:root {
  --navy-950: #081a31;
  --navy-900: #0b2a4a;
  --navy-800: #123a66;
  --navy-700: #17507e;
  --teal-700: #0f8f80;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --sky-400: #38bdf8;

  --bg: #eef4fa;
  --bg-grad-1: rgba(20, 184, 166, 0.20);
  --bg-grad-2: rgba(11, 42, 74, 0.16);
  --bg-grad-3: rgba(56, 189, 248, 0.14);

  --ink: #0d1b2e;
  --ink-soft: #24374f;
  --muted: #4e637e;
  --muted-2: #7e94ac;

  --glass-bg: rgba(255, 255, 255, 0.52);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-bg-soft: rgba(255, 255, 255, 0.34);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 18px 44px -18px rgba(11, 42, 74, 0.28);
  --glass-shadow-sm: 0 8px 22px -12px rgba(11, 42, 74, 0.22);
  --glass-hover-border: rgba(20, 184, 166, 0.55);

  --line: rgba(13, 27, 46, 0.10);
  --ring-track: rgba(13, 27, 46, 0.10);
  --bar-track: rgba(13, 27, 46, 0.09);

  --btn-primary-ink: #ffffff;
  --grad-cta: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #0b2a4a 130%);
  --grad-cta-glow: 0 14px 34px -10px rgba(13, 148, 136, 0.55);
  --grad-accent: linear-gradient(120deg, #0d9488 10%, #14b8a6 45%, #38bdf8 90%);
  --grad-ink: linear-gradient(135deg, var(--navy-900) 0%, #14546b 55%, var(--teal-600) 100%);

  --header-bg: rgba(255, 255, 255, 0.55);
  --footer-bg: rgba(255, 255, 255, 0.35);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

/* ---------- متغیرها: حالت تیره ---------- */
[data-theme="dark"] {
  --bg: #060f1e;
  --bg-grad-1: rgba(13, 148, 136, 0.20);
  --bg-grad-2: rgba(11, 42, 74, 0.55);
  --bg-grad-3: rgba(56, 189, 248, 0.10);

  --ink: #e9f1fa;
  --ink-soft: #c8d8ea;
  --muted: #93a9c2;
  --muted-2: #64809d;

  --glass-bg: rgba(16, 36, 60, 0.50);
  --glass-bg-strong: rgba(20, 42, 70, 0.72);
  --glass-bg-soft: rgba(16, 36, 60, 0.34);
  --glass-border: rgba(148, 197, 236, 0.14);
  --glass-shadow: 0 18px 44px -16px rgba(2, 8, 20, 0.65);
  --glass-shadow-sm: 0 8px 22px -12px rgba(2, 8, 20, 0.55);
  --glass-hover-border: rgba(45, 212, 191, 0.45);

  --line: rgba(148, 197, 236, 0.12);
  --ring-track: rgba(148, 197, 236, 0.14);
  --bar-track: rgba(148, 197, 236, 0.12);

  --grad-cta: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #0b2a4a 130%);
  --grad-accent: linear-gradient(120deg, #2dd4bf 10%, #14b8a6 45%, #38bdf8 90%);
  --grad-ink: linear-gradient(135deg, #bcd7f2 0%, #7dd8cc 55%, #2dd4bf 100%);

  --header-bg: rgba(7, 17, 32, 0.55);
  --footer-bg: rgba(9, 20, 36, 0.45);
}

/* ---------- ریست ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Estedad", "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(20, 184, 166, 0.30); }
:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- پس‌زمینه تزئینی ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 1;
}
.blob-teal {
  width: 560px; height: 560px;
  top: -180px; inset-inline-start: -160px;
  background: radial-gradient(circle at 30% 30%, var(--bg-grad-1), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-navy {
  width: 640px; height: 640px;
  top: -220px; inset-inline-end: -200px;
  background: radial-gradient(circle at 60% 40%, var(--bg-grad-2), transparent 72%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.blob-sky {
  width: 480px; height: 480px;
  bottom: -160px; inset-inline-start: 30%;
  background: radial-gradient(circle at 50% 50%, var(--bg-grad-3), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
.bg-decor .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 42, 74, 0.07) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 65%);
}
[data-theme="dark"] .bg-decor .dots {
  background-image: radial-gradient(rgba(148, 197, 236, 0.08) 1px, transparent 1.6px);
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* ---------- گلس پایه ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: box-shadow 0.3s ease, background-color 0.35s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--glass-bg-strong); }
}
.site-header.scrolled { box-shadow: var(--glass-shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
/* تم تاریک: نسخه سفید تک‌رنگ لوگو (بدون باکس) برای خوانایی */
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
/* دکمه ورود داخل منو فقط در حالت موبایل نمایش داده می‌شود */
.main-nav .nav-cta { display: none; }
.main-nav > a:not(.nav-cta) {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.main-nav > a:not(.nav-cta):hover { color: var(--ink); background: var(--glass-bg-soft); }
.main-nav > a.active {
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.12);
  font-weight: 600;
}
[data-theme="dark"] .main-nav > a.active { color: var(--teal-400); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* دکمه تم */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  transition: color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.theme-toggle:hover { color: var(--teal-600); transform: translateY(-1px); }
[data-theme="dark"] .theme-toggle:hover { color: var(--teal-400); }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

/* دکمه همبرگر (فقط موبایل) */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: var(--btn-primary-ink);
  background: var(--grad-cta);
  box-shadow: var(--grad-cta-glow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(13, 148, 136, 0.65);
}

.btn-glass {
  color: var(--ink);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover {
  transform: translateY(-2px);
  border-color: var(--glass-hover-border);
  color: var(--teal-600);
}
[data-theme="dark"] .btn-glass:hover { color: var(--teal-400); }

.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 12px; }

/* ---------- هیرو ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.25);
}
[data-theme="dark"] .hero-badge { color: var(--teal-400); }

.hero-title {
  margin-top: 18px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.hero-title .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  margin-top: 16px;
  max-width: 54ch;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.hero-chips li:hover { border-color: var(--glass-hover-border); color: var(--teal-600); }
[data-theme="dark"] .hero-chips li:hover { color: var(--teal-400); }
.hero-chips svg { color: var(--teal-500); flex-shrink: 0; }

/* --- ویژوال هیرو --- */
.hero-visual {
  position: relative;
  padding: 10px 4px;
}
.visual-blob {
  position: absolute;
  inset: 8% 4%;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(11, 42, 74, 0.20) 60%, rgba(56, 189, 248, 0.18));
  filter: blur(34px);
  z-index: 0;
  animation: blobMorph 14s ease-in-out infinite alternate;
}
@keyframes blobMorph {
  0%   { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; transform: rotate(6deg) scale(1.06); }
}

/* کارت اصلی داشبورد */
.main-card {
  position: relative;
  z-index: 1;
  padding: 22px 22px 18px;
  animation: floatY 7s ease-in-out infinite;
}
.mc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-cta);
  flex-shrink: 0;
}
.mc-meta { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.mc-meta strong { font-size: 15px; font-weight: 700; }
.mc-meta span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tag {
  margin-inline-start: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  flex-shrink: 0;
}
[data-theme="dark"] .mc-tag { color: var(--teal-400); }

.mc-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
}
.ring-wrap { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.ring-track { stroke: var(--ring-track); }
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.mc-progress-meta { display: flex; flex-direction: column; gap: 2px; }
.mc-progress-meta strong { font-size: 13.5px; }
.mc-progress-meta span { font-size: 12px; color: var(--muted); }

.mc-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.mc-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.row-ic.done { color: #0d9488; background: rgba(13, 148, 136, 0.12); }
.row-ic.live { color: #0b2a4a; background: rgba(11, 42, 74, 0.10); }
[data-theme="dark"] .row-ic.live { color: #9fd3ff; background: rgba(56, 189, 248, 0.12); }
.row-ic.next { color: var(--muted); background: var(--bar-track); }

.row-body { flex: 1; min-width: 0; }
.row-text {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.6;
}
.row-text strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-text span { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bar-track);
  margin-top: 6px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-cta);
  transform-origin: right;
  animation: growBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* کارت‌های شناور */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}
.card-live {
  top: -6%;
  inset-inline-start: -9%;
  animation: floatY 6s ease-in-out infinite;
  animation-delay: 0.6s;
}
.card-quiz {
  bottom: -7%;
  inset-inline-end: -8%;
  animation: floatY 6.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
.fc-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.fc-ic.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.fc-ic.navy { background: linear-gradient(135deg, #17507e, #0b2a4a); }
.fc-meta { display: flex; flex-direction: column; line-height: 1.5; }
.fc-meta strong { font-size: 12.5px; }
.fc-meta span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.score {
  font-size: 15px;
  font-weight: 900;
  color: var(--teal-600);
  flex-shrink: 0;
}
[data-theme="dark"] .score { color: var(--teal-400); }
.score span { font-size: 11px; font-weight: 600; color: var(--muted); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.10); }
}

/* ---------- بخش ویژگی‌ها ---------- */
.features { padding: 64px 0 30px; }

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.25);
}
[data-theme="dark"] .section-kicker { color: var(--teal-400); }
.section-title {
  margin-top: 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.5;
}
.section-lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.feature-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px -20px rgba(11, 42, 74, 0.38);
  border-color: var(--glass-hover-border);
}
.feature-ic {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px -10px rgba(11, 42, 74, 0.4);
}
.feature-ic.t1 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.feature-ic.t2 { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.feature-ic.t3 { background: linear-gradient(135deg, #17507e, #0b2a4a); }
.feature-ic.t4 { background: linear-gradient(135deg, #0d9488, #0b6e64); }
.feature-ic.t5 { background: linear-gradient(135deg, #14b8a6, #17507e); }
.feature-ic.t6 { background: linear-gradient(135deg, #2dd4bf, #0d9488); }

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.feature-card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- فراخوان نهایی ---------- */
.cta { padding: 56px 0 64px; }
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 44px;
  border-radius: 28px;
  background:
    linear-gradient(var(--glass-bg), var(--glass-bg)),
    linear-gradient(120deg, rgba(20, 184, 166, 0.22), rgba(11, 42, 74, 0.22));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  position: relative;
  overflow: hidden;
}
.cta-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  inset-inline-end: -110px;
  top: -140px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.cta-copy h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.4px;
}
.cta-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 52ch;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  z-index: 1;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}
.cta-phone:hover { color: var(--teal-600); }
[data-theme="dark"] .cta-phone:hover { color: var(--teal-400); }

/* ---------- فوتر ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-footer { background: var(--glass-bg-strong); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0 34px;
}
.footer-about {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.95;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul a:hover { color: var(--teal-600); }
[data-theme="dark"] .footer-col ul a:hover { color: var(--teal-400); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-contact svg { color: var(--teal-500); flex-shrink: 0; }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
}
.powered { font-size: 12px; }
.powered a {
  color: var(--teal-600);
  font-weight: 700;
  text-decoration: none;
}
.powered a:hover { color: var(--teal-400); text-decoration: underline; }

/* ---------- انیمیشن نمایش هنگام اسکرول ----------
   فقط وقتی JS فعال باشه محتوای پایین مخفی میشه (js روی <html>)
   تا بدون جاوااسکریپت هم همه‌چیز دیده بشه */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .card-live { inset-inline-start: -2%; }
  .card-quiz { inset-inline-end: -1%; }
}

@media (max-width: 920px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 26px auto 0; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-burger { display: flex; }

  .main-nav {
    position: fixed;
    top: 76px;
    inset-inline: 16px;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav > a:not(.nav-cta) { padding: 12px 16px; font-size: 15px; }
  .main-nav .nav-cta { display: inline-flex; justify-content: center; margin-top: 8px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px;
  }
  .hero-chips li { font-size: 12px; }
  .hero-actions .btn { width: 100%; }
  .card-live { top: -7%; inset-inline-start: -4%; }
  .card-quiz { bottom: -8%; inset-inline-end: -3%; }
  .footer-bar { justify-content: center; text-align: center; }
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* لوگوی رسمی: کوچک‌تر در موبایل */
@media (max-width: 576px) {
  .brand-logo { height: 38px; max-width: 150px; }
}
