@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0b;
  --fg: #f3eee3;
  --mute: rgba(243, 238, 227, 0.64);
  --faint: rgba(243, 238, 227, 0.4);
  --ink: #141414;
  --serif: "Fraunces", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; }

a {
  color: inherit;
}

a:focus-visible,
.btn:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

.lockup {
  width: min(17.5rem, 78vw);
  height: auto;
  display: block;
}

.tagline {
  margin: 2.25rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  font-size: clamp(1.85rem, 7vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 11.5em;
}

.cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.btn {
  display: inline-block;
  background: var(--fg);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
}

.btn:hover {
  background: #fffaf0;
}

.text-link {
  color: rgba(243, 238, 227, 0.78);
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--fg);
}

.device {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 6rem;
}

.device img {
  width: min(17.5rem, 72vw);
  display: block;
  border-radius: 2rem;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55);
}

.points {
  width: min(64rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 6rem;
  display: grid;
  gap: 3.25rem;
}

.points h2 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36, "SOFT" 40, "WONK" 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.points p {
  margin: 0;
  color: var(--mute);
  max-width: 34ch;
}

.asr {
  width: min(28rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0 6rem;
  text-align: center;
}

.asr .ar {
  margin: 0 0 1.35rem;
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Arabic UI Text", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.85;
  font-weight: 400;
}

.asr .en {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 0;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.asr .cite {
  margin: 1.35rem 0 0;
  color: var(--faint);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer {
  padding: 3rem 1.5rem 5.5rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

footer p { margin: 0; }
footer p + p { margin-top: 0.55rem; }

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover { color: var(--mute); }

@media (min-width: 800px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
    padding: 3rem 0 8rem;
  }

  .hero { padding: 7rem 2rem 6rem; }
  .lockup { width: 20rem; }
  .device img { width: 20rem; }
  .device { padding-bottom: 8rem; }
  .asr { padding: 6rem 0 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
