/* Laqta: the public site. One stylesheet for both directions (Arabic right-to-left, English left-to-right):
   only logical properties are used, so nothing here says "left" or "right". */

@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0b0b0e;
  --panel: #14141a;
  --panel2: #1b1b23;
  --line: #2a2a35;
  --fg: #ececf2;
  --mute: #a3a3b3;
  --dim: #7b7b8c;
  --accent: #e4ff3a;
  --good: #3ddc84;
  --bad: #ff5d6c;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: "Plex Arabic", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* a faint film grid behind everything, and one light where the page starts */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(228, 255, 58, 0.13), transparent 62%),
    radial-gradient(700px 480px at 6% 38%, rgba(228, 255, 58, 0.045), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 14, 0.72); border-bottom: 1px solid rgba(42, 42, 53, 0.7); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--ink); flex: none; }
.mark svg { width: 62%; height: 62%; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; color: var(--mute); }
.nav a:hover { color: var(--fg); }
.lang { font-size: 14px; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.lang:hover { color: var(--fg); border-color: var(--dim); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-radius: 12px; padding: 13px 22px;
  background: var(--accent); color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(228, 255, 58, 0.28); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { padding: 8px 16px; font-size: 14.5px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--dim); box-shadow: none; }

/* ---------------------------------------------------------------- opening */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
h1 { font-size: clamp(38px, 6.1vw, 78px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
html[lang="ar"] h1 { line-height: 1.28; letter-spacing: -0.01em; }
h1 .cut { color: var(--accent); position: relative; white-space: nowrap; }
html[lang="en"] h1 { font-size: clamp(36px, 5vw, 64px); }
html[lang="en"] h1 .cut { white-space: normal; }
.lead { margin-top: 26px; font-size: clamp(17px, 1.7vw, 20px); color: var(--mute); max-width: 34em; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kinds { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; color: var(--dim); }
.kinds span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 13px; }

/* the picture: one long video, three shots lifted out of it */
.stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; margin-inline: auto; }
.strip { position: absolute; inset-inline: 0; bottom: 6%; height: 54px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.strip::before { content: ""; position: absolute; inset: 13px 0; opacity: 0.6;
  background-image: repeating-linear-gradient(90deg, var(--dim) 0 2px, transparent 2px 7px);
  mask-image: repeating-linear-gradient(90deg, #000 0 5%, rgba(0, 0, 0, 0.3) 5% 9%, #000 9% 16%, rgba(0, 0, 0, 0.5) 16% 21%);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 5%, rgba(0, 0, 0, 0.3) 5% 9%, #000 9% 16%, rgba(0, 0, 0, 0.5) 16% 21%); }
.strip i { position: absolute; top: 0; bottom: 0; background: rgba(228, 255, 58, 0.22); border-inline: 2px solid var(--accent); }
.strip i:nth-child(1) { inset-inline-start: 9%; width: 11%; }
.strip i:nth-child(2) { inset-inline-start: 43%; width: 14%; }
.strip i:nth-child(3) { inset-inline-start: 76%; width: 10%; }
.strip-label { position: absolute; inset-inline-start: 0; bottom: 0; font-size: 12.5px; color: var(--dim); letter-spacing: 0.04em; }
.strip-label b { color: var(--mute); font-weight: 500; }

.shot { position: absolute; width: 33%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--panel2);
  border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); animation: lift 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.shot:nth-of-type(1) { inset-inline-start: 0; top: 13%; rotate: -4deg; animation-delay: 0.15s; }
.shot:nth-of-type(2) { inset-inline-start: 33.5%; top: 0; z-index: 2; width: 36%; animation-delay: 0.3s; border-color: rgba(228, 255, 58, 0.55); }
.shot:nth-of-type(3) { inset-inline-end: 0; top: 15%; rotate: 4deg; animation-delay: 0.45s; }
html[dir="rtl"] .shot:nth-of-type(1) { rotate: 4deg; }
html[dir="rtl"] .shot:nth-of-type(3) { rotate: -4deg; }
@keyframes lift { from { opacity: 0; translate: 0 46px; } to { opacity: 1; translate: 0 0; } }

.shot .light { position: absolute; inset: 0; }
.shot:nth-of-type(1) .light { background: radial-gradient(120% 70% at 50% 30%, #3b3b52 0%, #1b1b23 62%); }
.shot:nth-of-type(2) .light { background: radial-gradient(120% 70% at 50% 28%, #51513a 0%, #1b1b23 64%); }
.shot:nth-of-type(3) .light { background: radial-gradient(120% 70% at 50% 30%, #2f4a46 0%, #1b1b23 62%); }
.person { position: absolute; inset-inline: 0; bottom: 0; height: 74%; }
.person::before { content: ""; position: absolute; left: 50%; top: 4%; translate: -50% 0; width: 34%; aspect-ratio: 1 / 1.18; border-radius: 50%; background: rgba(236, 236, 242, 0.16); }
.person::after { content: ""; position: absolute; left: 50%; bottom: -4%; translate: -50% 0; width: 86%; height: 58%; border-radius: 46% 46% 0 0; background: rgba(236, 236, 242, 0.11); }
.corners { position: absolute; inset: 9px; pointer-events: none; color: rgba(236, 236, 242, 0.55); --l: 15px; --t: 2px;
  background:
    linear-gradient(currentColor, currentColor) top left / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) top left / var(--t) var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) top right / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) top right / var(--t) var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--t) var(--l) no-repeat; }
.shot:nth-of-type(2) .corners { color: var(--accent); }
.hook { position: absolute; top: 11%; inset-inline: 10%; text-align: center; font-weight: 700; font-size: clamp(10px, 1.25vw, 14px); line-height: 1.4;
  background: var(--accent); color: var(--ink); border-radius: 7px; padding: 4px 6px; }
.words { position: absolute; bottom: 15%; inset-inline: 7%; text-align: center; font-weight: 700; font-size: clamp(11px, 1.45vw, 16.5px); line-height: 1.5; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.words b { font-weight: 700; border-radius: 5px; padding: 0 3px; animation: say 3.6s steps(1) infinite; }
.words b:nth-child(1) { animation-delay: 0s; }
.words b:nth-child(2) { animation-delay: 0.9s; }
.words b:nth-child(3) { animation-delay: 1.8s; }
.words b:nth-child(4) { animation-delay: 2.7s; }
@keyframes say { 0%, 24.9% { background: var(--accent); color: var(--ink); text-shadow: none; } 25%, 100% { background: transparent; color: inherit; } }
.score { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 11px; font-weight: 600; background: rgba(11, 11, 14, 0.7); border-radius: 6px; padding: 1px 7px; color: var(--mute); }

/* ---------------------------------------------------------------- sections */
section { padding-block: clamp(56px, 8vw, 112px); }
.rule { border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: end; margin-bottom: clamp(32px, 5vw, 60px); }
.num { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; grid-column: 1 / -1; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; max-width: 15em; }
html[lang="ar"] h2 { line-height: 1.4; letter-spacing: 0; }
.head p:last-child { color: var(--mute); max-width: 30em; justify-self: end; }

.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--line); gap: 1px; }
.get { background: var(--ink); padding: clamp(22px, 3vw, 34px); transition: background 0.25s ease; }
.get:hover { background: var(--panel); }
.get .ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; }
.get h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.get p { color: var(--mute); font-size: 16px; }

/* how it goes: the long line again, with four cuts on it */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); counter-reset: step; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 21px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--line) 22%, var(--line) 78%, var(--accent)); }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--ink); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 18px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--mute); font-size: 16px; }

/* the review page, drawn */
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.review h2.gap { margin-top: 12px; }
.review p.sub { color: var(--mute); margin-top: 16px; max-width: 30em; }
.review ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.review li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--mute); }
.review li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 5px; }
.review li b { color: var(--fg); font-weight: 600; }
.sheet { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin-bottom: 16px; direction: ltr; }
.bar svg { width: 14px; height: 14px; color: var(--good); flex: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel2); }
.card .pic { position: relative; aspect-ratio: 9 / 13; background: radial-gradient(120% 70% at 50% 30%, #3b3b52 0%, #1b1b23 62%); }
.card:nth-child(2) .pic { background: radial-gradient(120% 70% at 50% 30%, #51513a 0%, #1b1b23 64%); }
.card:nth-child(3) .pic { background: radial-gradient(120% 70% at 50% 30%, #2f4a46 0%, #1b1b23 62%); }
.card .play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 11, 14, 0.65); display: grid; place-items: center; }
.card .play svg { width: 14px; height: 14px; }
.card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.pill { font-size: 12px; font-weight: 600; text-align: center; border-radius: 8px; padding: 4px 2px; border: 1px solid var(--line); color: var(--mute); }
.pill.yes { background: rgba(61, 220, 132, 0.16); border-color: rgba(61, 220, 132, 0.5); color: var(--good); }
.pill.no { background: rgba(255, 93, 108, 0.14); border-color: rgba(255, 93, 108, 0.45); color: var(--bad); }
.note { margin-top: 12px; font-size: 13.5px; color: var(--mute); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.note b { color: var(--fg); font-weight: 500; }

/* last word */
.close { text-align: center; padding-top: 0; }
.close .box { position: relative; border: 1px solid var(--line); border-radius: 28px; padding: clamp(40px, 7vw, 88px) var(--pad); background:
  radial-gradient(600px 300px at 50% 0%, rgba(228, 255, 58, 0.14), transparent 70%), var(--panel); overflow: hidden; }
.close h2 { margin-inline: auto; max-width: 14em; }
.close p { color: var(--mute); margin: 18px auto 0; max-width: 32em; }
.close .actions { justify-content: center; }
.close .corners { inset: 18px; color: rgba(228, 255, 58, 0.5); --l: 26px; }
.fine { margin-top: 26px; font-size: 14px; color: var(--dim); }

footer { border-top: 1px solid var(--line); padding-block: 30px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 17px; color: var(--mute); }
footer .mark { width: 28px; height: 28px; border-radius: 8px; }

.lost { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: var(--pad); }
.lost h1 { font-size: clamp(30px, 5vw, 52px); }
.lost p { color: var(--mute); }
.lost .actions { margin-top: 8px; justify-content: center; }

/* things come in as the page is read */
.in { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.in.d1 { animation-delay: 0.08s; } .in.d2 { animation-delay: 0.18s; } .in.d3 { animation-delay: 0.28s; } .in.d4 { animation-delay: 0.38s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  .seen { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
}

@media (max-width: 900px) {
  .hero .wrap, .review { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 440px; margin-top: 12px; }
  .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head p:last-child { justify-self: start; }
  .nav { display: none; }
  .top .wrap { gap: 14px; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gets, .steps { grid-template-columns: minmax(0, 1fr); }
  .top .btn.small span { display: none; }
  .top .btn.small { padding: 8px 10px; }
  .actions .btn { width: 100%; justify-content: center; }
  .sheet { padding: 12px; }
  .cards { gap: 8px; }
  .card .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px; }
  .pill { font-size: 11px; padding: 4px 0; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .seen, .shot { animation: none; }
  .words b { animation: none; }
  .words b:nth-child(2) { background: var(--accent); color: var(--ink); text-shadow: none; }
  .btn { transition: none; }
}
