/* abdulrahmaneldiehy.com temporary landing page. Same tokens as security.abdulrahmaneldiehy.com */
@font-face { font-family: "Qatar"; src: url("fonts/qatar-book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Qatar"; src: url("fonts/qatar-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Qatar"; src: url("fonts/qatar-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Qatar"; src: url("fonts/qatar-heavy.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --paper: #f6f3ee; --paper-2: #efebe3; --ink: #0b0b09; --ink-2: #3d3f3a; --ink-3: #6b6f68;
  --line: #e6e1d8; --emerald: #00bc6d; --emerald-deep: #047a4b; --mint: #a6e9bb; --mint-soft: #e3f6ea;
  --night: #0e1310; --r-lg: 24px; --r-xl: 32px; --shadow: 0 30px 60px -30px rgba(11, 11, 9, .28);
  --f: "Qatar", "Segoe UI", Tahoma, sans-serif;
  --num: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="en"] { --f: "IBM Plex Sans Arabic", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 9; }

/* header */
.nav-wrap { position: sticky; top: 12px; z-index: 5; padding-top: 12px; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; padding-inline-start: 12px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--emerald); }
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.nav-end { display: flex; gap: 8px; align-items: center; }
.menu { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.menu a { position: relative; padding: 8px 16px; border-radius: 99px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: color .3s, background-color .35s, box-shadow .35s; }
.menu a:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.menu a[aria-current] { color: #fff; background: var(--ink); box-shadow: 0 8px 18px -10px rgba(11, 11, 9, .55); }
.menu a[aria-current]::after { content: ""; position: absolute; inset-inline-start: 50%; bottom: 3px; width: 4px; height: 4px; margin-inline-start: -2px; border-radius: 99px; background: var(--emerald); }
.lang { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; font-size: 13.5px; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.lang:hover { border-color: var(--ink); }
.lang img { width: 20px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.burger, .menu-arrow, .lang-short { display: none; }
.brand b { white-space: nowrap; }
.burger { place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
.burger .ico-close, .burger[aria-expanded="true"] .ico-menu { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }
section[id] { scroll-margin-top: 96px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 99px; font-weight: 700; font-size: 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--green { background: var(--emerald); border-color: var(--emerald); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* hero */
.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 72px); position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background: radial-gradient(40% 50% at 15% 30%, rgba(255, 196, 140, .22), transparent 70%), radial-gradient(40% 50% at 85% 20%, rgba(0, 188, 109, .16), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.proof { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 6px 20px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -22px rgba(11, 11, 9, .4); }
[dir="rtl"] .proof { padding: 6px 8px 6px 20px; }
.faces { display: flex; }
.faces img { width: 40px; height: 40px; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 2.5px #fff; }
.faces img + img { margin-inline-start: -12px; }
.proof > span:last-child { line-height: 1.3; text-align: start; }
.proof > span:last-child > span { display: block; font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.proof b { display: block; font-size: 15px; }
.hero-copy { container-type: inline-size; }
h1 { font-size: min(64px, 7.7cqi); line-height: 1.4; font-weight: 900; margin: 0; letter-spacing: -.01em; }
h1 .l { display: block; white-space: nowrap; }
html[lang="en"] h1 { font-size: min(60px, 6.7cqi); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.grad { background: linear-gradient(100deg, var(--emerald-deep) 0%, var(--emerald) 55%, #4fd394 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; color: var(--ink-2); margin: 20px 0 0; max-width: 60ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.photo { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(180deg, var(--mint-soft), var(--paper-2)); aspect-ratio: 4 / 4.4; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.photo figcaption { position: absolute; left: 50%; translate: -50% 0; bottom: 16px; width: max-content; max-width: calc(100% - 28px); display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 14px; border-radius: 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.photo figcaption b { display: block; font-size: 14px; line-height: 1.3; }
.photo figcaption span span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 99px; background: var(--emerald); box-shadow: 0 0 0 5px rgba(0, 188, 109, .18); flex: none; }
/* stats: one card split into three, numbers in Plex with an emerald plus */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; max-width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px -30px rgba(11, 11, 9, .35); }
.stat { padding: 16px 20px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: flex; align-items: baseline; gap: 2px; font-family: var(--num); font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.stat b i { font-style: normal; font-size: .7em; color: var(--emerald); }
.stat span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.45; }

/* sections */
.section { padding: clamp(52px, 6vw, 88px) 0; }
.head { text-align: center; display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--emerald); box-shadow: 0 0 0 4px var(--mint-soft); }
h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.35; font-weight: 900; margin: 0; text-wrap: balance; }
html[lang="en"] h2 { font-weight: 700; line-height: 1.2; }
.head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s, box-shadow .4s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card--dark { background: var(--night); color: #fff; border-color: var(--night); }
.card--green { background: linear-gradient(160deg, #d6f5e2, #f4fbf7 65%); border-color: #c5ebd2; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--mint-soft); color: var(--emerald-deep); }
.card--dark .ico { background: var(--emerald); color: var(--ink); }
.ico svg { width: 22px; height: 22px; }
.card h3 { margin: 6px 0 0; font-size: 21px; line-height: 1.4; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14.5px; color: var(--emerald-deep); display: inline-flex; gap: 6px; align-items: center; }
.card--dark .more { color: var(--mint); }
.card--dark p { color: #c9d2cb; }
.card .more svg { width: 18px; height: 18px; flex: none; transition: transform .3s; }
.card:hover .more svg { translate: 4px 0; }
[dir="rtl"] .card:hover .more svg { translate: -4px 0; }
/* client logos: two identical sets slide by exactly one set. Every logo has fixed dimensions in the
   HTML and loads eagerly, so the track never changes width mid-animation (that caused blank gaps and jumps). */
.section--partners { padding-top: 0; }
/* edge fade drawn on top instead of mask-image: iOS Safari left masked, animated strips half painted */
.logos-row { position: relative; overflow: hidden; }
.logos-row::before, .logos-row::after { content: ""; position: absolute; z-index: 1; inset-block: 0; width: 10%; pointer-events: none; }
.logos-row::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.logos-row::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.logos-track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
.logos-track img { flex: none; height: 40px; width: auto; max-width: none; margin-inline-end: 56px; opacity: .7; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.logos-track img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
[dir="rtl"] .logos-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translate3d(50%, 0, 0); } }

/* contact */
.finale { margin: 0 clamp(8px, 1.4vw, 18px); border-radius: clamp(28px, 4vw, 48px); background: var(--emerald); padding: clamp(48px, 6vw, 84px) 0; }
.finale-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.finale h2 { color: var(--ink); }
.finale p { color: #063a24; margin: 14px 0 0; }
.mark { color: #fff; }
.channels { display: grid; gap: 10px; width: 100%; max-width: 380px; justify-self: end; }
.channel { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border-radius: 18px; background: rgba(255, 255, 255, .28); font-weight: 700; color: var(--ink); transition: background .25s; }
.channel:hover { background: rgba(255, 255, 255, .45); }
.channel--dark { background: var(--ink); color: #fff; }
.channel--dark:hover { background: #1c211d; }
.channel svg { width: 22px; height: 22px; flex: none; }
.channel small { display: block; font-weight: 500; font-size: 13px; opacity: .8; }
footer { padding: 28px 0 36px; font-size: 13.5px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.foot-tag { display: inline-flex; align-items: center; gap: 6px; }
.heart { display: inline-flex; color: #e5484d; }
.heart svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; justify-content: space-between; }
  .menu { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 980px) {
  .hero-grid, .finale-grid { grid-template-columns: minmax(0, 1fr); }
  .photo { max-width: 440px; margin-inline: auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* phones: burger menu, same design as the security site (language switch stays in the bar) */
  .nav { flex-wrap: nowrap; }
  .burger { display: grid; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .menu { position: absolute; inset-inline: -4px; top: calc(100% + 10px); order: 0; width: auto; display: none; justify-content: stretch; gap: 0; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 70px -30px rgba(11, 11, 9, .45);
    max-height: calc(100dvh - 100px); overflow: auto; transform-origin: top center; }
  .menu.is-open { display: grid; animation: pop .32s cubic-bezier(.2, .7, .2, 1) both; }
  .menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 16px;
    font-size: 20px; font-weight: 700; color: var(--ink); animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  html[lang="en"] .menu a { font-weight: 600; }
  .menu a:nth-child(2) { animation-delay: .04s; }
  .menu a:nth-child(3) { animation-delay: .08s; }
  .menu a:nth-child(4) { animation-delay: .12s; }
  .menu a:hover, .menu a[aria-current] { color: var(--ink); background: var(--paper); box-shadow: none; }
  .menu a[aria-current]::after { display: none; }
  .menu-arrow { display: block; width: 18px; height: 18px; flex: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  /* number and label centred together in each cell, whatever the label's length */
  .stat { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px 10px; text-align: center; }
  .stat b { justify-content: center; font-size: 26px; }
  .stat span { font-size: 12.5px; }
  .brand span span { display: none; }
  .brand b { font-size: 14px; }
  .hero-copy, .finale-grid, .head, .foot { text-align: center; }
  .ctas { justify-content: center; }
  .lede, .stats { margin-inline: auto; }
  .card { text-align: center; align-items: center; }
  /* contact buttons: narrower, content starting from the reading edge */
  .channels { max-width: 290px; justify-self: center; }
  .channel { min-height: 52px; padding-inline: 16px; font-size: 15px; text-align: start; }
  .foot { flex-direction: column; align-items: center; }
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .logos-track, .menu.is-open, .menu a { animation: none; } * { transition: none !important; } }
