/* Anubis Studio — night-over-Cairo identity: deep navy, lantern gold, sand. */
:root {
  --bg: #070f1f;
  --bg-2: #0c1830;
  --surface: #122240;
  --surface-2: #17294b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f8;
  --muted: #a6b3c9;
  --faint: #6f7d96;
  --gold: #eab85f;
  --gold-2: #f6d79b;
  --gold-soft: rgba(234, 184, 95, 0.14);
  --teal: #4fd1c5;
  --live: #5fd3a2;
  --radius: 22px;
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Star field canvas behind everything */
#sky { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(234,184,95,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(79,209,197,0.06), transparent 60%);
}

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(7, 15, 31, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; border-radius: 11px; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-size: .95rem; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .pill { color: #1c1407; background: var(--gold); font-weight: 600; }
.nav .pill:hover { background: var(--gold-2); color: #1c1407; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1c1407; box-shadow: 0 12px 34px rgba(234,184,95,.28); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: shine 4.5s ease-in-out infinite;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(234,184,95,.38); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px 0 70px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -40px 0 0; z-index: -1;
  background: url("/img/banner.jpg") center 35% / cover no-repeat;
  opacity: .38; will-change: transform;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(7,15,31,.25), rgba(7,15,31,.92) 75%),
    linear-gradient(180deg, rgba(7,15,31,.4), var(--bg) 96%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .95rem; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); border: 1px solid rgba(234,184,95,.25); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,211,162,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(95,211,162,0); } }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.2; margin: 0 0 16px; }
.shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 25%, #fff3d6 50%, var(--gold-2) 75%, var(--gold) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }
.hero p.lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 560px; margin-bottom: 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Orbit of app icons around the logo */
.orbit { position: relative; aspect-ratio: 1; width: min(440px, 100%); margin-inline: auto; }
.orbit .core {
  position: absolute; inset: 31%; border-radius: 28%;
  box-shadow: 0 0 0 1px rgba(234,184,95,.35), 0 30px 80px rgba(0,0,0,.5), 0 0 90px rgba(234,184,95,.25);
  animation: bob 6s ease-in-out infinite;
}
.orbit .core img { width: 100%; height: 100%; border-radius: 28%; }
.orbit .ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(234,184,95,.22); animation: spin 60s linear infinite; }
.orbit .ring.r2 { inset: 18%; border-style: solid; border-color: rgba(255,255,255,.05); animation-duration: 90s; animation-direction: reverse; }
.orbit .sat {
  position: absolute; width: 17%; aspect-ratio: 1; top: 41.5%; left: 41.5%;
  animation: orbit 44s linear infinite; animation-delay: var(--d);
}
.orbit .sat img { width: 100%; height: 100%; border-radius: 24%; box-shadow: 0 10px 28px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.12); }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(min(190px, 43vw)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(min(190px, 43vw)) rotate(-360deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
.scroll-hint span { display: block; width: 22px; height: 36px; border: 2px solid var(--faint); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(12,24,48,.6); padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee .item img { width: 38px; height: 38px; border-radius: 10px; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; position: relative; }
.head { text-align: center; margin-bottom: 52px; }
.head .kicker { color: var(--gold); font-weight: 600; letter-spacing: .5px; font-size: .95rem; }
.head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 2.8rem); margin: 6px 0 8px; line-height: 1.3; }
.head p { color: var(--muted); max-width: 620px; margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Apps ---------- */
.filters { display: flex; justify-content: center; gap: 8px; margin: -18px 0 36px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; transition: all .25s var(--ease);
}
.filters button:hover { color: var(--text); border-color: rgba(234,184,95,.4); }
.filters button[aria-pressed="true"] { color: #1c1407; background: var(--gold); border-color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px 220px at var(--mx, 50%) var(--my, 0%), rgba(234,184,95,.15), transparent 60%);
}
.card:hover { border-color: rgba(234,184,95,.4); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.card:hover::before { opacity: 1; }
.card[hidden] { display: none; }
.card-top { display: flex; gap: 16px; align-items: center; }
.card-top img { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: 0 10px 26px rgba(0,0,0,.4); transition: transform .5s var(--ease); object-fit: cover; }
.card:hover .card-top img { transform: rotate(-6deg) scale(1.06); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.4; }
.card .en { color: var(--faint); font-size: .85rem; direction: ltr; text-align: right; }
.badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.badge { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.badge.live { color: var(--live); background: rgba(95,211,162,.12); }
.badge.soon { color: var(--gold); background: var(--gold-soft); }
.badge.kind { color: var(--muted); background: rgba(255,255,255,.06); }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600;
  padding: 8px 14px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.18);
  transition: transform .2s, border-color .2s;
}
.store svg { width: 18px; height: 18px; flex: none; }
.store:hover { transform: translateY(-2px); border-color: var(--gold); }
.store.off { opacity: .4; pointer-events: none; background: transparent; }
.link { font-size: .86rem; font-weight: 600; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.link:hover { background: rgba(255,255,255,.11); }

/* ---------- Story timeline ---------- */
.story { background: linear-gradient(180deg, transparent, rgba(12,24,48,.7) 18%, rgba(12,24,48,.7) 82%, transparent); }
.timeline { position: relative; max-width: 920px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 2px; margin-right: -1px; background: var(--line); }
.timeline .progress { position: absolute; top: 0; right: 50%; width: 2px; margin-right: -1px; height: var(--p, 0%); background: linear-gradient(var(--gold-2), var(--gold)); box-shadow: 0 0 12px var(--gold); }
.chapter { position: relative; width: 50%; padding: 0 48px 56px; }
.chapter:nth-child(odd) { margin-inline-start: 0; }
.chapter:nth-child(even) { margin-inline-start: 50%; }
.chapter .n {
  position: absolute; top: 2px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: #1c1407; background: var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(234,184,95,.5);
}
.chapter:nth-child(odd) .n { left: -23px; }
.chapter:nth-child(even) .n { right: -23px; }
.chapter h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 6px; color: var(--gold-2); }
.chapter p { color: var(--muted); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.portrait { position: relative; width: min(330px, 80%); margin-inline: auto; isolation: isolate; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 32px; }
.portrait::before { content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: 38px;
  background: conic-gradient(from var(--ang, 0deg), var(--gold), transparent 30%, var(--teal), transparent 70%, var(--gold));
  animation: spin 9s linear infinite; }
.founder h2 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.3; }
.founder .role { color: var(--gold); font-weight: 600; margin: 4px 0 18px; }
.founder p { color: var(--muted); font-size: 1.06rem; margin-bottom: 22px; }
.stats { display: flex; gap: 36px; margin: 6px 0 28px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--display); font-size: 2.3rem; color: var(--gold); line-height: 1.1; }
.stats span { color: var(--faint); font-size: .9rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s; }
.value:hover { transform: translateY(-6px); border-color: rgba(234,184,95,.35); }
.value .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 16px; }
.value .ico svg { width: 28px; height: 28px; }
.value h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; }
.value p { color: var(--muted); }

/* ---------- Community ---------- */
.community { position: relative; border-radius: 32px; padding: 56px 40px; overflow: hidden; text-align: center; border: 1px solid rgba(234,184,95,.25);
  background: radial-gradient(600px 300px at 50% 0%, rgba(234,184,95,.16), transparent 70%), var(--surface); }
.community h2 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.community > p { color: var(--muted); margin-bottom: 30px; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: start; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: rgba(7,15,31,.55); border: 1px solid var(--line); border-radius: 18px; transition: transform .25s var(--ease), border-color .25s; }
.link-card:hover { transform: translateY(-4px); border-color: rgba(234,184,95,.4); }
.link-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #1877f2; color: #fff; flex: none; }
.link-card .ico svg { width: 24px; height: 24px; }
.link-card b { display: block; font-family: var(--display); }
.link-card span { color: var(--muted); font-size: .88rem; }

footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: .92rem; margin-top: 90px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold); }

/* ---------- Article / app pages ---------- */
.page { padding: 120px 0 20px; }
.page .wrap { max-width: 860px; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 52px); }
.article h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.3; margin-bottom: 8px; }
.article h2 { font-family: var(--display); font-size: 1.3rem; margin: 32px 0 10px; color: var(--gold-2); }
.article p, .article li { color: var(--muted); }
.article p { margin-bottom: 12px; }
.article ul { padding-inline-start: 22px; margin-bottom: 14px; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--text); }
.article [dir="ltr"] { text-align: left; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.app-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.app-hero img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.feature { padding: 18px; border-radius: 16px; background: rgba(7,15,31,.5); border: 1px solid var(--line); }
.feature b { display: block; font-family: var(--display); margin-bottom: 4px; color: var(--gold-2); }
.feature span { color: var(--muted); font-size: .95rem; }
.back { display: inline-flex; gap: 6px; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero-grid, .founder-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .orbit { width: min(330px, 84%); order: -1; }
  @keyframes orbit {
    from { transform: rotate(0deg) translateX(min(140px, 36vw)) rotate(0deg); }
    to { transform: rotate(360deg) translateX(min(140px, 36vw)) rotate(-360deg); }
  }
  .values, .links { grid-template-columns: 1fr; }
  .timeline::before, .timeline .progress { right: 23px; }
  .chapter, .chapter:nth-child(odd), .chapter:nth-child(even) { width: 100%; margin: 0; padding: 0 70px 44px 0; }
  .chapter .n, .chapter:nth-child(odd) .n, .chapter:nth-child(even) .n { right: 0; left: auto; }
  .nav a:not(.pill) { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  section.block { padding: 80px 0; }
  .btn { width: 100%; justify-content: center; }
  .community { padding: 40px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
