@font-face {
  font-family: 'Amiri';
  src: url('fonts/Amiri-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri';
  src: url('fonts/Amiri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --emerald: #0F5132;
  --emerald-dark: #0A3A24;
  --emerald-soft: rgba(15, 81, 50, 0.08);
  --gold: #C9A227;
  --gold-soft: #F6EFE0;
  --gold-border: rgba(201, 162, 39, 0.45);
  --text: #1A1A1A;
  --muted: #5C6470;
  --border: #E6E1D6;
  --danger: #C62828;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(15, 81, 50, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 81, 50, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(15, 81, 50, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: -0.01em;
}

.brand-domain {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--emerald);
}

.nav-cta {
  padding: 9px 16px !important;
  border-radius: 10px;
  background: var(--emerald);
  color: #fff !important;
  font-size: 13.5px !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--emerald);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 81, 50, 0.22);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 81, 50, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--emerald);
  border-color: var(--emerald);
}

.btn-secondary:hover {
  background: var(--emerald-soft);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover {
  background: #b8911e;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 13.5px;
  border-radius: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 68px;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.14), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(15, 81, 50, 0.08), transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 44px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--emerald);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--emerald);
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 560px;
}

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

.hero-note {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--muted);
}

.hero-note a {
  color: var(--emerald);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Interactive Phone Mockup */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 100%;
  max-width: 360px;
  background: #141917;
  border-radius: 34px;
  padding: 11px;
  box-shadow: 0 24px 60px rgba(15, 81, 50, 0.22), 0 4px 14px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  background: var(--bg);
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.mock-appbar {
  background: var(--emerald);
  color: #fff;
  padding: 13px 15px 10px;
}

.mock-appbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mock-surah-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.mock-verse-meta {
  font-size: 11.5px;
  color: var(--gold-soft);
  margin-top: 2px;
}

.mock-hearts {
  display: flex;
  gap: 4px;
  font-size: 15px;
  color: #ff6b6b;
}

.mock-progress-track {
  margin-top: 9px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--gold);
  transition: width 0.3s ease;
}

.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--emerald);
  background: var(--emerald-soft);
  color: var(--emerald);
  cursor: pointer;
}

.mock-chip.off {
  border-color: var(--border);
  background: var(--bg);
  color: var(--muted);
}

.mock-reset-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.mock-reading {
  padding: 12px;
}

.mock-bismillah {
  text-align: center;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.mock-bismillah-ar {
  font-family: 'Amiri', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--emerald);
  direction: rtl;
  line-height: 1.4;
}

.mock-bismillah-id {
  font-size: 10.5px;
  font-style: italic;
  color: var(--muted);
  margin-top: 2px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  min-height: 120px;
  direction: rtl;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 9px;
}

.mock-word {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 5px;
  border-radius: 8px;
}

.mock-word.just-revealed {
  background: var(--emerald-soft);
  animation: popWord 0.28s ease-out;
}

.mock-word-ar {
  font-family: 'Amiri', serif;
  font-size: 24px;
  line-height: 1.3;
  color: var(--text);
}

.mock-word.just-revealed .mock-word-ar {
  color: var(--emerald);
  font-weight: 700;
}

.mock-word-tr {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  direction: ltr;
  line-height: 1.15;
  margin-top: 2px;
}

.mock-word.just-revealed .mock-word-tr {
  color: var(--emerald);
}

.mock-target {
  min-width: 58px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 2px solid var(--gold);
  background: rgba(201, 162, 39, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--emerald);
  animation: pulseSlot 1.3s ease-in-out infinite;
}

.mock-pill {
  width: 36px;
  height: 22px;
  border-radius: 7px;
  background: #EAE5DA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mock-pill::after {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(92, 100, 112, 0.35);
}

.mock-ayah-marker {
  font-family: 'Amiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  padding: 0 2px;
}

.mock-ayah-marker.muted {
  color: var(--muted);
  opacity: 0.35;
}

.mock-meaning-bar {
  background: var(--gold-soft);
  border-top: 1px solid var(--gold-border);
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
}

.mock-meaning-badge {
  background: var(--emerald);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.mock-choices-panel {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 12px 12px;
}

.mock-choices-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.mock-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mock-choice-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1.3px solid rgba(15, 81, 50, 0.28);
  background: var(--bg);
  font-family: 'Amiri', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  direction: rtl;
}

.mock-choice-btn:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.mock-choice-btn.wrong {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.mock-done-banner {
  text-align: center;
  padding: 10px 8px 4px;
}

.mock-done-banner strong {
  display: block;
  color: var(--emerald);
  font-size: 13.5px;
  margin-bottom: 6px;
}

.demo-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 42px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 81, 50, 0.35);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* How to Play Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Download Section */
.download-box {
  background: var(--emerald);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: var(--shadow-md);
}

.download-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.download-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

.download-header p {
  margin: 0;
  color: var(--gold-soft);
  font-size: 14.5px;
}

.version-tag {
  background: var(--gold);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dl-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.dl-card.recommended {
  background: #ffffff;
  color: var(--text);
  border-color: var(--gold);
}

.dl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--emerald);
  margin-bottom: 8px;
}

.dl-card:not(.recommended) .dl-badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold-soft);
}

.dl-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.dl-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.dl-card:not(.recommended) p {
  color: rgba(255, 255, 255, 0.8);
}

.dl-meta {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 6px;
}

.install-guide {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px 20px;
}

.install-guide h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-soft);
}

.install-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
}

.cert-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: var(--gold-soft);
  word-break: break-all;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-q svg {
  flex-shrink: 0;
  color: var(--emerald);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(230, 225, 214, 0.55);
  padding-top: 12px;
}

.faq-item.open .faq-a {
  display: block;
}

/* Creator, Feedback & Donation */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.support-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.support-card.donation {
  background: var(--gold-soft);
  border-color: var(--gold-border);
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.support-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.support-card.donation p {
  color: #3d3a32;
}

.copy-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--emerald);
  word-break: break-all;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-credits {
  font-size: 12.5px;
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulseSlot {
  0%, 100% {
    border-color: var(--emerald);
    background: rgba(15, 81, 50, 0.08);
  }
  50% {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.2);
  }
}

@keyframes popWord {
  0% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 36px 0 52px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .steps-grid,
  .download-cards,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .download-box {
    padding: 24px 18px;
  }
}
