:root {
  --bg: #030806;
  --bg-2: #06130d;
  --surface: rgba(18, 38, 28, .55);
  --surface-2: rgba(28, 56, 41, .5);
  --line: rgba(120, 255, 180, .14);
  --text: #eafff3;
  --muted: #8fb5a1;
  --green: #22e07a;
  --green-2: #0fbf63;
  --green-deep: #08703b;
  --glow: rgba(34, 224, 122, .55);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "SF Pro Display", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 70% at 50% -10%, #0b2a1a 0%, var(--bg) 60%); }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.bg__glow--a { width: 420px; height: 420px; background: #0e9f55; top: -160px; right: -140px; animation: drift 14s ease-in-out infinite alternate; }
.bg__glow--b { width: 360px; height: 360px; background: #05502a; bottom: -120px; left: -140px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.bg__grid { position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%); }
@keyframes drift { to { transform: translate3d(-60px, 80px, 0) scale(1.15); } }

.wrap { position: relative; z-index: 1; max-width: 520px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 22px) 16px calc(env(safe-area-inset-bottom) + 28px); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .8s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal:nth-child(1) { animation-delay: .05s } .reveal:nth-child(2) { animation-delay: .12s }
.reveal:nth-child(3) { animation-delay: .19s } .reveal:nth-child(4) { animation-delay: .26s }
.reveal:nth-child(5) { animation-delay: .33s } .reveal:nth-child(6) { animation-delay: .4s }
.reveal:nth-child(7) { animation-delay: .47s } .reveal:nth-child(8) { animation-delay: .54s }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand__icon { position: relative; width: 52px; height: 52px; border-radius: 13px; overflow: hidden; flex: none;
  background: linear-gradient(145deg, #123b27, #071a10); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 24px rgba(34,224,122,.18); }
.brand__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__ph { display: none; position: absolute; inset: 0; place-items: center; text-align: center; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .5px; line-height: 1.2; }
.brand__icon.is-missing .brand__ph { display: grid; }
.brand__name { font-weight: 700; font-size: 17px; }
.brand__tag { color: var(--muted); font-size: 13px; margin-top: 2px; }

.title { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.22; margin: 0 0 12px; font-weight: 800; letter-spacing: -.3px; }
.accent { color: var(--green); text-shadow: 0 0 28px var(--glow); }
.lead { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 24px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 14px 10px; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); position: relative; }
.step { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; text-align: center; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 15px; inset-inline-start: calc(50% + 20px); width: calc(100% - 40px); height: 2px;
  background: rgba(255,255,255,.08); border-radius: 2px; }
.step.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--green), var(--green-2)); box-shadow: 0 0 10px var(--glow); }
.step__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid rgba(255,255,255,.08); transition: all .45s cubic-bezier(.2,.8,.2,1); }
.step__label { font-size: 12px; color: var(--muted); transition: color .4s; }
.step.is-active .step__dot { background: var(--green); color: #022312; border-color: transparent; box-shadow: 0 0 0 5px rgba(34,224,122,.15), 0 0 22px var(--glow); animation: pulse 2s ease-in-out infinite; }
.step.is-active .step__label { color: var(--text); font-weight: 600; }
.step.is-done .step__dot { background: rgba(34,224,122,.18); color: var(--green); border-color: rgba(34,224,122,.4); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(34,224,122,.05), 0 0 30px var(--glow); } }

/* ---------- phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; padding: 10px 0 34px; perspective: 1200px; }
.phone { position: relative; width: 236px; aspect-ratio: 9 / 19.3; border-radius: 42px; padding: 9px;
  background: linear-gradient(150deg, #2b3a33, #0c1310 40%, #1d2a24); box-shadow: 0 40px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.07) inset, 0 0 70px rgba(34,224,122,.18);
  animation: float 6s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes float { 0%,100% { transform: translateY(0) rotateX(6deg) rotateY(-8deg); } 50% { transform: translateY(-12px) rotateX(2deg) rotateY(6deg); } }
.phone__btn { position: absolute; width: 3px; background: #26332c; border-radius: 2px; }
.phone__btn--l1 { left: -3px; top: 92px; height: 34px; } .phone__btn--l2 { left: -3px; top: 136px; height: 34px; } .phone__btn--r { right: -3px; top: 112px; height: 60px; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 0%, #0f5a33, #04130b 70%); }
.phone__island { position: absolute; top: 9px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.phone__tutorial { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.phone__screen.has-tutorial .mock-home, .phone__screen.has-tutorial .tutorial-ph { display: none; }
.tutorial-ph { position: absolute; bottom: 74px; left: 12px; right: 12px; text-align: center; font-size: 10px; color: rgba(234,255,243,.55); line-height: 1.6; }
.tutorial-ph code { font-size: 9px; }

.mock-home { position: absolute; inset: 0; padding: 48px 16px 0; }
.mock-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; direction: ltr; }
.mock-grid i, .mock-dock i { display: block; aspect-ratio: 1; border-radius: 11px; background: rgba(255,255,255,.12); }
.mock-grid i:nth-child(3n) { background: rgba(255,255,255,.08); } .mock-grid i:nth-child(4n+1) { background: rgba(150,255,200,.1); }
.mock-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: appear 6s cubic-bezier(.2,.9,.3,1.3) infinite; }
.mock-app__icon { width: 100%; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: linear-gradient(145deg, var(--green), var(--green-deep)); box-shadow: 0 0 18px var(--glow); }
.mock-app__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-app__label { font-size: 7.5px; font-weight: 500; color: #fff; white-space: nowrap; max-width: 54px; overflow: hidden; text-overflow: ellipsis; }
@keyframes appear { 0%, 30% { transform: scale(0); opacity: 0; } 42% { transform: scale(1.15); opacity: 1; } 50%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.mock-dock { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  border-radius: 24px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.phone-reflection { position: absolute; bottom: 8px; width: 180px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,224,122,.35), transparent); filter: blur(6px); }

/* ---------- notice ---------- */
.notice { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.7;
  background: rgba(255, 196, 0, .08); border: 1px solid rgba(255, 196, 0, .28); color: #ffe7a6; }
.notice b { color: #fff; }
.notice button { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { text-align: center; margin-bottom: 26px; }
.install-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 64px; padding: 0 24px; border-radius: 20px; text-decoration: none;
  font-size: 20px; font-weight: 800; color: #01200f; letter-spacing: .2px;
  background: linear-gradient(180deg, #3cf590 0%, var(--green) 45%, var(--green-2) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 12px 34px rgba(34,224,122,.45), 0 0 60px rgba(34,224,122,.35);
  transition: transform .18s ease, box-shadow .3s ease; animation: btnGlow 2.6s ease-in-out infinite; user-select: none; -webkit-user-select: none; }
.install-btn svg { width: 24px; height: 24px; }
.install-btn:active { transform: scale(.97); }
.install-btn__shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 55%, 100% { transform: translateX(120%); } }
@keyframes btnGlow { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 14px 40px rgba(34,224,122,.6), 0 0 90px rgba(34,224,122,.5); } }
.install-btn.is-disabled { filter: grayscale(.6) brightness(.7); pointer-events: none; animation: none; }
.cta__note { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin: 14px 0 0; line-height: 1.6; }
.cta__note svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.cta__note b { color: var(--text); font-weight: 600; direction: ltr; unicode-bidi: isolate; }

/* ---------- panels ---------- */
.panel { margin: 0 0 18px; padding: 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: panelIn .6s cubic-bezier(.2,.8,.2,1); line-height: 1.75; }
.panel p { margin: 8px 0 14px; color: #cfe9db; font-size: 15px; }
.panel .muted { color: var(--muted); font-size: 14px; }
.panel__head { display: flex; align-items: center; gap: 10px; }
.panel h2 { margin: 0; font-size: 19px; }
.badge { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(34,224,122,.14); color: var(--green); border: 1px solid rgba(34,224,122,.3); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }

.tut-list { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 10px; counter-reset: tut; }
.tut { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.05);
  opacity: 0; transform: translateX(-16px); animation: tutIn .55s cubic-bezier(.2,.8,.2,1) forwards; position: relative; }
.tut:nth-child(1) { animation-delay: .1s } .tut:nth-child(2) { animation-delay: .22s } .tut:nth-child(3) { animation-delay: .34s } .tut:nth-child(4) { animation-delay: .46s } .tut:nth-child(5) { animation-delay: .58s }
@keyframes tutIn { to { opacity: 1; transform: none; } }
.tut::before { counter-increment: tut; content: counter(tut); position: absolute; top: -6px; inset-inline-start: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #022312; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 12px var(--glow); }
.tut__icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--green);
  background: linear-gradient(145deg, rgba(34,224,122,.18), rgba(34,224,122,.04)); border: 1px solid rgba(34,224,122,.22); }
.tut__icon svg { width: 22px; height: 22px; }
.tut__icon--settings svg { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tut b { display: block; font-size: 15px; margin-bottom: 2px; }
.tut span:not(.tut__icon) { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 50px; border-radius: 16px;
  border: 1px solid rgba(34,224,122,.4); background: rgba(34,224,122,.08); color: var(--green); font: 600 16px var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s; }
.ghost-btn:active { transform: scale(.98); background: rgba(34,224,122,.16); }

.done { text-align: center; }
.done__check { width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; color: #022312;
  background: var(--green); box-shadow: 0 0 0 10px rgba(34,224,122,.12), 0 0 50px var(--glow); animation: pop .6s cubic-bezier(.2,.9,.3,1.4); }
.done__check svg { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(0); } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 8px; margin: 8px 0 22px; }
.faq details { border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); padding: 0 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 20px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.foot { text-align: center; color: #4f6f5e; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mock-app { animation: none; }
}
