:root {
  --bg: #000;
  --text: #fff;
  --muted: #a3a3a3;
  --faint: #737373;
  --line: rgba(255, 255, 255, 0.12);
  --field: rgba(255, 255, 255, 0.04);
  --button: #fff;
  --button-text: #000;
  --button-hover: #e5e5e5;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* One soft glow from the top, and a faint dot grid (the nuqta) that fades out from the centre. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background: radial-gradient(60% 45% at 50% 0%, rgba(255, 255, 255, 0.10), transparent 70%);
}
body::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(55% 50% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(55% 50% at 50% 40%, #000, transparent 75%);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

/* Language switch, top corner on the reading-direction end. */
.lang-switch {
  position: absolute; top: 20px; inset-inline-end: 20px; z-index: 1;
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.lang-switch a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--text); color: var(--bg); font-weight: 500; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 32px;
}

.inner { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; }

.mark { width: 44px; height: 44px; color: var(--text); margin-bottom: 28px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
  background: rgba(255, 255, 255, 0.03);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }

h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.3; font-weight: 600; margin: 20px 0 6px; letter-spacing: 0; text-wrap: balance; }
.sub { text-wrap: balance; font-size: 17px; color: var(--muted); margin: 0 0 32px; }

/* Email field with the button inside it. */
.form-area { width: 100%; max-width: 520px; }
.signup {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 6px; border-radius: 999px;
  background: var(--field); border: 1px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup:focus-within { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: transparent; border: 0; outline: none;
  text-align: left;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.signup button {
  height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--button-text); background: var(--button);
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease;
}
.signup button:hover { background: var(--button-hover); }
.signup button[disabled] { opacity: 0.6; cursor: progress; }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.status { min-height: 1.6em; margin: 12px 0 0; font-size: 14px; }
.status.ok { color: var(--text); }
.status.err { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--faint); margin: 2px 0 0; }

footer { padding: 20px 16px 28px; text-align: center; font-size: 13px; color: var(--faint); }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .dot { margin: 0 8px; }

.ltr { direction: ltr; unicode-bidi: isolate; }
.en-line { display: block; }

@media (max-width: 380px) {
  .signup { flex-direction: column; border-radius: 20px; }
  .signup input[type="email"] { width: 100%; flex: none; text-align: center; }
  .signup button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .inner > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .inner > :nth-child(2) { animation-delay: 0.05s; }
  .inner > :nth-child(3) { animation-delay: 0.1s; }
  .inner > :nth-child(4) { animation-delay: 0.15s; }
  .inner > :nth-child(5) { animation-delay: 0.2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
