:root {
  color-scheme: dark;
  --bg: #060c16;
  --bg-card: #0a1220;
  --border: rgba(160, 180, 205, 0.18);
  --text: #f2f3f5;
  --muted: #9aa3ae;
  --teal: #4ab0ac;
  --teal-bright: #5ad4cc;
  --teal-dark: #0a5c5e;
  --teal-dark-border: #3aa8a0;
  --purple: #9b7ae8;
  --purple-bright: #b08cff;
  --ok: #5dcaa8;
  --ok-bg: rgba(93, 202, 168, 0.12);
  --err: #f07a76;
  --err-bg: rgba(240, 122, 118, 0.12);
  --pending: #8b939c;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 5.15rem;
  --wrap: 70rem;
  --pad: clamp(1.25rem, 4vw, 3.4rem);
  --radius: 0.95rem;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, li, .btn { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.55rem 0.85rem;
  background: var(--bg-card);
  border-radius: 0.4rem;
}
.skip-link:focus { top: 0.7rem; }

.wrap {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 2.75rem;
  height: 3.4rem;
  flex: none;
}
.wordmark {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wm-no { color: var(--teal); }
.wm-state { color: var(--purple); }
.wm-com { color: #c8ccd2; font-weight: 600; }

.header-end {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-width: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  column-gap: 2.05rem;
  row-gap: 0.2rem;
  min-width: 0;
}
.nav a {
  position: relative;
  text-decoration: none;
  color: #e8eaee;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.35rem 0 0.5rem;
}
.nav a:hover { color: #fff; }
.nav a.active {
  color: var(--teal-bright);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

/* Language picker */
.lang-picker {
  position: relative;
  flex: none;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.1rem;
  padding: 0 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  color: var(--teal-bright);
  border-color: rgba(74, 176, 172, 0.35);
}
.lang-globe { width: 1rem; height: 1rem; flex: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 30;
  list-style: none;
  width: 21rem;
  max-width: calc(100vw - 2rem);
  max-height: min(70vh, 26rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem;
  padding: 0.45rem;
  background: #0b1422;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: #2c3a4c transparent;
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: block;
  padding: 0.42rem 0.65rem;
  border-radius: 0.45rem;
  color: #cfd4da;
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: start;
}
.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: rgba(74, 176, 172, 0.12);
  color: var(--teal-bright);
  outline: none;
}
.lang-menu a[aria-current="page"] {
  color: var(--teal-bright);
  background: rgba(74, 176, 172, 0.08);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  padding: 0.25rem 0 2.9rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -1.15rem 0 auto 0;
  height: 25.2rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(34rem, 70%);
  height: 16rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(74, 176, 172, 0.22), transparent 68%);
  pointer-events: none;
}
.hero-globe {
  width: min(54rem, 94%);
  height: auto;
  opacity: 0.95;
  transform: translateY(-0.55rem);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 84%);
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 84%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.7rem 0 1.9rem;
}
.hero-copy h1 {
  font-size: clamp(2.15rem, 5.3vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  color: #f4f5f7;
}
.hero-lead {
  margin: 1.15rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.95rem;
  padding: 0.35rem 1.45rem;
  text-align: center;
  line-height: 1.2;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  max-width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: #54bbb7; }
.btn-outline {
  background: transparent;
  color: #eef0f3;
  border-color: #3d4a5c;
}
.btn-outline:hover { border-color: #6a7b90; }
.btn-dark-teal {
  background: var(--teal-dark);
  color: #fff;
  border: 1px solid var(--teal-dark-border);
  min-height: 3.15rem;
  padding: 0.35rem 1.85rem;
  min-width: 12.2rem;
}
.btn-dark-teal:hover { background: #0d6a6c; }
.btn-outline-teal {
  background: transparent;
  color: var(--teal-bright);
  border: 1.5px solid var(--teal);
  min-height: 3.35rem;
  padding: 0.35rem 1.9rem;
  min-width: 18.5rem;
}
.btn-outline-teal:hover { background: rgba(74, 176, 172, 0.08); }
.btn-ico { width: 1em; height: 1em; flex: none; }
.btn-arrow { font-weight: 500; }

/* Feature cards */
.feature-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  scroll-margin-top: calc(var(--header-h) + 0.8rem);
}
.feature-card,
.step-card,
.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-card {
  padding: 1.45rem 1.35rem 1.5rem;
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.feature-head .icon { flex: none; }
.feature-head h2 {
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-card.teal .icon,
.feature-card.teal h2 { color: var(--teal-bright); }
.feature-card.purple .icon,
.feature-card.purple h2 { color: var(--purple-bright); }
.feature-card p,
.step-card p,
.vision-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Sections */
.section {
  padding: 3.6rem 0 4.2rem;
  scroll-margin-top: var(--header-h);
}
.section-title {
  text-align: center;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.12;
  color: #f4f5f7;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0.85rem auto 2.4rem;
  max-width: 42rem;
}

/* Steps */
.steps {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step-card {
  position: relative;
  flex: 1 1 0;
  padding: 1.85rem 1.2rem 1.5rem;
  text-align: start;
}
.step-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #071018;
  border: 1.5px solid currentColor;
}
.step-badge.teal { color: var(--teal-bright); }
.step-badge.purple { color: var(--purple-bright); }
.step-icon {
  display: flex;
  justify-content: center;
  margin: 1.15rem 0 1.15rem;
  color: var(--teal-bright);
  min-height: 5.6rem;
  align-items: center;
}
.step-icon.purple { color: var(--purple-bright); }
.step-icon.teal-purple { color: var(--purple); }
.step-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  color: #f0f1f3;
}
.step-arrow {
  display: flex;
  align-items: center;
  flex: 0 0 1.7rem;
  justify-content: center;
  margin-top: -0.5rem;
}
.step-arrow.teal { color: var(--teal); }
.step-arrow.purple { color: var(--purple); }
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}

/* Vision */
.vision-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.vision-card {
  padding: 1.8rem 1.5rem 1.7rem;
}
.vision-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 8.6rem;
  margin-bottom: 1.15rem;
  color: var(--teal-bright);
}
.vision-icon.purple { color: var(--purple-bright); }
.vision-icon.glow {
  filter: drop-shadow(0 0 14px rgba(74, 176, 172, 0.35));
}
.vision-icon.purple.glow {
  filter: drop-shadow(0 0 16px rgba(155, 122, 232, 0.4));
}
.vision-icon.strong {
  filter: drop-shadow(0 0 18px rgba(90, 220, 210, 0.45));
}
.vision-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
  color: #f0f1f3;
}


/* Was ist NO-State */
.why {
  padding-top: 3.2rem;
  padding-bottom: 4.4rem;
}
.why-lead {
  text-align: center;
  margin: 0.95rem auto 1.35rem;
  max-width: 58rem;
  font-size: clamp(1.15rem, 2.05vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: #e8eaee;
}
.grad-text {
  color: var(--teal-bright);
  background-image: linear-gradient(90deg, var(--teal-bright), var(--purple-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.why-copy {
  margin: 0 auto 2.4rem;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
}
.why-sub {
  text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f4f5f7;
  margin: 0 auto 1.55rem;
}
.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.why-icon {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.95rem;
  min-height: 4rem;
  align-items: center;
}
.why-card.purple .why-icon { color: var(--purple-bright); }
.why-card.teal .why-icon { color: var(--teal-bright); }
.why-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* Join */
.join {
  padding-top: 3.4rem;
  padding-bottom: 9.5rem;
}
.join .section-sub {
  max-width: 52rem;
  margin-bottom: 2.15rem;
}
.join-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.85fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: #0c1624;
  min-height: 21.5rem;
}
.join-copy {
  position: relative;
  z-index: 1;
  padding-block: 2.35rem 2rem;
  padding-inline: 2.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.btn-start {
  width: 100%;
  min-height: 3.65rem;
  border-radius: 999px;
  background: #3fd4cc;
  color: #0a1218;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 transparent;
}
.btn-start:hover { background: #4bddd5; }
.join-hint {
  min-height: 1.35rem;
  margin: 0.55rem 0 0;
  color: var(--teal-bright);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}
.join-hint:empty { margin: 0; min-height: 0; }
.join-perks {
  margin: 0.95rem 0 0;
  text-align: center;
  color: #b4bcc6;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.join-perks span { margin: 0 0.45em; font-weight: 700; }
.join-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 0.7rem;
  margin-top: 1.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(160, 180, 205, 0.16);
}
.join-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: start;
}
.join-feat.purple { color: var(--purple-bright); }
.join-feat.teal { color: var(--teal-bright); }
.join-feat-icon {
  flex: none;
  width: 2.45rem;
  height: 2.45rem;
}
.join-feat-icon svg {
  width: 2.45rem;
  height: 2.45rem;
  display: block;
}
.join-feat-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.join-feat-text strong {
  color: #f0f1f3;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.join-feat-text span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 400;
}
.join-visual {
  position: relative;
  min-height: 21.5rem;
  overflow: hidden;
  pointer-events: none;
}
.join-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 44%;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%),
    radial-gradient(ellipse 86% 84% at 60% 48%, #000 48%, transparent 80%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%),
    radial-gradient(ellipse 86% 84% at 60% 48%, #000 48%, transparent 80%);
  -webkit-mask-composite: source-in;
}
.join-login {
  text-align: center;
  margin-top: 1.85rem;
  color: #c5cbd3;
  font-size: 1.05rem;
}
.join-login-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-bright);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.join-login-link:hover { color: #7ee8e0; }
.join-hint-login { text-align: center; margin-top: 0.45rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.3rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner a {
  color: var(--muted);
  text-underline-offset: 0.16em;
}
.footer-inner a:hover { color: var(--teal-bright); }
.status-list {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pending);
}
.status-item[data-state="loading"] .status-dot { animation: pulse 1.2s ease-in-out infinite; }
.status-item[data-state="ok"] .status-dot { background: var(--ok); }
.status-item[data-state="error"] .status-dot { background: var(--err); }
.status-flag { color: var(--pending); }
.status-item[data-state="ok"] .status-flag { color: var(--ok); }
.status-item[data-state="error"] .status-flag { color: var(--err); }

@keyframes pulse {
  50% { opacity: 0.35; }
}

@media (max-width: 900px) {
  .nav { column-gap: 1.05rem; }
  .header-end { gap: 0.9rem; }
  .nav a { font-size: 0.86rem; }
  .feature-grid,
  .vision-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps {
    flex-direction: column;
    gap: 0.9rem;
  }
  .step-arrow {
    flex-basis: auto;
    transform: rotate(90deg);
    margin: 0;
    height: 1.4rem;
  }
  .hero-copy { padding-top: 2.05rem; padding-bottom: 1.55rem; }
  .hero-globe {
    width: 120%;
    max-width: none;
    transform: translateY(-0.3rem);
    mask-image: linear-gradient(to bottom, #000 36%, transparent 68%);
    -webkit-mask-image: linear-gradient(to bottom, #000 36%, transparent 68%);
  }
  .hero-bg { height: 20.5rem; }
  .br-desktop { display: none; }
  .btn-outline-teal { min-width: 0; width: auto; }
  .join-card {
    grid-template-columns: 1fr;
  }
  .join-copy { padding: 1.45rem 1.25rem 1.2rem; }
  .join-visual {
    min-height: 10.4rem;
    order: 2;
  }
  .join-copy { order: 1; }
  .join-visual img {
    object-position: 55% 42%;
    mask-image:
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
      radial-gradient(ellipse 85% 80% at 50% 45%, #000 40%, transparent 78%);
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
      radial-gradient(ellipse 85% 80% at 50% 45%, #000 40%, transparent 78%);
  }
  .btn-start { min-height: 3.45rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 6.85rem; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding-top: 0.75rem;
    padding-bottom: 0.7rem;
  }
  .header-inner { position: relative; }
  .header-end { width: 100%; }
  .nav { column-gap: 0.85rem; justify-content: flex-start; }
  .lang-picker {
    position: absolute;
    top: 0.95rem;
    inset-inline-end: 0;
  }
  .lang-toggle { border-color: rgba(160, 180, 205, 0.22); }
  .wordmark { font-size: 1.1rem; }
  .hero-copy h1 { font-size: 1.78rem; letter-spacing: -0.03em; line-height: 1.16; }
  .hero-lead { font-size: 0.98rem; }
  .join-features { grid-template-columns: 1fr; gap: 0.85rem; }
  .join .section-title { font-size: 1.85rem; }
  .join { padding-top: 1.6rem; padding-bottom: 2.4rem; }
  .join .section-sub { margin-bottom: 1.5rem; }
  .join-feat-text strong { white-space: normal; }
  .why-grid { grid-template-columns: 1fr; }
  .why-copy { font-size: 1rem; }
  .why-lead { font-size: 1.12rem; }
}

/* Right-to-left languages (ar, he, fa, ur) */
[dir="rtl"] .btn-ico,
[dir="rtl"] .step-arrow svg { transform: scaleX(-1); }
@media (max-width: 900px) {
  /* The step arrow container is rotated to point down on small screens; no mirroring needed there. */
  [dir="rtl"] .step-arrow svg { transform: none; }
}

/* Script-specific font stacks and spacing */
:lang(ar), :lang(fa) { --font: system-ui, "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, "Geeza Pro", sans-serif; }
:lang(ur) { --font: "Noto Nastaliq Urdu", "Jameel Noto Nastaliq", "Urdu Typesetting", system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
:lang(ur) body { line-height: 1.9; }
:lang(he) { --font: system-ui, "Segoe UI", Arial, "Noto Sans Hebrew", "Arial Hebrew", sans-serif; }
:lang(hi) { --font: system-ui, "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", sans-serif; }
:lang(bn) { --font: system-ui, "Nirmala UI", "Noto Sans Bengali", "Kohinoor Bangla", "Vrinda", sans-serif; }
:lang(th) { --font: system-ui, "Leelawadee UI", "Noto Sans Thai", "Thonburi", "Tahoma", sans-serif; }
:lang(zh-CN) { --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(zh-TW) { --font: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", "Source Han Sans TC", sans-serif; }
:lang(ja) { --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; }
:lang(ko) { --font: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; }
:lang(ko) body { word-break: keep-all; }
:lang(ar) *, :lang(fa) *, :lang(ur) *, :lang(he) *, :lang(hi) *, :lang(bn) *, :lang(th) *,
:lang(zh-CN) *, :lang(zh-TW) *, :lang(ja) *, :lang(ko) * { letter-spacing: normal !important; }
.lang-menu a:lang(ar), .lang-menu a:lang(fa) { font-family: system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
.lang-menu a:lang(ur) { font-family: system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
.lang-menu a:lang(zh-CN) { font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
.lang-menu a:lang(zh-TW) { font-family: system-ui, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
.lang-menu a:lang(ja) { font-family: system-ui, "Hiragino Sans", "Yu Gothic UI", "Noto Sans CJK JP", sans-serif; }
.lang-menu a:lang(ko) { font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
.wordmark, .lang-code { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 404 page */
.page-404 { display: flex; flex-direction: column; min-height: 100vh; }
.nf {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.nf-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6.2rem 0 4rem;
}
.nf-code {
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--teal-bright), var(--purple-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}
.nf-copy h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f5f7;
}
.page-404 .site-footer { margin-top: auto; }
