:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #16181d;
  --muted: #5b6270;
  --line: #e3e6eb;
  --accent: #0a66d8;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --radius: 18px;
  --maxw: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #171a20;
    --text: #eef0f4;
    --muted: #a3aab8;
    --line: #2a2f38;
    --accent: #4b9bff;
    --accent-ink: #0b1220;
    --card: #171a20;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
nav.links { display: flex; gap: 20px; align-items: center; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a.lang { color: var(--text); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 640px) { nav.links a:not(.lang) { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); }

/* Hero */
.hero { padding: 84px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.12; margin: 0 auto 18px; max-width: 16em; letter-spacing: -0.02em; }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40em; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .micro { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 44em; margin: 0 0 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 15.5px; }
.icon { font-size: 26px; margin-bottom: 8px; }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
ol.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 0; }
.plan .price s { font-size: 18px; color: var(--muted); font-weight: 500; margin-inline-start: 8px; }
.plan .note { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.plan li::before { content: "✓"; color: var(--accent); margin-inline-end: 8px; font-weight: 700; }
.badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-inline-start: 8px; vertical-align: middle; }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; }
.fine li { margin: 4px 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: inline-end; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }
footer .tm { margin-top: 16px; font-size: 12.5px; }

/* Legal pages */
.legal { padding: 48px 0 64px; max-width: 760px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); margin-bottom: 24px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.legal [dir="rtl"] { text-align: right; }

/* ===== Brand & "wow" layer (matches the app: cyan → indigo) ===== */
:root {
  --cyan: #0d9eed;
  --indigo: #6152f5;
  --grad: linear-gradient(135deg, var(--cyan), var(--indigo));
  --accent: #0d9eed;
}
@media (prefers-color-scheme: dark) { :root { --accent: #36b4ff; } }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(97,82,245,.55); }
.logo-img { width: 32px; height: 32px; border-radius: 8px; display: block; }

/* Dark hero, always dark regardless of theme */
.hero.stage {
  position: relative; overflow: hidden; color: #eef2ff;
  background: radial-gradient(1200px 600px at 50% -10%, #1d2a5a 0%, #0b1020 55%, #070a14 100%);
  padding: 96px 0 72px;
}
.hero.stage::before, .hero.stage::after {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(90px); opacity: .45; pointer-events: none; animation: drift 14s ease-in-out infinite alternate;
}
.hero.stage::before { background: var(--cyan); top: -220px; inset-inline-start: -160px; }
.hero.stage::after  { background: var(--indigo); bottom: -260px; inset-inline-end: -180px; animation-delay: -7s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
.hero.stage .wrap { position: relative; z-index: 1; }
.hero.stage h1 { color: #fff; }
.hero.stage .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.stage p.sub, .hero.stage .micro { color: #b8c2e0; }
.hero.stage .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }

.hero-icon { width: 168px; height: 168px; margin: 0 auto 26px; display: block; filter: drop-shadow(0 24px 48px rgba(13,158,237,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Hero: the real app window, tilted in 3D, with a scanner light sweeping across it */
.hero-shot { position: relative; max-width: 980px; margin: 54px auto 0; perspective: 1800px; }
.hero-shot::before {
  content: ""; position: absolute; inset: 12% 8% -6%; z-index: 0; border-radius: 40px; filter: blur(60px); opacity: .55;
  background: var(--grad);
}
.hero-shot .tilt {
  position: relative; z-index: 1; transform-origin: 50% 0;
  transform: rotateX(16deg) scale(.94); animation: settle 1.6s cubic-bezier(.2,.7,.2,1) .25s forwards;
}
.hero-shot .glass { position: absolute; inset: 4.4% 4.2% 7.6%; border-radius: 12px; overflow: hidden; pointer-events: none; }
.hero-shot img { display: block; width: 100%; height: auto; }
@keyframes settle { to { transform: rotateX(0) scale(1); } }
.beam {
  position: absolute; inset-inline: 0; height: 120px; top: -140px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, rgba(54,180,255,.0) 25%, rgba(54,180,255,.45) 50%, rgba(54,180,255,.0) 75%, transparent);
  box-shadow: 0 0 60px 10px rgba(54,180,255,.18); animation: sweep 7s cubic-bezier(.6,.05,.3,1) 1.4s infinite;
}
@keyframes sweep { 0% { top: -140px; } 45% { top: 100%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-shot .tilt { animation: none; transform: none; } .beam { display: none; } }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badges span { font-size: 13px; color: #cfd7f3; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); padding: 6px 12px; border-radius: 999px; }

/* Cards with gradient edge on hover */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(97,82,245,.45); border-color: color-mix(in srgb, var(--indigo) 40%, var(--line)); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 22px; box-shadow: 0 8px 20px -8px rgba(97,82,245,.6); }

/* Screenshots: macOS window frame */
.shots { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.window { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(15,20,60,.45); }
.window .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: color-mix(in srgb, var(--bg-soft) 80%, var(--line)); direction: ltr; }
.window .bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window .bar i:nth-child(1) { background: #ff5f57; } .window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window img { display: block; width: 100%; height: auto; }
.window .soon { aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted);
  background: radial-gradient(400px 200px at 30% 20%, rgba(13,158,237,.15), transparent), radial-gradient(400px 200px at 70% 80%, rgba(97,82,245,.15), transparent); }
.shot-cap { margin: 12px 4px 0; color: var(--muted); font-size: 15px; }

/* Pricing highlight */
.plan.featured { border: 0; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 24px 60px -24px rgba(97,82,245,.5); }
.badge { background: var(--grad); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Screens showcase */
.showcase { display: grid; gap: 34px; }
.showcase .window img { aspect-ratio: 1233 / 802; object-fit: cover; }
.two { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
/* Light / dark comparison */
.compare { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 1233 / 802; --pos: 50%; box-shadow: 0 30px 70px -30px rgba(15,20,60,.55); border: 1px solid var(--line); direction: ltr; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare .top { clip-path: inset(0 0 0 var(--pos)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lbl { position: absolute; bottom: 12px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.compare .lbl.l { left: 12px; } .compare .lbl.r { right: 12px; }
/* Real macOS window captures already include window chrome and shadow */
#screens .window { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.showcase .window img { aspect-ratio: auto; }
.compare { aspect-ratio: 2000 / 1359; border: 0; box-shadow: none; overflow: hidden; border-radius: 0; }
