/* Al9annas landing — "sniper venom": the app's own palette, dark by design. */
:root {
  --bg: #17181B;
  --bg-2: #1d1e22;
  --surface: #25262C;
  --surface-2: #2d2f36;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F6F2;
  --text-2: #B9BCC2;
  --muted: #8B8F86;
  --accent: #CDE83C;
  --accent-deep: #8FA81A;
  --accent-soft: rgba(205, 232, 60, 0.14);
  --on-accent: #181B05;
  --red: #D8232A;
  --gold: #F5C544;
  --display: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --phone-radius: 42px;
  --max: 1160px;
  color-scheme: dark;
}
html[dir="rtl"] { --body: 'Cairo', 'Segoe UI', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lede, .band-head p, .feature-copy > p, .hunt-head p, .panel-copy > p, .download > p { color: var(--text-2); max-width: 58ch; }

#halftone { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.55; }
body > * { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--display); font-weight: 900; font-size: 1.05rem; }
.brand-ar { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 0.95rem; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch button {
  font: inherit; font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  background: none; border: 0; color: var(--text-2); padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 64px); align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(216, 35, 42, 0.25); }
.hero .lede { margin-top: 20px; font-size: 1.12rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--bg); border-radius: 12px; padding: 10px 18px 10px 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 0.7rem; opacity: 0.7; }
.store b { font-family: var(--display); font-size: 1.05rem; }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(205, 232, 60, 0.18); }
.proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 34px; }
.proof li { display: flex; flex-direction: column; }
.proof b { font-family: var(--display); font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: 0.9rem; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.phone {
  margin: 0; position: relative;
  border-radius: var(--phone-radius); padding: 12px;
  background: linear-gradient(160deg, #3a3c44, #121317);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: #0b0c0e; z-index: 2; }
.phone-screen { border-radius: calc(var(--phone-radius) - 12px); overflow: hidden; aspect-ratio: 9 / 16; background: var(--surface); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-hero { width: min(300px, 72vw); transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone-hero { animation: none; } }

.mika-peek { position: absolute; inset-inline-end: -8px; bottom: -8px; margin: 0; width: min(200px, 40%); }
.mika-peek img { border-radius: 24px 24px 60px 60px / 24px 24px 40px 40px; border: 3px solid var(--accent); background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.bubble {
  position: absolute; top: -18px; inset-inline-start: -30px;
  background: var(--text); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  padding: 8px 12px; border-radius: 14px; max-width: 190px; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.bubble::after { content: ''; position: absolute; bottom: -9px; inset-inline-end: 22px; border: 6px solid transparent; border-top: 8px solid var(--text); border-bottom: 0; }

/* ---------- languages band ---------- */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.band-head { max-width: 720px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lang-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 100%;
}
.lang-card h3 { font-family: 'Cairo', var(--display); }
.lang-card p { color: var(--text-2); font-size: 0.98rem; }
.lang-code { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--on-accent); background: var(--accent); padding: 3px 8px; border-radius: 6px; width: max-content; }
.lang-sources { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 0.85rem; border-top: 1px dashed var(--line-strong); }
@media (max-width: 860px) { .lang-grid { grid-template-columns: 1fr; } }

/* ---------- feature rows ---------- */
.feature {
  max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: center;
}
.feature-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature-flip .phone-side { order: 2; }
.phone-side { width: min(280px, 70vw); justify-self: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--text-2); }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.ticks li::after {
  content: ''; position: absolute; inset-inline-start: 5px; top: calc(0.35em + 4px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- hunter points ---------- */
.hunt {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hunt-head { display: flex; flex-direction: column; gap: 14px; }
.hunter-mark { display: inline-flex; align-items: center; gap: 2px; font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: var(--text); line-height: 1; width: max-content; }
.hunter-mark i { display: block; width: 16px; height: 16px; background: var(--red); transform: rotate(45deg); margin: 0 6px; border-radius: 2px; }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-label { color: var(--text-2); font-size: 0.98rem; }
.ledger-val { font-family: var(--mono); font-weight: 500; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-val small { color: var(--muted); font-size: 0.75em; margin-inline-start: 2px; }
.ledger-cost .ledger-val { color: var(--text); }
.ledger-pro { background: linear-gradient(90deg, rgba(245, 197, 68, 0.12), transparent); }
.ledger-pro .ledger-val { color: var(--gold); font-family: var(--display); font-weight: 900; }
.phone-small { width: 200px; }
@media (max-width: 980px) { .hunt { grid-template-columns: 1fr 1fr; } .phone-small { display: none; } }
@media (max-width: 720px) { .hunt, .feature, .feature-flip { grid-template-columns: 1fr; } .feature-flip .phone-side { order: 0; } }

/* ---------- Mika panel ---------- */
.mika { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px); }
.panel {
  position: relative; display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  background: #fff; color: var(--bg); border-radius: 6px; padding: clamp(20px, 3vw, 40px);
  border: 4px solid var(--bg); outline: 3px solid var(--text); outline-offset: 0;
  box-shadow: 14px 14px 0 var(--accent);
  background-image: radial-gradient(rgba(23, 24, 27, 0.14) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
}
.panel .eyebrow { color: var(--red); }
.panel .eyebrow .dot { background: var(--bg); box-shadow: none; }
.panel h2 { color: var(--bg); }
.panel-copy { display: flex; flex-direction: column; gap: 10px; }
.panel-copy > p { color: #3b3d45; max-width: 52ch; }
.mika-art { width: 100%; max-width: 360px; justify-self: center; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25)); }
.mika-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.line { background: var(--bg); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 720px) { .panel { grid-template-columns: 1fr; } }

/* ---------- gallery rail ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px); }
.rail { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.phone-rail { flex: 0 0 210px; scroll-snap-align: start; }
.phone-rail figcaption { text-align: center; margin-top: 12px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- download ---------- */
.download {
  max-width: 760px; margin: clamp(24px, 4vw, 48px) auto clamp(48px, 8vw, 110px); padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
}
.download img { border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.notify { display: flex; gap: 8px; width: 100%; max-width: 460px; margin-top: 8px; }
.notify input {
  flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text);
}
.notify input::placeholder { color: var(--muted); }
.notify button {
  font: inherit; font-family: var(--display); font-weight: 900; padding: 12px 20px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
.notify button:hover { background: #dbf25a; }
.fine { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 520px) { .notify { flex-direction: column; } }

/* ---------- footer ---------- */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.92rem;
}
.foot > div { display: flex; flex-direction: column; gap: 4px; }
.foot b { font-family: var(--display); color: var(--text); }
.foot nav { display: flex; gap: 20px; align-items: start; }
.foot nav a:hover { color: var(--accent); }
.foot .fine { grid-column: 1 / -1; max-width: 70ch; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

/* ---------- responsive hero ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; margin-top: 24px; }
  .mika-peek { inset-inline-end: 0; }
}

/* screenshot not shipped yet: keep the phone silhouette, show the brand mark */
.phone.no-shot .phone-screen { background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface)); display: grid; place-items: center; }
.phone.no-shot .phone-screen::after { content: ''; width: 28%; aspect-ratio: 1; border-radius: 22%; background: url('assets/logo.webp') center / cover; opacity: 0.9; }

