/* ============================================================
   صفحة الهبوط — هوية خضراء داكنة بطابع تحريري
   ============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }

/* ---------- التنقل ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--g-950);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .25s, border-color .25s;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav-links a { color: #b9cdc4; font-weight: 500; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav .logo { color: #f3f7f4; }
.nav .logo .logo-mark { background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .18); }
.nav .lang-switch button { color: #b9cdc4; }
.nav .lang-switch button.active { background: var(--gold); color: #fff; }
.nav .btn-ghost { border-color: rgba(255, 255, 255, .22); color: #e6efe9; }
.nav .btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.nav .btn-primary { background: var(--gold); }
.nav .btn-primary:hover { background: #97751f; }

/* عند التمرير بعد البطل: شريط فاتح */
.nav.scrolled { background: #fff; border-color: var(--line); }
.nav.scrolled .logo { color: var(--ink); }
.nav.scrolled .logo .logo-mark { background: var(--g-900); }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover { color: var(--g-700); }
.nav.scrolled .lang-switch { border-color: var(--line); }
.nav.scrolled .lang-switch button { color: var(--muted); }
.nav.scrolled .lang-switch button.active { background: var(--g-900); color: #fff; }
.nav.scrolled .btn-ghost { border-color: var(--line); color: var(--ink-2); }
.nav.scrolled .btn-primary { background: var(--g-700); }

/* ---------- البطل ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--g-950);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #eef5f1;
  padding: 76px 0 86px;
}
.hero::after {
  content: ''; position: absolute; inset-inline-start: -180px; bottom: -260px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 46, .14), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold-soft); font-weight: 700; font-size: 13.5px; letter-spacing: .3px;
  margin-bottom: 20px;
}
.kicker-rule { width: 44px; height: 2px; background: var(--gold); flex: 0 0 auto; }

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; line-height: 1.3;
  margin: 0 0 18px; color: #f7faf8;
}
.hl {
  background-image: linear-gradient(transparent 62%, rgba(176, 138, 46, .45) 0);
  padding: 0 2px;
}
.hero-sub { font-size: 17px; color: #b9cdc4; max-width: 520px; margin: 0 0 30px; line-height: 1.8; }

.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-link {
  color: #e6efe9; font-weight: 700; font-size: 15px;
  border-bottom: 2px solid rgba(214, 178, 94, .5); padding-bottom: 3px;
  transition: border-color .15s, color .15s;
}
.hero-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.hero-trust { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: #8fa89d; font-size: 13.5px; font-weight: 500; }
.hero-trust i { color: var(--gold-soft); font-size: 17px; }

/* معاينة السيرة */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-stack { position: relative; }
.hero-cv-wrap {
  position: relative; width: 360px; height: 460px; overflow: hidden; border-radius: 6px;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .55);
  background: #fff; direction: ltr;
  transform: rotate(-1.5deg); transition: transform .4s ease;
}
.hero-stack:hover .hero-cv-wrap { transform: rotate(0); }
.hero-cv-wrap .cv-page { transform: scale(.4533); transform-origin: top left; }
.hero-cv-back {
  position: absolute; top: 22px; inset-inline-start: -34px;
  width: 330px; height: 420px; overflow: hidden; border-radius: 6px;
  background: #fff; direction: ltr; opacity: .55;
  transform: rotate(5deg); box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .5);
}
.hero-cv-back .cv-page { transform: scale(.4157); transform-origin: top left; }
.hero-caption {
  display: inline-flex; align-items: center; gap: 8px;
  color: #8fa89d; font-size: 12.5px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; padding: 6px 14px;
}
.hero-caption i { color: var(--gold-soft); }

/* ---------- الشريط المتحرك ---------- */
.ticker { background: var(--g-900); border-block: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.ticker-track {
  display: inline-flex; white-space: nowrap; padding: 11px 0;
  animation: tickerMove 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: #9fb8ad; font-size: 13.5px; font-weight: 700; padding: 0 18px; }
.ticker-item::after { content: '✦'; color: var(--gold); margin-inline-start: 36px; font-size: 11px; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ---------- الأقسام ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--g-50); color: var(--g-800); border: 1px solid var(--g-100);
  font-size: 13px; font-weight: 800; padding: 6px 16px; border-radius: 8px; margin-bottom: 14px;
}
.premium-tag { background: var(--gold-bg); color: var(--gold); border-color: #ecd9a8; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }

/* المزايا */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px 26px; box-shadow: none; transition: border-color .2s; }
.feature:hover { border-color: var(--g-600); }
.f-ic {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--g-50); border: 1px solid var(--g-100); margin-bottom: 16px;
}
.f-ic i { font-size: 24px; color: var(--g-700); }
.feature h3 { margin: 0 0 8px; font-size: 17.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* فلاتر القوالب */
.tpl-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.tpl-filters button {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; padding: 8px 22px; font-size: 14px; font-weight: 700; transition: all .15s;
}
.tpl-filters button:hover { border-color: var(--g-600); color: var(--g-700); }
.tpl-filters button.active { background: var(--g-900); color: #fff; border-color: var(--g-900); }

/* شبكة القوالب */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--g-600); }
.tpl-thumb { height: 300px; overflow: hidden; position: relative; background: #eef1ef; direction: ltr; }
.tpl-thumb .cv-page { transform: scale(0.327); transform-origin: top left; pointer-events: none; }
.tpl-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(255,255,255,.95)); }
.tpl-card-info { padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-card-info h4 { margin: 0; font-size: 16px; }
.tpl-card-info small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tpl-badge-premium { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }

/* Clean landing thumbnails; full samples open in a separate watermarked dialog. */
.landing-thumbnail { padding: 0; }
.landing-thumbnail img { display: block; width: 100%; height: auto; }
.tpl-card-link { display: block; color: inherit; }
.template-eye {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #d7e6df; border-radius: 50%; background: #fff; color: #06352a;
  box-shadow: 0 4px 15px #06352a24; font-size: 22px; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.template-eye:hover { background: #06352a; color: #fff; transform: scale(1.06); }
.template-eye:focus-visible, .landing-preview-close:focus-visible { outline: 3px solid #d6b25e; outline-offset: 3px; }
.hero-stack > .template-eye { left: -32px; right: auto; top: 28px; }
.preview-is-open { overflow: hidden; }
.landing-preview-dialog {
  width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid #d7e6df; border-radius: 18px; color: var(--ink); background: #eef3f0;
  box-shadow: 0 24px 100px #001c1570; overflow: hidden;
}
.landing-preview-dialog::backdrop { background: #001c15b8; }
.landing-preview-dialog[open] { animation: previewIn .2s ease-out; }
.landing-preview-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.landing-preview-header > div { flex: 1; min-width: 0; }
.landing-preview-header h2 { margin: 0; font-size: 22px; }
.landing-preview-header p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.landing-preview-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }
.landing-preview-body { max-height: calc(100dvh - 135px); padding: 16px; overflow: auto; overscroll-behavior: contain; direction: ltr; }
.landing-preview-size { margin-inline: auto; }
#landingPreviewHost { width: 794px; transform-origin: top left; }
#landingPreviewHost .cv-page { margin: 0; box-shadow: 0 5px 24px #06352a16; }
.landing-preview-watermark { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(8,1fr); place-items: center; pointer-events: none; }
.landing-preview-watermark span { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: rotate(-24deg); color: #0f172e2e; text-shadow: 0 1px 1px #ffffff6b; }
.landing-preview-watermark b { font: 800 58px/1 'Tajawal',sans-serif; }
.landing-preview-watermark small { font: 700 13px Arial,sans-serif; letter-spacing: 2px; direction: ltr; }
@keyframes previewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing-preview-dialog[open] { animation: none; } }
@media (max-width: 560px) {
  .hero-stack > .template-eye { display: none; }
  .landing-preview-header { padding: 12px; gap: 8px; }
  .landing-preview-header h2 { font-size: 19px; }
  .landing-preview-header p { font-size: 12px; }
}

/* الاستوديو */
.studio-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.studio-text h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; margin: 14px 0 14px; }
.studio-text p { color: var(--muted); margin-bottom: 18px; }
.studio-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.studio-list li { padding-inline-start: 30px; position: relative; font-weight: 500; }
.studio-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 6px; background: var(--g-50); color: var(--g-800);
  border: 1px solid var(--g-100);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900;
}

.studio-mock { padding: 22px; display: flex; gap: 18px; }
.sm-palette { display: flex; flex-direction: column; gap: 10px; }
.sm-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--g-50); color: var(--g-800); border: 1px solid var(--g-100);
  font-size: 13px; font-weight: 700;
  border-radius: 9px; padding: 9px 14px; white-space: nowrap;
  animation: chipFloat 3s ease-in-out infinite;
}
.sm-chip i { font-size: 16px; color: var(--g-700); }
@keyframes chipFloat { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
html[dir="ltr"] .sm-chip { animation-name: chipFloatLtr; }
@keyframes chipFloatLtr { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.sm-page { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--shadow-sm); }
.sm-row { height: 11px; border-radius: 5px; background: #e4eae6; margin-bottom: 9px; }
.sm-row.accent { background: var(--g-600); }
.w60 { width: 60%; } .w40 { width: 40%; }
.sm-block { height: 48px; border-radius: 7px; background: #f0f4f1; margin: 14px 0; }
.sm-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sm-bars i { display: block; height: 7px; border-radius: 5px; background: #e4eae6; position: relative; overflow: hidden; }
.sm-bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--g-600); border-radius: 5px; animation: growBar 2.4s ease both infinite alternate; }
@keyframes growBar { from { width: 18%; } to { width: var(--w); } }
.sm-dots { display: flex; gap: 7px; }
.sm-dots i { width: 13px; height: 13px; border-radius: 50%; background: #e4eae6; }
.sm-dots i.on { background: var(--g-700); }

/* كيف تعمل — سكة أفقية */
.how-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.how-rail::before {
  content: ''; position: absolute; top: 29px; inset-inline: 12%;
  border-top: 2px dashed var(--line); z-index: 0;
}
.how-step { text-align: center; padding: 0 10px; position: relative; z-index: 1; }
.how-num {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px;
  background: #fff; border: 2px solid var(--g-100);
  display: flex; align-items: center; justify-content: center;
}
.how-num i { font-size: 24px; color: var(--g-700); }
.how-step b {
  display: inline-block; color: var(--gold); font-size: 13px; font-weight: 900;
  letter-spacing: 1px; margin-bottom: 4px;
}
.how-step h3 { margin: 0 0 7px; font-size: 17px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14px; }

/* الأسعار */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 30px 26px; display: flex; flex-direction: column; position: relative; box-shadow: none; }
.price-card.featured { border: 2px solid var(--g-700); box-shadow: var(--shadow); }
.price-card.studio-price { border-top: 3px solid var(--gold); }
.price-flag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--g-900); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 99px; white-space: nowrap;
}
html[dir="ltr"] .price-flag { transform: translateX(-50%); }
.price-head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.price-head h3 { margin: 0 0 8px; font-size: 17px; color: var(--muted); }
.price-num { font-size: 38px; font-weight: 900; color: var(--ink); }
.price-num small { font-size: 15px; color: var(--muted); font-weight: 700; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { padding-inline-start: 26px; position: relative; font-size: 14.5px; }
.price-card li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--g-600); font-weight: 900; }
.pay-note {
  display: flex; align-items: flex-start; gap: 10px; justify-content: center;
  text-align: start; color: var(--muted); font-size: 13.5px; margin: 28px auto 0; max-width: 760px;
  background: #fff; border: 1px solid var(--line); padding: 13px 18px; border-radius: 10px;
}
.pay-note i { color: var(--gold); font-size: 18px; flex: 0 0 auto; }

/* الأسئلة الشائعة */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; box-shadow: none; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: none; border: none; padding: 18px 22px; font-size: 16px; font-weight: 700;
  color: var(--ink); text-align: start;
}
.faq-q i { font-size: 21px; color: var(--g-700); transition: transform .25s; flex: 0 0 auto; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta-band {
  background: var(--g-950);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #fff; padding: 76px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(25px, 3.4vw, 35px); margin: 0 0 12px; font-weight: 900; color: #f7faf8; }
.cta-band p { margin: 0 0 26px; color: #9fb8ad; }

/* التذييل */
.footer { background: var(--g-950); border-top: 1px solid rgba(255, 255, 255, .07); padding: 46px 0; }
.footer .logo { color: #f3f7f4; }
.footer .logo .logo-mark { background: rgba(255, 255, 255, .08); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; color: #8fa89d; font-size: 14px; }
.footer-copy { font-size: 12.5px !important; opacity: .75; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- استجابة ---------- */
@media (max-width: 1020px) {
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-rail { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .how-rail::before { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-kicker { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .studio-inner { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .how-rail { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero-cv-back { display: none; }
  .hero-cv-wrap { width: 300px; height: 390px; }
  .hero-cv-wrap .cv-page { transform: scale(.3778); }
}
