/* Showcase hub, in Mohaymen's own brand (docs/TASTE.md): blue-black fog, cold haze top corner, Visor Red only as light.
   Type: Noto Kufi Arabic (display), IBM Plex Sans Arabic (text), Michroma (Latin wordmark). 4 px grid. */
:root {
  --void: #05080C;
  --panel: #0C1218;
  --ink: #EEF3F6;
  --muted: #9FB0BC;
  --ice: #C8E2F0;
  --red: #FF2244;
  --ember: #780A1E;
  --line: rgba(200, 226, 240, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  position: relative;
  background: radial-gradient(70% 520px at 0% 0%, rgba(20, 70, 110, .34), rgba(20, 70, 110, 0) 70%) no-repeat var(--void);
  color: var(--ink);
  font: 400 18px/1.8 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh; overflow-x: hidden;
}
bdi { direction: ltr; unicode-bidi: isolate; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
a { -webkit-tap-highlight-color: transparent; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; background: var(--ice); color: var(--void); padding: 8px 16px; border-radius: 12px; z-index: 5; }
.skip:focus { top: 8px; }

.top, main, .foot { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.who { font: 500 17px/1.6 "Noto Kufi Arabic", sans-serif; }
.who-en { font: 400 10px/1.6 "Michroma", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.hero { padding-top: 72px; }
h1 { font: 300 38px/1.5 "Noto Kufi Arabic", sans-serif; text-wrap: balance; max-width: 9em; }
.sub { margin-top: 24px; color: var(--muted); max-width: 31em; text-wrap: pretty; }
.note { margin-top: 24px; font-size: 14px; line-height: 1.7; color: var(--ice); padding-inline-start: 16px; border-inline-start: 1px solid var(--red); max-width: 30em; }

.demos { margin-top: 72px; display: grid; gap: 24px; }
.demo {
  position: relative; overflow: hidden; border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line) inset;
  padding: 28px 24px 0;
  transition: box-shadow .2s ease-out;
}
/* Red arrives as light from under each phone, then falls off into the dark. */
.demo::before { content: ""; position: absolute; inset: auto -30% -30% -30%; height: 90%; background: radial-gradient(closest-side, rgba(255, 34, 68, .42), rgba(120, 10, 30, .2) 55%, rgba(120, 10, 30, 0)); pointer-events: none; }
.demo:hover, .demo:focus-within { box-shadow: 0 0 0 1px rgba(200, 226, 240, .34) inset; }
.words { position: relative; }
.kind { font-size: 14px; color: var(--muted); }
.demo h2 { margin-top: 4px; font: 500 22px/1.6 "Noto Kufi Arabic", sans-serif; text-wrap: balance; }
.demo h2 a { text-decoration: none; }
.demo h2 a::after { content: ""; position: absolute; inset: -28px -24px -640px; } /* the whole card is the link */
.demo h2 a:focus-visible { outline: 0; }
.demo:has(a:focus-visible) { outline: 2px solid var(--ice); outline-offset: 4px; }
.gets { margin-top: 8px; font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 26em; }
.go { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--ice); }
.go svg { transition: transform .2s ease-out; }
.demo:hover .go svg { transform: translateX(-4px); }
.phone {
  position: relative; margin: 32px auto 0; width: min(264px, 82%); height: 340px; overflow: hidden;
  padding: 8px 8px 0; border-radius: 36px 36px 0 0; background: #0A0F14;
  box-shadow: 0 0 0 1px rgba(200, 226, 240, .26) inset, 0 -24px 64px -16px rgba(0, 0, 0, .7);
  pointer-events: none;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 28px 28px 0 0; outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }

.contact { margin-top: 96px; padding: 0 0 24px; }
.contact h2 { font: 300 28px/1.6 "Noto Kufi Arabic", sans-serif; text-wrap: balance; max-width: 13em; }
.ig {
  margin-top: 32px; min-height: 56px; padding: 0 24px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--void); font-size: 16px; font-weight: 500;
  transition: transform .14s ease-out, background-color .14s ease-out;
}
.ig:hover { background: #fff; }
.ig:active { transform: scale(.96); }
.foot { padding-block: 48px 40px; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .top, main, .foot { padding-inline: 48px; }
  .top { padding-top: 40px; }
  .hero { padding-top: 120px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 96px; align-items: end; }
  h1 { font-size: 68px; line-height: 1.4; grid-row: span 2; max-width: 8em; }
  .sub { margin-top: 0; font-size: 19px; }
  .note { align-self: start; }
  .demos { margin-top: 120px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .demo { padding: 32px 32px 0; }
  .demo:nth-child(2) { margin-top: 72px; }
  .demo:nth-child(3) { margin-top: 24px; }
  .words { min-height: 232px; }
  .demo h2 a::after { inset: -32px -32px -640px; }
  .phone { width: min(280px, 88%); height: 420px; }
  .contact { margin-top: 144px; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
  .contact h2 { font-size: 40px; }
  .ig { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ig:active, .demo:hover .go svg { transform: none; }
}
