:root {
  --bg: #0b0723;
  --bg-2: #140d3a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f3ff;
  --muted: #c3b8ee;
  --gold: #ffc83d;
  --orange: #ff8a3a;
  --pink: #ff4fa3;
  --cyan: #38d9ff;
  --violet: #7c4dff;
  --green: #35d28a;
  --radius: 26px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(124, 77, 255, 0.35), transparent 60%),
    radial-gradient(800px 600px at 5% 30%, rgba(255, 79, 163, 0.18), transparent 60%),
    radial-gradient(900px 700px at 70% 100%, rgba(56, 217, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
.wrap { width: min(1140px, 92%); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- floating bubbles ---------- */
.bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(1px);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.85), var(--c) 38%, transparent 72%);
  animation: float var(--d, 14s) ease-in-out infinite alternate;
}
.bubbles i:nth-child(1) { --c: var(--pink); width: 90px; height: 90px; top: 14%; inset-inline-start: 4%; --d: 13s; }
.bubbles i:nth-child(2) { --c: var(--cyan); width: 56px; height: 56px; top: 42%; inset-inline-end: 6%; --d: 11s; }
.bubbles i:nth-child(3) { --c: var(--gold); width: 120px; height: 120px; top: 72%; inset-inline-start: 8%; --d: 17s; }
.bubbles i:nth-child(4) { --c: var(--green); width: 70px; height: 70px; top: 88%; inset-inline-end: 14%; --d: 12s; }
.bubbles i:nth-child(5) { --c: var(--violet); width: 150px; height: 150px; top: 28%; inset-inline-end: -40px; --d: 19s; }
@keyframes float { from { transform: translateY(-18px) rotate(0); } to { transform: translateY(26px) rotate(12deg); } }

/* ---------- header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(11, 7, 35, 0.6);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px rgba(124, 77, 255, 0.5); }
nav { display: flex; align-items: center; gap: 6px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 12px; transition: 0.2s; }
nav a:hover { color: var(--text); background: var(--surface); }
nav a.pill { color: #2a1600; background: linear-gradient(135deg, var(--gold), var(--orange)); font-weight: 800; }
nav a.pill:hover { filter: brightness(1.08); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #2a1600; box-shadow: 0 14px 36px -8px rgba(255, 138, 58, 0.7); }
.btn.primary:hover { box-shadow: 0 20px 44px -8px rgba(255, 138, 58, 0.85); }
.btn.glass { background: var(--surface); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn.glass:hover { background: var(--surface-2); }
.btn svg { width: 24px; height: 24px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 20px; }
.hero-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 120px -20px rgba(124, 77, 255, 0.55);
  background: #1a0f4a;
  aspect-ratio: 2752 / 1536;
}
.hero-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(11, 7, 35, 0.55)); pointer-events: none; }
.hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: -34px; }
.hero-actions .btn { box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 15px; color: var(--muted); }
.chips li b { color: var(--gold); font-weight: 700; margin-inline-end: 4px; }
.lead { text-align: center; font-size: 20px; color: var(--muted); max-width: 40em; margin: 22px auto 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px auto 0; }
.stat { text-align: center; padding: 22px 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.stat strong { display: block; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; font-weight: 900; background: linear-gradient(135deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.eyebrow { display: inline-block; color: var(--cyan); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 4px; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.25; margin: 0 0 10px; font-weight: 900; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 38em; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative;
  grid-column: span 2;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.28); }
.card.wide { grid-column: span 3; }
.card::before { content: ''; position: absolute; width: 180px; height: 180px; inset-inline-end: -60px; top: -60px; border-radius: 50%; background: var(--g); opacity: 0.22; filter: blur(30px); }
.card .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 28px; background: var(--g); box-shadow: 0 10px 24px -6px var(--g); margin-bottom: 14px; }
.card h3 { margin: 0 0 4px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.g1 { --g: #ff4fa3; } .g2 { --g: #7c4dff; } .g3 { --g: #38d9ff; } .g4 { --g: #35d28a; } .g5 { --g: #ffb02e; } .g6 { --g: #ff6b4a; }

/* how it works */
.how { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; color: #2a1600; background: linear-gradient(135deg, var(--gold), var(--orange)); }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before { content: ''; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 77, 255, 0.6), transparent 70%); filter: blur(20px); }
.phone-wrap img { position: relative; width: min(340px, 80%); border-radius: 30px; box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: bob 6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-8px) rotate(-1deg); } to { transform: translateY(10px) rotate(1deg); } }

/* gallery */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 8px; }
.shots button { flex: 0 0 auto; width: calc((100% - 66px) / 4); padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 26px; transition: transform 0.3s; }
.shots button:hover { transform: translateY(-8px) scale(1.02); }
.shots img { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5, 3, 18, 0.88); backdrop-filter: blur(6px); }
dialog.lightbox img { display: block; max-height: 90vh; max-width: 92vw; border-radius: 24px; box-shadow: var(--shadow); }
dialog.lightbox .x { position: absolute; top: -14px; inset-inline-end: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: #2a1600; font-size: 22px; font-weight: 900; cursor: pointer; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; padding: 22px 20px 20px; border-radius: 24px; color: #1d1535; background: linear-gradient(160deg, var(--c1), var(--c2)); overflow: hidden; transition: transform 0.25s; box-shadow: 0 18px 40px -18px var(--c2); }
.cat:hover { transform: translateY(-6px) rotate(-0.6deg); }
.cat .e { font-size: 38px; display: block; line-height: 1.2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)); }
.cat h3 { margin: 6px 0 0; font-size: 20px; font-weight: 900; }
.cat p { margin: 0; font-size: 14.5px; opacity: 0.8; line-height: 1.5; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; transition: background 0.2s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--gold); line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* cta */
.cta { position: relative; text-align: center; padding: clamp(36px, 6vw, 70px) 20px; border-radius: 36px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #3a1f9e, #1a0f4a 55%, #5a1f8f); box-shadow: var(--shadow); }
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.6; }
.cta::before { width: 220px; height: 220px; top: -70px; inset-inline-start: -50px; background: radial-gradient(circle at 30% 30%, #fff8, var(--pink) 40%, transparent 72%); }
.cta::after { width: 260px; height: 260px; bottom: -100px; inset-inline-end: -60px; background: radial-gradient(circle at 30% 30%, #fff8, var(--cyan) 40%, transparent 72%); }
.cta > * { position: relative; z-index: 1; }
.cta .sub { margin-bottom: 26px; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); margin-top: 20px; background: rgba(0, 0, 0, 0.18); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--gold); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.doc { padding: 36px 0 40px; }
.doc .card-doc { background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); border: 1px solid var(--line); border-radius: 30px; padding: clamp(22px, 4vw, 48px); backdrop-filter: blur(10px); }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 42px); font-weight: 900; }
.doc h2 { font-size: 22px; margin: 34px 0 6px; color: var(--gold); }
.doc p, .doc li { color: #e4defa; }
.doc ul { padding-inline-start: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.doc th { background: var(--surface); }
.lang { display: inline-block; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shots button { width: calc((100% - 44px) / 3); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-column: span 1; }
  .how { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  nav a:not(.pill) { display: none; }
  header.top .wrap { height: 60px; }
  .hero { padding-top: 18px; }
  .hero-card { border-radius: 22px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .cats { gap: 10px; }
  .cat { padding: 16px 14px; }
  .cat .e { font-size: 30px; }
  .cat h3 { font-size: 17px; }
  .shots { gap: 12px; }
  .shots button { width: calc((100% - 12px) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
