:root {
  color-scheme: dark;
  --ink: #edf8ff;
  --muted: #a9bfd1;
  --faint: #7e9ab2;
  --navy: #031226;
  --navy-soft: #071a35;
  --panel: #09223e;
  --line: #294965;
  --cyan: #22c6d3;
  --cyan-soft: #8ce8ee;
  --gold: #f1c75b;
  --danger: #ffb4a9;
  --display: "Noto Kufi Arabic", "Tahoma", sans-serif;
  --body: "Alexandria", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, rgb(34 198 211 / 16%), transparent 30rem),
    var(--navy);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.9;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 5px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(41 73 101 / 70%);
  background: rgb(3 18 38 / 88%);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  display: block;
  width: 142px;
  height: 58px;
  object-fit: contain;
}

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

.site-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgb(34 198 211 / 10%);
  color: var(--cyan-soft);
}

.page-shell {
  padding-block: 72px 96px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.5;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  letter-spacing: -0.045em;
}

.hero__intro {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.formula-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(9 34 62 / 95%), rgb(5 24 45 / 95%));
  box-shadow: 0 22px 60px rgb(0 0 0 / 24%);
}

.formula-card__visual {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--cyan-soft);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  direction: ltr;
}

.formula-card__visual::before,
.formula-card__visual::after {
  position: absolute;
  border: 1px solid rgb(34 198 211 / 24%);
  border-radius: 50%;
  content: "";
}

.formula-card__visual::before {
  width: 180px;
  height: 180px;
  inset: -80px auto auto -50px;
}

.formula-card__visual::after {
  width: 100px;
  height: 100px;
  inset: auto -35px -55px auto;
}

.formula-card__body {
  padding: 20px 22px;
}

.formula-card__body span,
.formula-card__body strong {
  display: block;
}

.formula-card__body span {
  color: var(--faint);
  font-size: 0.76rem;
}

.formula-card__body strong {
  margin-top: 4px;
  font-size: 0.92rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-top: 48px;
}

.toc {
  position: sticky;
  top: 108px;
  align-self: start;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 0.74rem;
}

.toc a {
  display: block;
  padding: 7px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.document section {
  scroll-margin-top: 112px;
  padding: 0 0 38px;
}

.document section + section {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.document h3 {
  margin: 24px 0 8px;
  color: var(--cyan-soft);
  font-size: 1rem;
}

.document p,
.document li {
  color: var(--muted);
}

.document p {
  margin: 0;
}

.document ul,
.document ol {
  margin: 14px 0 0;
  padding-right: 1.35rem;
}

.document li + li {
  margin-top: 8px;
}

.notice {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid rgb(34 198 211 / 30%);
  border-right: 4px solid var(--cyan);
  border-radius: 12px;
  background: rgb(34 198 211 / 7%);
  color: var(--muted);
}

.notice strong {
  color: var(--ink);
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(9 34 62 / 55%);
}

.support-card svg {
  width: 24px;
  color: var(--cyan);
}

.support-card h3 {
  margin: 12px 0 6px;
  color: var(--ink);
}

.support-card p {
  font-size: 0.86rem;
}

.action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid var(--cyan);
  border-radius: 11px;
  background: var(--cyan);
  color: #031226;
  font-weight: 800;
  text-decoration: none;
}

.action:hover {
  background: var(--cyan-soft);
}

.action--secondary {
  background: transparent;
  color: var(--cyan-soft);
}

.action--secondary:hover {
  background: rgb(34 198 211 / 10%);
}

.steps {
  list-style: none;
  counter-reset: support-step;
  padding: 0 !important;
}

.steps li {
  position: relative;
  min-height: 48px;
  padding-right: 58px;
  counter-increment: support-step;
}

.steps li::before {
  position: absolute;
  right: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan-soft);
  content: counter(support-step, decimal-leading-zero);
  font-family: ui-monospace, monospace;
  font-size: 0.73rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-soft);
}

.site-footer__inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--faint);
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a:hover {
  color: var(--cyan-soft);
}

@media (max-width: 820px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: stretch;
  }

  .formula-card {
    max-width: 420px;
  }

  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .toc strong {
    width: 100%;
  }

  .toc a {
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}

@media (max-width: 600px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .site-header__inner {
    min-height: 66px;
  }

  .brand img {
    width: 112px;
    height: 48px;
  }

  .site-nav a {
    padding: 7px 8px;
    font-size: 0.75rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .page-shell {
    padding-block: 48px 72px;
  }

  .hero {
    gap: 28px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .content-grid {
    gap: 36px;
    padding-top: 36px;
  }

  .support-options {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

