/* Deep Slate — one accent (teal). Logical properties throughout so Arabic (RTL) and French (LTR) share one stylesheet. */
:root {
  --bg: #2B3542;
  --card: #1A2129;
  --card-2: #232C37;
  --text: #E8EDF2;
  --muted: #8A98A8;   /* only on --card / --card-2 (contrast >= 4.5:1), never on --bg */
  --accent: #4FD1C5;
  --accent-hi: #7FE0D7;
  --line: rgba(232, 237, 242, .12);
  --line-strong: rgba(232, 237, 242, .24);

  --font-ar: "Cairo", system-ui, sans-serif;
  --font-head: "Sora", "Cairo", system-ui, sans-serif;
  --font-body: "Inter", "Cairo", system-ui, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --nav-h: 64px;
  --r-lg: 22px;
  --r-md: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--nav-h) + 32px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3) { font-family: var(--font-ar); line-height: 1.4; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-inline-size: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-inline-size: 820px; }

.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100;
  background: var(--accent); color: var(--card); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { inset-block-start: 12px; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: 52px; padding-inline: 24px;
  border-radius: 14px; border: 1.5px solid var(--line-strong);
  font: 700 1rem/1 var(--font-ar);
  text-decoration: none; color: var(--text); white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
html[lang="fr"] .btn { font-family: var(--font-body); font-weight: 600; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--card); }
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--sm { min-block-size: 40px; padding-inline: 16px; border-radius: 11px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================= Navbar ================= */
.nav {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 50;
  padding: 10px 10px 0;
}
.nav__bar {
  max-inline-size: calc(var(--max) - 2 * var(--gutter) + 20px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  min-block-size: var(--nav-h);
  padding-inline: 18px 10px;
  background: rgba(26, 33, 41, .72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background-color .25s, box-shadow .25s, border-color .25s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(26, 33, 41, .92);
  border-color: var(--line-strong);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .55);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.0625rem/1 var(--font-head);
  text-decoration: none; letter-spacing: .01em;
}
.brand__dot {
  inline-size: 10px; block-size: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 209, 197, .18);
}

.nav__links { display: none; }
.nav__links a {
  position: relative;
  padding: 8px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .96875rem;
  color: rgba(232, 237, 242, .78);
  transition: color .15s, background-color .15s;
}
.nav__links a:hover { color: var(--text); background: rgba(232, 237, 242, .06); }
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a[aria-current="true"]::after {
  content: ""; position: absolute; inset-inline: 14px; inset-block-end: 2px;
  block-size: 2px; border-radius: 2px; background: var(--accent);
}

.nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 12px;
}
.lang button {
  min-inline-size: 38px; block-size: 34px; padding-inline: 8px;
  border: 0; border-radius: 9px; background: transparent; color: rgba(232, 237, 242, .78);
  font: 700 .875rem/1 var(--font-body); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.lang button[lang="ar"] { font-family: var(--font-ar); font-size: 1rem; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--card); }

.menu-btn {
  inline-size: 44px; block-size: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span {
  display: block; inline-size: 18px; block-size: 2px; border-radius: 2px; background: var(--text);
  transition: transform .2s;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__panel {
  max-inline-size: calc(var(--max) - 2 * var(--gutter) + 20px);
  margin: 8px auto 0;
  padding: 10px;
  display: grid; gap: 2px;
  background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6);
  animation: panel-in .18s ease-out;
}
.nav__panel > a:not(.btn) {
  display: flex; align-items: center; min-block-size: 52px; padding-inline: 14px;
  border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1.0625rem;
}
.nav__panel > a:not(.btn):hover { background: rgba(232, 237, 242, .06); }
.nav__panel .btn { margin-block-start: 8px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }

/* ================= Hero ================= */
.hero { padding-block: calc(var(--nav-h) + 56px) 72px; overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.15rem, 8.2vw, 4.25rem);
  font-weight: 800;
  max-inline-size: 14em;
  text-wrap: balance;
}
html[lang="fr"] .hero h1 { font-size: clamp(2rem, 7.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.025em; }
.lead { margin-block-start: 22px; max-inline-size: 36em; font-size: 1.1875rem; color: rgba(232, 237, 242, .92); }
.hero__note { margin-block-start: 14px; max-inline-size: 36em; color: rgba(232, 237, 242, .78); }
.hero .actions { margin-block-start: 32px; }

/* The reel frame */
.reel-wrap { position: relative; justify-self: center; inline-size: min(270px, 70vw); }
.reel-wrap::before {
  /* a second "reel" tilted behind the first: the stack reads as a feed */
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid rgba(79, 209, 197, .55); border-radius: 30px;
  transform: rotate(-6deg) translate(-6%, 2%);
}
[dir="rtl"] .reel-wrap::before { transform: rotate(6deg) translate(6%, 2%); }
.reel {
  position: relative; margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: 30px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.reel__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 30%; }
.reel__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--card-2);
  font: 800 5.5rem/1 var(--font-head); color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.reel::after {
  /* scrim so the caption stays readable over the photo */
  content: ""; position: absolute; inset: 55% 0 0;
  background: linear-gradient(to top, rgba(15, 20, 26, .9), rgba(15, 20, 26, 0));
}
.reel__bars {
  position: absolute; z-index: 2; inset-block-start: 14px; inset-inline: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
}
.reel__bars span { block-size: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.reel__bars i {
  display: block; block-size: 100%; background: #fff;
  transform: scaleX(0); transform-origin: left;
  animation: 9s linear infinite;
}
[dir="rtl"] .reel__bars i { transform-origin: right; }
.reel__bars span:nth-child(1) i { animation-name: bar1; }
.reel__bars span:nth-child(2) i { animation-name: bar2; }
.reel__bars span:nth-child(3) i { animation-name: bar3; }
@keyframes bar1 { 0% { transform: scaleX(0); } 32%, 100% { transform: scaleX(1); } }
@keyframes bar2 { 0%, 33% { transform: scaleX(0); } 65%, 100% { transform: scaleX(1); } }
@keyframes bar3 { 0%, 66% { transform: scaleX(0); } 98%, 100% { transform: scaleX(1); } }

.reel__cap {
  position: absolute; z-index: 2; inset-inline: 18px; inset-block-end: 18px;
  display: grid; gap: 4px;
}
.reel__handle { font: 600 .8125rem/1.2 var(--font-body); color: rgba(255, 255, 255, .85); }
.reel__tags { display: grid; }
.reel__tags span {
  grid-area: 1 / 1;
  font-weight: 800; font-size: 1.375rem; line-height: 1.3;
  opacity: 0; animation: 9s linear infinite;
}
.reel__tags span::before {
  content: ""; display: inline-block; inline-size: 8px; block-size: 8px; border-radius: 50%;
  background: var(--accent); margin-inline-end: 8px; vertical-align: middle;
}
.reel__tags span:nth-child(1) { animation-name: cap1; }
.reel__tags span:nth-child(2) { animation-name: cap2; }
.reel__tags span:nth-child(3) { animation-name: cap3; }
@keyframes cap1 { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cap2 { 0%, 31% { opacity: 0; } 34%, 63% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes cap3 { 0%, 64% { opacity: 0; } 67%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }

/* ================= Sections ================= */
.section { padding-block: 80px; }
.section--tint { background: var(--card-2); }
.section__head { margin-block-end: 36px; }
.section__head h2 { font-size: clamp(1.75rem, 5.4vw, 2.6rem); font-weight: 800; text-wrap: balance; }
.section__head p { margin-block-start: 12px; max-inline-size: 38em; color: rgba(232, 237, 242, .85); }

/* Offers */
.offers { display: grid; gap: 16px; }
.offer {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: border-color .2s;
}
.offer:hover { border-color: var(--line-strong); }
.offer__icon {
  display: grid; place-items: center;
  inline-size: 48px; block-size: 48px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line);
  margin-block-end: 20px;
}
.offer__icon svg { inline-size: 26px; block-size: 26px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.offer h3 { font-size: 1.3125rem; font-weight: 700; }
.offer > p { margin-block-start: 10px; color: rgba(232, 237, 242, .88); }
.spec { margin: 22px 0 0; border-block-start: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.spec .spec__deliver { color: var(--accent); font-weight: 600; }
.offer__link {
  margin-block-start: auto; padding-block-start: 22px; align-self: flex-start;
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 7px; text-decoration-thickness: 1.5px;
}
.offer__link:hover { text-decoration-color: var(--accent); }

/* Examples */
.examples { display: grid; gap: 16px; }
.example {
  display: block; padding: 24px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none;
}
.example h3 { font-size: 1.1875rem; font-weight: 700; }
.example p { margin-block-start: 6px; max-inline-size: 40em; color: rgba(232, 237, 242, .88); }
.example__link { display: inline-block; margin-block-start: 10px; font-weight: 700; text-underline-offset: 6px; }
.example--main {
  background: var(--card); border-color: var(--line-strong);
  padding: 32px 24px; transition: border-color .2s;
}
.example--main:hover { border-color: var(--accent); }
.example--main h3 { font-size: 1.625rem; }
.example__cta { display: inline-block; margin-block-start: 16px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 7px; }
.note { margin-block-start: 24px; max-inline-size: 40em; color: rgba(232, 237, 242, .8); }

/* Reel gallery: horizontal snap strip on phones, a row of five on desktop */
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.reels li { scroll-snap-align: start; }
.reelcard { display: grid; gap: 10px; text-decoration: none; }
.reelcard img {
  inline-size: 100%; aspect-ratio: 9 / 16; block-size: auto; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--line-strong);
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.reelcard:hover img { border-color: var(--accent); transform: translateY(-3px); }
.reelcard__kind { font-size: .875rem; color: var(--muted); line-height: 1.2; }
.reelcard__title { font-weight: 700; line-height: 1.4; margin-block-start: -6px; }
.reels__more {
  display: inline-block; margin-block: 8px 40px;
  color: var(--accent); font-weight: 700; text-underline-offset: 7px;
}

/* empty while the free-guide card is hidden */
.examples:not(:has(.example:not([hidden]))) { display: none; }

/* Who am I */
.about { display: grid; gap: 32px; }
.about__text h2 { font-size: clamp(1.75rem, 5.4vw, 2.6rem); font-weight: 800; }
.about__text p { margin-block-start: 16px; max-inline-size: 38em; color: rgba(232, 237, 242, .9); }
.about__text p:first-of-type { font-size: 1.1875rem; color: var(--text); }
.facts {
  margin: 0; align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 8px 22px;
}
.facts > div { padding-block: 16px; border-block-end: 1px solid var(--line); }
.facts > div:last-child { border-block-end: 0; }
.facts dt { font-size: .9375rem; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; }
.facts > div:last-child dd { color: var(--accent); }

/* Steps: a real sequence, so numbered */
.steps { counter-reset: step; display: grid; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 48px 1fr; column-gap: 18px;
  padding-block: 0 28px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  inline-size: 48px; block-size: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--bg);
  display: grid; place-items: center;
  font: 700 1.0625rem/1 var(--font-head);
  position: relative; z-index: 1;
}
.steps li:not(:last-child)::after {
  /* connector between step circles */
  content: ""; position: absolute; inset-inline-start: 23px; inset-block: 48px 0;
  inline-size: 1.5px; background: var(--line-strong);
}
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); color: var(--card); }
.steps h3 { font-size: 1.1875rem; font-weight: 700; align-self: center; }
.steps p { grid-column: 2; margin-block-start: 4px; color: rgba(232, 237, 242, .88); }

/* Trust */
.trust { display: grid; gap: 16px; }
.trust li { padding: 24px 22px; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); }
.trust h3 { font-size: 1.125rem; font-weight: 700; }
.trust p { margin-block-start: 6px; color: rgba(232, 237, 242, .88); }

/* FAQ */
.faq { border-block-start: 1px solid var(--line); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-block-size: 64px; padding-block: 14px;
  font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  inline-size: 32px; block-size: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font: 400 1.25rem/1 var(--font-body);
  transition: transform .2s, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--card); }
.faq details p { padding-block-end: 22px; max-inline-size: 42em; color: rgba(232, 237, 242, .88); }

/* Contact */
.contact {
  display: grid; gap: 24px; justify-items: start;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
}
.contact h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; }
.contact__text p { margin-block-start: 10px; max-inline-size: 34em; color: rgba(232, 237, 242, .88); }
.avatar {
  position: relative;
  inline-size: 76px; block-size: 76px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--card-2);
  border: 2px solid var(--accent);
  font: 800 1.5rem/1 var(--font-head); color: var(--accent);
}
.avatar img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }

/* Footer */
.footer { background: var(--card); border-block-start: 1px solid var(--line); padding-block: 56px 28px; }
.footer__grid { display: grid; gap: 36px; }
.footer__brand p { margin-block-start: 14px; max-inline-size: 26em; color: var(--muted); }
.footer__col { display: grid; gap: 4px; align-content: start; }
.footer__col h2 { font-size: .9375rem; font-weight: 700; color: var(--muted); margin-block-end: 6px; }
html[lang="ar"] .footer__col h2 { font-size: 1rem; }
.footer__col a { text-decoration: none; padding-block: 6px; inline-size: fit-content; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__bottom {
  margin-block-start: 44px; padding-block-start: 22px;
  border-block-start: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted);
}

/* ================= Wider screens ================= */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .offers { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: repeat(2, 1fr); }
  .example--main { grid-column: 1 / -1; }
  /* while the guide card is hidden, let the remaining card take the full row */
  .examples:has([data-guide][hidden]) .example:last-child { grid-column: 1 / -1; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: auto 1fr; align-items: center; column-gap: 28px; padding: 44px; }
  .contact__actions { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .reels { grid-auto-columns: 34%; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --nav-h: 68px; }
  .nav { padding-block-start: 14px; }
  .nav__links { display: flex; gap: 2px; margin-inline: auto; }
  .nav__end { margin-inline-start: 0; }
  .nav__cta { display: inline-flex; }
  .menu-btn, .nav__panel { display: none !important; }

  .hero { padding-block: calc(var(--nav-h) + 96px) 112px; }
  .hero__grid { grid-template-columns: 1.35fr .65fr; gap: 64px; }
  .reel-wrap { inline-size: 300px; justify-self: end; }
  [dir="rtl"] .reel-wrap { justify-self: end; }

  .section { padding-block: 112px; }
  .offers { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .offer { padding: 30px 26px; }
  .example--main { padding: 40px 36px; }

  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .steps li { grid-template-columns: 1fr; row-gap: 10px; padding-block: 0; }
  .steps li::before { grid-row: auto; margin-block-end: 8px; }
  .steps li:not(:last-child)::after { inset-block: 24px auto; inset-inline: 60px -16px; inline-size: auto; block-size: 1.5px; }
  .steps p { grid-column: auto; }

  .reels { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .about { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
  .facts { padding: 12px 28px; }
  .contact { grid-template-columns: auto 1fr auto; padding: 48px 52px; }
  .contact__actions { grid-column: auto; justify-content: flex-end; }
  .avatar { inline-size: 96px; block-size: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reel__bars i { transform: scaleX(1); }
  .reel__tags span:nth-child(1) { opacity: 1; }
}
