/* AYQ developer site — monochrome-neon brand (matches the app's ayq_brand kit):
   near-black canvas, white "neon" accent, glass cards. Bilingual: html[data-lang]
   toggles .lang-en / .lang-ar blocks; dir flips for RTL. */

:root {
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-hi: rgba(255, 255, 255, 0.28);
  --ink: #f4f4f6;
  --muted: #b9bac2;
  --dim: #7c7d87;
  --neon: #ffffff;
  --halo: rgba(255, 255, 255, 0.16);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(255,255,255,0.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 110%, rgba(255,255,255,0.04), transparent 70%);
  background-attachment: fixed;
}

/* Language visibility */
html[data-lang="en"] .lang-ar { display: none !important; }
html[data-lang="ar"] .lang-en { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ── Header ─────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
}
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brandmark img { width: 34px; height: 34px; border-radius: 9px; }
.brandmark .name { font-weight: 800; letter-spacing: 0.14em; font-size: 17px; }
nav.top { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
nav.top a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 10px;
}
nav.top a:hover { color: var(--ink); background: var(--surface); }
.lang-btn {
  cursor: pointer; border: 1px solid var(--border); background: transparent;
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
}
.lang-btn:hover { border-color: var(--border-hi); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { text-align: center; padding: 84px 0 60px; }
.hero .ring {
  width: 120px; height: 120px; border-radius: 30px; margin-bottom: 28px;
  filter: drop-shadow(0 0 34px var(--halo));
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: 0.02em; }
.hero p.sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 19px); max-width: 640px; margin: 14px auto 0; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: 999px; font-family: inherit; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn.primary { background: var(--neon); color: #0a0a0c; border: 0; box-shadow: 0 0 24px var(--halo); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px rgba(255,255,255,0.28); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-hi); }
.btn.ghost:hover { background: var(--surface); }

/* ── Sections & cards ──────────────────────────────────── */
section.block { padding: 46px 0; }
section.block h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
section.block p.lead { color: var(--muted); max-width: 700px; margin-bottom: 26px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.card .icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; max-width: 720px; margin: 0 auto;
}

/* ── Forms ─────────────────────────────────────────────── */
form .field { margin-bottom: 16px; }
form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--ink); border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--border-hi); box-shadow: 0 0 0 3px rgba(255,255,255,0.07);
}
textarea { min-height: 140px; resize: vertical; }
select option { background: #131318; color: var(--ink); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-note { border-radius: 12px; padding: 13px 16px; font-size: 14.5px; margin-top: 18px; display: none; }
.form-note.ok   { display: block; background: rgba(90, 220, 130, 0.10); border: 1px solid rgba(90, 220, 130, 0.35); color: #b9ecc8; }
.form-note.err  { display: block; background: rgba(255, 110, 110, 0.10); border: 1px solid rgba(255, 110, 110, 0.35); color: #ffc9c9; }

/* ── Prose (privacy) ───────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 30px; margin-bottom: 4px; }
.prose .meta { color: var(--dim); font-size: 13.5px; margin-bottom: 28px; }
.prose h2 { font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 8px 0; }
.prose a { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 13.5px; }
.prose th, .prose td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.prose th { color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ── Footer ────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border); margin-top: 60px;
  padding: 30px 0 44px; color: var(--dim); font-size: 14px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .copy { margin-inline-start: auto; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  nav.top a.hide-sm { display: none; }
  footer.site .cols { flex-direction: column; align-items: flex-start; }
  footer.site .copy { margin-inline-start: 0; }
}
