/* ==================== RESET & MOBILE-FIRST BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-subtle: #eef2ff;
  --primary-accent: #6366f1;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-focus: #818cf8;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

/* ==================== HEADER & FOOTER ==================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-divider {
  color: #cbd5e1;
  font-weight: 300;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

/* ==================== BUTTONS ==================== */
.action-btn, .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  background: var(--primary);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.action-btn:active, .primary-button:active {
  transform: scale(0.98);
  background-color: var(--primary-hover);
}

/* ==================== LANDING CONTAINER & HERO ==================== */
.landing-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 2.75rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.gradient-text {
  background: linear-gradient(135deg, #4338ca 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--border-light);
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==================== 3 STEPS ==================== */
.how-it-works {
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.step-number {
  min-width: 34px;
  height: 34px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  color: var(--text-main);
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== 6 HOLLAND TYPE CARDS (قاب مربعی ۱:۱) ==================== */
.types-section {
  margin-bottom: 3rem;
}

.type-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.type-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1rem;
  border-right: 5px solid var(--type-color, var(--primary));
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: row; /* در محیط RTL عکس سمت راست قرار می‌گیرد */
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

/* قاب مربعی دقیق و متناسب */
.type-avatar-wrapper {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* تضمین تغییر نکردن اندازه در موبایل */
}

.type-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.type-card:hover .type-avatar-img {
  transform: scale(1.06);
}

/* محتوای متنی کارت در سمت چپ */
.type-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* جلوگیری از به هم ریختگی متن در کادرهای کوچک */
}

.type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.type-code {
  background: var(--type-color, var(--primary));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.15rem 0.55rem;
  border-radius: 0.4rem;
}

.type-name-en {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.type-title-fa {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.type-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.type-careers {
  font-size: 0.74rem;
  line-height: 1.4;
  color: #475569;
  background: #f8fafc;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
}

.careers-label {
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.25rem;
}

.notice-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 0.75rem;
}

/* ==================== BOTTOM CTA ==================== */
.bottom-cta-section {
  margin-top: 1rem;
}

.bottom-cta-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

.bottom-cta-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.bottom-cta-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* بهینه‌سازی اختصاصی برای گوشی‌های خیلی کوچک (زیر ۳۸۰ پیکسل) */
@media (max-width: 380px) {
  .type-avatar-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }
  .type-title-fa {
    font-size: 1rem;
  }
  .type-desc {
    font-size: 0.76rem;
  }
}