:root {
  --bg: #070b16;
  --bg-2: #0d1426;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #eef3ff;
  --muted: #9aa8c7;
  --gold: #f0c27a;
  --gold-2: #d4a25a;
  --cyan: #6ee7ff;
  --violet: #8b7cff;
  --pink: #ff7ab6;
  --success: #4ade80;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(139, 124, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 194, 122, 0.12), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #0a1020 40%, #070b16 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold);
  background: rgba(255,255,255,0.05);
  padding: 0.1em 0.4em;
  border-radius: 8px;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.bg-orb, .bg-grid, #particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-orb {
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-a {
  background: radial-gradient(circle at 20% 20%, rgba(110, 231, 255, 0.16), transparent 35%);
}
.orb-b {
  background: radial-gradient(circle at 80% 30%, rgba(255, 122, 182, 0.12), transparent 30%);
  animation-delay: -6s;
}
@keyframes orb-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.08); }
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  opacity: 0.4;
}
#particle-canvas { z-index: 0; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 20;
  transition: box-shadow .25s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #120d08;
  background: linear-gradient(135deg, var(--gold), #fff1cf 45%, var(--gold-2));
  box-shadow: 0 10px 30px rgba(240, 194, 122, 0.25);
  animation: mark-glow 3.2s ease-in-out infinite;
}
@keyframes mark-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(240, 194, 122, 0.22); }
  50% { box-shadow: 0 14px 40px rgba(240, 194, 122, 0.45); }
}
.brand strong { display: block; font-size: 1rem; letter-spacing: 0.01em; }
.brand small { color: var(--muted); font-size: 0.78rem; }
.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #140f08;
  background: linear-gradient(135deg, #ffe7b2, var(--gold) 40%, var(--gold-2));
  box-shadow: 0 12px 30px rgba(240, 194, 122, 0.28);
}
.btn-ghost {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.24); }

/* ===== Full-width centered hero image ===== */
.hero-full {
  padding: 1.75rem 0 0.75rem;
}
.hero-full-inner {
  width: min(1024px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-full {
  width: 100%;
  max-width: 1024px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 60px rgba(110, 231, 255, 0.08);
  animation: card-in 0.8s ease both, hero-float 6s ease-in-out infinite;
  background: #0a1020;
  object-fit: contain;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ===== Intro section under hero ===== */
.intro-section {
  padding-top: 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 255, 0.2);
  background: rgba(110, 231, 255, 0.06);
  color: #bff5ff;
  font-size: 0.84rem;
  margin-bottom: 1.2rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero-copy h1, .section-head h2, .cta-card h2, .islamic h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin: 0 0 1.1rem;
  max-width: 14ch;
}
.hero-copy h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), #fff4d4 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 1.8rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.hero-stats div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform .25s ease, border-color .25s ease;
}
.hero-stats div:hover {
  transform: translateY(-3px);
  border-color: rgba(240,194,122,0.28);
}
.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.hero-stats span { color: var(--muted); font-size: 0.86rem; }

/* ===== Stage cards / animated demos ===== */
.stage-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: card-in 0.8s ease both;
}
.stage-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff6b6b; }
.dot.amber { background: #ffd166; }
.dot.green { background: #6ee7a8; }
.stage-url {
  margin-left: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.stage-body { padding: 1.2rem; }
.pipeline {
  display: grid;
  gap: 0.7rem;
}
.phase {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.phase span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b1020;
  background: linear-gradient(135deg, #c7d2fe, #8b7cff);
}
.phase strong { font-size: 0.98rem; }
.phase small { color: var(--muted); }
.phase.active {
  border-color: rgba(240, 194, 122, 0.35);
  background: linear-gradient(135deg, rgba(240,194,122,0.12), rgba(139,124,255,0.08));
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(240,194,122,0.08);
}
.progress-block { margin: 1.1rem 0 1rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-fill {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  background-size: 200% 100%;
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.35);
  transition: width .4s ease;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.slide-preview {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
}
.slide-thumb {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(240,194,122,0.4);
  background:
    linear-gradient(180deg, rgba(240,194,122,0.16), transparent 48%),
    radial-gradient(circle at 22% 30%, rgba(240,194,122,0.3), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(110,231,255,0.2), transparent 45%),
    linear-gradient(160deg, #1a2340, #0c1222);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 16px 40px rgba(240,194,122,0.14);
  animation: slide-in 0.45s ease both;
  box-sizing: border-box;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.slide-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #120d08;
  background: linear-gradient(135deg, #ffe7b2, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 14px 32px rgba(240,194,122,0.32);
  font-size: 86px;
  line-height: 1;
}
.slide-icon i,
.slide-icon .fa,
.slide-icon .fa-solid {
  font-size: 86px !important;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: grid;
  place-items: center;
}
.slide-icon svg {
  width: 86px;
  height: 86px;
  display: block;
}
.slide-label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.slide-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffe7b2;
}
.slide-title {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
  color: #f8fafc;
}
.slide-sub {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 500;
}
.pipeline {
  width: 100%;
}
.phase[hidden] {
  display: none !important;
}

.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; max-width: 720px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.8rem;
}
.section-head h2, .islamic h2, .cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 0.8rem;
}
.section-head p, .islamic .lede { color: var(--muted); line-height: 1.7; }

.flow-grid, .feature-grid, .split-grid, .islam-cards {
  display: grid;
  gap: 1rem;
}
.flow-grid { grid-template-columns: repeat(4, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.split-grid { grid-template-columns: repeat(3, 1fr); }
.islam-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.glass-card, .panel, .feature-card, .roadmap-item {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 1.25rem 1.3rem;
}
.glass-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  font-weight: 800;
  color: #120d08;
  background: linear-gradient(135deg, var(--gold), #fff0c8);
}
.glass-card h3, .panel h3, .feature-card h3, .roadmap-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.glass-card p, .panel li, .feature-card p, .roadmap-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.feature-toolbar, .roadmap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.chip {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover, .chip.active {
  color: #120d08;
  background: linear-gradient(135deg, #ffe7b2, var(--gold));
  border-color: transparent;
}
.feature-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(110,231,255,0.18), transparent 70%);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,194,122,0.28);
  background: rgba(255,255,255,0.06);
}
.feature-card .tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7dbff;
  background: rgba(139,124,255,0.14);
  border: 1px solid rgba(139,124,255,0.22);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.feature-card.hidden { display: none; }

.islamic {
  background: linear-gradient(180deg, transparent, rgba(240,194,122,0.04), transparent);
}
.islam-cards { grid-template-columns: 1fr; }

.roadmap-list {
  display: grid;
  gap: 0.8rem;
}
.roadmap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.roadmap-item .num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b1020;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.cta { padding-bottom: 5rem; }
.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 32px;
  border: 1px solid rgba(240,194,122,0.18);
  background:
    linear-gradient(135deg, rgba(240,194,122,0.12), rgba(139,124,255,0.1) 45%, rgba(110,231,255,0.08)),
    rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid, .islam-grid, .flow-grid, .feature-grid, .split-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .hero-full { padding-top: 1rem; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .hero-image-full { border-radius: 18px; }
}
