/* wemo.pro — WEMO's site. Arabic, right to left; one dark/light rhythm of sections. */
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url('../fonts/plex-arabic-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2066-2069; }
@font-face { font-family: 'Plex Arabic'; font-weight: 500; font-display: swap; src: url('../fonts/plex-arabic-arabic-500.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2066-2069; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url('../fonts/plex-arabic-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2066-2069; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url('../fonts/plex-arabic-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2066-2069; }
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url('../fonts/plex-arabic-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 500; font-display: swap; src: url('../fonts/plex-arabic-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url('../fonts/plex-arabic-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url('../fonts/plex-arabic-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }

:root {
  --ink: #050f19;
  --ink-2: #0a1c2c;
  --navy: #0f2b44;
  --brand: #4491bb;
  --brand-deep: #2a6f99;
  --brand-light: #5fb6e6;
  --sky: #8fd1f5;
  --glow: #4cc0ff;
  /* The same colours as «r, g, b» for see-through tints. */
  --brand-rgb: 68, 145, 187;
  --glow-rgb: 76, 192, 255;
  --sky-rgb: 143, 209, 245;
  --deep-rgb: 42, 111, 153;
  --ink-rgb: 5, 15, 25;
  --chip-rgb: 12, 32, 50;
  --panel-1: #0f2b44;
  --panel-2: #071421;
  --panel-3: #123553;
  --final-2: #06111c;
  --grad-1: #8fd1f5;
  --grad-3: #8a9cff;
  --gold: #f3c35b;
  --paper: #f3f7fb;
  --card: #ffffff;
  --text: #0c1a28;
  --muted: #5a6b7d;
  --line: rgba(15, 43, 68, .1);
  --on-dark: #e8f2fa;
  --on-dark-muted: #9fb4c7;
  --radius: 22px;
  --shadow: 0 30px 60px -20px rgba(var(--ink-rgb), .35), 0 12px 24px -12px rgba(var(--ink-rgb), .2);
  --wrap: min(1200px, 100% - 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text); line-height: 1.75;
  font-family: 'Plex Arabic', -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.25em; height: 1.25em; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px;
  padding: 0 1.4em; border-radius: 16px; font-weight: 600; font-size: 1rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-deep)); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(var(--brand-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 20px 40px -12px rgba(var(--glow-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); box-shadow: 0 8px 20px -14px rgba(var(--ink-rgb), .4); }
.btn-small { min-height: 42px; padding: 0 1.1em; border-radius: 13px; font-size: .95rem; }

/* ——— Header ——— */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.site-header.scrolled { background: rgba(var(--ink-rgb), .78); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 18px rgba(var(--glow-rgb), .35); }
.wordmark { height: 20px; width: auto; color: #fff; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { color: var(--on-dark-muted); font-weight: 500; padding: 8px 14px; border-radius: 12px; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.menu-btn { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; inset-inline: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ——— Hero ——— */
.hero { position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden;
  background:
    radial-gradient(60% 55% at 22% 38%, rgba(var(--glow-rgb), .22), transparent 70%),
    radial-gradient(50% 60% at 85% 10%, rgba(var(--brand-rgb), .28), transparent 70%),
    radial-gradient(70% 60% at 50% 120%, rgba(var(--deep-rgb), .45), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--navy) 100%);
  padding: 150px 0 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(var(--sky-rgb), .22) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 99px; font-weight: 500; font-size: .95rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--sky); backdrop-filter: blur(8px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: 1.12; margin: 22px 0 18px; font-weight: 700; color: #fff; }
.h1-brand { display: block; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.4; font-weight: 600; color: var(--sky); margin-bottom: 10px; }
.grad { background: linear-gradient(90deg, var(--grad-1), var(--glow) 40%, var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--on-dark-muted); font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--sky); }

.stage { position: relative; min-height: 560px; }
.rings { position: absolute; inset: -10% -20% -10% -10%; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.rings i { position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(var(--sky-rgb), .35);
  animation: ring 6s var(--ease) infinite; opacity: 0; }
.rings i:nth-child(2) { animation-delay: 1.5s; } .rings i:nth-child(3) { animation-delay: 3s; } .rings i:nth-child(4) { animation-delay: 4.5s; }
@keyframes ring { 0% { transform: scale(.4); opacity: 0; } 20% { opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }

/* Laptop */
.laptop { position: relative; width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .5)); }
.laptop .lid { position: relative; background: linear-gradient(180deg, #1b2330, #0b1017); border-radius: 18px 18px 6px 6px; padding: 2.4% 2.4% 3.2%;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px #05080c; }
.laptop .lid::before { content: ''; position: absolute; top: 1%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2c3a4a; }
.laptop .screen { position: relative; border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: var(--screen-ratio, 1800 / 1067); }
.laptop .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s var(--ease); }
.laptop .base { position: relative; height: 18px; margin: 0 -7.5%; border-radius: 2px 2px 18px 18px;
  background: linear-gradient(180deg, #e3e8ee 0%, #b8c2cc 55%, #8a95a1 100%); box-shadow: inset 0 1px 0 #fff; }
.laptop .base::before { content: ''; position: absolute; top: 0; left: 50%; width: 16%; height: 7px; transform: translateX(-50%);
  border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #9aa5b0, #c8d0d8); }
.hero .laptop { position: absolute; top: 4%; inset-inline-start: 0; width: 100%; }

/* Phone */
.phone { position: relative; width: 250px; border-radius: 44px; padding: 9px; background: linear-gradient(145deg, #2b3542, #0b0f14 60%);
  box-shadow: 0 0 0 1.5px #3a4656, 0 40px 70px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone .screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--bar, #5b93bd); }
.phone .sbar { display: flex; align-items: center; justify-content: space-between; direction: ltr; height: 34px; padding: 6px 26px 0; color: #fff; font: 600 13px/1 -apple-system, 'Segoe UI', sans-serif; }
.phone .sbar::after { content: ''; position: absolute; top: 9px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 99px; }
.phone .sbar svg { height: 11px; width: auto; }
.phone .screen img { width: 100%; aspect-ratio: 591 / 1150; object-fit: cover; object-position: top; }
.hero .phone { position: absolute; bottom: -40px; inset-inline-end: -10px; width: 230px; transform: rotate(-4deg); z-index: 2; }

/* Floating glass chips */
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; color: #fff; font-weight: 500; font-size: .95rem;
  background: rgba(var(--chip-rgb), .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip small { display: block; color: var(--on-dark-muted); font-weight: 400; font-size: .8rem; line-height: 1.2; }
.chip .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-light), var(--brand-deep)); }
.chip-mic { top: 2%; inset-inline-end: 6%; }
.chip-room { bottom: 26%; inset-inline-start: -4%; animation-delay: -2s; }
.chip-safe { top: 44%; inset-inline-end: -6%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.wave b { width: 3px; border-radius: 3px; background: var(--sky); animation: wave 1.1s ease-in-out infinite; }
.wave b:nth-child(1) { height: 40%; animation-delay: -.2s; } .wave b:nth-child(2) { height: 90%; animation-delay: -.5s; }
.wave b:nth-child(3) { height: 60%; animation-delay: -.8s; } .wave b:nth-child(4) { height: 100%; animation-delay: -.1s; } .wave b:nth-child(5) { height: 50%; animation-delay: -.6s; }
@keyframes wave { 50% { transform: scaleY(.35); } }

/* Platforms strip */
.platforms { position: relative; margin-top: 90px; padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, .08); }
.platforms .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.platforms p { margin: 0; color: var(--on-dark-muted); font-weight: 500; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.platforms li { display: flex; align-items: center; gap: 9px; color: var(--on-dark); font-weight: 600; }
.platforms li svg { width: 22px; height: 22px; color: var(--sky); }
.platforms li em { font-style: normal; font-weight: 400; font-size: .8rem; color: var(--on-dark-muted); border: 1px solid rgba(255, 255, 255, .14); padding: 0 8px; border-radius: 99px; }

/* ——— Sections ——— */
section { position: relative; }
.section { padding: 120px 0; }
.section-dark { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: var(--on-dark); overflow: hidden; }
.head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.kicker { display: inline-block; font-weight: 600; color: var(--brand); letter-spacing: 0; margin-bottom: 12px; font-size: 1rem;
  padding: 4px 14px; border-radius: 99px; background: rgba(var(--brand-rgb), .1); }
.section-dark .kicker { color: var(--sky); background: rgba(var(--sky-rgb), .1); }
.head h2, .split h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
.head p, .split .lead-dark, .split .lead-light { font-size: 1.12rem; margin: 0; }
.head p { color: var(--muted); }
.section-dark .head p, .lead-dark { color: var(--on-dark-muted); }
.lead-light { color: var(--muted); }

/* Phone gallery */
.gallery { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(20px, (100vw - 1200px) / 2) 40px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; transition: transform .5s var(--ease); }
.gallery figure:nth-child(even) { transform: translateY(36px); }
.gallery .phone { width: 238px; box-shadow: 0 0 0 1.5px #3a4656, 0 30px 50px -22px rgba(var(--ink-rgb), .55); }
.gallery figcaption { margin-top: 18px; }
.gallery figcaption b { display: block; font-size: 1.08rem; }
.gallery figcaption span { color: var(--muted); font-size: .95rem; }
.gallery-hint { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.gallery-hint button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 18px -12px rgba(var(--ink-rgb), .4); transition: transform .2s; }
.gallery-hint button:hover { transform: scale(1.06); }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(var(--ink-rgb), .35); }
.card h3 { margin: 18px 0 8px; font-size: 1.22rem; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-deep)); box-shadow: 0 12px 24px -12px rgba(var(--brand-rgb), .9); }
.card .icon svg { width: 26px; height: 26px; }
.card.wide { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.card.feature-mic { background: radial-gradient(90% 80% at 80% 0%, rgba(var(--glow-rgb), .25), transparent 60%), linear-gradient(160deg, var(--panel-1), var(--panel-2));
  color: #fff; border-color: transparent; display: flex; flex-direction: column; }
.card.feature-mic p { color: var(--on-dark-muted); }
.mic-demo { margin-top: auto; padding-top: 26px; display: grid; gap: 12px; }
.speaker { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.speaker .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.speaker .meta { flex: 1; line-height: 1.35; }
.speaker .meta b { display: block; font-size: .98rem; }
.speaker .meta span { font-size: .82rem; color: var(--on-dark-muted); }
.speaker.on { border-color: rgba(var(--sky-rgb), .45); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), .1); }
.tag { font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: rgba(243, 195, 91, .16); color: var(--gold); font-weight: 600; }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rank { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: #f7fafd; }
.rank i { width: 9px; height: 9px; border-radius: 50%; }

/* Split sections (text + device) */
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; }
/* Grid children may shrink below their content (a row of tabs scrolls instead of widening the page). */
.split > *, .hero-grid > *, .bento > *, .downloads > * { min-width: 0; }
.split.reverse { grid-template-columns: 1.35fr 1fr; }
.split.reverse > .split-text { order: 2; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points li svg { flex: none; width: 24px; height: 24px; margin-top: 3px; color: var(--brand); }
.section-dark .points li svg { color: var(--sky); }
.points b { display: block; }
.points span { color: var(--muted); }
.section-dark .points span { color: var(--on-dark-muted); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { cursor: pointer; border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 13px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.tabs button[aria-selected='true'] { background: var(--text); color: #fff; border-color: var(--text); box-shadow: 0 10px 22px -14px rgba(var(--ink-rgb), .7); }
.section-dark .tabs button { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: var(--on-dark-muted); }
.section-dark .tabs button[aria-selected='true'] { background: linear-gradient(135deg, var(--brand-light), var(--brand-deep)); color: #fff; border-color: transparent; }

/* App window frame */
.window { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(15, 43, 68, .12); }
.section-dark .window { border-color: rgba(255, 255, 255, .12); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
.window .titlebar { direction: ltr; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: linear-gradient(180deg, #f4f6f9, #e7ebf0); border-bottom: 1px solid #d7dde4; }
.window .titlebar i { width: 12px; height: 12px; border-radius: 50%; }
.window .titlebar i:nth-child(1) { background: #ff5f57; } .window .titlebar i:nth-child(2) { background: #febc2e; } .window .titlebar i:nth-child(3) { background: #28c840; }
.window .titlebar span { margin: 0 auto; transform: translateX(-26px); font-size: .85rem; font-weight: 600; color: #5b6878; direction: rtl; }
.window .view { position: relative; aspect-ratio: 1800 / 1200; background: #f3f6fa; }
.window .view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s var(--ease); }
.window .view.short { aspect-ratio: 1800 / 852; }
.window .view img.out { opacity: 0; }
.laptop .screen img.out { opacity: 0; }

/* Owner panel — glow behind */
.glow-wrap { position: relative; }
.glow-wrap::before { content: ''; position: absolute; inset: 10% 5%; z-index: 0; background: radial-gradient(closest-side, rgba(var(--glow-rgb), .35), transparent);
  filter: blur(40px); }
.glow-wrap > * { position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.stat { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.stat b { display: block; font-size: 1.7rem; color: #fff; line-height: 1.2; }
.stat span { color: var(--on-dark-muted); font-size: .92rem; }

/* Protection */
.shield-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shield { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.shield svg { width: 30px; height: 30px; color: var(--sky); }
.shield h3 { margin: 14px 0 6px; font-size: 1.12rem; color: #fff; }
.shield p { margin: 0; color: var(--on-dark-muted); font-size: .97rem; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.dl:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(var(--ink-rgb), .35); }
.dl .top { display: flex; align-items: center; gap: 14px; }
.dl .logo { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #f0f5fa; color: var(--text); flex: none; }
.dl .logo svg { width: 30px; height: 30px; }
.dl h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.dl .sub { color: var(--muted); font-size: .95rem; }
.dl p { margin: 0; color: var(--muted); }
.dl .btn { margin-top: auto; }
.dl.soon .btn { background: #eef2f6; color: #7b8a99; box-shadow: none; cursor: default; pointer-events: none; }
.dl.featured { background: linear-gradient(160deg, var(--panel-1), var(--panel-2)); color: #fff; border-color: transparent; }
.dl.featured .logo { background: rgba(255, 255, 255, .08); color: #fff; }
.dl.featured .sub, .dl.featured p { color: var(--on-dark-muted); }
.badge-soon { font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: #fff4dc; color: #a26b00; margin-inline-start: auto; }
/* A card whose download went live (site.js) no longer says «قريباً». */
.dl:not(.soon) .badge-soon { display: none; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 20px 40px -30px rgba(var(--ink-rgb), .4); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }

/* Final call to action + footer */
.final { position: relative; overflow: hidden; border-radius: 32px; padding: 70px 40px; text-align: center; color: #fff;
  background: radial-gradient(60% 90% at 50% 0%, rgba(var(--glow-rgb), .35), transparent 70%), linear-gradient(160deg, var(--panel-3), var(--final-2)); }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; }
.final p { color: var(--on-dark-muted); margin: 0 auto 30px; max-width: 34em; font-size: 1.1rem; }
.final .cta-row { justify-content: center; }
footer { background: var(--ink); color: var(--on-dark-muted); padding: 60px 0 40px; margin-top: 120px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
footer .about p { margin: 14px 0 0; max-width: 26em; }
footer .company { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); line-height: 1.8; }
footer .company b { color: #fff; font-weight: 600; }
.copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; margin-top: 10px; font-size: .9rem; }

/* Reveal on scroll */
/* (Only once the script runs: without it everything stays in place.) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ——— Responsive ——— */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta-row, .hero-meta { justify-content: center; }
  .stage { min-height: 0; aspect-ratio: 1.25; max-width: 760px; margin: 20px auto 0; width: 100%; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > .split-text { order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .shield-grid { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; position: fixed; inset: 76px 0 auto; flex-direction: column; padding: 14px 20px 22px; background: rgba(var(--ink-rgb), .96); backdrop-filter: blur(16px); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px; font-size: 1.1rem; }
  .menu-btn { display: grid; }
  .site-header .header-cta { display: none; }
  .menu-open .site-header { background: rgba(var(--ink-rgb), .96); }
}
@media (max-width: 640px) {
  :root { --wrap: min(1200px, 100% - 32px); }
  .hero { padding-top: 116px; }
  .section { padding: 84px 0; }
  .head { margin-bottom: 40px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stage { aspect-ratio: .95; }
  .hero .laptop { top: 0; }
  .hero .phone { width: 150px; border-radius: 30px; padding: 6px; bottom: 0; inset-inline-end: 4px; }
  .hero .phone .screen { border-radius: 25px; }
  .hero .phone .sbar { height: 22px; padding: 4px 16px 0; font-size: 10px; }
  .hero .phone .sbar::after { top: 6px; height: 14px; }
  .chip { padding: 8px 12px; font-size: .82rem; border-radius: 14px; }
  .chip .ico { width: 30px; height: 30px; border-radius: 10px; }
  .chip-mic { top: auto; bottom: 36%; inset-inline-end: auto; inset-inline-start: 0; }
  .chip-room, .chip-safe { display: none; }
  .platforms { margin-top: 50px; }
  .platforms .wrap { justify-content: center; text-align: center; }
  .platforms ul { justify-content: center; gap: 10px 20px; }
  .bento, .shield-grid, .downloads { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat b { font-size: 1.35rem; }
  .gallery .phone { width: 210px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .tabs button { flex: none; }
  .final { padding: 54px 22px; border-radius: 26px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
