
/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background: var(--hero);
}

/* Geometric background ornament */
.hero-bg-ornament {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  pointer-events: none;
  opacity: 1;
}

.hero-content {
  max-width: 1100px; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative; z-index: 2;
}

.hero-text { max-width: 520px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--accent-green-line);
  border-radius: 20px;
  background: var(--accent-green-dim);
}

.hero-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent-green);
  border-radius: 50%;
  opacity: 0.8;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(38px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--accent-green);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 420px;
}

.arabic-verse {
  font-size: 36px;
  color: var(--accent-green);
  opacity: 0.65;
  margin-bottom: 40px;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.04em;
  /* direction: rtl; */
  text-align: center;
}

/* Download buttons */
.download-buttons {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 320px;
}

.dl-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.dl-btn.primary {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 8px 32px rgba(201,169,110,0.25);
}
.dl-btn.primary:hover {
  background: #d4b07a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.35);
}

.dl-btn.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.dl-btn.secondary:hover {
  border-color: var(--accent-green-line);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.dl-btn-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.dl-btn-icon svg { width: 28px; height: 28px; }

.dl-btn-text { flex: 1; }
.dl-btn-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}
.dl-btn-store {
  font-size: 17px;
  font-weight: 500;
  font-family: 'EB Garamond', serif;
  display: block;
  letter-spacing: 0.01em;
}

.dl-btn.primary .dl-btn-label,
.dl-btn.primary .dl-btn-store { color: #000; }

.dl-btn-arrow {
  font-size: 18px;
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}
.dl-btn:hover .dl-btn-arrow { transform: translateX(3px); opacity: 0.8; }

/* QR option */
.qr-option {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--accent-green-dim);
}

.qr-box {
  width: 52px; height: 52px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-green-line);
  flex-shrink: 0;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(5,8px);
  gap: 2px;
}

.qr-cell {
  width: 8px; height: 8px;
  border-radius: 1px;
}

.qr-on { background: var(--accent-green); }
.qr-off { background: transparent; }

.qr-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.qr-text strong { color: var(--text-secondary); font-weight: 500; display: block; font-size: 13px; margin-bottom: 2px; }

/* ── PHONE MOCKUP ── */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 300px; height: 500px;
  background: 0 0 60px rgba(168,129,62,0.10);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}

.phone-frame {
  width: 280px;
  background: var(--bg-card-alt);
  border-radius: 44px;
  border: 1.5px solid rgba(168,129,62,0.3);
  padding: 14px;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-green-dim);
  position: relative;
  z-index: 2;
  transition: background 0.35s, border-color 0.35s;
}
[data-theme="light"] .phone-frame {
  background: var(--bg-card-alt);
}

.phone-notch {
  width: 80px; height: 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  margin: 0 auto 12px;
  transition: background 0.35s;
}

.phone-screen {
  background: var(--bg-secondary);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
  transition: background 0.35s;
}

/* App UI inside phone */
.app-header {
  background: var(--bg-primary);
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.35s, border-color 0.35s;
}

.app-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.app-logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  color: var(--accent-green);
  letter-spacing: 0.06em;
}

.app-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-green-dim);
  border: 1px solid var(--accent-green-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--accent-green);
  font-family: 'EB Garamond', serif;
}

.app-greeting {
  font-size: 10px; color: var(--text-muted); margin-bottom: 2px;
}
.app-name {
  font-size: 13px; color: var(--text-primary); font-weight: 500;
}

.app-streak-bar {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}
.streak-icon { font-size: 11px; }
.streak-text { font-size: 10px; color: var(--accent-green); }
.streak-progress {
  flex: 1; height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}
.streak-fill {
  height: 100%; width: 72%;
  background: var(--accent-green);
  border-radius: 2px;
}

.app-body { padding: 12px 14px; }

.app-section-title {
  font-size: 9px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Word card */
.word-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  transition: background 0.35s, border-color 0.35s;
}

.word-arabic {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  color: var(--accent-green);
  text-align: right;
  margin-bottom: 6px;
  direction: rtl;
}

.word-meta {
  display: flex; justify-content: space-between; align-items: center;
}

.word-eng { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.word-root { font-size: 9px; color: var(--text-muted); }

.word-tag {
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--accent-green-dim);
  color: var(--accent-green);
  letter-spacing: 0.06em;
}

/* Progress row */
.progress-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px; margin-bottom: 10px;
}

.prog-item {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: background 0.35s, border-color 0.35s;
}

.prog-num { font-size: 14px; font-weight: 500; color: var(--accent-green); font-family: 'EB Garamond', serif; }
.prog-label { font-size: 8px; color: var(--text-muted); margin-top: 1px; }

/* lesson row */
.lesson-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--border-color);
  transition: background 0.35s, border-color 0.35s;
}

.lesson-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dot-gold { background: var(--accent-green); }
.dot-muted { background: var(--border-color); }

.lesson-text { flex: 1; }
.lesson-name { font-size: 10px; color: var(--text-secondary); font-weight: 500; }
.lesson-sub { font-size: 8px; color: var(--text-muted); }
.lesson-badge {
  font-size: 8px; padding: 2px 6px;
  border-radius: 6px; background: var(--accent-green-dim); color: var(--accent-green);
}

/* phone home indicator */
.phone-home {
  width: 80px; height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ── STATS ── */
.stats-strip {
  padding: 52px 48px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: background 0.35s, border-color 0.35s;
}

.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--border-color);
}

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── FEATURES ── */
.features {
  padding: 100px 48px;
  background: var(--bg-primary);
  transition: background 0.35s;
}

.features-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 16px;
  opacity: 0.8;
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  /* font-weight: 300; */
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h2 em { font-style: italic; color: var(--accent-green); }

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green-line), transparent);
}

.feature-card:hover {
  border-color: var(--accent-green-line);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-green-dim);
  border: 1px solid var(--accent-green-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── ROLES ── */
.roles {
  padding: 100px 48px;
  background: var(--bg-secondary);
  transition: background 0.35s;
}

.roles-inner { max-width: 1100px; margin: 0 auto; }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.role-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  background: var(--bg-card);
  transition: all 0.3s;
  position: relative;
}

.role-card:hover {
  border-color: var(--accent-green-line);
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(168,129,62,0.10), var(--shadow-card);
}

.role-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-green-dim);
  border: 1px solid var(--accent-green-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.role-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.role-subtitle {
  font-size: 11px;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.75;
}

.role-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── BOTTOM CTA ── */
.cta-section {
  padding: 120px 48px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

.cta-ornament {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  pointer-events: none;
  opacity: 0.6;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative; z-index: 2;
}

.cta-arabic {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  color: var(--accent-green);
  opacity: 0.55;
  margin-bottom: 28px;
  direction: rtl;
}

.cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.cta-title em { font-style: italic; color: var(--accent-green); }

.cta-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .dl-btn { min-width: 200px; }



/* Responsive */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; }
  .hero-phone { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .roles-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 24px 60px; }
  .features { padding: 64px 24px; }
  .roles { padding: 64px 24px; }
  .cta-section { padding: 80px 24px; }
  footer { padding: 32px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}