/* Atadok website. One stylesheet for every page, Arabic (right to left) and
   English alike: spacing uses logical properties, so nothing is mirrored by
   hand. No scripts, and nothing loaded from another site. */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0A0911;
  --panel: #181627;
  --border: #2A2736;
  --bar: #161123;
  --text: #F2F4F7;
  --muted: #A6A1B8;
  --link: #C4A8FF;
  --pink: #C03A7D;
  --purple: #7D3BCD;
  --teal: #2DD4BF;
  --on-teal: #06201D;
  --brand: linear-gradient(135deg, var(--pink), var(--purple));
  --page: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

html[lang="en"] body { line-height: 1.65; }

main { flex: 1; }

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
li { margin-bottom: .45em; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--teal);
  color: var(--on-teal);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; color: var(--on-teal); }

/* ---------- Header ---------- */

.site-header {
  background: var(--bar);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}
.brand img { width: 38px; height: 38px; }
.lang {
  margin-inline-start: auto;
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.6;
}
.lang:hover { border-color: var(--link); }
.site-nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding-block: 4px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--teal);
}

@media (min-width: 720px) {
  .site-nav {
    order: 0;
    flex-basis: auto;
    margin-inline-start: 22px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn[disabled] {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: not-allowed;
  filter: none;
}
.btn-line {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.btn-line:hover { color: var(--teal); background: rgba(45, 212, 191, .08); }

.soon-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ---------- Home ---------- */

.hero {
  background:
    radial-gradient(60% 55% at 12% 0%, rgba(192, 58, 125, .28), transparent 70%),
    radial-gradient(55% 60% at 95% 20%, rgba(125, 59, 205, .30), transparent 70%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero .wrap { padding-block: 48px 44px; }
.hero-logo { width: 88px; height: 88px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 10px; }
.tagline {
  font-size: clamp(1.25rem, 5.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 14px;
}
.tagline span {
  display: block;
  background: linear-gradient(90deg, #F06AAE, #A679F5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  max-width: 38em;
  margin: 0 auto 26px;
}
.hero-note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }

.section { padding-block: 44px; }
.section + .section { border-top: 1px solid var(--border); }
.section > .wrap > h2 { font-size: 1.55rem; margin-bottom: 8px; }
.section-intro { color: var(--muted); max-width: 42em; margin-bottom: 24px; }

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 16px;
  margin-inline: calc(var(--gutter) * -1);
  list-style: none;
  scrollbar-color: var(--border) transparent;
}
.shots li {
  flex: none;
  width: min(64vw, 250px);
  margin: 0;
  scroll-snap-align: center;
}
.shots img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
}
@media (min-width: 1100px) {
  .shots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
  }
  .shots li { width: auto; }
}

.cards {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 0;
}
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card ul { color: var(--muted); margin: 8px 0 0; font-size: .97rem; }
.card ul li::marker { color: var(--teal); }

.tick {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
  margin-bottom: 10px;
}
.tick::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--on-teal);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  margin: 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: .95rem;
  font-weight: 500;
}

.notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--teal);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--muted);
}
.notice strong { color: var(--text); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Text pages ---------- */

.page-head {
  background:
    radial-gradient(60% 120% at 8% 0%, rgba(192, 58, 125, .22), transparent 70%),
    radial-gradient(50% 120% at 96% 0%, rgba(125, 59, 205, .24), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-head .wrap { padding-block: 34px 28px; }
.page-head h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
.page-head p { color: var(--muted); margin: 8px 0 0; }

.doc { max-width: 780px; padding-block: 30px 56px; }
.doc h2 {
  font-size: 1.3rem;
  margin: 1.9em 0 .6em;
  scroll-margin-top: 16px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; margin: 1.4em 0 .5em; }
.doc li::marker { color: var(--teal); }
.doc ol li::marker { color: var(--muted); font-weight: 600; }

.big { font-size: 1.12rem; }
.signature {
  margin-top: 2.2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.1rem;
}
.signature span { display: block; color: var(--muted); font-weight: 400; font-size: .95rem; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 50px;
  margin-bottom: 16px;
  min-height: 36px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 1.2em;
}
.contact .label { color: var(--muted); font-size: .92rem; display: block; }
.contact .value {
  font-weight: 600;
  font-size: 1.1rem;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.contact .btn { margin-inline-start: auto; }

/* Legal text */
.draft {
  background: rgba(192, 58, 125, .14);
  border: 1px solid var(--pink);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 500;
}
.draft b {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding: 0 12px;
  margin-inline-end: 8px;
  font-size: .9rem;
}
.gap {
  background: rgba(192, 58, 125, .16);
  border: 1px dashed var(--pink);
  border-radius: 6px;
  color: var(--text);
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 26px;
}
.toc h2 { font-size: 1rem; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 1; }
.toc li { margin-bottom: .3em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 28px; } }
.source-note { color: var(--muted); font-size: .95rem; }

/* 404 */
.lost { text-align: center; padding-block: 64px; }
.lost .code {
  font-size: clamp(4rem, 22vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.lost h1, .lost h2 { font-size: 1.5rem; margin-bottom: 8px; }
.lost p { color: var(--muted); }
.lost .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}
.lost hr { border: 0; border-top: 1px solid var(--border); max-width: 320px; margin: 36px auto; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bar);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .wrap { padding-block: 26px 30px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 16px;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer p { margin: 0; }
