/* =========================================================
   Uns Chat — Official Website
   Multi-page · Pure CSS3 · no frameworks
   Brand: Violet #9466F3 · Electric Teal #1ACCFF
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f0ff;
  --bg-glow-1: rgba(148, 102, 243, 0.12);
  --bg-glow-2: rgba(26, 204, 255, 0.10);
  --surface: #ffffff;
  --surface-2: #f4f1fb;
  --surface-3: #ece6fa;
  --text: #181220;
  --text-2: #5d5570;
  --text-3: #7b7290;
  --border: #e7e1f3;
  --border-strong: #d8cdf0;

  --accent: #9466f3;
  --accent-2: #1accff;
  --accent-soft: rgba(148, 102, 243, 0.14);
  --accent-contrast: #ffffff;
  --on-accent: #ffffff;

  --success: #22c55e;
  --danger: #ff3b30;
  --warning: #f59e0b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(24, 18, 32, 0.06);
  --shadow: 0 6px 24px -8px rgba(24, 18, 32, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(24, 18, 32, 0.28);
  --shadow-accent: 0 12px 28px -10px var(--accent);

  /* App (phone) theme — light */
  --app-bg: #eef0fa;
  --app-surface: #ffffff;
  --app-surface-2: #f3f0fa;
  --app-text: #181220;
  --app-text-2: #6b6280;
  --app-text-3: #7b7290;
  --app-border: #e7e1f3;
  --app-bubble-in: #ffffff;
  --app-bubble-out: linear-gradient(135deg, var(--accent), var(--accent-2));
  --app-composer: rgba(255, 255, 255, 0.92);
  --app-wallpaper: linear-gradient(180deg, #ece7fb 0%, #eef0fa 100%);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0a16;
  --bg-glow-1: rgba(148, 102, 243, 0.18);
  --bg-glow-2: rgba(26, 204, 255, 0.12);
  --surface: #14121f;
  --surface-2: #1c1930;
  --surface-3: #262140;
  --text: #f1eefb;
  --text-2: #a89fc4;
  --text-3: #8f86ae;
  --border: #262140;
  --border-strong: #322b52;

  --accent: #a98bf7;
  --accent-2: #35d4ff;
  --accent-soft: rgba(169, 139, 247, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65);

  --app-bg: #0e0d1a;
  --app-surface: #16142a;
  --app-surface-2: #1d1936;
  --app-text: #f0edfb;
  --app-text-2: #a49bc2;
  --app-text-3: #7d74a3;
  --app-border: #262140;
  --app-bubble-in: #1e1a38;
  --app-composer: rgba(22, 20, 42, 0.92);
  --app-wallpaper: linear-gradient(180deg, #100e22 0%, #0e0d1a 100%);
}

/* ---------- Accents (site theme picker) ---------- */
[data-accent="violet"] { --accent: #9466f3; --accent-2: #1accff; --accent-soft: rgba(148, 102, 243, 0.14); }
[data-accent="indigo"] { --accent: #6366f1; --accent-2: #8b5cf6; --accent-soft: rgba(99, 102, 241, 0.14); }
[data-accent="purple"] { --accent: #a855f7; --accent-2: #d946ef; --accent-soft: rgba(168, 85, 247, 0.16); }
[data-accent="teal"]   { --accent: #0d9488; --accent-2: #2dd4bf; --accent-soft: rgba(13, 148, 136, 0.14); }
[data-accent="green"]  { --accent: #16a34a; --accent-2: #84cc16; --accent-soft: rgba(22, 163, 74, 0.14); }
[data-accent="orange"] { --accent: #ea580c; --accent-2: #fbbf24; --accent-soft: rgba(234, 88, 12, 0.14); }
[data-accent="pink"]   { --accent: #db2777; --accent-2: #f472b6; --accent-soft: rgba(219, 39, 119, 0.14); }

/* Arabic typography */
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "Tajawal", "Cairo", -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="ar"] body { line-height: 1.85; letter-spacing: 0; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 30rem at 8% -6%, var(--bg-glow-1), transparent 60%),
    radial-gradient(40rem 28rem at 100% 12%, var(--bg-glow-2), transparent 60%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 999px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rtl-inline { direction: rtl; unicode-bidi: isolate; font-weight: 600; color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { box-shadow: 0 16px 34px -10px var(--accent); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color .5s ease, border-color .5s ease;
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #9466f3, #1accff);
  box-shadow: var(--shadow-accent);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav__link {
  padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: .82rem; font-weight: 600;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.lang-pill:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.lang-pill svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero (home) ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.1rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 22px 0 18px;
}
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.25; }
.hero__sub {
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none; margin: 0; padding: 0;
  font-size: .9rem; font-weight: 500; color: var(--text-2);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.tick {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.tick svg { width: 12px; height: 12px; }

.hero__phone { display: flex; align-items: center; justify-content: center; gap: 0; position: relative; padding: 20px 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero__inner { max-width: 760px; margin-inline: auto; }
.page-hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 18px 0 16px;
}
html[lang="ar"] .page-hero__title { letter-spacing: 0; line-height: 1.35; }
.page-hero__sub { font-size: 1.08rem; color: var(--text-2); max-width: 58ch; margin-inline: auto; }
.page-hero__sub strong { color: var(--text); }

.breadcrumb {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-3);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-3); opacity: .7; }

/* ---------- Phone mockup ---------- */
.hero__phone {
  display: flex;
  gap: 0;
  position: relative;
  overflow: visible;
}
.hero__phone .phone {
  flex-shrink: 0;
}
.hero__phone .phone--theme-light {
  z-index: 2;
  transform: rotate(-3deg);
}
.hero__phone .phone--theme-dark {
  z-index: 1;
  margin-left: -30px;
  margin-top: 30px;
  transform: rotate(3deg);
  opacity: .92;
}
.phone {
  --phone-w: 302px;
  --phone-h: 612px;
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(160deg, #3a3f4a, #17181d 60%, #0c0d11);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 30px 70px -24px rgba(16,24,40,.5),
    var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute; inset: 2.5px;
  border-radius: 45px;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.phone--large { --phone-w: 320px; --phone-h: 648px; }

.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
  transition: background-color .5s ease;
}
.phone__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone__island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  border-radius: 999px;
  background: #000;
  z-index: 40;
  display: flex; align-items: center; justify-content: flex-end; padding-inline-end: 9px;
}
.phone__island-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3a55, #0b1020 70%);
  box-shadow: 0 0 4px rgba(26,204,255,.35) inset;
}

.phone__statusbar {
  position: relative;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px 8px;
  color: var(--app-text);
  font-size: .8rem; font-weight: 600;
}
.sb__icons { display: flex; align-items: center; gap: 5px; }
.sb__svg { width: 17px; height: 12px; }

.phone__home {
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 4px;
  border-radius: 999px;
  background: var(--app-text-3);
  opacity: .85;
  z-index: 40;
}

/* ---------- App (chats list) ---------- */
.app--chats { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px 6px;
}
.app__title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--app-text); }
.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--accent-soft); color: var(--accent);
}
.icon-btn svg { width: 20px; height: 20px; }

.chats__search {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 16px 12px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--app-surface-2);
  color: var(--app-text-3);
}
.chats__search svg { width: 16px; height: 16px; }
.chats__search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: .85rem; color: var(--app-text);
}
.chats__list { flex: 1; overflow: hidden; }

.chat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  transition: background-color .2s ease;
}
.chat-row:hover { background: var(--app-surface-2); }
.chat-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-row__name { font-size: .9rem; font-weight: 600; color: var(--app-text); }
.chat-row__preview {
  font-size: .78rem; color: var(--app-text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.chat-row__preview--rtl { direction: rtl; unicode-bidi: isolate; }
.chat-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-row__time { font-size: .7rem; color: var(--app-text-3); }
.badge {
  min-width: 19px; height: 19px;
  padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .66rem; font-weight: 700;
}
.badge--muted { background: var(--app-text-3); color: var(--app-bg); }

/* Avatars */
.avatar {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .02em;
  background-size: cover;
  background-position: center;
  color: transparent;
}
.avatar--sm { width: 32px; height: 32px; font-size: .6rem; }
.avatar--topbar { width: 40px; height: 40px; font-size: .68rem; }
.avatar--call { width: 132px; height: 132px; font-size: 2.4rem; box-shadow: 0 0 0 6px rgba(255,255,255,.12); }

.avatar--sarah { background-color: #f472b6; background-image: url('../images/avatars/sarah.jpg'); }
.avatar--omar { background-color: #38bdf8; background-image: url('../images/avatars/omar.jpg'); }
.avatar--nadia { background-color: #34d399; background-image: url('../images/avatars/nadia.jpg'); }
.avatar--group { background-color: #a855f7; background-image: url('../images/avatars/group.jpg'); font-size: 1rem; }
.avatar--you { background-color: #64748b; background-image: url('../images/avatars/you.jpg'); font-size: .6rem; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.dot--online { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); animation: onlinePulse 2.4s ease-in-out infinite; }

/* ---------- App tabs ---------- */
.app__tabs {
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 22px;
  border-top: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface) 80%, transparent);
  backdrop-filter: blur(10px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: none;
  font-size: .62rem; font-weight: 500;
  color: var(--app-text-3);
  transition: color .2s ease;
}
.tab svg { width: 22px; height: 22px; }
.tab:hover { color: var(--app-text-2); }
.tab.is-active { color: var(--accent); }

/* ---------- Chat screen ---------- */
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat--preview { background: var(--app-wallpaper); }

.chat__topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface) 86%, transparent);
  backdrop-filter: blur(12px);
  z-index: 5;
}
.topbar__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: transparent; color: var(--accent);
  transition: background-color .2s ease;
}
.topbar__icon:hover { background: var(--accent-soft); }
.topbar__icon svg { width: 21px; height: 21px; }
.topbar__meta { display: flex; flex-direction: column; line-height: 1.25; margin-inline-end: auto; min-width: 0; }
.topbar__name { font-size: .88rem; font-weight: 700; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__status { font-size: .7rem; color: var(--success); display: flex; align-items: center; gap: 5px; font-weight: 500; }

.chat__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  background: var(--app-wallpaper);
}
.js-live-phone .chat__scroll { overflow-y: auto; scrollbar-width: none; }
.js-live-phone .chat__scroll::-webkit-scrollbar { display: none; }

.chat__day { align-self: center; margin: 4px 0 8px; }
.chat__day span {
  font-size: .66rem; font-weight: 600; color: var(--app-text-2);
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  padding: 3px 12px; border-radius: 999px;
}

/* Messages */
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: bubbleIn .4s cubic-bezier(.2,.8,.3,1) both; }
.msg--in { align-self: flex-start; padding-inline-end: 30px; }
.msg--out { align-self: flex-end; padding-inline-start: 40px; }

.bubble {
  position: relative;
  max-width: 100%;
  padding: 8px 12px 6px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-size: .82rem;
  line-height: 1.45;
}
.bubble p { white-space: pre-wrap; word-break: break-word; }
.bubble__time {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px;
  float: right;
  margin: 2px -2px -2px 8px;
  font-size: .6rem;
  line-height: 1;
}
.ticks { width: 14px; height: 10px; }

.bubble--in {
  background: var(--app-bubble-in);
  color: var(--app-text);
  border-end-end-radius: 4px;
  border: 1px solid var(--app-border);
}
.bubble--in .bubble__time { color: var(--app-text-3); }

.bubble--out {
  background: var(--app-bubble-out);
  color: var(--on-accent);
  border-end-start-radius: 4px;
}
.bubble--out .bubble__time { color: rgba(255,255,255,.85); }
[data-theme="dark"] .bubble--out .bubble__time { color: rgba(255,255,255,.72); }

/* Reply inside bubble */
.reply {
  display: flex; gap: 8px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}
[data-theme="dark"] .reply { background: rgba(255,255,255,.1); }
.bubble--out .reply { background: rgba(255,255,255,.18); }
.reply__bar { width: 3px; border-radius: 3px; background: var(--accent); flex-shrink: 0; }
.bubble--out .reply__bar { background: rgba(255,255,255,.9); }
.reply__body { display: flex; flex-direction: column; min-width: 0; }
.reply__name { font-size: .7rem; font-weight: 700; color: var(--accent); }
.bubble--out .reply__name { color: #fff; }
.reply__text { font-size: .72rem; color: var(--app-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble--out .reply__text { color: rgba(255,255,255,.85); }

/* Media bubble */
.bubble--media { padding-bottom: 4px; }
.media {
  display: flex; flex-direction: column; gap: 6px;
  width: min(100%, 210px);
}
.media__thumb {
  position: relative;
  height: 120px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 70% 78%, rgba(255,201,120,.95) 0 12%, transparent 13%),
    linear-gradient(160deg, #2b3a67, #7b2ff7 55%, #f653a6);
  display: grid; place-items: center;
  overflow: hidden;
}
.media__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35));
}
.media__play {
  position: relative; z-index: 1;
  width: 34px; height: 34px;
  padding: 9px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
}
.media__meta { display: flex; flex-direction: column; padding: 0 2px 4px; }
.media__name { font-size: .74rem; font-weight: 600; color: var(--app-text); }
.media__size { font-size: .62rem; color: var(--app-text-3); }

/* Voice bubble */
.voice {
  display: flex; align-items: center; gap: 10px;
  width: 190px;
  padding: 4px 0 6px;
}
.voice__play {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: none;
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .25s ease;
}
.voice__play:hover { transform: scale(1.06); }
.voice__play svg { width: 16px; height: 16px; margin-inline-start: 2px; }
.voice__wave { display: flex; align-items: center; gap: 2.5px; flex: 1; height: 26px; }
.voice__wave i { display: block; width: 3px; border-radius: 2px; background: var(--app-text-3); height: 40%; }
.voice__wave i:nth-child(3n+1) { height: 90%; }
.voice__wave i:nth-child(3n+2) { height: 55%; }
.voice__wave i:nth-child(4n) { height: 70%; }
.voice__wave i:nth-child(1), .voice__wave i:nth-child(2) { background: var(--accent); }
.voice__time { font-size: .66rem; font-weight: 500; color: var(--app-text-2); }

/* Typing indicator */
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; }
.typing__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--app-text-3);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing__dot:nth-child(2) { animation-delay: .15s; }
.typing__dot:nth-child(3) { animation-delay: .3s; }

/* Composer */
.chat__composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 9px 12px 16px;
  border-top: 1px solid var(--app-border);
  background: var(--app-composer);
  backdrop-filter: blur(12px);
}
.composer__btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  transition: transform .18s ease, background-color .2s ease;
}
.composer__btn:hover { transform: scale(1.05); }
.composer__btn svg { width: 20px; height: 20px; }
.composer__input {
  flex: 1;
  min-height: 38px;
  max-height: 96px;
  overflow-y: auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--app-surface-2);
  color: var(--app-text);
  font: inherit; font-size: .82rem; line-height: 1.4;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}
.composer__input:empty::before { content: attr(data-placeholder); color: var(--app-text-3); pointer-events: none; }
.composer__send { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.composer__send .send-arrow { display: none; }
.composer__send.has-text .send-arrow { display: block; }
.composer__send.has-text .send-mic { display: none; }

/* ---------- Trust bar ---------- */
.trust { padding: 40px 0 16px; }
.trust__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.trust__item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .86rem; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.trust__icon { color: var(--accent); }
.trust__icon svg { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0 40px; }
.section--tight { padding: 48px 0 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; margin: 16px 0 12px; }
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.4; }
.section-sub { font-size: 1.06rem; color: var(--text-2); }

.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--accent-soft);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature__text { font-size: .92rem; color: var(--text-2); }

/* ---------- Real screenshots gallery ---------- */
.shots { padding: 72px 0 40px; }
.shots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  justify-items: center;
}
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot__label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.device {
  position: relative;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a3f4a, #17181d 60%, #0c0d11);
  box-shadow: 0 24px 50px -22px rgba(16,24,40,.45), var(--shadow-lg);
}
.device::before {
  content: "";
  position: absolute; inset: 2px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.device__screen {
  position: relative;
  width: 240px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--app-bg);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; }
.device__screen::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  pointer-events: none;
}
.shot--wide .device__screen { width: 300px; height: 400px; object-position: top; }
.shot__desc { font-size: .86rem; color: var(--text-3); max-width: 300px; text-align: center; }

/* ---------- CSS app previews (no screenshots) ---------- */
.mock {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--app-bg);
}
.mock__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 6px;
}
.mock__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--app-text); }
.mock__head-spacer { width: 36px; flex-shrink: 0; }
.mock .chats__search { margin-top: 2px; }
.chats__search-ph { font-size: .85rem; color: var(--app-text-3); }
.chat-row__mic { width: 13px; height: 13px; color: var(--app-text-3); flex-shrink: 0; }

.mock__profile {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}
.mock__profile-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mock__profile-name {
  display: flex; align-items: center; gap: 6px;
  font-size: .95rem; font-weight: 700; color: var(--app-text);
}
.mock__profile-email { font-size: .75rem; color: var(--app-text-3); }
.mock__verified {
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
}
.mock__verified svg { width: 10px; height: 10px; }

.mock__group {
  margin: 12px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}
.mock__row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.mock__row + .mock__row { border-top: 1px solid var(--app-border); }
.mock__row-icon {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  flex-shrink: 0;
}
.mock__row-icon svg { width: 16px; height: 16px; }
.mock__row-label {
  flex: 1; min-width: 0;
  font-size: .85rem; font-weight: 600; color: var(--app-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__row-value {
  display: flex; align-items: center; gap: 3px;
  font-size: .76rem; color: var(--app-text-3);
}
.mock__chev { width: 16px; height: 16px; color: var(--app-text-3); flex-shrink: 0; }

.mock__switch {
  position: relative;
  width: 40px; height: 24px; border-radius: 999px;
  background: var(--app-text-3);
  transition: background-color .2s ease;
  flex-shrink: 0;
}
.mock__switch::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.mock__switch--on { background: var(--accent); }
.mock__switch--on::after { transform: translateX(16px); }
[dir="rtl"] .mock__switch--on::after { transform: translateX(-16px); }
[dir="rtl"] .mock__chev { transform: scaleX(-1); }
[dir="rtl"] .mock__head .icon-btn svg { transform: scaleX(-1); }

.mock__chip {
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}
.mock__note {
  margin: auto 16px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .75rem;
  color: var(--app-text-2);
  background: var(--app-surface-2);
  text-align: center;
}

.mock__fwd-msg {
  margin: 10px 14px 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-left: 3px solid var(--accent);
}
.mock__fwd-from {
  display: block;
  margin-bottom: 3px;
  font-size: .72rem; font-weight: 700; color: var(--accent);
}
.mock__fwd-text { font-size: .82rem; color: var(--app-text-2); }
.mock__check {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  flex-shrink: 0;
}
.mock__check--on { background: var(--accent); color: var(--on-accent); }
.mock__check--off { border: 2px solid var(--app-text-3); }
.mock__check svg { width: 12px; height: 12px; }
.mock__sendbar {
  margin-top: auto;
  padding: 10px 14px 14px;
  display: flex; justify-content: flex-end;
}
.mock__send {
  padding: 7px 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: .78rem; font-weight: 700;
}
[dir="rtl"] .mock__fwd-msg { border-left: 1px solid var(--app-border); border-right: 3px solid var(--accent); }

/* ---------- Calls showcase ---------- */
.calls__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.call-card { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.phone--call { animation: phoneFloat 7s ease-in-out infinite; }
.call-card__caption { text-align: center; max-width: 420px; }
.call-card__caption h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.call-card__caption p { font-size: .94rem; color: var(--text-2); }

/* Voice call screen */
.call {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 34px 20px 46px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    var(--app-wallpaper);
}
.call__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-surface) 80%, transparent);
  border: 1px solid var(--app-border);
  color: var(--app-text-2);
  font-size: .68rem; font-weight: 600;
}
.call__center { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -10px; }
.call__avatar-ring {
  padding: 6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  animation: spin 6s linear infinite;
}
.call__name { font-size: 1.3rem; font-weight: 800; color: var(--app-text); letter-spacing: -.01em; }
.call__status { font-size: .8rem; font-weight: 500; color: var(--app-text-2); }
.call__controls { display: flex; align-items: center; gap: 26px; }
.call__hint { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--app-text-3); }

.cbtn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: none; border-radius: 50%;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: 0 6px 18px -6px rgba(16,24,40,.35);
  transition: transform .18s ease, background-color .2s ease;
}
.cbtn svg { width: 22px; height: 22px; }
.cbtn:hover { transform: scale(1.07); }
.cbtn--end { width: 62px; height: 62px; background: var(--danger); color: #fff; }
.cbtn--end svg { width: 26px; height: 26px; }

/* Video call screen */
.video {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.video__remote {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #12224e 0%, #3b2b6d 45%, #7b3a6e 72%, #b34a5f 100%);
  overflow: hidden;
}
.video__sun {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9b8, #ff9d5c 70%);
  box-shadow: 0 0 60px rgba(255, 157, 92, .5);
  animation: sunPulse 5s ease-in-out infinite;
}
.video__mountain {
  position: absolute; left: -10%; right: -10%; bottom: -4%;
  height: 46%;
  background: linear-gradient(180deg, #1b1740 0%, #0d0a24 100%);
  clip-path: polygon(0 62%, 14% 38%, 26% 56%, 40% 26%, 54% 52%, 68% 20%, 82% 50%, 94% 34%, 100% 48%, 100% 100%, 0 100%);
  opacity: .9;
}
.video__mountain--front {
  height: 34%;
  background: linear-gradient(180deg, #0e0c24, #06040f);
  opacity: .95;
}
.video__name {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  color: #fff;
  font-size: .74rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.video__local {
  position: absolute;
  top: 14px; right: 14px;
  width: 88px; height: 118px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #f472b6, #a855f7 60%, #6366f1);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.6);
  display: grid; place-items: center;
  animation: pipIn .5s cubic-bezier(.2,.8,.3,1.2) both;
}
.video__local-avatar { color: #fff; font-weight: 800; font-size: .9rem; }
.video__controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 16px 12px 40px;
}
.video__controls .cbtn { background: rgba(20,22,34,.55); color: #fff; backdrop-filter: blur(8px); }
.video__controls .cbtn--end { background: var(--danger); }

/* ---------- Themes showcase ---------- */
.themes__controls {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 20px;
  margin-bottom: 44px;
}
.theme-pills {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border: none; border-radius: 999px;
  background: transparent; color: var(--text-2);
  font-size: .86rem; font-weight: 600;
  transition: background-color .25s ease, color .25s ease;
}
.pill svg { width: 16px; height: 16px; }
.pill:hover { color: var(--text); }
.pill.is-active { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); }

.accent-picker { display: flex; align-items: center; gap: 10px; }
.accent-picker__label { font-size: .82rem; font-weight: 600; color: var(--text-2); margin-inline-end: 2px; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active {
  border-color: var(--surface);
  box-shadow: 0 0 0 2px var(--swatch), var(--shadow);
}

.themes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 32px;
  justify-items: center;
}
.themes__cell { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.themes__cell-label {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
}
.themes__grid .phone { box-shadow: 0 22px 50px -22px rgba(16,24,40,.42), var(--shadow-lg); }

/* ---------- Split / feature detail ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}
.split--rev .split__media { order: 2; }
.split__media { display: grid; place-items: center; }
.split__copy h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.split__copy p { font-size: 1rem; color: var(--text-2); margin-bottom: 12px; }
.split__copy .lead { color: var(--text); font-size: 1.05rem; }

.check-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.check-list .tick { margin-top: 2px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spec {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.spec__k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.spec__v { font-size: 1rem; font-weight: 600; color: var(--text); }
.spec__d { font-size: .82rem; color: var(--text-3); margin-top: 4px; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  position: relative;
  padding-inline-start: 52px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: .95rem;
}
.steps strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.steps p { font-size: .92rem; color: var(--text-2); }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .92rem;
}
.callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.callout--info { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-soft); }
.callout--info svg { color: var(--accent); }
.callout--warn { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.callout--warn svg { color: var(--warning); }
.callout--confirm { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.callout--confirm svg { color: var(--danger); }
.callout b { display: block; margin-bottom: 2px; }
.callout p { color: var(--text-2); }

/* ---------- Prose (legal / long form) ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose > p { font-size: .98rem; color: var(--text-2); margin: 0 0 18px; }
.prose > p strong { color: var(--text); }
.prose h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  margin: 42px 0 14px; padding-top: 6px;
  display: flex; align-items: baseline; gap: 12px;
}
.prose h2 .sec-num {
  flex-shrink: 0;
  min-width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .9rem;
}
html[lang="ar"] .prose h2 { letter-spacing: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 8px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 24px; }
.prose li { font-size: .95rem; color: var(--text-2); margin-bottom: 8px; }
.prose li strong { color: var(--text); }
.prose .sub { font-size: .85rem; color: var(--text-3); margin: -8px 0 8px; }
.prose .lead { font-size: 1.05rem; color: var(--text); margin-bottom: 24px; }

.legal-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.legal-head__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 16px;
}
.legal-head__meta span {
  font-size: .78rem; color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto 16px;
}
.toc__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin-bottom: 8px; }
.toc a { color: var(--text-2); font-size: .9rem; }
.toc a:hover { color: var(--accent); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Data inventory table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  max-width: 800px;
  margin-inline: auto;
}
table.inventory { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
table.inventory caption { text-align: start; padding: 16px 20px; font-size: .8rem; color: var(--text-3); border-bottom: 1px solid var(--border); }
table.inventory th, table.inventory td {
  text-align: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.inventory th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
table.inventory tr:last-child td { border-bottom: 0; }
table.inventory td strong { display: block; color: var(--text); }
table.inventory td span { color: var(--text-2); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.tag--yes { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.tag--no { background: var(--surface-3); color: var(--text-3); }
.tag--conf { background: color-mix(in srgb, var(--warning) 18%, transparent); color: #b45309; }
[data-theme="dark"] .tag--conf { color: var(--warning); }

/* ---------- FAQ accordion ---------- */
.faq__list { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  border: none; background: none;
  font-size: 1rem; font-weight: 600; color: var(--text);
  text-align: start;
  transition: color .2s ease;
}
.faq__q:hover { color: var(--accent); }
.faq__q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a-inner { padding: 0 22px 20px; font-size: .95rem; color: var(--text-2); }
.faq__a-inner p { margin-bottom: 10px; }
.faq__a-inner p:last-child { margin-bottom: 0; }
.faq__a-inner ul { margin: 0 0 10px; padding-inline-start: 22px; }
.faq__a-inner li { margin-bottom: 6px; }

/* ---------- Support ---------- */
.support__search { max-width: 640px; margin: 0 auto 44px; position: relative; }
.support__search svg {
  position: absolute; inset-inline-start: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-3);
}
.support__search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit; font-size: .98rem;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.support__search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
html[dir="rtl"] .support__search input { padding-inline-start: 48px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.support-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform .22s ease, box-shadow .3s ease, border-color .3s ease;
}
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.support-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.support-card__icon svg { width: 22px; height: 22px; }
.support-card h3 { font-size: 1.02rem; font-weight: 700; }
.support-card p { font-size: .9rem; color: var(--text-2); flex: 1; }
.support-card__link { font-size: .86rem; font-weight: 600; color: var(--accent); }

/* ---------- Forms ---------- */
.form-card {
  max-width: 640px;
  margin-inline: auto;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit; font-size: .94rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .field__error { font-size: .8rem; color: var(--danger); display: none; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); }
.field.is-error .field__error { display: block; }
.form__note { font-size: .82rem; color: var(--text-3); text-align: center; margin-top: 16px; }
.form__status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .9rem;
  background: var(--accent-soft); color: var(--accent);
}
.form__status.is-visible { display: block; }
.form__status.is-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }

/* ---------- Download ---------- */
.download__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.download__card::before, .download__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.download__card::before { width: 320px; height: 320px; top: -140px; right: -80px; background: var(--accent); }
.download__card::after { width: 280px; height: 280px; bottom: -140px; left: -60px; background: var(--accent-2); }
.download__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 18px auto 14px; max-width: 620px; position: relative; z-index: 1; }
.download__sub { font-size: 1.05rem; color: var(--text-2); max-width: 520px; margin: 0 auto 30px; position: relative; z-index: 1; }
.download__buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; }
.download__note { margin-top: 22px; font-size: .8rem; color: var(--text-3); position: relative; z-index: 1; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #0a0a16;
  color: #fff;
  border: 1px solid #000;
  transition: transform .18s ease, box-shadow .25s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn .store-btn__top { display: block; font-size: .62rem; color: rgba(255,255,255,.7); }
.store-btn .store-btn__bottom { display: block; font-size: 1rem; font-weight: 700; }
.store-btn--disabled { opacity: .6; cursor: not-allowed; }
.store-btn--disabled:hover { transform: none; box-shadow: none; }

.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand { max-width: 280px; }
.footer__tagline { margin-top: 14px; font-size: .9rem; color: var(--text-2); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer__col a { color: var(--text-2); font-size: .92rem; transition: color .2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text-3);
}
.footer__lang { direction: rtl; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: var(--text-3); }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal--visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 45%, transparent); }
  50% { box-shadow: 0 0 0 5px transparent; }
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sunPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}
@keyframes pipIn {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- RTL overrides ---------- */
[dir="rtl"] .bubble__time { float: left; margin: 2px 8px -2px -2px; }
[dir="rtl"] .video__name { left: auto; right: 16px; }
[dir="rtl"] .video__local { right: auto; left: 14px; }
[dir="rtl"] .call__hint { letter-spacing: .04em; }
[dir="rtl"] .tick svg { transform: none; }
[dir="rtl"] .form__grid { direction: rtl; }
[dir="rtl"] .chat-row__preview--rtl { direction: rtl; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__points { justify-content: center; }
  .hero__phone { justify-content: center; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .calls__grid { grid-template-columns: 1fr; }
  .themes__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--rev .split__media { order: 0; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(1180px, 100% - 32px); }
  .nav {
    position: fixed;
    top: 72px; left: 12px; right: 12px;
    flex-direction: column;
    padding: 12px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 100;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 12px 16px; }
  .nav-toggle { display: grid; }
  .site-header__actions .btn { display: none; }

  .hero { padding-top: 48px; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero__sub { font-size: .92rem; }
  .hero__phone { margin-top: 12px; }
  .hero__phone .phone { --phone-w: min(38vw, 150px); }
  .hero__phone .phone--theme-dark { margin-left: -16px; margin-top: 16px; }
  .hero__phone .phone--theme-light { transform: rotate(-2deg); }
  .hero__phone .phone--theme-dark { transform: rotate(2deg); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust__item { font-size: .78rem; }
  .features__grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { padding: 20px; }
  .feature__icon { width: 44px; height: 44px; }
  .feature__icon svg { width: 22px; height: 22px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 1.6rem; }
  .section-sub { font-size: .88rem; }
  .split { gap: 28px; }
  .download__card { padding: 40px 20px; }
  .download__title { font-size: 1.5rem; }
  .download__buttons { flex-direction: column; align-items: center; gap: 12px; }
  .download__buttons .btn { width: 100%; justify-content: center; }
  .footer__cols { gap: 32px; }
  .footer__col { gap: 8px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__legal { justify-content: center; }
  .lang-pill { padding: 7px 10px; }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 24px); padding-left: 12px; padding-right: 12px; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: 1.8rem; line-height: 1.15; }
  .hero__sub { font-size: .85rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__points { flex-direction: column; align-items: center; gap: 8px; }
  .hero__phone .phone { --phone-w: min(42vw, 140px); }
  .hero__phone .phone--theme-dark { margin-left: -12px; margin-top: 12px; }
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust__item { padding: 10px 8px; font-size: .72rem; }
  .trust__icon { width: 18px; height: 18px; }
  .trust__icon svg { width: 14px; height: 14px; }
  .features__grid { gap: 14px; }
  .feature { padding: 16px; }
  .feature__title { font-size: .95rem; }
  .feature__text { font-size: .82rem; }
  .section-head { margin-bottom: 24px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 1.35rem; }
  .download__card { padding: 32px 16px; }
  .download__title { font-size: 1.25rem; }
  .download__sub { font-size: .85rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__col a { font-size: .82rem; }
  .themes__controls { flex-direction: column; gap: 14px; }
  .theme-pills { width: 100%; justify-content: space-between; }
  .pill { padding: 8px 14px; font-size: .78rem; }
  .accent-picker { flex-wrap: wrap; justify-content: center; }
  .swatch { width: 26px; height: 26px; }
  .phone, .phone--large { --phone-w: min(86vw, 320px); --phone-h: auto; aspect-ratio: 302 / 612; }
}

@media (max-width: 360px) {
  .hero__title { font-size: 1.55rem; }
  .hero__phone .phone { --phone-w: min(44vw, 130px); }
  .hero__phone .phone--theme-dark { margin-left: -8px; margin-top: 8px; }
  .trust__inner { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .phone--call { animation: none; }
  .call__avatar-ring { animation: none; }
  .video__sun { animation: none; }
  .video__local { animation: none; }
}

/* ---------- color-mix fallbacks (older browsers) ---------- */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: rgba(245, 240, 255, 0.82); }
  [data-theme="dark"] .site-header { background: rgba(10, 10, 22, 0.82); }
  .dot--online { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  .app__tabs { background: rgba(255, 255, 255, 0.8); }
  [data-theme="dark"] .app__tabs { background: rgba(22, 20, 42, 0.8); }
  .chat__topbar { background: rgba(255, 255, 255, 0.86); }
  [data-theme="dark"] .chat__topbar { background: rgba(22, 20, 42, 0.86); }
  .call {
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(148, 102, 243, 0.26), transparent 60%),
      var(--app-wallpaper);
  }
  .call__pill { background: rgba(255, 255, 255, 0.8); }
  [data-theme="dark"] .call__pill { background: rgba(22, 20, 42, 0.8); }
  .download__card {
    background:
      radial-gradient(60% 120% at 50% 0%, rgba(148, 102, 243, 0.26), transparent 65%),
      var(--surface);
  }
  .callout--info { border-color: var(--border-strong); }
  .callout--warn { border-color: rgba(245, 158, 11, 0.5); }
  .callout--confirm { border-color: rgba(255, 59, 48, 0.45); }
  .tag--yes { background: rgba(34, 197, 94, 0.16); }
  .tag--conf { background: rgba(245, 158, 11, 0.18); }
  .form__status.is-error { background: rgba(255, 59, 48, 0.1); }
  @keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 0 0 5px transparent; }
  }
}
