/* ════ الصفحة الرئيسية — نفس لغة تصميم «ترجم» ════ */
:root { --pad-x: clamp(16px, 5vw, 64px); --narrow: 760px; --wide: 1160px; }
.home .site-footer { margin-top: 0; }

/* HERO */
.hero { padding: clamp(72px, 12vw, 140px) var(--pad-x) clamp(40px, 6vw, 64px); text-align: center; }
.hero-mark {
  width: clamp(64px, 8vw, 84px); height: clamp(64px, 8vw, 84px); margin: 0 auto clamp(28px, 4vw, 44px);
  border-radius: 22%; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); display: block;
}
.hero-title { font-weight: 300; line-height: 1.02; margin: 0; }
.hero-title .big { display: block; font-size: clamp(80px, 16vw, 196px); letter-spacing: -0.02em; }
.hero-title .small { display: block; font-size: clamp(22px, 3.6vw, 44px); color: var(--ink-3); font-weight: 400; margin-top: .3em; }
.hero-tagline { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 640px; font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-2); }
.hero-cta { margin-top: clamp(32px, 4vw, 44px); display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn { padding: 14px 24px; font-size: 15px; font-weight: 500; }
.hero-meta { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }

/* DEMO: نافذة متصفح فيها السيرة ودرجة ATS */
.demo { padding: clamp(24px, 4vw, 48px) var(--pad-x) clamp(72px, 10vw, 120px); }
.browser {
  max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr;
}
.dots { display: flex; gap: 7px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.url {
  flex: 1; padding: 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  font: 12px var(--mono); color: var(--ink-3); text-align: center;
}
.browser-body {
  display: grid; grid-template-columns: 1fr 260px; gap: clamp(20px, 4vw, 40px); align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px); background: var(--paper);
}
.sheet {
  background: #fff; color: #1a1a1a; border-radius: 4px; padding: 26px 28px; direction: ltr; text-align: left;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .04); font-family: Georgia, serif; aspect-ratio: 210 / 230; overflow: hidden;
}
.sheet h4 { font-size: 20px; text-align: center; margin: 0; font-weight: 700; }
.sheet .role { text-align: center; color: #2563EB; font: 600 11px/1.6 Arial, sans-serif; }
.sheet .ct { text-align: center; color: #666; font: 9.5px/1.6 Arial, sans-serif; margin-bottom: 10px; }
.sheet h5 {
  font: 700 10px/1 Arial, sans-serif; letter-spacing: 1px; color: #2563EB; text-transform: uppercase;
  border-bottom: 1px solid #2563EB; padding-bottom: 3px; margin: 12px 0 6px;
}
.sheet p, .sheet li { font-size: 10px; line-height: 1.5; color: #333; margin: 0; }
.sheet ul { margin: 4px 0 0 14px; padding: 0; }
.sheet .typing::after { content: '|'; color: #2563EB; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.score-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px; }
.score-card .label {
  display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--primary);
  background: var(--primary-soft); padding: 5px 8px; border-radius: 999px; direction: ltr;
}
.score-card .num { direction: ltr; text-align: right; font-size: 56px; font-weight: 300; line-height: 1; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.score-card .num small { font-size: 18px; color: var(--ink-3); }
.score-card .bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 14px; }
.score-card .bar i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.score-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.score-card li { display: flex; gap: 8px; align-items: center; opacity: .35; transition: opacity .3s; }
.score-card li.on { opacity: 1; }
.score-card li::before { content: '✓'; color: var(--ok); font-weight: 700; }

/* SECTIONS */
section.block { padding: clamp(64px, 9vw, 112px) var(--pad-x); border-top: 1px solid var(--line); }
.wrap { max-width: var(--wide); margin: 0 auto; }
.wrap.narrow { max-width: var(--narrow); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.section-title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance; }
.section-lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 62ch; }

.steps { margin-top: clamp(40px, 5vw, 56px); display: grid; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font: 500 14px var(--mono); color: var(--ink-3); padding-top: 4px; }
.step-title { font-size: 21px; font-weight: 500; margin-bottom: 6px; }
.step-desc { color: var(--ink-2); font-size: 16px; margin: 0; }

.features {
  margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.feature { background: var(--surface); padding: clamp(24px, 3vw, 36px); transition: background .2s; }
.feature:hover { background: var(--paper); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 20px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.feature-desc { font-size: 15px; color: var(--ink-2); margin: 0; }

.maker {
  margin-top: 8px; display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px);
}
.maker-photo {
  width: 240px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 88px; font-weight: 300; color: var(--ink-3);
}
.maker-photo img { width: 100%; height: 100%; object-fit: cover; }
.maker-quote { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.7; margin: 0; }
.maker-quote::before { content: '”'; display: block; font-size: 56px; line-height: .6; color: var(--primary); margin-bottom: 8px; font-family: Georgia, serif; }
.maker-name { margin-top: 24px; font-size: 17px; font-weight: 600; }
.maker-role { color: var(--ink-3); font-size: 14.5px; }
.maker-cta {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 10px 16px; border-radius: 9px; border: 1px solid var(--line-strong); transition: .18s;
}
.maker-cta:hover { border-color: var(--ink); transform: translateY(-1px); text-decoration: none; }
.maker-cta svg { width: 14px; height: 14px; transform: scaleX(-1); }

.final { text-align: center; }
.final .section-title { margin-inline: auto; }
.final .section-lead { margin-inline: auto; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .maker { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .maker-photo { width: 180px; }
  .browser-body { grid-template-columns: 1fr; }
  .score-card { max-width: 320px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 12px; }
  .hero-cta { display: flex; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .brand .sub { display: none; }
  .sheet { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* FAQ */
.faq { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; display: inline-block; flex: none; font: 400 22px var(--mono); color: var(--ink-3); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-2); margin: -6px 0 22px; max-width: 62ch; }
