@font-face {
  font-family: DM Sans;
  src: url('/media/fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url('/media/fonts/instrument-serif.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url('/media/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Noto Sans Arabic;
  src: url('/media/fonts/noto-sans-arabic.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f5f5ed;
  --ink: #18241b;
  --muted: #505c4f;
  --line: #d6dccf;
  --forest: #14281e;
  --green: #255738;
  --lime: #e0f3a5;
  --white: #fbfcf4;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --inset: clamp(0.375rem, 1vw, 0.875rem);
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 var(--body);
  font-synthesis: none;
}
:root:lang(ar) {
  --body: 'DM Sans', 'Noto Sans Arabic', system-ui, sans-serif;
  --display: 'Noto Sans Arabic', 'DM Sans', sans-serif;
  line-height: 1.8;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 20;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  transform: translateY(-160%);
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background: var(--lime);
  color: var(--forest);
}
.skip:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 5;
  inset: var(--inset) 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 5.1rem;
  color: var(--white);
  border-block-end: 1px solid #fefff02f;
}
.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  font: 700 1.65rem/1 var(--body);
  letter-spacing: -0.075em;
  text-decoration: none;
}
.brand img { border-radius: 0.6rem; }
.brand span span { color: #b5db79; }
.site-header nav, .header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.6vw, 2rem);
}
.site-header nav a, .language {
  display: inline-grid;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.site-header nav a:hover, .language:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.header-actions { justify-self: end; gap: clamp(0.65rem, 1.6vw, 1.35rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.8rem 1.25rem;
  min-height: 3.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.icon { flex: none; width: 1.15em; height: 1.15em; }
:dir(rtl) .icon-arrow { transform: scaleX(-1); }
.header-button { background: var(--white); color: var(--forest); min-height: 2.75rem; padding: 0.55rem 0.95rem; }
.header-button:hover, .button-lime:hover { background: #f0fad3; }
.header-button:focus-visible, .button-lime:focus-visible { outline-color: var(--white); }
.skip:focus-visible { outline-color: var(--white); }
.button-lime { background: var(--lime); color: #1a2c18; }
.button-outline { border-color: #fff8; background: #20372e60; color: var(--white); }
.button-outline:hover { background: #20372edc; border-color: #fffc; }

.hero, .download-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: var(--inset);
  border-radius: clamp(1rem, 2vw, 1.6rem);
  background: var(--forest);
  color: var(--white);
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block-start: clamp(8.1rem, 11vw, 10.25rem);
}
.hero-landscape, .hero-landscape img, .download-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-landscape, .download-landscape { z-index: -2; }
.hero-landscape img { object-position: center 65%; }
.hero::before, .download-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
}
.hero::before {
  background: linear-gradient(180deg, #102820ef 0%, #1b352cf0 12%, #20392edb 37%, #23392a68 67%, #14261930 81%, #102015cc 100%);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-block-end: 1.25rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.eyebrow span { width: 0.46rem; height: 0.46rem; border-radius: 999px; background: currentColor; }
.hero .eyebrow, .download-shell .eyebrow { color: var(--lime); margin-inline: auto; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.85rem; }
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.45rem, 2.4rem + 5.2vw, 8.2rem); }
h2 { font-size: clamp(2.9rem, 2.05rem + 3.3vw, 6rem); }
h1 em, h2 em { font-weight: inherit; color: var(--green); }
.hero h1 em, .download-shell h2 em { color: var(--lime); }
:lang(ar) h1, :lang(ar) h2 {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.34;
}
:lang(ar) h1 { font-size: clamp(2.6rem, 1.8rem + 4.1vw, 5.65rem); }
:lang(ar) h2 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 4rem); }
:lang(ar) h1 em, :lang(ar) h2 em { font-style: normal; }
.hero-description {
  max-width: 35rem;
  margin: 1.45rem auto 0;
  color: #f1f5e9;
  font-size: 1.05rem;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; }
.hero-devices {
  position: relative;
  isolation: isolate;
  width: min(45rem, 100%);
  height: clamp(15.9rem, 29vw, 26.5rem);
  margin-top: clamp(2.35rem, 4vw, 3.75rem);
}
.device {
  position: relative;
  width: 15.5rem;
  padding: 0.35rem;
  border: 1px solid #647565;
  border-radius: 2rem;
  background: #141a19;
  box-shadow: 0 2rem 3.2rem #10221436, inset 0 0 0 2px #eeeeee18;
  overflow: hidden;
}
.device img { width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 1.67rem; background: #070b0a; }
.device::before {
  position: absolute;
  z-index: 1;
  inset: 0.64rem 0 auto;
  margin-inline: auto;
  width: 23%;
  height: 0.68rem;
  border-radius: 999px;
  background: #0b0d0e;
  content: '';
}
.hero-devices .device {
  position: absolute;
  inset-block-start: 2.65rem;
  width: clamp(7.7rem, 16vw, 13rem);
  border-radius: clamp(1.05rem, 2.25vw, 1.85rem);
}
.hero-devices .device img { border-radius: clamp(0.78rem, 1.85vw, 1.5rem); }
.hero-devices .device-welcome {
  z-index: 2;
  inset-block-start: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(8.8rem, 18vw, 15rem);
}
.hero-devices .device-toolkit { right: 59%; transform: rotate(-10deg); transform-origin: 50% 70%; }
.hero-devices .device-gpa { left: 59%; transform: rotate(10deg); transform-origin: 50% 70%; }
.hero-note {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 2.3rem 0.8rem 1.3rem;
  margin-block-start: -2.4rem;
  background: linear-gradient(0deg, #102015 32%, #102015ee 57%, #10201500);
  color: #e9f0dc;
  font-size: 0.8rem;
  letter-spacing: 0.015em;
}

.section-pad { padding-block: clamp(4.35rem, 8vw, 7.4rem); }
.community-intro, .story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr);
  align-items: end;
  gap: clamp(1.2rem, 5vw, 4.6rem);
}
.community-intro > p, .story-grid p { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.35vw, 1.19rem); }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.4rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
}
.feature { padding: clamp(1.5rem, 2.5vw, 2.3rem); }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature:first-child { padding-inline-start: 0; }
.feature:last-child { padding-inline-end: 0; }
.feature-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-block-end: 1.25rem;
  color: var(--green);
  background: #e6edda;
  border-radius: 50%;
}
.feature-icon .icon { width: 1.35rem; height: 1.35rem; }
.feature h3 { margin-block-end: 0.45rem; font-size: 1.22rem; font-weight: 700; }
.feature p { max-width: 30ch; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.18fr);
  min-height: 39rem;
  overflow: hidden;
  border: 1px solid #cdd9c7;
  border-radius: 1.65rem;
  background: #e6eddf;
}
.gallery-copy { padding: clamp(2rem, 5vw, 4.25rem); align-self: center; }
.gallery-copy p:not(.eyebrow) { margin-block-start: 1.05rem; color: var(--muted); }
.gallery-controls { display: grid; margin-block-start: 2rem; border-block-start: 1px solid #c3d0be; }
.gallery-controls button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.3rem;
  padding: 0.65rem 0.2rem;
  border: 0;
  border-block-end: 1px solid #c3d0be;
  color: #374c39;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.gallery-controls button[aria-selected="true"] { color: #173d29; font-weight: 700; }
.gallery-controls button:hover { color: #102f1e; background: #dbE7d3; }
.gallery-controls button .icon { opacity: 0.56; }
.gallery-controls button[aria-selected="true"] .icon { opacity: 1; }
.gallery-panels { min-width: 0; display: grid; }
.screen-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  background: #253d2d;
  color: var(--white);
}
.screen-panel:focus-visible { outline-offset: -4px; }
.screen-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 25rem;
  overflow: hidden;
  padding: 2rem 1rem 0;
  background: radial-gradient(ellipse at center bottom, #8dae72, #46664a 52%, #243e30);
}
.stage-ring {
  position: absolute;
  z-index: -1;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  border: 1px solid #eff9d95c;
  border-radius: 50%;
  box-shadow: 0 0 0 2.4rem #d5f0cc13, 0 0 0 5rem #d5f0cc10, 0 0 0 8rem #d5f0cc0b;
}
.screen-stage .device { width: min(57%, 13.75rem); margin: 0 auto 1.75rem; flex: none; }
.screen-panel figcaption {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-height: 6.75rem;
  padding: 1.05rem 1.5rem 1.25rem;
  border-block-start: 1px solid #e5f9dd24;
  color: #eef4e8;
  font-size: 0.88rem;
}
.screen-panel figcaption strong { font-size: 1.02rem; color: var(--white); }

.story-grid { align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1rem; min-height: 2.75rem; font-weight: 700; color: var(--green); text-underline-offset: 0.3em; }
.text-link:hover { color: var(--ink); }
.download-landscape { object-position: center 78%; }
.download-shell::before { background: linear-gradient(180deg, #12241be8, #122619d6 70%, #12241be8); }
.download-copy {
  display: grid;
  justify-items: center;
  padding-block: clamp(3.6rem, 7vw, 6rem);
  text-align: center;
}
.download-icon { border-radius: 1.3rem; margin-block-end: 1.35rem; box-shadow: 0 0.7rem 1.8rem #07100b7e; }
.download-copy h2 + p { margin-block: 1.1rem 1.7rem; max-width: 36rem; color: #f3f8e9; }
.download-note { margin-top: 0.85rem; font-size: 0.83rem; }
.download-note a { text-underline-offset: 0.2em; }
.service-note { margin-top: 0.6rem; color: #dae5d3; font-size: 0.79rem; }

.footer, .footer > div { display: flex; align-items: center; gap: 0.85rem; }
.footer { justify-content: space-between; flex-wrap: wrap; padding-block: 1.5rem; color: var(--muted); font-size: 0.85rem; }
.footer .brand { color: var(--ink); }
.footer .brand img { width: 2rem; height: 2rem; }
.footer .brand span span { color: #416839; }
.footer a:not(.brand) { display: inline-flex; gap: 0.28rem; align-items: center; min-height: 2.75rem; text-underline-offset: 0.2em; }
.footer > div:last-child { gap: 1.5rem; }

@media (max-width: 790px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .community-intro, .story-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .community-intro > p, .story-grid p { max-width: 48ch; }
  .gallery { grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1fr); }
  .gallery-copy { padding: 1.75rem; }
  .feature h3 { font-size: 1.05rem; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2.15rem); }
  .site-header { min-height: 4.25rem; }
  .site-header .brand img { width: 2rem; height: 2rem; }
  .hero { padding-block-start: 7.1rem; }
  .hero::before { background: linear-gradient(180deg, #102820f2, #1b352cec 29%, #23392abc 55%, #10201566 78%, #102015bb 100%); }
  .hero-description { font-size: 0.96rem; }
  .hero-note { font-size: 0.73rem; }
  .hero-devices .device { padding: 0.23rem; }
  .hero-devices .device::before { inset-block-start: 0.44rem; height: 0.44rem; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:first-child, .feature:last-child { padding: 1.25rem 0; }
  .feature + .feature { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .feature h3 { font-size: 1.17rem; }
  .feature p { max-width: none; }
  .feature-icon { margin-block-end: 0.72rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-copy { padding: 1.7rem 1.25rem; }
  .screen-stage { min-height: 26rem; }
  .screen-stage .device { width: min(61%, 12.4rem); }
  .screen-panel figcaption { min-height: 7.4rem; }
  .footer > div:first-child { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
