/* NDMX holding page. Colours are the website's tokens (website/src/styles/tokens.css):
   light = the brand paper surface, dark = the hero's night navy. No inline styles, no scripts. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/plex-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200F, U+061C; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/plex-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200F, U+061C; }

:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --ink: #0e1726;
  --ink-2: #44546a;
  --label: #135393;
  --link: #135393;
  --line: #dce5ee;
  --glow: rgba(120, 162, 194, 0.22);
  --grid: rgba(19, 83, 147, 0.05);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071a36;
    --ink: #ffffff;
    --ink-2: #b5cfe1;
    --label: #8fa9c2;
    --link: #d6e3ee;
    --line: rgba(150, 187, 212, 0.14);
    --glow: rgba(97, 153, 191, 0.20);
    --grid: rgba(120, 162, 194, 0.07);
  }
}
html:lang(ar) { --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; border-radius: 2px; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .page { padding: 0 40px; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 147px; height: auto; }
.switch { font-size: 15px; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.switch:hover { text-decoration: underline; }
.switch:lang(ar) { font-family: 'IBM Plex Sans Arabic', var(--font); }
.switch:lang(en) { font-family: 'IBM Plex Sans', system-ui, sans-serif; }

.main {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 32px;
  padding: 24px 0 40px;
  text-align: center;
}
@media (min-width: 900px) {
  .main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: start; align-items: center; gap: 64px; text-align: start; }
  .visual { justify-self: center; order: 2; }
}

.visual { position: relative; width: min(64vw, 380px); aspect-ratio: 1; }
.visual::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.visual::after {
  content: '';
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 1px dashed var(--line);
}
.sphere { position: relative; display: block; width: 100%; height: 100%; }
/* the bands turn slowly back and forth under the still disc mask, as the website hero does (±10°, 9 s) */
.sp-bands { transform-origin: 60px 60px; animation: turn 9s ease-in-out infinite alternate; }
@keyframes turn { from { transform: rotate(0deg); } to { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .sp-bands { animation: none; } }

.copy { max-width: 34rem; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
html:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; }
h1 { margin: 0 0 16px; font-size: clamp(40px, 7vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; }
html:lang(ar) h1 { letter-spacing: 0; line-height: 1.25; }
.line { margin: 0 0 28px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }
.contact { margin: 0; font-size: 16px; }
.contact__label { color: var(--ink-2); margin-inline-end: 6px; }
.contact a { font-weight: 600; unicode-bidi: isolate; }

.foot { padding: 24px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); text-align: center; }
.foot p { margin: 0; }
@media (min-width: 900px) { .foot { text-align: start; } }
