/* ===== Custom Properties ===== */
:root {
  --bg: #FAFAF9;
  --bg-alt: #F3F3F1;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --accent: #2563EB;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --border: #e5e5e5;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --code-bg: #f3f4f6;
  --nav-bg: rgba(250,250,249,0.95);
  --screenshot-bg: #f8f9fa;
  --screenshot-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --tip-bg: #eff6ff;
  --tip-border: #2563EB;
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --farsi-bg: #f0fdf4;
  --farsi-border: #22c55e;
  --progress-color: #2563EB;
  --placeholder-bg: #e8edf2;
  --placeholder-highlight: #2563EB;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-farsi: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  --max-width: 768px;
  --nav-height: 56px;
}

[data-theme="dark"] {
  --bg: #1A1A2E;
  --bg-alt: #16213E;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --accent: #3B82F6;
  --accent-hover: #60a5fa;
  --accent-light: #1e3a5f;
  --border: #2d2d44;
  --card-bg: #222244;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --code-bg: #2d2d44;
  --nav-bg: rgba(26,26,46,0.95);
  --screenshot-bg: #16213E;
  --screenshot-shadow: 0 2px 8px rgba(0,0,0,0.4);
  --tip-bg: #1e3a5f;
  --tip-border: #3B82F6;
  --warning-bg: #422006;
  --warning-border: #f59e0b;
  --farsi-bg: #052e16;
  --farsi-border: #22c55e;
  --progress-color: #3B82F6;
  --placeholder-bg: #2d2d44;
  --placeholder-highlight: #3B82F6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--progress-color);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  text-decoration: none;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Sections ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.urgency-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.urgency-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-image img {
  border-radius: 12px;
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== 3-Column Cards ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.card-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Architecture Diagram ===== */
.architecture-diagram {
  margin-bottom: 24px;
}

.architecture-diagram img {
  width: 100%;
  border-radius: 12px;
}

/* ===== Cost Summary ===== */
.cost-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.cost-summary svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.checklist svg {
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===== Tutorial Steps ===== */
.step {
  margin-bottom: 48px;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.step-body p,
.step-body ol,
.step-body ul {
  margin-bottom: 16px;
}

.step-body ol,
.step-body ul {
  padding-left: 20px;
}

.step-body li {
  margin-bottom: 8px;
}

/* ===== Screenshots ===== */
.screenshot {
  margin: 20px 0;
}

.screenshot img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--screenshot-shadow);
  border: 1px solid var(--border);
}

.screenshot figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Screenshot Placeholders ===== */
.screenshot-placeholder {
  background: var(--placeholder-bg);
  border-radius: 8px;
  border: 2px dashed var(--border);
  padding: 24px;
  box-shadow: var(--screenshot-shadow);
}

.placeholder-content {
  font-size: 14px;
}

.placeholder-header {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.placeholder-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.placeholder-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1.2fr;
  gap: 12px;
  padding: 8px;
  border-radius: 4px;
}

.placeholder-row-header {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.placeholder-row-data {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.placeholder-running {
  color: #22c55e;
  font-weight: 600;
}

.placeholder-highlight {
  color: var(--placeholder-highlight);
  font-weight: 700;
}

.placeholder-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--placeholder-highlight);
  font-weight: 600;
}

.placeholder-panel {
  display: flex;
  gap: 16px;
  min-height: 120px;
}

.placeholder-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 4px;
  border: 1px solid var(--border);
  min-width: 120px;
  font-size: 13px;
}

.placeholder-active {
  color: var(--accent);
  font-weight: 600;
}

.placeholder-main {
  flex: 1;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.placeholder-configs {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.placeholder-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.placeholder-qr-box {
  width: 100px;
  height: 100px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  background-image:
    repeating-conic-gradient(var(--text) 0% 25%, transparent 0% 50%) 50% / 10px 10px;
  opacity: 0.3;
}

.placeholder-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placeholder-link-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.placeholder-link-row span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.placeholder-link-row code {
  font-size: 13px;
  word-break: break-all;
}

/* ===== Tips & Warnings ===== */
.tip,
.warning {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0;
  align-items: flex-start;
}

.tip {
  background: var(--tip-bg);
  border-left: 4px solid var(--tip-border);
}

.warning {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
}

.tip svg,
.warning svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Code Blocks ===== */
code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.code-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--code-bg);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  overflow-x: auto;
}

.code-block code {
  background: none;
  padding: 0;
  flex: 1;
  white-space: nowrap;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Copy Button ===== */
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn.copied {
  color: #22c55e;
  border-color: #22c55e;
}

/* ===== Config Table ===== */
.config-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}

.config-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.config-row:last-child {
  border-bottom: none;
}

.config-label {
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  background: var(--bg-alt);
  min-width: 140px;
  display: flex;
  align-items: flex-start;
}

.config-value {
  padding: 12px 16px;
  font-size: 14px;
  flex: 1;
}

.config-alt {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Platform Grid ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.1s;
}

.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.platform-card svg {
  color: var(--text-muted);
}

.platform-card:hover svg {
  color: var(--accent);
}

.platform-card span {
  font-size: 13px;
  font-weight: 500;
}

.app-instruction {
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

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

.faq-item summary:hover {
  background: var(--bg-alt);
}

.faq-body {
  padding: 0 20px 16px;
}

.faq-body p,
.faq-body ul,
.faq-body ol {
  margin-bottom: 12px;
  font-size: 15px;
}

.faq-body ul,
.faq-body ol {
  padding-left: 20px;
}

.faq-body li {
  margin-bottom: 6px;
}

/* ===== Farsi Note ===== */
.farsi-note {
  font-family: var(--font-farsi);
  background: var(--farsi-bg);
  border-right: 4px solid var(--farsi-border);
  border-radius: 8px 0 0 8px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
}

/* ===== Budget Alternative ===== */
.budget-intro {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.budget-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.budget-summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

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

.budget-summary:hover {
  background: var(--card-bg);
}

.budget-badge {
  background: #22c55e;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.budget-body {
  padding: 0 24px 24px;
}

.budget-body h3 {
  font-size: 18px;
  margin: 16px 0 12px;
}

.budget-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.budget-body li {
  margin-bottom: 12px;
}

.budget-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== Situation Banner ===== */
.situation-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.situation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--warning-border);
}

.situation-banner p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.situation-banner p:last-child {
  margin-bottom: 0;
}

/* ===== Approach Tiers ===== */
.approach-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.tier {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.tier h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.tier p {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.tier-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.tier-label-1 { background: #2563EB; }
.tier-label-2 { background: #7c3aed; }
.tier-label-3 { background: #dc2626; }

/* ===== Guide Cards ===== */
.guide-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.guide-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.guide-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.guide-card li {
  margin-bottom: 6px;
  font-size: 15px;
}

.guide-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.guide-badge-1 { background: #2563EB; }
.guide-badge-2 { background: #7c3aed; }
.guide-badge-3 { background: #dc2626; }

.guide-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ===== Setup Now Box ===== */
.setup-now-box {
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  border-radius: 12px;
  padding: 24px;
}

.setup-now-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.setup-now-box p {
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Tool Cards ===== */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.tool-card h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.tool-card p {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.tool-card ul,
.tool-card ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.tool-card li {
  margin-bottom: 6px;
  font-size: 15px;
}

.tool-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}

.tool-tag-recommended {
  background: #22c55e;
  color: #fff;
}

.tool-tag-hardware {
  background: #dc2626;
  color: #fff;
}

.tool-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}

/* ===== Farsi Blocks ===== */
.farsi-block {
  font-family: var(--font-farsi);
  background: var(--farsi-bg);
  border-top: 3px solid var(--farsi-border);
  padding: 48px 0;
  line-height: 1.9;
}

.farsi-block h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
}

.farsi-block p {
  margin-bottom: 12px;
  font-size: 15px;
}

.farsi-block .btn {
  font-family: var(--font-farsi);
}

.farsi-block .cards-3 {
  margin-bottom: 24px;
}

.farsi-block .card h3 {
  font-size: 15px;
}

.farsi-block .card p {
  font-size: 13px;
}

.farsi-block .cost-summary {
  justify-content: flex-end;
}

.farsi-block .checklist li {
  font-size: 15px;
}

.farsi-block .faq-item summary {
  font-family: var(--font-farsi);
}

.farsi-block .faq-item summary::after {
  margin-left: 0;
  margin-right: 12px;
}

.farsi-block .faq-body {
  font-family: var(--font-farsi);
}

.farsi-block .faq-body ul,
.farsi-block .faq-body ol {
  padding-left: 0;
  padding-right: 20px;
}

.farsi-block .platform-grid {
  margin: 16px 0;
}

.farsi-block .platform-card {
  font-family: var(--font-farsi);
}

.farsi-block .app-instruction {
  font-family: var(--font-farsi);
}

/* ===== Farsi Steps ===== */
.farsi-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.farsi-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.farsi-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  font-family: var(--font-farsi);
}

.farsi-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.farsi-step p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.farsi-step code {
  direction: ltr;
  unicode-bidi: embed;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .cards-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 13px;
  }

  .step {
    padding-left: 16px;
  }

  .step-header h3 {
    font-size: 18px;
  }

  .config-row {
    flex-direction: column;
  }

  .config-label {
    min-width: auto;
    border-bottom: 1px solid var(--border);
  }

  .placeholder-row {
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
  }

  .placeholder-row-header {
    display: none;
  }

  .placeholder-panel {
    flex-direction: column;
  }

  .placeholder-sidebar {
    flex-direction: row;
    min-width: auto;
    flex-wrap: wrap;
  }

  .placeholder-configs {
    flex-direction: column;
  }

  .farsi-block {
    padding: 32px 0;
  }

  .farsi-block h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .nav-links {
    display: none;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
