@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2");
}

:root {
  --brand: #c2410c;
  --brand-dark: #7c2d12;
  --brand-gold: #f59e0b;
  --cream: #fff8ed;
  --cream-deep: #f9ecd8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #ead9c2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
  --radius: 22px;
  --font: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 237, 0.94);
  border-bottom: 1px solid rgba(194, 65, 12, 0.1);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand));
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.25);
}

.brand-mark svg { width: 26px; height: 26px; }
.brand-text b { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; font-weight: 700; }
.site-nav > a:not(.nav-cta) { color: #4b5563; }
.site-nav > a:not(.nav-cta):hover { color: var(--brand); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.22);
}

.nav-cta:hover { background: var(--brand-dark); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span { display: block; height: 2px; background: var(--brand-dark); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 78px;
  background: radial-gradient(circle at 80% 15%, #ffe6bd 0, rgba(255, 230, 189, 0) 45%),
              linear-gradient(180deg, var(--cream) 0, #fffaf2 100%);
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  left: -220px;
  top: -260px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(245, 158, 11, 0.14);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.28;
  margin: 0 0 18px;
  color: var(--brand-dark);
}

.hero h1 span { color: var(--brand); }

.lead {
  font-size: 1.08rem;
  color: #4b5563;
  max-width: 540px;
  margin: 0 0 26px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px rgba(194, 65, 12, 0.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: #fff4e6; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-left: 7px; }

/* Phone mockup */

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }

.phone {
  position: relative;
  width: 310px;
  max-width: 88vw;
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2a1810, #100905);
  box-shadow: 0 30px 60px rgba(60, 25, 8, 0.3);
  border: 2px solid #4a3326;
}

.phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 84px;
  height: 18px;
  margin-left: -42px;
  border-radius: 0 0 14px 14px;
  background: #100905;
  z-index: 2;
}

.phone-screen {
  background: var(--cream);
  border-radius: 30px;
  padding: 34px 14px 12px;
  min-height: 490px;
}

.mini-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mini-logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--brand-gold), var(--brand)); }
.mini-name { font-size: 0.82rem; font-weight: 700; line-height: 1.15; }
.mini-name small { display: block; font-size: 0.6rem; color: var(--muted); }
.mini-avatar { margin-right: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 0.75rem; }

.mini-balance {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-balance span { font-size: 0.72rem; opacity: 0.85; }
.mini-balance b { font-size: 1.3rem; }
.mini-balance small { margin-right: auto; font-size: 0.65rem; opacity: 0.8; }

.mini-title { font-size: 0.85rem; font-weight: 700; margin: 0 0 8px; }

.mini-game {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 9px;
  margin-bottom: 8px;
}

.mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff1da; font-size: 1.1rem; }
.mini-game > span:nth-child(2) { font-size: 0.72rem; line-height: 1.2; }
.mini-game small { display: block; color: var(--muted); font-size: 0.6rem; }
.mini-game em { margin-right: auto; font-style: normal; font-size: 0.68rem; color: var(--brand); font-weight: 700; }

.mini-tabs { display: flex; justify-content: space-between; gap: 4px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.58rem; color: var(--muted); }
.mini-tabs .active { color: var(--brand); font-weight: 700; }

.floating-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 7px;
}

.floating-card-one { right: 2%; top: 16%; }
.floating-card-two { left: 0; bottom: 18%; }

/* ---------- Strip ---------- */

.strip { background: var(--brand-dark); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.strip-grid div { display: flex; flex-direction: column; }
.strip-grid b { font-size: 1.7rem; line-height: 1.3; color: #ffd28a; }
.strip-grid span { font-size: 0.85rem; opacity: 0.9; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-tint { background: #fffaf2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--brand-dark); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #fff1da; font-size: 1.5rem; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; color: var(--brand-dark); font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Featured customization card */

.feature.featured {
  background: #0f766e;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: #0f766e;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.28);
}

.feature.featured .feature-icon { background: rgba(255, 255, 255, 0.16); }
.feature.featured h3 { color: #fff; }
.feature.featured p { color: rgba(255, 255, 255, 0.92); }

.feature-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Showcase */

.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.show-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.show-label { font-size: 0.8rem; font-weight: 700; color: var(--brand); padding: 0 6px 10px; }

.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fffdf9; }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #f6ead9; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e2a06f; }
.browser-bar span { margin-right: auto; font-size: 0.62rem; color: #9a7a5c; direction: ltr; }
.browser-body { padding: 16px; min-height: 262px; }

.dash-row { display: flex; gap: 10px; }
.mini-hero-card { flex: 2; border-radius: 12px; padding: 12px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.mini-hero-card span { font-size: 0.68rem; opacity: 0.85; display: block; }
.mini-hero-card b { display: block; font-size: 0.88rem; margin: 3px 0 8px; }
.mini-hero-card em { font-style: normal; font-size: 0.65rem; background: #fff; color: var(--brand); padding: 3px 10px; border-radius: 999px; }
.mini-stat { flex: 1; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mini-stat span { font-size: 0.65rem; color: var(--muted); }
.mini-stat b { font-size: 1.2rem; color: var(--brand); }

.dash-line { height: 8px; border-radius: 6px; background: #f1e4d3; margin-top: 14px; }
.dash-line.short { width: 62%; }
.dash-cards { display: flex; gap: 8px; margin-top: 16px; }
.dash-cards span { flex: 1; text-align: center; font-size: 0.66rem; padding: 10px 4px; border-radius: 10px; background: #fff4e6; border: 1px solid var(--line); }

.admin-body { display: flex; gap: 12px; }
.admin-side { width: 116px; flex: 0 0 116px; background: #2b1a12; border-radius: 10px; padding: 10px 8px; color: #d8c7ba; display: flex; flex-direction: column; gap: 4px; }
.admin-side b { color: #fff; font-size: 0.7rem; padding: 4px 6px 8px; }
.admin-side span { font-size: 0.6rem; padding: 5px 6px; border-radius: 7px; }
.admin-side span.active { background: var(--brand); color: #fff; }
.admin-main { flex: 1; min-width: 0; }
.admin-stats { display: flex; gap: 7px; }
.admin-stats span { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px 2px; font-size: 0.58rem; color: var(--muted); }
.admin-stats b { display: block; font-size: 0.95rem; color: var(--brand-dark); }

.admin-table { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.6fr 0.8fr 0.7fr; gap: 4px; font-size: 0.6rem; padding: 8px 7px; border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
.tr.head { background: #f8efe2; font-weight: 700; }
.pill { color: #15803d; background: #dcfce7; border-radius: 999px; text-align: center; }
.pill.muted { color: #6b7280; background: #f1f5f9; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px 18px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-size: 1rem; color: var(--brand-dark); margin: 0 0 6px; }
.step p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* CTA + footer */

.cta { padding: 60px 0; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta .eyebrow { background: rgba(255, 255, 255, 0.16); color: #ffe0b2; }
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 8px; }
.cta p { margin: 0; max-width: 620px; opacity: 0.9; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.site-footer { padding: 26px 0; background: #2b1a12; color: #d8c7ba; font-size: 0.82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Reveal animation */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Copy-to-clipboard confirmation */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2b1a12;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast.show { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .show-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .floating-card-one { right: 0; }
}

@media (max-width: 700px) {
  .menu-toggle { display: block; order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.nav-cta) { padding: 9px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 60px; }
  .section { padding: 54px 0; }
  .admin-side { width: 92px; flex-basis: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
