/* ==========================================================
   BRAND TOKENS — brand colors aren't final yet.
   Change these few variables and the whole page follows
   (including the particle clock).
   ========================================================== */
:root {
  --bg:        #0b0d10;   /* page background            */
  --surface:   #12151a;   /* cards / inputs             */
  --line:      #22262d;   /* hairlines                  */
  --text:      #e8eaed;   /* primary text               */
  --muted:     #8a919c;   /* secondary text             */
  --accent:    #7c9cff;   /* the one brand accent color */
  --accent-2:  #a78bfa;   /* gradient partner to accent */

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --font-ar:   "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Particle clock canvas sits behind everything */
#clock {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* Darken the centre slightly so the text always reads over the clock */
body::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 40% 32% at 50% 50%, color-mix(in srgb, var(--bg) 45%, transparent), transparent 80%);
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px 24px;
  text-align: center;
}
.hero { max-width: 760px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow .ar {
  font-family: var(--font-ar);
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  color: var(--text);
  margin-left: 10px;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 700;
  margin: 0 0 22px;
  text-shadow: 0 2px 30px var(--bg);
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 16px var(--bg);
}

/* Logic-expression ticker: a small nod to the name (منطق = logic) */
.expr {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 300px;
  justify-content: center;
}
.expr .k { color: var(--accent); }
#expr-text { transition: opacity .2s ease; }
.expr .cursor {
  width: 8px; height: 17px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

footer {
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .expr { min-width: 0; width: 100%; }
}

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