/* =========================================================
   Server Plus — Design System (Studio Upgrade)
   Dark / Glassmorphism / Neon Blue-Purple / RTL
   Display: IRANYekanX · Body/UI: IRANYekanWeb · Technical: JetBrains Mono
   ========================================================= */

/* ---------- فونت‌های IRANYekan (لوکال) ---------- */
@font-face {
  font-family: 'IRANYekanX';
  src: url('assets/fonts/IRANYekanX-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('assets/fonts/IRANYekanX-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebThin.woff') format('woff');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebLight.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebRegular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebMedium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebExtraBold.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebBlack.woff') format('woff');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanWeb';
  src: url('assets/fonts/IRANYekanWebExtraBlack.woff') format('woff');
  font-weight: 950;
  font-display: swap;
}

:root {
  /* رنگ پایه */
  --bg-void: #05060A;
  --bg-void-soft: #0A0C14;
  --bg-glass: rgba(16, 19, 31, 0.75);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* نئون */
  --neon-blue: #4F7CFF;
  --neon-purple: #A855F7;
  --neon-cyan: #22D3EE;

  /* متن */
  --text-primary: #F2F3F8;
  --text-muted: #8B90A8;
  --text-dim: #565B72;

  /* تایپوگرافی */
  --font-fa: 'IRANYekanWeb', 'Vazirmatn', sans-serif;
  --font-display: 'IRANYekanX', 'IRANYekanWeb', 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* نور و عمق (برای هیرو سینمایی و صحنه سه‌بعدی) */
  --glow-cyan-strong: rgba(34, 211, 238, 0.55);
  --glow-blue-strong: rgba(79, 124, 255, 0.55);
  --glow-purple-strong: rgba(168, 85, 247, 0.45);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);

  /* فاصله‌ها */
  --section-padding: 7rem 4rem;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1100px;
}

/* ---------- استایل‌های پایه ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-fa);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  font-family: var(--font-display);
}

p {
  margin: 0 0 1rem;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---------- کلاس‌های عمومی ---------- */
.mono-inline,
.mono-tag,
.session-number,
.logo-accent {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: embed;
}

/* ---------- اسکرول ریویل (انیمیشن بهبودیافته) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor-dot, .log-cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 6, 10, 0.7);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 1px 0 rgba(79, 124, 255, 0.1);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 10, 0.88);
  border-bottom-color: rgba(79, 124, 255, 0.25);
  box-shadow: 0 1px 0 rgba(79, 124, 255, 0.25), 0 12px 32px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.logo-accent {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .header-inner { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
}

/* ---------- دکمه‌ها ---------- */
.btn-glow {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(79, 124, 255, 0.45), 0 0 48px rgba(168, 85, 247, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(79, 124, 255, 0.65), 0 0 64px rgba(168, 85, 247, 0.4);
}

.btn-small { padding: 0.55rem 1.3rem; font-size: 0.9rem; }

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-outline:hover {
  border-color: var(--neon-cyan);
  background: rgba(34, 211, 238, 0.06);
}

/* ---------- مونوتگ ---------- */
.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.05);
  margin-bottom: 1.5rem;
}

.mono-tag-muted {
  color: var(--text-muted);
  border-color: var(--border-glass);
  background: transparent;
  font-family: var(--font-mono);
  direction: ltr;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.55;
}

.hero-glow-1 {
  width: 480px; height: 480px;
  background: var(--neon-blue);
  top: -120px; right: -80px;
}

.hero-glow-2 {
  width: 420px; height: 420px;
  background: var(--neon-purple);
  bottom: -150px; left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-inline {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}

/* ---------- بخش‌های عمومی ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.intro { background: var(--bg-void-soft); }

.intro-text {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 1.2rem;
  line-height: 2;
}

.intro-text:first-of-type { color: var(--text-primary); }

/* ---------- کارت شیشه‌ای ---------- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 124, 255, 0.4);
  box-shadow: 0 0 40px rgba(79, 124, 255, 0.15);
}

.glass-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.7rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.audience-icon { font-size: 1.8rem; }

/* ---------- گرید مخاطبان ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ---------- لیست جلسات ---------- */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-card {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.session-card:hover {
  transform: translateX(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.12);
}

.session-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  padding-top: 0.2rem;
  min-width: 108px;
}

.log-cursor {
  width: 7px;
  height: 14px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blink 1.1s infinite;
}

.session-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.session-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .session-card { flex-direction: column; gap: 0.6rem; }
  .session-number { min-width: unset; }
}

/* ---------- مدرس ---------- */
.instructor { background: var(--bg-void-soft); }

.instructor-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.instructor-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border: 1px solid var(--border-glass);
  position: relative;
  z-index: 1;
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.35), transparent 70%);
  filter: blur(20px);
  animation: avatar-pulse 4s ease-in-out infinite;
}

.avatar-rim {
  position: absolute;
  inset: -20px;
  z-index: 1;
  animation: avatar-spin 18s linear infinite;
}

@keyframes avatar-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes avatar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-glow, .avatar-rim { animation: none; }
}

.instructor-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

@media (max-width: 768px) {
  .instructor-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
}

/* ---------- مزایا ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-num {
  color: var(--neon-cyan);
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ---------- نظرات ---------- */
.testimonials { background: var(--bg-void-soft); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card p {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-author div:last-child {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.testimonial-author strong { color: var(--text-primary); }
.testimonial-author span { color: var(--text-dim); }

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- قیمت‌گذاری ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-label {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.toggle-label.active { color: var(--text-primary); font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  padding: 0;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  transition: transform 0.25s ease;
}

.toggle-switch.is-on .toggle-knob {
  transform: translateX(-24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin: 0.75rem 0 0.5rem;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.price-display { margin-bottom: 1.5rem; }

.price-amount {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-cta { width: 100%; text-align: center; }

/* --- کارت Hold-to-Reveal --- */
.hold-card {
  align-items: center;
  text-align: center;
}

.hold-button {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 1.25rem;
  user-select: none;
  touch-action: none;
}

.hold-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.hold-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.hold-ring-progress {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
  transition: stroke-dashoffset 0.05s linear;
}

.hold-button-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  z-index: 1;
}

.hold-button.is-holding .hold-button-label { color: var(--neon-cyan); }
.hold-button.is-complete .hold-button-label { color: var(--neon-cyan); font-weight: 600; }

.hold-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.hold-reveal.is-visible {
  max-height: 200px;
  opacity: 1;
}

.hold-reveal-text {
  color: var(--neon-cyan);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.hold-card.is-unlocked {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- سوالات متداول ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(14px);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::before { content: '−'; }

.faq-item p {
  color: var(--text-muted);
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

/* ---------- فوتر ---------- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: var(--bg-void-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 1rem;
}
/* =========================================================
   هیرو سینمایی — ویدیو پس‌زمینه، بوت‌سکانس ترمینال، بوم ذرات
   ========================================================= */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0.28;
  filter: saturate(1.1) brightness(0.9);
  pointer-events: none;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-video-fade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--bg-void) 78%),
    linear-gradient(180deg, var(--bg-void) 0%, transparent 18%, transparent 82%, var(--bg-void) 100%);
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

/* بوت‌سکانس ترمینال بالای هیرو */
.hero-terminal {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: start;
  max-width: 480px;
  margin: 0 auto 2rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.7;
  min-height: 108px;
}

.hero-terminal-line {
  color: var(--text-muted);
  white-space: pre;
}

.hero-terminal-line .ok { color: var(--neon-cyan); }
.hero-terminal-line .prompt { color: var(--neon-purple); }

.hero-terminal-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

@media (max-width: 640px) {
  .hero-terminal { font-size: 0.72rem; max-width: 100%; }
}

/* =========================================================
   معماری سرور سه‌بعدی
   ========================================================= */
.architecture { background: var(--bg-void-soft); position: relative; overflow: hidden; }

.architecture-canvas-wrap {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: radial-gradient(ellipse at 50% 30%, rgba(79,124,255,0.08), transparent 65%), var(--bg-void);
  overflow: hidden;
  margin-top: 2.5rem;
}

#architecture-canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
}
#architecture-canvas:active { cursor: grabbing; }

.architecture-hint {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 1rem;
  font-family: var(--font-mono);
  direction: ltr;
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(5,6,10,0.6);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.architecture-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.architecture-node-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
}

.architecture-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

@media (max-width: 768px) {
  .architecture-canvas-wrap { height: 400px; }
  .architecture-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .architecture-legend { grid-template-columns: 1fr; }
}

/* =========================================================
   کوریکولوم تعاملی (React + Framer Motion)
   ========================================================= */
.phase-group {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.phase-group.is-open {
  border-color: rgba(79, 124, 255, 0.4);
  box-shadow: 0 0 32px rgba(79, 124, 255, 0.1);
}

.phase-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-fa);
  text-align: start;
}

.phase-header-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.phase-index {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-size: 0.85rem;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  flex-shrink: 0;
}

.phase-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.2rem; }
.phase-subtitle { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.phase-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.phase-sessions-inner {
  padding: 0 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phase-session-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
}

.phase-session-row .session-number {
  min-width: 92px;
  font-size: 0.78rem;
}

.phase-session-row h4 { margin: 0 0 0.3rem; font-size: 1rem; font-family: var(--font-fa); }
.phase-session-row p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .phase-header { padding: 1.1rem 1.2rem; }
  .phase-sessions-inner { padding: 0 1.2rem 1.2rem; }
  .phase-session-row { flex-direction: column; gap: 0.4rem; }
}

/* =========================================================
   کارت‌های نظرات (Flip — React + Framer Motion)
   ========================================================= */
.flip-card {
  perspective: 1400px;
  height: 240px;
  position: relative;
  cursor: pointer;
  outline: none;
}

.flip-card:focus-visible {
  box-shadow: 0 0 0 2px var(--neon-cyan);
  border-radius: var(--radius-lg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-card-back {
  background: linear-gradient(150deg, rgba(79,124,255,0.16), rgba(168,85,247,0.14));
  border: 1px solid rgba(79,124,255,0.35);
}

.flip-hint {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.1rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  direction: ltr;
}

.flip-back-label {
  font-family: var(--font-mono);
  direction: ltr;
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 0.04em;
}

.flip-back-title { font-size: 1.05rem; font-weight: 700; margin: 0.5rem 0; font-family: var(--font-fa); }
.flip-back-text { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   اسکلت بارگذاری برای پنل‌های React (پیش از mount)
   ========================================================= */
.panel-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.panel-skeleton-row {
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: skeleton-sheen 1.6s ease-in-out infinite;
  border: 1px solid var(--border-glass);
}

@keyframes skeleton-sheen {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .panel-skeleton-row { animation: none; }
}

/* =========================================================
   FAQ تعاملی (React)
   ========================================================= */
.faq-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
  padding: 0;
}

.faq-item-plus {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.faq-answer-inner { padding-top: 0.9rem; color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   نشان مبتنی‌بر جاوااسکریپت غیرفعال
   ========================================================= */
.js-required-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  direction: ltr;
}

/* دکمه بزرگ‌تر برای هدر موبایل با فونت نمایش */
.mono-tag { font-family: var(--font-mono); }
