/* ============================
   IqraLingo - Official Website
   Design System & Global Styles
   ============================ */

/* --- CSS Variables --- */
:root {
  --gold: #D4AF37;
  --gold-light: #F0D878;
  --gold-dark: #B8960C;
  --bg-dark: #1D1A39;
  --bg-darker: #13112A;
  --surface: #451952;
  --surface-light: #5C2D6E;
  --purple-gradient-start: #1D1A39;
  --purple-gradient-end: #451952;
  --text-light: #FFFFFF;
  --text-muted: #B8B5C8;
  --text-gold: #D4AF37;
  --card-bg: rgba(69, 25, 82, 0.4);
  --card-border: rgba(212, 175, 55, 0.15);
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-xxl: 64px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Islamic Pattern Background --- */
.islamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23D4AF37' fill-opacity='1'%3E%3Cpath d='M40 0L48.28 11.72L60 0L60 20L80 20L68.28 31.72L80 40L68.28 48.28L80 60L60 60L60 80L48.28 68.28L40 80L31.72 68.28L20 80L20 60L0 60L11.72 48.28L0 40L11.72 31.72L0 20L20 20L20 0L31.72 11.72L40 0z' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

/* --- Geometric Pattern Overlay --- */
.geometric-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50Z' fill='none' stroke='%23D4AF37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23D4AF37' stroke-width='0.3'/%3E%3Ccircle cx='50' cy='50' r='15' fill='none' stroke='%23D4AF37' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(29, 26, 57, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-brand img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
}

.nav-brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.nav-brand-text span {
  color: var(--text-light);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(69, 25, 82, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: var(--spacing-lg);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.35);
  color: var(--bg-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: transparent;
  color: var(--text-light);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.phone-mockup {
  position: relative;
  width: 300px;
  z-index: 2;
}

.phone-frame {
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(212, 175, 55, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

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

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #111;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* --- Section Styles --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Features Section --- */
.features {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

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

/* --- Screenshots Section --- */
.screenshots {
  background: var(--bg-darker);
  overflow: hidden;
}

.screenshots-wrapper {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  perspective: 1000px;
}

.screenshot-item {
  width: 220px;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
}

.screenshot-item:hover {
  transform: scale(1.05) translateY(-10px);
}

.screenshot-item img {
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.1);
}

.screenshot-item .caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
  font-weight: 500;
}

/* --- How It Works --- */
.how-it-works {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Testimonial / Quote Section --- */
.quote-section {
  background: linear-gradient(135deg, var(--surface), var(--surface-light));
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.quote-section::before,
.quote-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

.quote-section::before {
  top: -100px;
  left: -100px;
}

.quote-section::after {
  bottom: -100px;
  right: -100px;
}

.quote-arabic {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: var(--spacing-md);
  direction: rtl;
  line-height: 2;
}

.quote-translation {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.quote-source {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-dark);
  text-align: center;
  padding: 100px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--surface), var(--bg-dark));
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xxl);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.cta-card p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
  font-size: 1.05rem;
  position: relative;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  position: relative;
}

.store-badge {
  height: 56px;
  transition: var(--transition);
}

.store-badge:hover {
  transform: translateY(-3px);
}

/* Fallback store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.store-btn.google-play {
  background: var(--bg-dark);
  border: 2px solid rgba(212, 175, 55, 0.3);
  color: var(--text-light);
}

.store-btn.google-play:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--text-light);
}

.store-btn .store-icon {
  font-size: 1.6rem;
}

.store-btn .store-text {
  text-align: left;
  line-height: 1.3;
}

.store-btn .store-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  font-weight: 400;
}

.store-btn .store-text strong {
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Privacy Policy & Terms Pages --- */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xxl);
}

.legal-card .legal-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.legal-card .legal-header h1 {
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.legal-card .legal-header .date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-card .legal-highlight {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.legal-card .legal-highlight strong {
  color: var(--gold);
}

.legal-card h2 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.legal-card h3 {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-card p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.legal-card ul {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-card ul li {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
  list-style: disc;
}

.legal-card ul li strong {
  color: var(--text-light);
}

.legal-card .contact-box {
  background: linear-gradient(135deg, var(--surface), var(--bg-dark));
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.legal-card .contact-box p {
  margin-bottom: var(--spacing-sm);
}

.legal-card .legal-footer {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Star Decoration --- */
.star-decoration {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 26, 57, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .phone-mockup {
    width: 240px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .screenshots-wrapper {
    gap: var(--spacing-md);
  }

  .screenshot-item {
    width: 160px;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .legal-card {
    padding: var(--spacing-lg);
  }

  .legal-card .legal-header h1 {
    font-size: 1.6rem;
  }

  .cta-card {
    padding: var(--spacing-xl);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .screenshot-item {
    width: 140px;
  }

  .quote-arabic {
    font-size: 1.4rem;
  }
}

/* --- Utility Classes --- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}
