/* ==========================================================================
   Al-Qur'an Ta' - Modern Dark Emerald & Gold Design System
   Support by Magau Group
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --primary-rgb: 5, 150, 105;
  --primary: #059669;
  --primary-dark: #047857;
  --primary-deep: #064e3b;
  --primary-light: #34d399;
  --primary-accent: #6ee7b7;

  /* Gold Accents */
  --gold-rgb: 217, 119, 6;
  --gold: #d97706;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-glow: rgba(251, 191, 36, 0.35);

  /* Backgrounds */
  --bg-dark: #0b1311;
  --bg-darker: #060c0a;
  --bg-card: rgba(18, 30, 26, 0.75);
  --bg-card-hover: rgba(24, 40, 35, 0.9);
  --bg-glass: rgba(15, 26, 23, 0.65);

  /* Borders & Dividers */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(5, 150, 105, 0.25);
  --border-gold: rgba(217, 119, 6, 0.3);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-emerald: #34d399;
  --text-gold: #fbbf24;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-emerald: 0 10px 30px -5px rgba(5, 150, 105, 0.35);
  --shadow-gold: 0 10px 30px -5px rgba(217, 119, 6, 0.35);

  /* Transition speeds */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #0d221c 0%, var(--bg-dark) 70%);
  min-height: 100vh;
}

/* Utility Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 19, 17, 0.8);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  background: rgba(6, 12, 10, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--border-emerald);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  object-fit: cover;
  transition: var(--transition-bounce);
}

.logo:hover img {
  transform: rotate(-6deg) scale(1.08);
}

.logo-text {
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: rgba(217, 119, 6, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  text-align: center;
}

.btn-playstore {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-emerald);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-playstore:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.5);
  background: linear-gradient(135deg, #10b981 0%, var(--primary) 100%);
}

.btn-playstore svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-emerald);
  color: var(--primary-accent);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.25) 0%, rgba(217, 119, 6, 0.1) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid var(--border-emerald);
  border-radius: 99px;
  color: var(--primary-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  color: var(--gold-light);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-accent) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item svg {
  color: var(--gold);
}

/* Hero Showcase Card / Mockup */
.hero-mockup-wrapper {
  position: relative;
}

.hero-mockup-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.4), rgba(217, 119, 6, 0.3));
  border-radius: 32px;
  filter: blur(30px);
  opacity: 0.6;
  transition: var(--transition-normal);
}

.hero-mockup-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: 28px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-bounce);
}

.hero-mockup-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(5, 150, 105, 0.5);
}

.mockup-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.mockup-features-badge {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mockup-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.825rem;
  color: var(--text-primary);
  font-weight: 600;
}

.mockup-chip svg {
  color: var(--primary-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-section {
  padding: 2.5rem 0;
  background: rgba(6, 12, 10, 0.8);
  border-y: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border-light);
}

.stat-card:last-child {
  border-right: none;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(217, 119, 6, 0.12);
  border-radius: 99px;
  border: 1px solid var(--border-gold);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid var(--border-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
  background: var(--primary);
  color: #ffffff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Quote Card Maker Highlight Section
   ========================================================================== */
.quote-showcase {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1a16 50%, var(--bg-dark) 100%);
  border-y: 1px solid var(--border-emerald);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.quote-content h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.quote-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.theme-chips-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.theme-chip {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-chip.active, .theme-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-accent);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

/* Quote Card Live Preview Box */
.quote-card-preview {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Quote Card Themes */
.theme-zamrud {
  background: linear-gradient(145deg, #022c22 0%, #064e3b 50%, #022c22 100%);
  color: #f8fafc;
}
.theme-emas {
  background: linear-gradient(145deg, #181308 0%, #3a2707 50%, #1c1404 100%);
  color: #fef3c7;
}
.theme-biru {
  background: linear-gradient(145deg, #0b192c 0%, #1e3a8a 50%, #091322 100%);
  color: #eff6ff;
}
.theme-kaligrafi {
  background: linear-gradient(145deg, #0a0a0a 0%, #1e1e1e 50%, #050505 100%);
  color: #f8fafc;
}

.quote-header-arabic {
  text-align: center;
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.quote-ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  text-align: center;
  line-height: 2.2;
  direction: rtl;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.quote-translation {
  font-size: 0.925rem;
  text-align: center;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.6;
}

.quote-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

.quote-surah-tag {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.quote-watermark {
  font-size: 0.725rem;
  opacity: 0.65;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Comparison / Why Choose Table
   ========================================================================== */
.comparison-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.badge-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-accent);
  font-weight: 600;
}

.badge-cross {
  color: var(--text-muted);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-section {
  padding: 90px 0;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, #047857 0%, #064e3b 50%, #0d221c 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 32px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-emerald);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: #a7f3d0;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-accent);
}

.footer-support {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.825rem;
  font-weight: 600;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .quote-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 2.5rem 1.5rem;
  }
  .cta-title {
    font-size: 2rem;
  }
}
