@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800&display=swap");

:root {
  --bg: #0d0d0b;
  --ink: #f7efc6;
  --accent: #ffde59;
  --muted: rgba(247, 239, 198, 0.74);
  --line: rgba(255, 222, 89, 0.18);
  --line-strong: rgba(255, 222, 89, 0.58);
  --max-width: 620px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 222, 89, 0.08), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

code {
  display: inline-flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94em;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 222, 89, 0.08);
}

.arabic {
  font-family: "Tajawal", sans-serif;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}

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

.brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 222, 89, 0.06);
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.25rem;
}

.nav-link {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--accent);
  border-bottom-color: currentColor;
}

main {
  padding-top: 2.4rem;
}

.hero,
.legal-hero {
  padding-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.lead {
  max-width: 62ch;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.button-link.primary {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.button-link.primary:hover,
.button-link.primary:focus-visible {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.muted {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
}

.section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.section h2,
.legal-content h2 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.simple-list,
.legal-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.simple-list li,
.legal-content li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.simple-list li:first-child,
.legal-content li:first-child {
  padding-top: 0;
  border-top: 0;
}

.numbered {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.numbered li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.numbered li:first-child {
  border-top: 0;
  padding-top: 0;
}

.numbered li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 700;
  color: var(--accent);
}

.list-title {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.mini-block {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.mini-block strong {
  display: block;
  margin-bottom: 0.25rem;
}

.legal-hero {
  border-bottom: 1px solid var(--line-strong);
}

.legal-content {
  max-width: 760px;
  padding-top: 1.5rem;
}

.legal-content section {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.note {
  max-width: 62ch;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

::selection {
  background: var(--accent);
  color: #000000;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    flex-direction: column;
  }

  main {
    padding-top: 2rem;
  }

  .hero h1,
  .legal-hero h1 {
    max-width: none;
  }

  .section-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }
}
