/* ════════════════════════════════════════════════════════════════
   ZILENT SOFTWARE — One-pager site styles
   Built on the ZILENT design system tokens (navy / orange / black,
   Geist Mono + Bebas Neue, sharp corners, no glow).
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 68px;
  --rule: rgba(255, 255, 255, 0.10);
  --rule-strong: rgba(255, 255, 255, 0.18);
  --font-ar: 'Noto Sans Arabic', 'Geist Mono', sans-serif;
  /* Lighter muted grey than the DS default (#767676) so small uppercase
     labels meet WCAG AA contrast on the navy / black surfaces. */
  --text-muted: #9aa0b4;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
  -webkit-font-smoothing: antialiased;
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

/* Arabic typography + RTL */
html[lang="ar"] body { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.7; }
/* Arabic headings use the Arabic-capable face — the Latin display font
   (Bebas Neue) has no Arabic glyphs. The Latin ZILENT wordmark
   (.brand__mark / .footer__word) intentionally keeps the display font. */
html[lang="ar"] .display { font-family: var(--font-ar); font-weight: var(--weight-bold); letter-spacing: 0; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }

::selection { background: var(--color-orange); color: #000; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Accessibility: skip link + visible focus ──────────────────── */
.skip-link {
  position: absolute; inset-inline-start: 8px; top: -56px; z-index: 300;
  background: var(--color-orange); color: #000; padding: 10px 16px;
  font-size: var(--text-sm); text-transform: uppercase; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-orange); outline-offset: 2px;
}

/* ─── Layout primitives ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--color-orange);
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--color-orange); display: inline-block;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }

.display {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-tight);
  line-height: 1.04;
  font-weight: var(--weight-bold);
  text-wrap: balance;
}

.lead { color: rgba(255,255,255,0.72); font-size: var(--text-lg); line-height: 1.6; max-width: 56ch; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.accent { color: var(--color-orange); }

/* ─── Top navigation ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 5, 59, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 9px; cursor: pointer; }
.brand__mark { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: 0.02em; }
.brand__sub { font-size: 10px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.08em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: var(--text-xs); text-transform: uppercase; color: rgba(255,255,255,0.66); transition: color .15s ease; cursor: pointer; }
.nav-link:hover { color: #fff; }
html[lang="ar"] .nav-link, html[lang="ar"] .brand__sub { letter-spacing: 0; }

/* language switcher */
.lang { display: inline-flex; border: 1px solid var(--rule-strong); }
.lang__btn {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono);
  background: none; border: none; color: rgba(255,255,255,0.55); cursor: pointer;
  padding: 6px 9px; transition: background .15s ease, color .15s ease; border-inline-end: 1px solid var(--rule);
}
.lang__btn:last-child { border-inline-end: none; }
.lang__btn:hover { color: #fff; }
.lang__btn[aria-pressed="true"] { background: var(--color-orange); color: #000; font-weight: 600; }

.nav__toggle { display: none; background: none; border: 1px solid var(--rule-strong); color: #fff; width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle svg { width: 20px; height: 20px; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--rule); }
/* Desktop: headline + body stack on the left, phone spans both rows on the right. */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "head phone" "body phone";
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 0;
  align-items: start;
}
.hero__head { grid-area: head; }
.hero__body { grid-area: body; }
.hero .phone-wrap { grid-area: phone; align-self: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); }
.hero h1 .accent { color: var(--color-orange); }
.hero__lead { margin-top: 26px; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; border-top: 1px solid var(--rule); }
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta .k { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--weight-bold); line-height: 1; }
.hero__meta .l { font-size: 10px; text-transform: uppercase; color: var(--text-muted); }
html[lang="ar"] .hero__meta .l { letter-spacing: 0; }

/* phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 300px; max-width: 78vw; aspect-ratio: 300 / 620;
  background: #000; border: 2px solid #14193f; border-radius: 30px;
  padding: 10px; box-shadow: var(--shadow-lg); position: relative;
}
.phone::before { /* speaker notch */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 5px; border-radius: 3px; background: #1c2150; z-index: 3;
}
.phone__screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--color-navy); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__badge { position: absolute; bottom: -14px; inset-inline-start: -14px; z-index: 4; }

/* ─── Generic two-column block ──────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.split--narrow-text { grid-template-columns: 0.9fr 1.1fr; }

.h2 { font-size: clamp(28px, 4vw, 48px); }
.h3 { font-size: clamp(20px, 2.4vw, 28px); }

/* fact tiles */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.fact { background: var(--color-navy); padding: 26px 22px; }
.fact .k { font-family: var(--font-mono); font-size: clamp(24px, 3vw, 34px); font-weight: var(--weight-bold); line-height: 1; color: var(--color-orange); }
.fact .l { font-size: var(--text-xs); text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }
html[lang="ar"] .fact .l { letter-spacing: 0; }

/* topic chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: var(--text-xs); text-transform: uppercase; color: rgba(255,255,255,0.82); border: 1px solid var(--rule-strong); padding: 7px 12px; }
html[lang="ar"] .chip { letter-spacing: 0; }

/* feature list */
.flist { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.fitem { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.fitem__no { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-orange); font-weight: 700; padding-top: 2px; }
.fitem h4 { font-size: var(--text-md); text-transform: uppercase; letter-spacing: var(--tracking-mono); margin-bottom: 5px; }
.fitem p { color: var(--text-muted); font-size: var(--text-base); line-height: 1.55; }
html[lang="ar"] .fitem h4 { letter-spacing: 0; }

/* dual screenshot column */
.shots { display: flex; gap: 16px; justify-content: center; }
.shot { width: 210px; max-width: 42vw; aspect-ratio: 210 / 440; background: #000; border: 2px solid #14193f; border-radius: 24px; padding: 8px; box-shadow: var(--shadow-md); }
.shot:nth-child(2) { margin-top: 36px; }
.shot__screen { width: 100%; height: 100%; border-radius: 17px; overflow: hidden; }
.shot__screen img { width: 100%; height: 100%; object-fit: cover; }

/* ─── White section (How it works) ──────────────────────────────── */
.section--light { background: var(--color-white); color: var(--color-black); }
.section--light .eyebrow { color: var(--color-orange); }
.section--light .lead, .section--light .muted { color: rgba(0,0,0,0.6); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.12); margin-top: 48px; }
.step { background: var(--color-white); padding: 36px 30px; }
.step__no { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--color-orange); }
.step h4 { font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-mono); margin: 18px 0 10px; }
.step p { color: rgba(0,0,0,0.62); font-size: var(--text-base); line-height: 1.55; }
html[lang="ar"] .step h4 { letter-spacing: 0; }

/* ─── Waitlist band ─────────────────────────────────────────────── */
.band { background: var(--color-black); border-block: 1px solid var(--rule); }
.band__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form .field { min-width: 240px; flex: 1; }
.form-note { font-size: var(--text-xs); color: var(--text-muted); margin-top: 14px; line-height: 1.5; }

/* ─── Support form ──────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.support-ok { border: 1px solid var(--color-orange); background: rgba(255,106,0,0.07); padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.support-ok .check { width: 34px; height: 34px; flex-shrink: 0; background: var(--color-orange); color: #000; display: flex; align-items: center; justify-content: center; font-size: 20px; }
textarea.ta {
  width: 100%; min-height: 130px; resize: vertical; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15); color: #fff; caret-color: var(--color-orange);
  font-family: var(--font-mono); letter-spacing: var(--tracking-mono); font-size: var(--text-base);
  padding: 12px; border-radius: 0; outline: none; transition: border-color .15s ease;
}
textarea.ta:focus { border-color: var(--color-orange); }
.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-row { border-top: 1px solid var(--rule); padding-top: 16px; }
.contact-row .l { font-size: 10px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-row .v { font-size: var(--text-md); }
html[lang="ar"] .contact-row .l { letter-spacing: 0; }

/* ─── Footer ────────────────────────────────────────────────────── */
.footer { background: #000; border-top: 1px solid var(--rule); padding-block: 64px 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__word { font-family: var(--font-display); font-size: clamp(64px, 12vw, 150px); line-height: 0.86; letter-spacing: 0.01em; color: #fff; }
.footer__tag { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; margin-top: 6px; }
.footer-col h5 { font-size: 10px; text-transform: uppercase; color: var(--color-orange); letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col .lk { font-size: var(--text-base); color: rgba(255,255,255,0.66); cursor: pointer; transition: color .15s ease; }
.footer-col a:hover, .footer-col .lk:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule); }
.footer__bottom span { font-size: var(--text-xs); color: var(--text-muted); }
html[lang="ar"] .footer__tag, html[lang="ar"] .footer-col h5, html[lang="ar"] .footer__bottom span { letter-spacing: 0; }

/* ─── Cookie banner ─────────────────────────────────────────────── */
.cookie { position: fixed; inset-inline: 0; bottom: 0; z-index: 200; background: #000; border-top: 2px solid var(--color-orange); }
.cookie__inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 20px; }
.cookie__text { font-size: var(--text-base); color: rgba(255,255,255,0.78); max-width: 64ch; line-height: 1.55; }
.cookie__text a { color: var(--color-orange); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Legal page view ───────────────────────────────────────────── */
.legal { padding-block: clamp(48px, 6vw, 96px) 96px; }
.legal__head { border-bottom: 1px solid var(--rule); padding-bottom: 28px; margin-bottom: 40px; }
.legal__back { font-size: var(--text-xs); text-transform: uppercase; color: var(--text-muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 22px; }
.legal__back:hover { color: var(--color-orange); }
.legal h1 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: var(--tracking-tight); line-height: 1.05; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: var(--text-xl); text-transform: uppercase; letter-spacing: var(--tracking-mono); margin: 38px 0 14px; color: #fff; }
.legal__body h3 { font-size: var(--text-md); text-transform: uppercase; margin: 24px 0 8px; color: rgba(255,255,255,0.9); }
.legal__body p, .legal__body li { color: rgba(255,255,255,0.74); font-size: var(--text-base); line-height: 1.7; margin-bottom: 12px; }
.legal__body ul { padding-inline-start: 22px; margin-bottom: 12px; }
.legal__body a { color: var(--color-orange); text-decoration: underline; }
.legal__body strong { color: #fff; font-weight: 600; }
.legal__notice { border: 1px solid var(--color-orange); background: rgba(255,106,0,0.07); padding: 16px 20px; margin-bottom: 36px; font-size: var(--text-base); line-height: 1.6; color: rgba(255,255,255,0.85); }
.legal__ph { color: var(--color-orange); background: rgba(255,106,0,0.12); padding: 1px 6px; }
html[lang="ar"] .legal__body h2, html[lang="ar"] .legal__body h3 { letter-spacing: 0; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* On phones: headline first, then the app screenshot, then the body copy + CTAs. */
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "body"; row-gap: 32px; column-gap: 0; }
  .hero__body .hero__lead { margin-top: 0; }
  .split, .split--narrow-text { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .band__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: var(--nav-h); inset-inline: 0; background: #000;
    border-bottom: 1px solid var(--rule); padding: 24px var(--gutter);
  }
  .nav__toggle { display: inline-flex; }
  .facts, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .shots { gap: 12px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* entrance animation (gated so print/reduced-motion show content) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
}

/* Prerendered (no-JS / pre-hydration) controls — React replaces these on load.
   Kept lightweight so the static HTML still looks intentional for crawlers
   and visitors without JavaScript. */
a.lang__btn { text-decoration: none; }
a.lang__btn[aria-current="page"] { background: var(--color-orange); color: #000; font-weight: 600; }
.btn-static {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: var(--tracking-mono); text-decoration: none;
  padding: 14px 22px; background: var(--color-orange); color: #000; font-weight: 600;
}
.btn-static + .btn-static { background: none; color: #fff; border: 1px solid var(--rule-strong); }
