:root {
  --night: #04110E; --night2: #06231D; --emerald: #0B5D4F; --emerald2: #0E4A3F;
  --gold: #D4AF6A; --gold2: #F1DDAE; --pearl: #F5EEDD; --soft: #B8C9C2;
  --paper: #F6F1E6; --ink: #13201B; --ink2: #4C5A54; --line: #E5DCC6;
  --violet: #2A1A4A; --violet2: #6B4FA8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.8; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.ruqaa { font-family: 'Aref Ruqaa', serif; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); color: var(--pearl); transition: background .35s, backdrop-filter .35s, box-shadow .35s; }
.nav.solid { background: #04110ECC; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 #D4AF6A22; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Aref Ruqaa', serif; font-size: 26px; color: var(--gold2); }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { text-decoration: none; color: #F5EEDDCC; font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--gold2); }
.nav-cta { text-decoration: none; background: var(--gold); color: var(--night); font-weight: 700; padding: 9px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 22px -8px var(--gold); }
@media (max-width: 720px) { .links { display: none; } .nav-cta { margin-inline-start: auto; } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: var(--pearl);
  background: radial-gradient(90% 70% at 50% 110%, #2C5A45 0%, transparent 60%), radial-gradient(120% 90% at 85% -10%, #0E5546 0%, #06231D 45%, #04110E 80%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.arches { position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150'%3E%3Cpath d='M10 150V70C10 38 34 14 60 8c26 6 50 30 50 62v80' fill='none' stroke='%23D4AF6A' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 150px; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); }
.arc { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; opacity: .85; pointer-events: none; }
.hero-in { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: clamp(110px, 16vh, 150px) clamp(16px, 4vw, 48px) 90px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
@media (max-width: 920px) { .hero-in { grid-template-columns: 1fr; text-align: center; gap: 20px; padding-top: 104px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #D4AF6A55; border-radius: 999px; background: #D4AF6A14; color: var(--gold2); font-size: 14px; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #7FD1A8; box-shadow: 0 0 0 0 #7FD1A8; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #7FD1A899; } 80%, 100% { box-shadow: 0 0 0 10px #7FD1A800; } }
h1 { margin: 14px 0 0; line-height: 1; }
h1 .ruqaa { display: block; font-size: clamp(84px, 13vw, 150px); font-weight: 700; line-height: 1.15; }
.shimmer { background: linear-gradient(100deg, #D4AF6A 20%, #FFF4D6 40%, #D4AF6A 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; filter: drop-shadow(0 0 28px #D4AF6A55); }
@keyframes shine { to { background-position: -250% 0; } }
h1 small { display: block; margin-top: 6px; font-family: 'Alexandria', sans-serif; font-weight: 500; font-size: clamp(20px, 2.6vw, 28px); color: var(--pearl); }
.lead { margin: 18px 0 0; max-width: 560px; font-size: clamp(16px, 1.6vw, 18px); color: #F5EEDDBF; }
@media (max-width: 920px) { .lead { margin-inline: auto; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores.center { justify-content: center; }
@media (max-width: 920px) { .stores { justify-content: center; } }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 10px 18px; border-radius: 16px; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s; position: relative; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store small { font-size: 12px; opacity: .8; }
.store b { font-family: 'Alexandria', sans-serif; font-size: 18px; font-weight: 700; direction: ltr; text-align: right; }
.store.live { background: var(--pearl); color: var(--night); box-shadow: 0 14px 40px -14px #F1DDAE99; }
.store.live:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -14px #F1DDAEcc; }
.store.soon { background: #F5EEDD0F; color: var(--pearl); border: 1px solid #F5EEDD2E; }
.store.soon:hover { background: #F5EEDD18; }
.store.soon::after { content: 'قريبًا'; position: absolute; top: -9px; inset-inline-end: 12px; background: var(--gold); color: var(--night); font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
.cta .store.soon { background: #04110E0A; color: var(--ink); border-color: #13201B26; }
.toast { min-height: 1.6em; margin: 10px 0 0; color: var(--gold2); font-size: 14px; }

/* 3d phone */
.stage { position: relative; height: min(640px, 78vh); perspective: 1400px; display: grid; place-items: center; }
@media (max-width: 920px) { .stage { height: 520px; margin-top: 10px; } }
.halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #D4AF6A40 0%, #D4AF6A00 65%); filter: blur(6px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.phone { position: absolute; width: min(290px, 64vw); aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2a2f2d, #0b0f0e 60%, #1c2120); box-shadow: inset 0 0 0 2px #3b423f, 0 40px 80px -30px #000, 0 0 0 1px #000; transform-style: preserve-3d; will-change: transform; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #06231D; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; z-index: 3; top: 22px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.phone .glare { position: absolute; inset: 11px; border-radius: 36px; pointer-events: none; background: linear-gradient(115deg, #ffffff22 0%, #ffffff00 38%); mix-blend-mode: screen; }
.phone.front { transform: rotateY(-18deg) rotateX(6deg) translateZ(40px); animation: hover 7s ease-in-out infinite; }
.phone.back { translate: -46% 6%; transform: rotateY(-24deg) rotateX(6deg) translateZ(-140px) scale(.84); filter: brightness(.7) saturate(.9); opacity: .9; }
@keyframes hover { 50% { translate: 0 -12px; } }
.float { position: absolute; z-index: 4; padding: 10px 16px; border-radius: 16px; background: #06231DCC; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #D4AF6A44; color: var(--pearl); box-shadow: 0 20px 40px -20px #000; display: flex; flex-direction: column; line-height: 1.4; animation: hover 6s ease-in-out infinite; }
.float b { font-family: 'Alexandria', sans-serif; color: var(--gold2); font-size: 15px; }
.float span { font-size: 12.5px; color: var(--soft); }
.f1 { top: 16%; inset-inline-end: 2%; animation-delay: -2s; }
.f2 { bottom: 14%; inset-inline-start: 4%; animation-delay: -4s; }
@media (max-width: 560px) { .f1 { inset-inline-end: 0; } .f2 { inset-inline-start: 0; } }
.scroll { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid #F5EEDD55; border-radius: 14px; }
.scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold2); animation: drop 1.8s infinite; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* stats */
.stats { position: relative; z-index: 3; max-width: 1080px; margin: -46px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 16px; text-align: center; box-shadow: 0 20px 40px -30px #0B5D4F66; }
.stat b { display: block; font-family: 'Alexandria', sans-serif; font-size: clamp(30px, 4vw, 42px); color: var(--emerald); line-height: 1.2; }
.stat span { color: var(--ink2); font-size: 14px; }

/* sections */
section.features, section.screens { max-width: 1160px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 40px) 20px; }
.head { text-align: center; margin-bottom: 36px; }
.eyebrow { display: inline-block; color: #9A7A3A; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
h2 { font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; margin: 6px 0 0; color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; transition: transform .2s ease-out, box-shadow .3s; transform-style: preserve-3d; }
.tile:hover { box-shadow: 0 30px 60px -36px #0B5D4F88; }
.tile.big { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
@media (max-width: 600px) { .tile.big, .tile.wide { grid-row: auto; grid-column: auto; } }
.tile h3 { font-family: 'Alexandria', sans-serif; font-size: 20px; margin: 14px 0 4px; }
.tile p { margin: 0; color: var(--ink2); font-size: 15px; }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #0B5D4F14; color: var(--emerald); }
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile.gold { background: radial-gradient(120% 90% at 100% 0%, #0E5546, #06231D 55%, #04110E); color: var(--pearl); border-color: #D4AF6A44; }
.tile.gold p { color: var(--soft); }
.tile.gold .ic, .tile.violet .ic { background: var(--gold); color: var(--night); }
.tile.violet { background: linear-gradient(135deg, var(--violet2), var(--violet) 70%); color: var(--pearl); border-color: #D4AF6A44; }
.tile.violet p { color: #E6DDF6; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.times span { padding: 6px 12px; border-radius: 999px; border: 1px solid #F5EEDD2E; font-size: 13px; color: var(--soft); }
.times .on { background: var(--gold); color: var(--night); border-color: var(--gold); font-weight: 700; }
.journey { position: relative; height: 4px; margin-top: 26px; border-radius: 2px; background: #F5EEDD22; }
.journey::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 0; background: var(--gold); border-radius: 2px; animation: journey 5s ease-in-out infinite; }
.journey i { position: absolute; top: 50%; right: calc(var(--p) * 100%); width: 12px; height: 12px; margin: -6px -6px 0 0; border-radius: 50%; background: var(--violet); border: 2px solid var(--gold); }
@keyframes journey { 0% { width: 0; } 70%, 100% { width: 100%; } }

/* 3d ring */
.ring-wrap { position: relative; height: 620px; perspective: 1500px; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-wrap:active { cursor: grabbing; }
@media (max-width: 600px) { .ring-wrap { height: 520px; perspective: 1100px; } }
.ring { position: relative; width: 240px; aspect-ratio: 1320 / 2868; transform-style: preserve-3d; }
@media (max-width: 600px) { .ring { width: 190px; } }
.ring figure { position: absolute; inset: 0; margin: 0; border-radius: 30px; padding: 8px; background: linear-gradient(145deg, #2a2f2d, #0b0f0e); box-shadow: 0 30px 60px -30px #00000088; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ring figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; }
.ring figcaption { position: absolute; bottom: -38px; left: 0; right: 0; text-align: center; font-family: 'Alexandria', sans-serif; font-weight: 500; color: var(--ink2); font-size: 15px; }
.hint { text-align: center; color: var(--ink2); font-size: 14px; margin-top: 30px; }

/* privacy */
.privacy { max-width: 1000px; margin: 90px auto 0; padding: 48px clamp(20px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; border-radius: 34px; background: linear-gradient(140deg, #0E4A3F, #06231D 60%, #04110E); color: var(--pearl); }
.privacy .eyebrow { color: var(--gold); }
.privacy h2 { color: var(--pearl); }
.privacy p { color: var(--soft); max-width: 560px; }
@media (max-width: 700px) { .privacy { grid-template-columns: 1fr; text-align: center; margin-inline: 16px; } .privacy p { margin-inline: auto; } .lock { margin: 0 auto; } }
.lock { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; background: #D4AF6A1A; border: 1px solid #D4AF6A55; color: var(--gold); animation: hover 6s ease-in-out infinite; }
.lock svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.text-link { color: var(--gold2); font-weight: 600; text-decoration: none; }

/* cta */
.cta { padding: 110px 16px 90px; text-align: center; }
.cta-in img { margin: 0 auto 10px; filter: drop-shadow(0 10px 24px #D4AF6A66); }
.cta p { color: var(--ink2); margin: 6px 0 0; }

/* footer */
.foot { background: var(--night); color: var(--soft); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 14px; }
.foot-in p { margin: 0; }
.foot-in b { color: var(--gold2); font-weight: 600; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 18px; margin-inline-start: auto; }
.foot-in nav a { text-decoration: none; color: var(--soft); }
.foot-in nav a:hover { color: var(--gold2); }
@media (max-width: 700px) { .foot-in { justify-content: center; text-align: center; } .foot-in nav { margin: 0; justify-content: center; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

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