*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #5C6BC0;
  --primary-dark: #3F51B5;
  --accent: #7C4DFF;
  --bg: #0A0B14;
  --bg2: #0F1020;
  --bg3: #141628;
  --surface: #1A1D35;
  --surface2: #1F2340;
  --border: rgba(255,255,255,0.07);
  --text: #F0F2FF;
  --text-muted: #8B90B8;
  --text-dim: #5A5F80;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}
[dir="ltr"] body {
  font-family: 'Inter', sans-serif;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(10,11,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: white;
}
.logo-icon.small { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.logo-text { font-weight: 700; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.btn-nav {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 18px !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; }

/* ── LANGUAGE SELECTOR ── */
.lang-selector {
  margin-right: 16px;
}
[dir="ltr"] .lang-selector {
  margin-right: 0;
  margin-left: 16px;
}
.lang-selector select {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B90B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
[dir="ltr"] .lang-selector select {
  background-position: right 10px center;
}
.lang-selector select:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}
.lang-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92,107,192,0.2);
}
.lang-selector select option {
  background: var(--surface);
  color: var(--text);
  padding: 8px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 60px;
  max-width: 1200px; margin: 0 auto;
  gap: 60px;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent); bottom: 100px; left: -100px; }
.orb-3 { width: 300px; height: 300px; background: #E91E63; top: 50%; right: 40%; }

.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(92,107,192,0.15);
  border: 1px solid rgba(92,107,192,0.3);
  color: #9FA8DA;
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), #E91E63);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-muted);
  margin-bottom: 28px; line-height: 1.8;
}
.hero-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 36px;
}
.quote-ar {
  display: block; font-size: 17px; font-weight: 600;
  color: #9FA8DA; margin-bottom: 4px;
  direction: rtl;
}
.quote-fa { display: block; font-size: 13px; color: var(--text-dim); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  transition: all 0.2s; box-shadow: 0 8px 32px rgba(92,107,192,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(92,107,192,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--surface2); border-color: rgba(255,255,255,0.15); }

/* ── PHONE MOCKUP ── */
.hero-phone { flex: 0 0 300px; position: relative; z-index: 1; }
.phone-frame {
  width: 280px; height: 560px;
  background: var(--surface);
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.1);
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-frame::before {
  content: ''; position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px;
  background: rgba(255,255,255,0.15); border-radius: 3px;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg2);
  border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 4px;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.status-icons { display: flex; gap: 4px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }
.phone-app { flex: 1; display: flex; flex-direction: column; padding: 8px 12px; }
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.app-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.app-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.active-card {
  background: linear-gradient(135deg, rgba(92,107,192,0.2), rgba(124,77,255,0.15));
  border: 1px solid rgba(92,107,192,0.3);
  border-radius: 12px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.active-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 8px #4CAF50;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.active-info { flex: 1; }
.active-name { display: block; font-size: 13px; font-weight: 600; }
.active-time { display: block; font-size: 11px; color: #9FA8DA; font-variant-numeric: tabular-nums; }
.stop-btn {
  background: rgba(229,57,53,0.2); border: 1px solid rgba(229,57,53,0.4);
  color: #EF9A9A; font-size: 10px; padding: 4px 8px;
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
.activity-list { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.activity-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px; padding: 7px 10px;
}
.act-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.act-info { flex: 1; }
.act-info span { display: block; font-size: 12px; font-weight: 500; }
.act-info small { font-size: 10px; color: var(--text-dim); }
.phone-nav {
  display: flex; justify-content: space-around;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.nav-item { font-size: 10px; color: var(--text-dim); padding: 4px 6px; }
.nav-item.active { color: var(--primary); font-weight: 600; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 48px;
}
.stat-num {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ── LTR OVERRIDES ── */
[dir="ltr"] .hero-quote { border-right: none; border-left: 3px solid var(--primary); }
[dir="ltr"] .tab-card ul li { padding-right: 0; padding-left: 16px; }
[dir="ltr"] .tab-card ul li::before { right: auto; left: 0; }
[dir="ltr"] .cov-value small { margin-right: 0; margin-left: 4px; }
[dir="ltr"] .cat-card { flex-direction: row; }
[dir="ltr"] .tab-number { left: auto; right: 20px; }
[dir="ltr"] .orb-1 { right: auto; left: -100px; }
[dir="ltr"] .orb-2 { left: auto; right: -100px; }
[dir="ltr"] .orb-3 { right: 40%; left: auto; }
[dir="ltr"] .hero-phone { order: 0; }
[dir="ltr"] .hero-content { order: 1; }
[dir="ltr"] .highlight-inner { flex-direction: row-reverse; }
[dir="ltr"] .hero-quote { text-align: left; }
[dir="ltr"] .footer-links { flex-direction: row; }
[dir="ltr"] .stat-item { padding: 0 24px; }
[dir="ltr"] .nav-links { flex-direction: row; margin: 0 auto; }
[dir="ltr"] .nav-logo { margin-right: 0; margin-left: 0; }
[dir="ltr"] .nav-inner { flex-direction: row; justify-content: space-between; }
[dir="ltr"] .feature-card { text-align: left; }
[dir="ltr"] .tab-card { text-align: left; }
[dir="ltr"] .section-header { text-align: center; }
[dir="ltr"] .download-inner { text-align: center; }
[dir="ltr"] .lang-selector { margin-right: 0; margin-left: 0; }

/* ── RTL OVERRIDES ── */
[dir="rtl"] .nav-logo { margin-right: 0; }
[dir="rtl"] .nav-links { margin: 0 auto; }
[dir="rtl"] .lang-selector { margin-right: 16px; margin-left: 0; }

/* ── SECTIONS COMMON ── */
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: rgba(92,107,192,0.15);
  border: 1px solid rgba(92,107,192,0.25);
  color: #9FA8DA;
  padding: 5px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── FEATURES ── */
.features {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(92,107,192,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-large { grid-column: span 2; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.feature-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.feature-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px;
}

/* ── TABS SHOWCASE ── */
.tabs-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
}
.tabs-showcase {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}
.tab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.tab-today { border-top: 3px solid var(--primary); }
.tab-reflect { border-top: 3px solid #F57C00; }
.tab-trend { border-top: 3px solid #0097A7; }
.tab-profile { border-top: 3px solid #388E3C; }
.tab-number {
  position: absolute; top: 20px; left: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-dim);
}
.tab-icon { color: var(--text-muted); margin-bottom: 16px; }
.tab-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tab-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.tab-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tab-card ul li {
  font-size: 13px; color: var(--text-dim);
  padding-right: 16px; position: relative;
}
.tab-card ul li::before {
  content: '—'; position: absolute; right: 0;
  color: var(--text-dim);
}

/* ── HIGHLIGHT ── */
.highlight-section {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 24px;
}
.highlight-inner {
  display: flex; align-items: center; gap: 80px;
}
.highlight-text { flex: 1; }
.highlight-text h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 16px; }
.highlight-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.highlight-points { display: flex; flex-direction: column; gap: 12px; }
.h-point { display: flex; align-items: center; gap: 12px; }
.h-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.h-point span { font-size: 15px; color: var(--text-muted); }
.highlight-visual { flex: 0 0 360px; display: flex; flex-direction: column; gap: 16px; }
.coverage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.cov-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cov-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cov-toggle {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px; padding: 3px;
}
.toggle-opt {
  font-size: 11px; padding: 3px 10px; border-radius: 6px;
  color: var(--text-dim); cursor: pointer;
}
.toggle-opt.active {
  background: var(--primary); color: white; font-weight: 600;
}
.cov-value {
  font-size: 42px; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
  line-height: 1;
}
.cov-value small { font-size: 18px; font-weight: 500; color: var(--text-muted); margin-right: 4px; }
.cov-bar {
  height: 6px; background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.cov-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.unlogged-fill { background: linear-gradient(90deg, #E91E63, #F06292); }
.cov-sub { font-size: 12px; color: var(--text-dim); }

/* ── CATEGORIES ── */
.categories-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 100px 24px;
}
.categories-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.2s;
}
.cat-card:hover {
  border-color: rgba(var(--color), 0.4);
  transform: translateY(-2px);
}
.cat-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cat-card span { font-size: 15px; font-weight: 600; }

/* ── DOWNLOAD ── */
.download-section {
  padding: 120px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.download-orb {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,107,192,0.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.download-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.download-inner h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; }
.download-inner p { font-size: 17px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }
.download-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.btn-download {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; text-decoration: none;
  padding: 18px 40px; border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(92,107,192,0.4);
  transition: all 0.2s;
}
.btn-download svg { margin-bottom: 2px; }
.btn-download small { font-size: 12px; font-weight: 400; opacity: 0.8; }
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(92,107,192,0.5); }
.btn-guide {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 18px 32px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500;
  transition: all 0.2s;
}
.btn-guide:hover { background: var(--surface2); }
.download-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.footer-quote { font-size: 14px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large { grid-column: span 1; }
  .tabs-showcase { grid-template-columns: repeat(2, 1fr); }
  .highlight-inner { flex-direction: column; gap: 48px; }
  .highlight-visual { flex: none; width: 100%; }
}
@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 80px; text-align: center; }
  .hero-phone { display: none; }
  .hero-actions { justify-content: center; }
  .hero-quote { text-align: right; }
  .features-grid { grid-template-columns: 1fr; }
  .tabs-showcase { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { gap: 0; }
  .stat-item { padding: 0 24px; }
  .nav-links a:not(.btn-nav) { display: none; }
}
