/* ===========================
   AyahMind — Premium Islamic Theme
   =========================== */

:root {
  --bg: #F9F6F0;
  --bg-alt: #F0EDE5;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --green: #0A3D2E;
  --green-light: #E8F0EC;
  --gold: #D4AF37;
  --gold-light: #F5EDCC;
  --cream: #FDF9F2;
  --border: #E2DDD4;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--gold) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 30px, var(--green) 30px, var(--green) 31px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, var(--green) 30px, var(--green) 31px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: #8B6914;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: #8B6914;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--green);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-note {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* Hero Card Stack */
.hero-visual { position: relative; z-index: 1; }
.hero-card-stack {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
}
.hero-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  width: 280px;
}
.hero-card-1 {
  top: 20px; left: 20px;
  animation: float 4s ease-in-out infinite;
}
.hero-card-2 {
  top: 140px; right: 0;
  animation: float 4s ease-in-out infinite 1s;
}
.hero-card-3 {
  bottom: 40px; left: 60px;
  animation: float 4s ease-in-out infinite 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon-gold { background: var(--gold-light); color: #8B6914; }
.card-icon-green { background: var(--green-light); color: var(--green); }

/* Features */
.features {
  padding: 100px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 48px; height: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-item p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Adventure */
.adventure {
  background: var(--green);
  padding: 100px 64px;
}
.adventure-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.adventure .section-label { color: var(--gold); }
.adventure-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.adventure-text > p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.adventure-missions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.mission-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mission-item strong {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.mission-item span {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.adventure-note {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-style: italic;
}
.adventure-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.adv-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.adv-progress { margin-bottom: 20px; }
.adv-progress-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.adv-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.adv-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.adv-xp {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.xp-pill, .streak-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.xp-pill {
  background: var(--gold);
  color: var(--green);
}
.streak-pill {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.adv-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.adv-badge-small {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
}
.adv-badge-small.earned {
  background: var(--gold);
  border-color: var(--gold);
}
.adv-moral {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

/* Plans */
.plans {
  padding: 100px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.plan-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.plan-card-featured {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 16px 48px rgba(10,61,46,0.15);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-header { margin-bottom: 24px; }
.plan-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}
.plan-card-featured .plan-header h3 { color: white; }
.plan-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.plan-card-featured .plan-price { color: white; }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--fg-muted); }
.plan-card-featured .plan-price span { color: rgba(255,255,255,0.6); }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.plan-features li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  color: var(--fg);
}
.plan-card-featured .plan-features li { color: rgba(255,255,255,0.85); }
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%230A3D2E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.plan-card-featured .plan-features li::before {
  background: rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-features li.excluded { color: var(--fg-muted); opacity: 0.5; }
.plan-features li.excluded::before {
  background: var(--bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}
.plan-cta {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}
.plan-card-featured .plan-cta { color: rgba(255,255,255,0.5); }
.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Languages */
.languages {
  background: var(--bg-alt);
  padding: 80px 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.languages-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.languages h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.languages p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lang-flag {
  width: 48px; height: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.lang-item span {
  font-size: 11px;
  color: var(--fg-muted);
  text-align: center;
}
.lang-rtl {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* Closing */
.closing {
  padding: 100px 64px;
  background: var(--green);
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-badge {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.closing p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}
.closing-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
  text-align: left;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.pillar-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.closing-vision {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,0.5) !important;
}
.closing-vision-strong {
  color: rgba(255,255,255,0.85) !important;
  font-style: normal !important;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #061E16;
  padding: 64px 64px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .adventure-inner { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .languages-inner { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-links { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .closing, .plans, .features, .languages, .adventure { padding: 64px 24px; }
  .hero { padding: 48px 24px; }
  .nav-inner { padding: 16px 24px; }
}