:root {
  --ink: #08080c;
  --ink-2: #101016;
  --panel: #16161e;
  --line: rgba(201, 165, 106, 0.18);
  --gold: #c9a56a;
  --gold-2: #e6cf9a;
  --cream: #f3eadf;
  --mute: #9a9288;
  --cafe: #ec6a2c;
  --rakht: #a8532f;
  --luna: #d4b06a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

.font-display {
  font-family: "Lalezar", "IBM Plex Sans Arabic", sans-serif;
}

.font-kufi {
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
}

.font-serif-i {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
}

.gold-glow {
  background: radial-gradient(circle at 50% 18%, rgba(201, 165, 106, 0.16), transparent 52%);
}

.logo-mark {
  filter: drop-shadow(0 12px 30px rgba(201, 165, 106, 0.28));
}

.nav-blur {
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(8, 8, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-blur.is-solid {
  background: rgba(8, 8, 12, 0.92);
}

.hairline {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  height: 1px;
  opacity: 0.45;
}

.kicker {
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.card:hover {
  border-color: rgba(201, 165, 106, 0.38);
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 12px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e6cf9a, #c9a56a);
  color: #1a140c;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(201, 165, 106, 0.28);
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.stage {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  min-height: 420px;
  background: #0c0c12;
}

.stage svg {
  width: 100%;
  height: 100%;
}

.demo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(201, 165, 106, 0.08), transparent 40%),
    #0c0c12;
}

.demo-shot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.demo-card:hover .demo-shot img {
  transform: scale(1.04);
}

.demo-shot-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 13px;
}

.coming-soon {
  position: relative;
  border-radius: 1.5rem;
  border: 1px dashed rgba(201, 165, 106, 0.38);
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 165, 106, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.soon-slot {
  min-height: 120px;
  border-radius: 1rem;
  border: 1px dashed rgba(201, 165, 106, 0.28);
  background: rgba(8, 8, 12, 0.35);
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: 13px;
  text-align: center;
  gap: 0.35rem;
}

.soon-q {
  font-family: "Lalezar", sans-serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

.progress-rail {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-rail > i {
  display: block;
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #8a6d3d, var(--gold-2));
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-body {
  display: none;
}

.faq-item.is-open .faq-body {
  display: block;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s ease forwards;
}

.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }

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

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floaty {
  animation: floaty 6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: auto;
  border: 1px solid rgba(201, 165, 106, 0.16);
  border-radius: 999px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #6fd18a;
  box-shadow: 0 0 0 0 rgba(111, 209, 138, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(111, 209, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 209, 138, 0); }
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: flex;
}

.nav-link.is-active {
  color: var(--gold);
}

.store-window {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.stage:hover .store-window {
  transform: translateY(-4px);
}

.grid-dots {
  background-image: radial-gradient(rgba(201, 165, 106, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.admin-mock {
  background: #1a120e;
  border: 1px solid rgba(236, 106, 44, 0.18);
}

.otp-box {
  width: 2.4rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 767px) {
  .stage {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .floaty, .live-dot { animation: none; opacity: 1; transform: none; }
}
