/* ذكاء مشع — Coming soon · ai.om.sa */
@font-face { font-family: "Graphik Arabic"; src: url(../fonts/GraphikArabic-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url(../fonts/GraphikArabic-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url(../fonts/GraphikArabic-Semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #040605;
  --surface: rgba(10, 14, 12, .85);
  --chip: rgba(10, 14, 12, .6);
  --text: #EDEFEF;
  --text-2: #A7B0AC;
  --text-3: #7F8884;
  --border: rgba(237, 239, 239, .13);
  --accent: #31E931;
  --on-accent: #040605;
  --grid: rgba(237, 239, 239, .015);   /* background squares: 24px (owner asked for smaller than the 40px design), very faint */
  --font: "Graphik Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-x: hidden;
}
[lang="ar"] body, [lang="ar"] * { letter-spacing: 0; }

/* soft green glow behind the content */
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 52%, rgba(49, 233, 49, .07) 0, rgba(49, 233, 49, 0) min(42vw, 600px));
}

/* language toggle */
.top { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px) 0; }
.lang { display: flex; gap: 2px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; }
.lang button {
  height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font: 500 12px var(--font); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #151C19; color: var(--text); }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px clamp(24px, 5vw, 32px) clamp(48px, 8vh, 80px);
}
.logo { height: clamp(64px, 6.1vw, 88px); width: auto; filter: drop-shadow(0 0 24px rgba(49, 233, 49, .15)); }
.title { margin: clamp(24px, 2.4vw, 28px) 0 0; font-size: clamp(24px, 2.65vw, 38px); font-weight: 600; line-height: 1.3; }
.accent { color: var(--accent); text-shadow: 0 0 24px rgba(49, 233, 49, .18); }
.lead { margin: 10px 0 0; max-width: 500px; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.75; color: var(--text-2); }

/* notify form: one pill on ≥ 480px, stacked on phones */
.notify {
  display: flex; align-items: center; gap: 8px;
  width: min(400px, 100%); height: 46px; margin-top: 28px;
  padding-block: 0; padding-inline: 18px 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(12px);
}
.notify:focus-within { border-color: rgba(49, 233, 49, .6); box-shadow: 0 0 0 3px rgba(49, 233, 49, .12); }
.notify input[type="email"] {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 400 13px var(--font); text-align: start;
}
[dir="rtl"] .notify input[type="email"] { text-align: right; }
.notify input::placeholder { color: var(--text-3); }
.notify button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 13px var(--font); white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 20px rgba(49, 233, 49, .16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.notify button:hover { box-shadow: 0 8px 26px rgba(49, 233, 49, .26); }
.notify button:active { transform: scale(.97); }
.notify button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.notify button[disabled] { opacity: .6; cursor: default; }
[dir="ltr"] .arrow { transform: scaleX(-1); }
.notify { position: relative; }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

.note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); min-height: 1.5em; }
.note.ok { color: var(--accent); }
.note.err { color: #FF6B6B; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--chip);
  font-size: 11px; color: var(--text);
}
.chips svg { color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 479px) {
  .notify { flex-direction: column; height: auto; gap: 10px; padding: 0; background: none; border: 0; backdrop-filter: none; }
  .notify:focus-within { box-shadow: none; }
  .notify input[type="email"] { flex: none; width: 100%; height: 42px; padding: 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
  .notify input[type="email"]:focus { border-color: rgba(49, 233, 49, .6); }
  .notify button { width: 100%; height: 42px; }
  .title .accent { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
