/* ==========================================================
   فرزلي FARZLI — التنسيقات الرئيسية
   الألوان: كحلي #0C1B33 / تركوازي #2BD6A3 / خلفية #F5F8FB
   ========================================================== */

:root {
  --navy: #0C1B33;
  --navy-800: #13264A;
  --navy-600: #1E3A66;
  --teal: #2BD6A3;
  --teal-600: #1FB88A;
  --teal-100: #DDF8EF;
  --bg: #F5F8FB;
  --surface: #FFFFFF;
  --text: #0C1B33;
  --text-muted: #4A5A73;
  --border: #E1E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(12, 27, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(12, 27, 51, 0.14);
  --font-main: 'Alexandria', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: embed; }

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(43, 214, 163, 0.35);
}

.btn-primary:hover {
  background: var(--teal-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 214, 163, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }

.icon-wa { width: 1.3em; height: 1.3em; flex-shrink: 0; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.footer-logo { height: 48px; width: auto; }

.brand-fallback {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.site-footer .brand-fallback { color: #fff; }

.main-nav { display: flex; gap: 1.8rem; }

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--teal-600); }

.btn-header { padding: 0.55rem 1.4rem; font-size: 0.95rem; }

/* ---------- الهيرو ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(43, 214, 163, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(12, 27, 51, 0.06), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* محاكاة تيليجرام */
.tg-mock {
  background: #17212B;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 400px;
  margin-inline: auto;
  transform: rotate(-1.5deg);
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: #212D3B;
}

.tg-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tg-meta { display: flex; flex-direction: column; line-height: 1.4; flex: 1; }
.tg-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.tg-status { color: #7C8B9D; font-size: 0.78rem; }

.tg-badge {
  background: var(--teal);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
}

.tg-body { padding: 1.2rem 1rem 1.4rem; }

.tg-msg {
  position: relative;
  background: #212D3B;
  border-radius: 14px 14px 14px 4px;
  padding: 1rem 1.1rem 1.7rem;
  color: #E4EAF0;
  font-size: 0.9rem;
}

.tg-title { font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.tg-line { color: #B8C4D0; margin-bottom: 0.25rem; }

.tg-tickers { list-style: none; margin: 0.7rem 0; display: flex; flex-direction: column; gap: 0.45rem; }

.tg-tickers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #17212B;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
}

.ticker { color: var(--teal); font-weight: 600; font-size: 0.95rem; }
.tg-ok { color: #7C8B9D; font-size: 0.78rem; }

.tg-disclaimer {
  font-size: 0.75rem;
  color: #7C8B9D;
  border-top: 1px solid #2B3948;
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

.tg-time {
  position: absolute;
  bottom: 0.5rem;
  left: 0.9rem;
  font-size: 0.72rem;
  color: #7C8B9D;
}

/* ---------- الأقسام العامة ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--surface); }

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* ---------- القمع ---------- */
.funnel-bars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
  margin-inline: auto;
  margin-top: 2.5rem;
}

.funnel-step { text-align: center; }

.funnel-bar {
  display: grid;
  place-items: center;
  height: 58px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-inline: auto;
}

.bar-1 { width: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-600)); }
.bar-2 { width: 62%; background: linear-gradient(90deg, var(--navy-600), var(--teal-600)); }
.bar-3 { width: 30%; background: linear-gradient(90deg, var(--teal-600), var(--teal)); color: var(--navy); }

.funnel-cap { margin-top: 0.4rem; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- كيف تعمل ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-600);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.step-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- المميزات ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- كلام صريح ---------- */
.honest {
  background: var(--navy);
  color: #D5DEEA;
}

.honest-inner { max-width: 46rem; text-align: center; }

.honest h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.honest p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.honest strong { color: var(--teal); }

/* ---------- التسعير ---------- */
.price-card {
  max-width: 430px;
  margin-inline: auto;
  margin-top: 2.5rem;
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.price-label { color: var(--text-muted); font-weight: 500; margin-bottom: 0.3rem; }

.price-num { font-size: 3.6rem; font-weight: 600; color: var(--navy); }
.price-cur { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.price-vat { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.4rem; }

.price-list {
  list-style: none;
  text-align: right;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.price-list li {
  padding-right: 1.8rem;
  position: relative;
  color: var(--text);
  font-size: 0.97rem;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--teal-600);
  font-weight: 700;
}

.price-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- الأسئلة ---------- */
.faq-container { max-width: 760px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-left: 3rem;
  transition: background 0.15s ease;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--teal-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--teal-100); }

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

/* ---------- الختام ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  text-align: center;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cta-final p { color: #B8C4D0; margin-bottom: 2rem; font-size: 1.05rem; }

/* ---------- الفوتر ---------- */
.site-footer {
  background: var(--navy);
  color: #8FA0B8;
  padding-block: 3rem 2rem;
  font-size: 0.88rem;
}

.footer-brand { margin-bottom: 1.5rem; }

.footer-disclaimer {
  border-top: 1px solid var(--navy-600);
  border-bottom: 1px solid var(--navy-600);
  padding-block: 1.4rem;
  margin-bottom: 1.4rem;
}

.footer-disclaimer h3 { color: #C7D2E0; font-size: 1rem; margin-bottom: 0.5rem; }
.footer-disclaimer p { line-height: 1.9; max-width: 60rem; }

.footer-info p { margin-bottom: 0.3rem; }
.footer-info strong { color: #C7D2E0; }
.footer-copy { margin-top: 1rem; font-size: 0.8rem; }

/* ---------- زر واتساب العائم ---------- */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- حركات الظهور ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card, .wa-float { transition: none; }
}

/* ---------- استجابة ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .steps, .features-grid { grid-template-columns: 1fr 1fr; }
  .tg-mock { transform: none; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .step-num { margin-inline: auto; }
  .step-card, .feature-card { text-align: center; }
  .price-list { text-align: right; }
  .wa-float { width: 52px; height: 52px; bottom: 1rem; left: 1rem; }
}
