:root {
  --primary-text: #0d0c0b;
  --orange: #fd611b;
  --white: #ffffff;
  --secondary-text: #343230;
  --subtle-text: #918c87;
  --tertiary-text: #5c5956;
  --muted-text: #77736f;
  --bg: #f4f6f8;
  --container: 1408px;
  --gutter: 24px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Readex Pro", system-ui, sans-serif; background: var(--bg); color: var(--primary-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--primary-text); color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 4px 16px; border-radius: 8px; font: 700 16px/1 "Readex Pro", sans-serif; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #e4510f; }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { border-color: var(--primary-text); color: var(--primary-text); }
.btn-outline-dark:hover { background: var(--primary-text); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary-text); font-weight: 600; }

/* Logo */
.logo { display: flex; align-items: center; gap: 2.6px; }
.logo-mark { width: 42.7px; height: 45.8px; }
.logo-word { display: flex; align-items: flex-end; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 43.8px; line-height: 1; color: var(--white); }
.logo-word img { width: 9px; height: 20px; margin-bottom: 4px; }

/* Header */
.header { padding: 24px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-left { display: flex; align-items: center; gap: 56px; }
.nav { display: flex; }
.nav a { padding: 10px; font-size: 16px; color: var(--white); }
.nav a.active { color: var(--orange); font-weight: 700; }
.nav a:hover { color: var(--orange); }
.header-right { display: flex; align-items: center; gap: 32px; }
.lang { display: flex; align-items: center; gap: 10px; height: 40px; padding: 4px 12px; color: var(--white); font-size: 16px; }
.lang img { width: 20px; height: 20px; }
.header-actions { display: flex; gap: 16px; }

/* Hero */
.hero { padding-bottom: 0; overflow: hidden; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 46px; min-height: 822px; }
.hero-text { max-width: 717px; display: flex; flex-direction: column; gap: 32px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 80px; background: var(--secondary-text); font-size: 16px; line-height: 1.3; }
.badge img { width: 6px; height: 5px; }
.hero h1 { font-weight: 400; font-size: 72px; line-height: 1.3; margin-top: 12px; }
.accent { display: block; color: var(--orange); font-weight: 700; }
.lead { color: var(--subtle-text); font-size: 24px; line-height: 1.6; max-width: 661px; margin-top: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-visual { position: relative; width: 434px; height: 693px; flex-shrink: 0; align-self: flex-start; }
.hero-visual .bar { position: absolute; left: 27px; top: 520px; width: 380px; height: 173px; background: var(--orange); border-radius: 20px; }
.hero-visual .cv { position: absolute; inset: 0 0 auto 0; height: 614px; width: 100%; object-fit: cover; border-radius: 20px; box-shadow: 0 37px 62px rgba(13,12,11,.43); }

/* Section heads */
.section { padding: 115px 0 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.section-head.row { flex-direction: row; align-items: center; justify-content: space-between; }
.h2 { font-weight: 400; font-size: 32px; line-height: 1.3; }
.sub { font-weight: 300; font-size: 24px; line-height: 1.6; color: var(--tertiary-text); }

/* Cards grid */
.grid { display: grid; gap: 8px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--bg); border-radius: 12px; padding: 24px; }
.card.is-dark { background: var(--primary-text); }

/* Steps */
.step { display: flex; flex-direction: column; gap: 16px; }
.step h3 { font-weight: 600; font-size: 20px; line-height: 1.6; letter-spacing: -.4px; }
.step p { font-size: 20px; line-height: 1.6; letter-spacing: -.4px; color: var(--tertiary-text); }
.is-dark .step h3 { color: var(--white); }
.is-dark .step p { color: var(--subtle-text); }
.icon { position: relative; width: 64px; height: 64px; overflow: hidden; }
.icon > span { position: absolute; }
.icon > span > img { position: absolute; max-width: none; width: 100%; height: 100%; }
.icon .float { animation: float 2.4s ease-in-out infinite; }
.card:hover .icon .float { animation-duration: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Templates */
.tpl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.tpl img { width: 243px; max-width: 100%; aspect-ratio: 243 / 344; object-fit: cover; border-radius: 18px; box-shadow: 0 37px 38px rgba(13,12,11,.15); transition: transform .25s; }
.tpl:hover img { transform: translateY(-6px); }
.tpl span { font-size: 20px; line-height: 1.6; letter-spacing: -.4px; }

/* Before / After */
.rewrite { margin-top: 115px; padding: 64px 0; }
.rewrite .container { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.ba { width: 653px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; font-size: 24px; line-height: 1.6; }
.ba-card { padding: 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 12px; }
.ba-before { background: var(--secondary-text); }
.ba-before .label { color: var(--subtle-text); }
.ba-after { background: var(--orange); }
.ba-after ul { padding-inline-start: 36px; }
.rewrite-text { width: 656px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.rewrite-text h2 { font-weight: 400; font-size: 48px; line-height: 1.3; }

/* Jobs */
.jobs { padding: 115px 0 133px; }
.jobs .container { display: flex; align-items: center; justify-content: space-between; gap: 49px; }
.jobs-text { max-width: 818px; display: flex; flex-direction: column; gap: 24px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 300; font-size: 18px; line-height: 1.6; }
.checks img { width: 20px; height: 20px; flex-shrink: 0; }
.job-stack { position: relative; width: 546px; height: 391px; flex-shrink: 0; }
.job { position: absolute; width: 508.6px; border-radius: 18.7px; padding: 18.7px; display: flex; gap: 12.5px; align-items: center; background: var(--white); line-height: 1.6; }
.job-logo { width: 35px; height: 34.3px; border-radius: 7.8px; background: var(--primary-text); display: grid; place-items: center; flex-shrink: 0; }
.job-logo img { width: 19.8px; height: 21.3px; }
.job-title { font-weight: 700; font-size: 18.7px; }
.job-co { font-size: 15.6px; color: var(--muted-text); }
.job-type { font-size: 15.6px; color: var(--secondary-text); white-space: nowrap; }
.job-info { flex: 1; min-width: 0; }
.job.featured { left: 37.4px; top: 0; background: var(--orange); color: var(--white); flex-direction: column; align-items: stretch; gap: 9.3px; }
.job.featured .top { display: flex; justify-content: space-between; align-items: center; font-size: 15.6px; }
.job.featured .job-co { color: var(--white); }
.job.featured .apply { align-self: flex-end; width: 232.9px; height: 31.2px; border-radius: 6.2px; background: var(--white); color: var(--primary-text); font-weight: 700; font-size: 12.5px; text-transform: uppercase; display: grid; place-items: center; }
.job.j2 { left: 18.7px; top: 191.6px; }
.job.j3 { left: 0; top: 299.1px; }

/* Footer */
.footer { padding: 64px 0; }
.footer .container { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; }
.footer-brand { width: 592px; max-width: 100%; display: flex; flex-direction: column; gap: 64px; }
.footer .logo-mark { width: 57.7px; height: 62px; }
.footer .logo-word { font-size: 59.3px; }
.footer .logo-word img { width: 12.2px; height: 27px; margin-bottom: 6px; }
.legal { max-width: 423px; font-size: 16px; line-height: 1.6; }
.legal a { color: var(--orange); font-weight: 700; text-decoration: underline; }
.footer-col { flex: 1; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.footer-col h4 { font-weight: 700; font-size: 16px; letter-spacing: -.16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a:hover { color: var(--orange); }
.footer-links a.active { color: var(--orange); font-weight: 700; }
.socials { display: flex; gap: 18.75px; }
.socials img { width: 21px; height: 21px; }
.socials a:hover { opacity: .7; }
.divider { height: 1px; background: rgba(255,255,255,.15); }

/* Responsive */
@media (max-width: 1200px) {
  .hero h1 { font-size: 56px; }
  .hero-visual { width: 340px; height: 540px; }
  .hero-visual .cv { height: 480px; }
  .hero-visual .bar { top: 400px; width: 300px; height: 140px; left: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rewrite .container, .jobs .container { flex-direction: column; align-items: flex-start; }
  .ba, .rewrite-text { width: 100%; }
}
@media (max-width: 900px) {
  .nav, .lang { display: none; }
  .hero-inner { flex-direction: column; min-height: 0; padding-bottom: 48px; }
  .hero-visual { align-self: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-head.row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .header-actions .btn-outline-light { display: none; }
  .hero h1 { font-size: 40px; }
  .lead, .sub, .ba { font-size: 18px; }
  .h2 { font-size: 26px; }
  .rewrite-text h2 { font-size: 32px; }
  .hero-visual { width: 100%; max-width: 340px; height: 500px; }
  .hero-visual .cv { height: 440px; }
  .hero-visual .bar { top: 360px; width: 86%; left: 7%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tpl { padding: 12px; gap: 12px; }
  .tpl img { border-radius: 10px; box-shadow: 0 14px 20px rgba(13,12,11,.12); }
  .tpl span { font-size: 16px; }
  .step h3, .step p { font-size: 17px; }
  .section, .jobs { padding-top: 64px; }
  .jobs { padding-bottom: 64px; }
  .rewrite { margin-top: 64px; padding: 48px 0; }
  .rewrite-text { order: -1; }
  .hero-inner { gap: 40px; padding-top: 24px; }
  .job-stack { width: 100%; height: auto; display: flex; flex-direction: column; gap: 12px; }
  .job { position: static; width: 100%; }
  .header .container { gap: 12px; }
  .header-actions .btn { height: 36px; padding: 4px 12px; font-size: 13px; }
  .logo-word { font-size: 30px; }
  .logo-word img { width: 7px; height: 15px; margin-bottom: 3px; }
  .logo-mark { width: 28px; height: 30px; }
  .footer .logo-word { font-size: 44px; }
  .footer .logo-mark { width: 42px; height: 45px; }
}
@media (max-width: 360px) {
  .grid-4 { grid-template-columns: 1fr; }
  .header-actions .btn { font-size: 12px; padding: 4px 10px; }
}
/* Large screens: scale up slightly so content doesn't look tiny on 2K+ displays */
@media (min-width: 2200px) {
  html { zoom: 1.15; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .logo { direction: ltr; }
[dir="rtl"] .step h3, [dir="rtl"] .step p, [dir="rtl"] .tpl span, [dir="rtl"] .footer-col h4 { letter-spacing: 0; }
[dir="rtl"] .hero h1 { line-height: 1.35; }
[dir="rtl"] .hero-visual .bar { left: auto; right: 27px; }
[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 600px) {
  [dir="rtl"] .hero-visual .bar { right: 7%; }
}
/* ================= Animations ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cvIn { from { opacity: 0; transform: translateY(48px) rotate(-3deg) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes cvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes barIn { from { opacity: 0; transform: translateY(-70px) scaleX(.85); } to { opacity: 1; transform: none; } }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(253,97,27,.55); } 70% { box-shadow: 0 0 0 14px rgba(253,97,27,0); } 100% { box-shadow: 0 0 0 0 rgba(253,97,27,0); } }
@keyframes dotBlink { 50% { opacity: .25; } }

/* Hero entrance */
.header { animation: fadeIn .7s ease both; }
.hero .badge, .hero h1, .hero .lead, .hero .btn-row { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .12s; }
.hero .lead { animation-delay: .26s; }
.hero .btn-row { animation-delay: .4s; }
.badge img { animation: dotBlink 1.6s ease-in-out infinite; }
.hero-visual .cv { animation: cvIn 1s .3s cubic-bezier(.2,.7,.2,1) both, cvFloat 6s 1.4s ease-in-out infinite; }
.hero-visual .bar { animation: barIn .9s .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .btn-row .btn-primary { animation: pulseRing 2.6s 1.6s infinite; }

/* Shimmering orange headline text */
.accent {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 35%, #ffb48f 50%, var(--orange) 65%, var(--orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 5s linear 1.2s infinite;
}

/* Buttons */
.btn { position: relative; overflow: hidden; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(253,97,27,.35); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn:hover::after { left: 120%; }

/* Nav underline */
.nav a { position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Logo + socials */
.logo-mark { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-mark { transform: rotate(-14deg) scale(1.06); }
.socials a { display: inline-block; transition: transform .2s, opacity .2s; }
.socials a:hover { transform: translateY(-3px); }
.footer-links a { transition: color .2s, transform .2s; }

/* Cards hover */
.card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.grid-3 .card:hover, .tpl:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(13,12,11,.08); }
.grid-3 .card.is-dark:hover { box-shadow: 0 20px 40px rgba(13,12,11,.35); }
.job { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.job:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(13,12,11,.12); }
.ba-card { transition: transform .3s; }
.ba-card:hover { transform: scale(1.015); }
.checks img { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.checks li:hover img { transform: scale(1.25) rotate(-8deg); }

/* Scroll reveal (classes added by animations.js) */
.js [data-reveal] { opacity: 0; transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal="up"] { transform: translateY(36px); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: translateY(24px) scale(.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
/* ================= Fixed header ================= */
:root { --header-h: 94px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--primary-text); transition: padding .3s ease, background .3s ease, box-shadow .3s ease; }
.header.is-scrolled { padding: 14px 0; background: rgba(13,12,11,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero { padding-top: var(--header-h); }
@media (max-width: 600px) { :root { --header-h: 84px; } }

/* ================= Step cards: white, turn black on hover ================= */
.grid-3 .card { transition: background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.grid-3 .card h3, .grid-3 .card p { transition: color .35s ease; }
.grid-3 .card:hover { background: var(--primary-text); border-color: var(--primary-text); box-shadow: 0 20px 40px rgba(13,12,11,.25); }
.grid-3 .card:hover h3 { color: var(--white); }
.grid-3 .card:hover p { color: var(--subtle-text); }
.icon img.ink { transition: filter .35s ease; }
.grid-3 .card:hover img.ink { filter: invert(1); }

/* ================= Recommended template badge ================= */
.tpl-label { display: flex; align-items: center; gap: 8px; }
.rec { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 80px; background: var(--orange); color: var(--white); font-style: normal; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.rec::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--white); }
.accent.inline { display: inline; }
/* Elements waiting to slide in must not cause sideways scrolling */
html, body { overflow-x: clip; }

/* ================= Arabic typography fixes ================= */
.nowrap { white-space: nowrap; }
.step p, .ba-card p, .ba-card li, .lead, .sub { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* Hero title: first line always on one line, font scales to the space available */
[dir="rtl"] .hero-text { max-width: 780px; }
[dir="rtl"] .hero h1 { font-size: min(72px, calc((100vw - 530px) / 11)); }
@media (max-width: 1200px) { [dir="rtl"] .hero h1 { font-size: min(56px, calc((100vw - 436px) / 11)); } }
@media (max-width: 900px)  { [dir="rtl"] .hero h1 { font-size: calc((100vw - 48px) / 11); } }
@media (max-width: 600px)  { [dir="rtl"] .hero h1 { font-size: calc((100vw - 32px) / 11); } }
/* Step card text: keep to 2 lines on mid-size screens */
@media (max-width: 1300px) and (min-width: 901px) { .step h3, .step p { font-size: 17px; } }
/* Footer logo sits at the start (right) in Arabic */
[dir="rtl"] .footer-brand .logo { align-self: flex-start; }
/* Short texts: split evenly so no word sits alone on a line */
.ba-card p, .ba-card li, .step p { text-wrap: balance; }

/* ================= Step icon motion (keyframes taken from Figma) ================= */
.icon .m-l1 { animation: icLine1 3.8s ease-in-out infinite; }
.icon .m-l2 { animation: icLine2 3.8s ease-in-out infinite; }
.icon .m-l3 { animation: icLine3 3.8s ease-in-out infinite; }
@keyframes icLine1 { 0%, 69% { opacity: 1; } 80.8%, 84.2% { opacity: 0; } 84.21%, 100% { opacity: 1; } }
@keyframes icLine2 { 0%, 76.9% { opacity: 1; } 88.7%, 92.1% { opacity: 0; } 92.11%, 100% { opacity: 1; } }
@keyframes icLine3 { 0%, 84.8% { opacity: 1; } 96.6%, 99.9% { opacity: 0; } 100% { opacity: 1; } }
.icon .m-bob { animation: icBob 1.6s ease-in-out infinite; }
@keyframes icBob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.icon .m-slide { animation: icSlide 4s ease-in-out infinite; }
@keyframes icSlide { 0%, 18% { transform: translateX(0); } 34%, 80% { transform: translateX(30px); } 94%, 100% { transform: translateX(0); } }
.icon .m-pop { transform-origin: 50% 50%; animation: icPop 4s ease-out infinite; }
@keyframes icPop { 0%, 36% { transform: scale(0); opacity: 0; } 44% { transform: scale(1.15); opacity: 1; } 50%, 78% { transform: scale(1); opacity: 1; } 86%, 100% { transform: scale(0); opacity: 0; } }
.icon .m-drop { animation: icDrop 3.2s ease-in-out infinite; }
@keyframes icDrop { 0% { transform: translateY(-8px); opacity: 0; } 12% { opacity: 1; } 40% { transform: translateY(4px); opacity: 1; } 50%, 100% { transform: translateY(4px); opacity: 0; } }
.icon .m-tray .tray-hot { opacity: 0; animation: icTray 3.2s linear infinite; }
@keyframes icTray { 0%, 38% { opacity: 0; } 44%, 60% { opacity: 1; } 72%, 100% { opacity: 0; } }
.icon .m-send { transform-origin: 41% 44%; animation: icSend 3.2s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes icSend { 0%, 46% { transform: translate(0, 0) scale(.4); opacity: 0; } 54% { opacity: 1; } 84% { transform: translate(14px, -26px) scale(1); opacity: 1; } 96%, 100% { transform: translate(18px, -32px) scale(1); opacity: 0; } }
/* ================= Hero Lottie ================= */
.hero-visual { width: 560px; height: 595px; align-self: center; }
.hero-lottie { width: 100%; height: 100%; animation: fadeIn 1s .3s both; }
.hero-lottie:empty { background: url("assets/hero-cv.png") center / contain no-repeat; }
@media (max-width: 1200px) { .hero-visual { width: 440px; height: 468px; } }
@media (max-width: 600px)  { .hero-visual { width: 100%; max-width: 380px; height: auto; aspect-ratio: 640 / 680; } }

/* ================= Before / After transformation ================= */
.ba-card { position: relative; }
.ba-before { overflow: hidden; transition: transform .6s ease, opacity .6s ease; }
.ba-before .ba-text { transition: opacity .6s ease, filter .6s ease; }
.ba-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(253,97,27,.0) 38%, rgba(253,97,27,.45) 50%, rgba(255,255,255,.18) 52%, transparent 62%);
  background-size: 250% 100%; background-position: 120% 0; }
[dir="rtl"] .ba-scan { background-position: -20% 0; }
.ba.is-scanning .ba-scan { opacity: 1; animation: baScan 1.4s ease-in-out both; }
@keyframes baScan { from { background-position: 120% 0; } to { background-position: -20% 0; } }
[dir="rtl"] .ba.is-scanning .ba-scan { animation-name: baScanRtl; }
@keyframes baScanRtl { from { background-position: -20% 0; } to { background-position: 120% 0; } }
.ba.is-rewritten .ba-before { transform: scale(.97); opacity: .75; }
.ba.is-rewritten .ba-before .ba-text { opacity: .5; filter: grayscale(1); }

.ba-after { transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease, box-shadow .8s ease; }
.ba[data-ba]:not(.is-rewritten) .ba-after { opacity: .35; transform: scale(.97); }
.ba.is-rewritten .ba-after { box-shadow: 0 24px 60px -18px rgba(253,97,27,.75), 0 0 0 1px rgba(255,255,255,.12) inset; }
.ba-after .w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(8px); transition: opacity .45s ease, filter .45s ease, transform .45s ease; transition-delay: calc(var(--i) * 55ms); }
.ba.is-rewritten .ba-after .w { opacity: 1; filter: none; transform: none; }
.ba-after mark { background: linear-gradient(rgba(255,255,255,.24), rgba(255,255,255,.24)) no-repeat 0 50% / 0% 100%; color: inherit; border-radius: 6px; padding: 0 4px; margin: 0 -2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .7s cubic-bezier(.2,.7,.2,1); }
[dir="rtl"] .ba-after mark { background-position: 100% 50%; }
.ba.is-highlighted .ba-after mark { background-size: 100% 100%; }
.ba.is-highlighted .ba-after mark .w { text-shadow: 0 0 14px rgba(255,255,255,.55); }

.ai-chip { position: absolute; top: 0; inset-inline-end: 24px; transform: translateY(-50%) scale(.8); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 80px;
  background: var(--primary-text); color: var(--white); font-size: 14px; line-height: 1.4; white-space: nowrap;
  border: 1px solid rgba(253,97,27,.6); box-shadow: 0 0 24px rgba(253,97,27,.45); transition: opacity .4s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.ai-chip .spark { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: dotBlink 1s ease-in-out infinite; }
.ai-chip .chip-done { display: none; }
.ba.is-scanning .ai-chip, .ba.is-rewritten .ai-chip { opacity: 1; transform: translateY(-50%) scale(1); }
.ba.is-highlighted .ai-chip .chip-work { display: none; }
.ba.is-highlighted .ai-chip .chip-done { display: inline; }
.ba.is-highlighted .ai-chip .spark { animation: none; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }

/* ================= Job cards: looping swap + glow ================= */
.job-stack::before { content: ""; position: absolute; inset: -10% -6%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(253,97,27,.16), transparent); }
.job { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo info type"; align-items: center; column-gap: 12.5px; row-gap: 9px; overflow: hidden;
  transition: top .8s cubic-bezier(.65,0,.35,1), left .8s cubic-bezier(.65,0,.35,1), background-color .6s ease, color .6s ease, box-shadow .6s ease, transform .3s ease; }
.job > * { transition: opacity .22s ease; }
.job-stack.is-swapping .job > * { opacity: 0; }
.job .job-logo { grid-area: logo; }
.job .job-info { grid-area: info; }
.job .job-type { grid-area: type; }
.job .job-tag { grid-area: tag; display: none; justify-self: end; font-size: 15.6px; }
.job .apply { grid-area: apply; display: none; justify-self: end; width: 232.9px; max-width: 100%; height: 31.2px; border-radius: 6.2px; background: var(--white); color: var(--primary-text); font-weight: 700; font-size: 12.5px; text-transform: uppercase; place-items: center; transition: opacity .22s, transform .2s; }
.job .apply:hover { transform: translateY(-1px); }
.job[data-slot="0"] { left: 37.4px; top: 0; z-index: 3; background: var(--orange); color: var(--white);
  grid-template-columns: auto 1fr; grid-template-areas: "logo tag" "info info" "apply apply";
  animation: jobGlow 2.8s ease-in-out infinite; }
.job[data-slot="0"] .job-type { display: none; }
.job[data-slot="0"] .job-tag { display: block; }
.job[data-slot="0"] .apply { display: grid; }
.job[data-slot="0"] .job-co { color: var(--white); }
.job[data-slot="1"] { left: 18.7px; top: 191.6px; z-index: 2; }
.job[data-slot="2"] { left: 0; top: 299.1px; z-index: 1; }
.job[data-slot="0"]::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%;
  animation: jobSheen 2.8s ease-in-out infinite; }
@keyframes jobGlow {
  0%, 100% { box-shadow: 0 18px 46px -14px rgba(253,97,27,.55), 0 0 0 0 rgba(253,97,27,0); }
  50% { box-shadow: 0 24px 70px -10px rgba(253,97,27,.85), 0 0 0 6px rgba(253,97,27,.14); }
}
@keyframes jobSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
@media (max-width: 600px) {
  .job-stack::before { display: none; }
  .job[data-slot="0"] { order: 0; } .job[data-slot="1"] { order: 1; } .job[data-slot="2"] { order: 2; }
}

/* ================= Subtle site-wide glow ================= */
.btn-primary { box-shadow: 0 8px 22px -10px rgba(253,97,27,.7); }
.accent { filter: drop-shadow(0 0 22px rgba(253,97,27,.35)); }
.badge img { filter: drop-shadow(0 0 4px var(--orange)); }
.rewrite { position: relative; overflow: hidden; }
.rewrite::before { content: ""; position: absolute; width: 640px; height: 640px; top: 50%; inset-inline-start: 4%; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(253,97,27,.2), transparent); animation: glowBreath 6s ease-in-out infinite; }
.rewrite .container { position: relative; }
@keyframes glowBreath { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.grid-3 .card:hover { box-shadow: 0 22px 50px -18px rgba(253,97,27,.55); }
.tpl:hover { box-shadow: 0 20px 44px -16px rgba(253,97,27,.35); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(253,97,27,.55), rgba(255,255,255,.15), transparent); }
.checks img { filter: drop-shadow(0 0 5px rgba(253,97,27,.45)); }
/* Hero title sizing updated for the wider (560px) animation box */
[dir="rtl"] .hero h1 { font-size: min(72px, calc((100vw - 656px) / 11)); }
@media (max-width: 1200px) { [dir="rtl"] .hero h1 { font-size: min(56px, calc((100vw - 536px) / 11)); } }
@media (max-width: 900px)  { [dir="rtl"] .hero h1 { font-size: calc((100vw - 48px) / 11); } }
@media (max-width: 600px)  { [dir="rtl"] .hero h1 { font-size: calc((100vw - 32px) / 11); } }