:root {
  color-scheme: light;
  --ink: #102127;
  --ink-soft: #3e5258;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #dbe5e0;
  --emerald: #00875a;
  --emerald-dark: #006a46;
  --emerald-soft: #e6f5ee;
  --blue: #1d67b1;
  --blue-soft: #e8f2fb;
  --orange: #e96414;
  --orange-soft: #fff0e6;
  --concrete: #edf1ef;
  --focus: #004f9e;
  --shadow: 0 18px 46px rgba(16, 33, 39, 0.1);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "SF Arabic", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 135, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 103, 177, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  border-block-end: 1px solid rgba(219, 229, 224, 0.84);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 96px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 82px;
  height: 50px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--emerald-dark);
  color: white;
}

.button-primary:hover {
  background: #005c3d;
}

.button-secondary {
  border-color: #aebeb6;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

.button-quiet {
  min-height: 42px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.button-arrow::after {
  content: "←";
  font-size: 1.1em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--orange);
  content: "";
}

.home-hero {
  position: relative;
  min-height: min(810px, calc(100svh - 30px));
  overflow: hidden;
  border-block-end: 1px solid var(--line);
  background: var(--paper);
}

.home-hero::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 12px;
  background:
    linear-gradient(90deg, var(--emerald) 0 38%, transparent 38% 42%, var(--blue) 42% 76%, transparent 76% 80%, var(--orange) 80%);
  content: "";
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: 740px;
  align-items: center;
  padding-block: 72px 92px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(620px, 58%);
}

.hero-title {
  margin: 12px 0 0;
  font-size: 8.5rem;
  font-weight: 950;
  line-height: 0.9;
}

.hero-lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.45;
}

.hero-description {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 30px;
}

.hero-art {
  position: absolute;
  z-index: 1;
  inset-inline-start: 34%;
  inset-block-end: 28px;
  width: min(880px, 72vw);
  filter: drop-shadow(0 26px 34px rgba(16, 33, 39, 0.16));
  transform-origin: 50% 100%;
  animation: hero-breathe 6s ease-in-out infinite;
}

.hero-blueprint {
  position: absolute;
  z-index: 0;
  inset-inline-start: 48%;
  inset-block-start: 100px;
  width: 430px;
  height: 430px;
  border: 1px dashed rgba(29, 103, 177, 0.28);
  transform: rotate(7deg);
}

.hero-blueprint::before,
.hero-blueprint::after {
  position: absolute;
  background: rgba(29, 103, 177, 0.28);
  content: "";
}

.hero-blueprint::before {
  inset-block-start: 50%;
  inset-inline: -24px;
  height: 1px;
}

.hero-blueprint::after {
  inset-inline-start: 50%;
  inset-block: -24px;
  width: 1px;
}

.hero-notes {
  position: absolute;
  z-index: 4;
  inset-inline-end: 0;
  inset-block-end: 74px;
  display: grid;
  gap: 8px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  border-inline-start: 3px solid var(--emerald);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(16, 33, 39, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-note:nth-child(2) {
  border-color: var(--blue);
}

.hero-note:nth-child(3) {
  border-color: var(--orange);
}

@keyframes hero-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.signal-band {
  border-block-end: 1px solid var(--line);
  background: var(--surface);
}

.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.signal {
  padding: 22px 26px;
  border-inline-start: 1px solid var(--line);
}

.signal:last-child {
  border-inline-start: 0;
}

.signal strong,
.signal span {
  display: block;
}

.signal strong {
  font-size: 1.02rem;
}

.signal span {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section {
  padding-block: 96px;
}

.section-dark {
  background: var(--ink);
  color: white;
}

.section-blue {
  border-block: 1px solid #cfe0ee;
  background: var(--blue-soft);
}

.section-orange {
  border-block: 1px solid #f1d7c6;
  background: var(--orange-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  align-items: end;
  gap: 48px;
  margin-block-end: 58px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 4rem;
  line-height: 1.18;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-dark .section-heading p {
  color: #c8d4d0;
}

.journey {
  display: grid;
  gap: 0;
}

.journey-step {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  min-height: 430px;
  align-items: center;
  gap: 64px;
  border-block-start: 1px solid var(--line);
  padding-block: 50px;
}

.journey-step:nth-child(even) .journey-art {
  order: 2;
}

.journey-art {
  position: relative;
  aspect-ratio: 1 / 0.82;
}

.journey-art::before {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(29, 103, 177, 0.28);
  background: var(--blue-soft);
  content: "";
  transform: rotate(-3deg);
}

.journey-step:nth-child(2) .journey-art::before {
  background: var(--emerald-soft);
  transform: rotate(3deg);
}

.journey-step:nth-child(3) .journey-art::before {
  background: var(--orange-soft);
}

.journey-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-index {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 900;
}

.journey-copy h3 {
  margin: 8px 0 12px;
  font-size: 2.6rem;
  line-height: 1.3;
}

.journey-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  position: relative;
  display: grid;
  min-height: 410px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #405158;
  border-radius: 8px;
  background: #162a30;
  padding: 34px;
}

.role-card:nth-child(2) {
  background: #173047;
}

.role-card h3 {
  margin: 10px 0;
  font-size: 2rem;
}

.role-card p {
  color: #c8d4d0;
}

.role-card img {
  width: 100%;
  align-self: end;
}

.role-card .eyebrow {
  color: #79dbb7;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.principle {
  border-block-start: 4px solid var(--emerald);
  padding-block-start: 24px;
}

.principle:nth-child(2) {
  border-color: var(--blue);
}

.principle:nth-child(3) {
  border-color: var(--orange);
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
}

.faq-list {
  border-block-start: 1px solid var(--line);
}

.faq-list details {
  border-block-end: 1px solid var(--line);
  padding-block: 5px;
}

.faq-list summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 850;
  list-style: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--emerald-dark);
  font-size: 1.5rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 820px;
  margin: 0;
  padding-block: 0 18px;
  color: var(--ink-soft);
}

.launch-band {
  position: relative;
  overflow: hidden;
  background: var(--emerald-dark);
  color: white;
}

.launch-band::before {
  position: absolute;
  inset-inline-start: -80px;
  inset-block-start: -80px;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  content: "";
  transform: rotate(18deg);
}

.launch-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding-block: 62px;
}

.launch-inner h2 {
  margin: 0 0 10px;
  font-size: 3.4rem;
}

.launch-inner p {
  margin: 0;
  color: #d7eee5;
}

.launch-band .button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: white;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-block-end: 1px solid var(--line);
  padding-block: 96px 76px;
  background: var(--surface);
}

.page-hero::before {
  position: absolute;
  inset-inline-end: -80px;
  inset-block-start: -140px;
  width: 440px;
  height: 440px;
  border: 1px dashed rgba(29, 103, 177, 0.25);
  content: "";
  transform: rotate(17deg);
}

.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1.14fr);
  align-items: end;
  gap: 60px;
}

.page-hero h1 {
  margin: 10px 0 0;
  font-size: 6.5rem;
  line-height: 1.04;
}

.page-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-block-start: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: center;
  gap: 64px;
  padding-block: 72px 110px;
}

.page-toc {
  position: sticky;
  inset-block-start: 100px;
  align-self: start;
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 18px;
}

.page-toc strong {
  display: block;
  margin-block-end: 10px;
}

.page-toc a {
  display: block;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.page-toc a:hover {
  color: var(--emerald-dark);
}

.prose {
  min-width: 0;
}

.prose section {
  scroll-margin-top: 100px;
  border-block-start: 1px solid var(--line);
  padding-block: 34px;
}

.prose section:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}

.prose h2 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.35;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-inline-start: 24px;
}

.prose li + li {
  margin-block-start: 7px;
}

.notice {
  border-inline-start: 4px solid var(--blue);
  background: var(--blue-soft);
  padding: 18px 20px;
}

.notice-warning {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.notice strong {
  display: block;
  margin-block-end: 3px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 34px;
}

.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.support-card strong {
  display: block;
  margin-block-end: 7px;
}

.support-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.email-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #bcdccf;
  background: var(--emerald-soft);
  padding: 26px;
}

.email-panel p {
  margin: 3px 0 0;
  direction: ltr;
  color: var(--emerald-dark);
  font-weight: 800;
  text-align: right;
}

.deletion-steps {
  counter-reset: deletion;
}

.deletion-step {
  position: relative;
  border-block-start: 1px solid var(--line);
  padding: 26px 64px 26px 0;
  counter-increment: deletion;
}

.deletion-step::before {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 26px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: white;
  content: counter(deletion, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 900;
}

.deletion-step h3,
.deletion-step p {
  margin: 0;
}

.site-footer {
  border-block-start: 1px solid #31444b;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 0.75fr);
  gap: 50px;
  padding-block: 64px 48px;
}

.footer-brand img {
  width: 92px;
  height: 62px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 330px;
  color: #b9c8c3;
}

.footer-column strong {
  display: block;
  margin-block-end: 12px;
  color: #86e0bf;
  font-size: 0.9rem;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-block: 8px;
  color: #d7e0dd;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block-start: 1px solid #31444b;
  padding-block: 22px;
  color: #9fb0aa;
  font-size: 0.88rem;
}

html[data-animate="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

html[data-animate="true"] [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset-inline: 20px;
    inset-block-start: 80px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .header-actions > .button {
    display: none;
  }

  .hero-copy {
    width: min(620px, 72%);
  }

  .hero-title {
    font-size: 7rem;
  }

  .hero-lead {
    font-size: 1.65rem;
  }

  .hero-art {
    inset-inline-start: 28%;
    width: 86vw;
    opacity: 0.82;
  }

  .hero-notes {
    display: none;
  }

  .section-heading,
  .page-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .section-heading h2 {
    font-size: 3.2rem;
  }

  .page-hero h1 {
    font-size: 5.2rem;
  }

  .journey-step {
    gap: 34px;
  }

  .role-card {
    grid-template-columns: 1fr;
  }

  .role-card img {
    max-height: 190px;
    justify-self: end;
  }

  .page-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .page-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-inline-start: 0;
    border-block-end: 1px solid var(--line);
    padding: 0 0 24px;
  }

  .page-toc strong {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .home-hero {
    min-height: auto;
  }

  .hero-inner {
    display: flex;
    min-height: 760px;
    flex-direction: column;
    align-items: stretch;
    padding-block: 50px 90px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-lead {
    font-size: 1.35rem;
  }

  .hero-art {
    position: absolute;
    inset-inline-start: -24%;
    inset-block-end: 18px;
    width: 135vw;
    opacity: 0.76;
  }

  .hero-blueprint {
    inset-inline-start: 22%;
    inset-block-start: auto;
    inset-block-end: 70px;
    width: 300px;
    height: 300px;
  }

  .signals,
  .principles,
  .support-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .signal {
    border-inline-start: 0;
    border-block-end: 1px solid var(--line);
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-block-end: 34px;
  }

  .section-heading h2 {
    font-size: 2.4rem;
  }

  .journey-copy h3 {
    font-size: 2rem;
  }

  .journey-step {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .journey-step:nth-child(even) .journey-art {
    order: 0;
  }

  .journey-art {
    max-height: 300px;
  }

  .role-card {
    min-height: 430px;
    padding: 26px;
  }

  .launch-inner {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-block: 68px 58px;
  }

  .page-hero h1 {
    font-size: 3.5rem;
  }

  .page-layout {
    gap: 42px;
    padding-block: 50px 82px;
  }

  .page-toc {
    grid-template-columns: 1fr;
  }

  .email-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .email-panel .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf5f2;
    --ink-soft: #b8c8c3;
    --paper: #0c171b;
    --surface: #122329;
    --line: #2b3f45;
    --emerald: #35c58f;
    --emerald-dark: #65d9ad;
    --emerald-soft: #14382d;
    --blue: #61a6e6;
    --blue-soft: #142c41;
    --orange: #ff9a5c;
    --orange-soft: #3a261c;
    --concrete: #17282d;
    --focus: #79bfff;
  }

  .brand img {
    filter: brightness(0) invert(1);
  }

  .button-primary {
    background: #0a8058;
  }

  .button-secondary {
    border-color: #d7e0dd;
    background: #ffffff;
    color: #102127;
  }

  .hero-note {
    background: rgba(18, 35, 41, 0.9);
  }

  .site-header {
    background: rgba(12, 23, 27, 0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html[data-animate="true"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #687b73;
    --ink-soft: #26383d;
  }

  .button,
  .support-card,
  .role-card {
    border-width: 2px;
  }
}
