/* ==========================================================================
   Sandooq El-Amara - Premium Landing Page Styles (Arabic RTL)
   ========================================================================== */

:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --danger-color: #ef4444;

  --bg-color: #0b1120;
  --card-bg: #1e293b;
  --card-bg-subtle: #182234;
  --border-color: #334155;
  --border-light: rgba(255, 255, 255, 0.08);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  --header-bg: rgba(11, 17, 32, 0.85);
  --header-border: rgba(51, 65, 85, 0.6);

  --glow-1: rgba(30, 58, 138, 0.35);
  --glow-2: rgba(16, 185, 129, 0.25);
  --glow-3: rgba(245, 158, 11, 0.2);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.06);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #334155;

  --header-bg: rgba(248, 250, 252, 0.9);
  --header-border: rgba(226, 232, 240, 0.8);

  --glow-1: rgba(59, 130, 246, 0.15);
  --glow-2: rgba(16, 185, 129, 0.12);
  --glow-3: rgba(245, 158, 11, 0.1);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Animated Ambient Gradient Orbs */
.bg-gradient-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--glow-1);
  top: -100px;
  right: -50px;
  animation-duration: 16s;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: var(--glow-2);
  bottom: 10%;
  left: -80px;
  animation-duration: 22s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--glow-3);
  top: 45%;
  right: 25%;
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: var(--transition);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--primary-light);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: scale(1.06);
  border-color: var(--primary-light);
}

.sun-icon { display: none; width: 20px; height: 20px; }
.moon-icon { display: block; width: 20px; height: 20px; }

body.light-theme .sun-icon { display: block; }
body.light-theme .moon-icon { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--text-main);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
}

.button.secondary {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.button.secondary:hover {
  background: var(--card-bg-subtle);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #38bdf8, #3b82f6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: 1.18rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.hero .sub-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-color);
}

/* Hero Phone Frame Mockup */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(145deg, #2a374a, #111827);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  overflow: hidden;
  border-radius: 32px;
  background: #0b1120;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Why Built Section */
.why-built-section {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto 50px;
  padding-left: 24px;
  padding-right: 24px;
}

.why-built-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.why-built-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #3b82f6, #10b981);
}

.why-built-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.why-built-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-header .lead-text {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card.featured {
  background: linear-gradient(145deg, var(--card-bg), rgba(37, 99, 235, 0.08));
  border-color: rgba(59, 130, 246, 0.4);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Interactive Showcase */
.interactive-showcase {
  padding: 80px 0;
  background: var(--card-bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.showcase-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0 20px;
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  text-align: right;
}

.showcase-tab svg {
  width: 22px;
  height: 22px;
}

.showcase-tab.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.tab-caption-container {
  margin-top: 16px;
}

.tab-caption {
  display: none;
}

.tab-caption.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.tab-caption h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.tab-caption p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.showcase-media {
  display: flex;
  justify-content: center;
}

.showcase-screen {
  max-width: 320px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--border-color);
}

.showcase-screen img {
  width: 100%;
  display: block;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: scale(1.03);
}

.gallery-card img {
  width: 100%;
  display: block;
}

.gallery-item span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Download Section */
.download-section {
  padding: 90px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.download-box {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.download-box h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.download-box p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 36px;
}

.download-buttons-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-download svg {
  width: 28px;
  height: 28px;
  color: #0f172a;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-download div {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.btn-download .small-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.btn-download .large-lbl {
  font-size: 1.1rem;
  font-weight: 800;
}

/* FAQ Section */
.faq-section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.faq-plus {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary-light);
}

.faq-item.active .faq-plus {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-item.active .faq-panel {
  max-height: 400px;
  padding-bottom: 20px;
  transition: max-height 0.4s ease-in;
}

.faq-panel p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Footer */
.site-footer {
  background: var(--card-bg-subtle);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  text-align: right;
  margin-bottom: 32px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-brand-p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .footer-brand-p {
    max-width: 100%;
  }
}

/* ==========================================================================
   Marketing Additions: Stats, Comparison, Pricing, Testimonials & Badges
   ========================================================================== */

/* 1. Stats Counter Bar */
.stats-section {
  padding: 20px 24px 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1.2;
  margin-bottom: 6px;
  font-family: inherit;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 2. Comparison Section (Old Way vs Sandooq) */
.comparison-section {
  padding: 70px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.comparison-table-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 36px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-header {
  padding: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.comparison-header.old {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger-color);
  border-left: 1px solid var(--border-color);
}

.comparison-header.new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary-color);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-color);
}

.comparison-cell {
  padding: 18px 22px;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}

.comparison-cell.old {
  background: rgba(239, 68, 68, 0.03);
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
}

.comparison-cell.new {
  background: rgba(16, 185, 129, 0.04);
  color: var(--text-main);
  font-weight: 600;
}

.comparison-cell .icon-cross {
  color: var(--danger-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.comparison-cell .icon-check {
  color: var(--secondary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Feature Badge */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feature-badge.whatsapp {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.feature-badge.projects {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.feature-badge.reports {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.feature-badge.security {
  background: rgba(139, 92, 246, 0.15);
  color: #a855f7;
}

.feature-badge.custody {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

/* 3. Pricing & Licensing Section */
.pricing-section {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--primary-light);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.25) 0%, var(--card-bg) 100%);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #ffffff;
  padding: 4px 18px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 44px;
}

.pricing-price-box {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.pricing-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-light);
}

.pricing-features-list li svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.payment-methods-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.instapay-tag {
  background: #f59e0b;
  color: #111827;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
}

/* 4. Referral / Gift Program Banner */
.referral-banner-section {
  padding: 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.referral-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.referral-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.referral-content p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 650px;
  line-height: 1.7;
}

/* 5. Testimonials Section */
.testimonials-section {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

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

.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-light);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-info h3,
.author-info h4,
.author-info .author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Content visible by default for SEO, screen readers, and disabled JS */
.reveal {
  opacity: 1;
  transform: none;
}

/* Progressive enhancement: Animate only when JS is enabled and user doesn't prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js-ready .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px 60px;
  }
  .hero-actions, .trust {
    justify-content: center;
  }
  .showcase-container {
    grid-template-columns: 1fr;
  }
  .comparison-grid, .comparison-row {
    grid-template-columns: 1fr;
  }
  .comparison-cell.old, .comparison-header.old {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }
  .referral-card {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    top: 68px;
    right: 0;
    width: 100%;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .download-box {
    padding: 40px 20px;
  }
  .download-box h2 {
    font-size: 1.8rem;
  }
}

/* Mobile & Accessibility Enhancements */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: var(--radius-sm);
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.35;
  }
  .stat-card {
    padding: 18px 14px;
  }
  .stat-card .stat-number {
    font-size: 1.55rem;
  }
  .pricing-card {
    padding: 28px 18px;
  }
  .guide-article {
    padding: 24px 16px;
  }
}


