:root {
  --bg: #000;
  --text: #fff;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.14);
  --card: #111;
  --blue: #0074e8;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar: 64px;
  --font: "Cairo", "Titillium Web", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  overflow-x: hidden;
}

html[dir="rtl"] .live-pill,
html[dir="rtl"] .kicker,
html[dir="rtl"] .swipe-hint {
  letter-spacing: 0.02em;
}

html[dir="rtl"] .kicker {
  text-transform: none;
}

html[dir="rtl"] .side-btn[aria-label="مشاركة"] svg {
  transform: scaleX(-1);
}

body {
  padding-bottom: calc(var(--bar) + var(--safe-b) + 28px);
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.spark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.videowall {
  position: fixed;
  inset: -8% 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  opacity: 0.28;
  filter: saturate(1.15);
  pointer-events: none;
}

.wall-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wall-col img,
.wall-col video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

.wall-up { animation: wall-up 28s linear infinite; }
.wall-down { animation: wall-down 32s linear infinite; }
.wall-up.slow { animation-duration: 40s; }

.wall-mask {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, transparent 12%, #000 62%),
    linear-gradient(#000 0%, transparent 18%, transparent 78%, #000 100%);
}

.live-pill {
  margin-inline-end: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pink);
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation: blink 1s ease-in-out infinite;
}

.mini-clip {
  position: absolute;
  width: clamp(64px, 18vw, 92px);
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 16px rgba(37,244,238,.2);
  z-index: 2;
}

.mini-clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-clip.c1 {
  inset-inline-start: 0;
  top: 12%;
  animation: bob 3.4s ease-in-out infinite, spin-y 8s linear infinite;
}

.mini-clip.c2 {
  inset-inline-end: 0;
  bottom: 10%;
  animation: bob 4.2s ease-in-out infinite reverse;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(37,244,238,.12), transparent);
  animation: scan 3.6s linear infinite;
}

.progress {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22px;
  height: 2px;
  z-index: 6;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  overflow: hidden;
}

.progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.clips {
  margin: 22px -16px 8px;
}

.clips h2 {
  font-size: 22px;
  margin: 0 16px 12px;
}

.clip-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.clip-rail::-webkit-scrollbar { display: none; }

.clip-card {
  flex: none;
  width: 42vw;
  max-width: 160px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.clip-card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}

.clip-card span {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 6px #000;
}

.clip-card.is-on {
  outline: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(37,244,238,.35);
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 22s;
}

.orb {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 420px;
  max-height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: orb-float 10s ease-in-out infinite;
}

.orb-cyan {
  background: var(--cyan);
  top: -8%;
  right: -18%;
}

.orb-pink {
  background: var(--pink);
  bottom: 12%;
  left: -22%;
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: -40%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}

.hearts span {
  position: absolute;
  bottom: 18%;
  left: 50%;
  font-size: 18px;
  color: var(--pink);
  animation: rise 2.8s ease-out forwards;
  text-shadow: 0 0 12px var(--pink);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  display: grid;
  place-items: center;
  gap: 28px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: min(58vw, 220px);
}

.splash-loader {
  width: 56px;
  height: 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: linear-gradient(#000, rgba(0, 0, 0, 0.72) 70%, transparent);
}

.brand img {
  height: clamp(28px, 8vw, 40px);
  width: auto;
}

.brand {
  margin-inline-end: auto;
}

.badge-18 {
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

main {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  text-align: center;
  padding-top: 6px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}

.kicker img {
  width: 18px;
  height: 18px;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 8.4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.glitch::before {
  color: var(--cyan);
  transform: translate(-2px, 1px);
  animation: glitch-a 2.4s infinite linear;
  clip-path: inset(0 0 58% 0);
  opacity: 0.7;
}

.glitch::after {
  color: var(--pink);
  transform: translate(2px, -1px);
  animation: glitch-b 2.1s infinite linear;
  clip-path: inset(52% 0 0 0);
  opacity: 0.7;
}

.sub {
  color: var(--muted);
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.45;
  max-width: 36em;
  margin: 0 auto 18px;
}

.stage {
  position: relative;
  margin: 8px auto 22px;
  min-height: min(72vh, 560px);
  display: grid;
  place-items: center;
}

.float-avatars img {
  position: absolute;
  width: clamp(38px, 11vw, 56px);
  height: clamp(38px, 11vw, 56px);
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #000, 0 8px 20px rgba(0, 0, 0, 0.45);
  animation: bob 4.6s ease-in-out infinite;
  z-index: 2;
}

.fa-1 { top: 6%; inset-inline-start: 2%; animation-delay: 0s; }
.fa-2 { top: 18%; inset-inline-end: 0; animation-delay: -1s; }
.fa-3 { top: 48%; inset-inline-start: -2%; animation-delay: -1.6s; }
.fa-4 { bottom: 22%; inset-inline-end: 2%; animation-delay: -0.7s; }
.fa-5 { bottom: 8%; inset-inline-start: 8%; animation-delay: -2.2s; }
.fa-6 { top: 8%; inset-inline-end: 18%; width: 32px; height: 32px; animation-delay: -3s; }

.phone {
  position: relative;
  width: min(58vw, 250px);
  aspect-ratio: 9 / 18.4;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
  border: 2px solid #2a2a2a;
  box-shadow:
    0 0 0 3px #111,
    0 30px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(37, 244, 238, 0.12),
    0 0 48px rgba(254, 44, 85, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  z-index: 3;
}

.phone-shine {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 48%, transparent 56%);
  animation: shine 5.5s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 38%;
  height: 10px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 6;
}

.feed {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18%);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
}

.slide.is-leave {
  opacity: 0;
  transform: translateY(-16%);
}

.slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.slide-media {
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover no-repeat;
  animation: ken 8s ease-in-out infinite alternate;
}

.slide-caption {
  position: absolute;
  inset-inline-start: 10px;
  inset-inline-end: 52px;
  bottom: 42px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 8px #000;
}

.side-actions {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 78px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.side-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.pulse-ring {
  animation: ring 2s ease-out infinite;
}

.side-btn {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
}

.side-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  filter: drop-shadow(0 2px 4px #000);
}

.side-btn.is-liked svg {
  fill: var(--pink);
  animation: pop 0.35s ease;
}

.swipe-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: bounce 1.4s ease-in-out infinite;
  text-shadow: 0 2px 8px #000;
}

.btn-android {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  margin: 0 auto;
  min-height: 58px;
  padding: 12px 22px;
  border-radius: 30px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 116, 232, 0.45);
  animation: pulse-btn 2.2s ease-in-out infinite;
}

.btn-android:active {
  transform: scale(0.98);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shimmer 2.8s ease-in-out infinite;
  z-index: -1;
}

.android-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-label {
  display: grid;
  text-align: start;
  line-height: 1.15;
}

.btn-label strong {
  font-size: clamp(16px, 4.4vw, 20px);
}

.btn-label small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.88;
}

.legal-line {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.marquee {
  margin: 28px -16px 8px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  flex: none;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.stat {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 12px 16px;
  border: 1px solid var(--line);
}

.card img {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}

.card h2 {
  font-size: 15px;
  margin-bottom: 4px;
}

.card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.install {
  margin: 28px 0 8px;
}

.install h2,
.models h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.install ol {
  list-style: none;
  display: grid;
  gap: 12px;
}

.install li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
}

.step {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #000;
}

.install h3 {
  font-size: 16px;
}

.install p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.models {
  margin: 24px 0 8px;
  overflow: hidden;
}

.model-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.model-row::-webkit-scrollbar {
  display: none;
}

.model-row figure {
  flex: none;
  width: 72px;
  text-align: center;
  scroll-snap-align: start;
}

.model-row figure:nth-child(odd) img { animation-delay: -1.2s; }
.model-row figure:nth-child(3n) img { animation-delay: -2.1s; }

.model-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: bob 3.8s ease-in-out infinite;
}

.model-row figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabbar {
  display: none;
}

.sticky {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(10px + var(--safe-b));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky.is-in {
  transform: none;
}

.sticky img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.sticky div {
  flex: 1;
  min-width: 0;
}

.sticky strong {
  display: block;
  font-size: 14px;
}

.sticky small {
  color: var(--muted);
  font-size: 11px;
}

.sticky-btn {
  flex: none;
  background: var(--blue);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 16px 12px;
}

footer a {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: in 0.7s ease forwards;
}

.hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2) { animation-delay: 0.15s; }
.hero .reveal:nth-child(3) { animation-delay: 0.25s; }
.hero .reveal:nth-child(4) { animation-delay: 0.32s; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-b));
  transform: translateX(-50%) translateY(12px);
  z-index: 40;
  background: #1a1a1a;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  max-width: 90vw;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%);
}

@keyframes orb-float {
  50% { transform: translate(18px, -24px) scale(1.12); }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -3%); }
  75% { transform: translate(-1%, 2%); }
}

@keyframes glitch-a {
  0%, 90%, 100% { transform: translate(-2px, 1px); }
  92% { transform: translate(3px, -2px); }
  94% { transform: translate(-4px, 0); }
}

@keyframes glitch-b {
  0%, 88%, 100% { transform: translate(2px, -1px); }
  91% { transform: translate(-3px, 2px); }
  95% { transform: translate(4px, 1px); }
}

@keyframes bob {
  50% { transform: translateY(-10px); }
}

@keyframes shine {
  0%, 55% { transform: translateX(-40%); }
  85%, 100% { transform: translateX(40%); }
}

@keyframes ken {
  to { transform: scale(1.08); }
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.55); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

@keyframes pop {
  50% { transform: scale(1.3); }
}

@keyframes bounce {
  50% { transform: translateY(5px); }
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 116, 232, 0.45), 0 0 0 0 rgba(0, 116, 232, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(0, 116, 232, 0.55), 0 0 0 10px rgba(0, 116, 232, 0); }
}

@keyframes shimmer {
  0% { transform: translateX(-120%); }
  40%, 100% { transform: translateX(120%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes in {
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  to { transform: translate(-50%, -180px) scale(1.4); opacity: 0; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes wall-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes wall-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@keyframes blink {
  50% { opacity: 0.25; }
}

@keyframes scan {
  from { transform: translateY(-30%); }
  to { transform: translateY(430%); }
}

@keyframes spin-y {
  50% { transform: translateY(-8px) rotate(-6deg); }
}

@keyframes rail-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-18px); }
}

@media (max-width: 360px) {
  .features { grid-template-columns: 1fr; }
  .phone { width: min(64vw, 220px); }
  .float-avatars img { width: 34px; height: 34px; }
  .fa-6 { display: none; }
  .mini-clip { display: none; }
  .videowall { grid-template-columns: 1fr 1fr; }
  .videowall .wall-col:last-child { display: none; }
}

@media (min-width: 480px) {
  .phone { width: 260px; }
}

@media (min-width: 768px) {
  main { width: min(100%, 720px); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .stage { min-height: 620px; }
  .phone { width: 280px; }
  .tabbar {
    display: flex;
    justify-content: space-around;
    width: min(100%, 720px);
    margin: 18px auto 0;
    padding: 10px 0;
    position: relative;
    z-index: 1;
  }
  .tab {
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: 11px;
    color: #777;
  }
  .tab img { width: 22px; height: 22px; opacity: 0.55; }
  .tab.is-on { color: #fff; }
  .tab.is-on img { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
