/* Digital Tasbeeh — Shared Styles */

:root {
  --primary-green: #006644;
  --primary-dark: #004D33;
  --primary-light: #E6F2ED;
  --gold: #D4AF37;
  --gold-dark: #AA861E;
  --bg: #F4FAF7;
  --card: #FFFFFF;
  --text: #1A1C1B;
  --text-muted: #5C625F;
  --border: #E0E5E2;
  --shadow-sm: 0 2px 8px rgba(0, 77, 51, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 77, 51, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 77, 51, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --font-ui: 'Outfit', system-ui, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--primary-green);
}

.nav-brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 102, 68, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0, 102, 68, 0.45);
  color: #fff;
}

.btn-play {
  background: #1A1C1B;
  color: #fff;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.btn-play:hover {
  background: #2d302e;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-play svg {
  width: 24px;
  height: 24px;
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: 32px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-green);
  background: var(--primary-light);
  border-radius: 10px;
  transition: background var(--transition);
}

.btn-back:hover {
  background: #d4ebe3;
  color: var(--primary-dark);
}

/* ── Hero ── */

.hero {
  padding: calc(var(--nav-height) + 48px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-green);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 102, 68, 0.12);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary-green), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-green);
  flex-shrink: 0;
}

/* ── Section Commons ── */

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ── Features ── */

.features {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color 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(--primary-green), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 68, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-green);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Mockups ── */

.mockups {
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-light) 100%);
}

.mockups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  justify-items: center;
}

.mockup-wrapper {
  text-align: center;
}

.mockup-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-frame {
  width: 260px;
  background: #1A1C1B;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #333;
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1A1C1B;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  height: 480px;
  position: relative;
}

/* Mockup: Counter Screen */
.mock-counter .screen-header {
  background: var(--primary-green);
  padding: 36px 16px 14px;
  position: relative;
}

.mock-counter .screen-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.mock-counter .screen-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.mock-counter .screen-subtitle {
  color: var(--primary-light);
  font-size: 0.625rem;
  margin-top: 2px;
}

.mock-card {
  margin: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.mock-card-label {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-arabic {
  font-family: var(--font-arabic);
  font-size: 0.875rem;
  color: var(--primary-green);
  text-align: center;
  direction: rtl;
  margin: 8px 0 6px;
  line-height: 1.5;
  font-weight: 700;
}

.mock-translit {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

.mock-progress-bar {
  height: 4px;
  background: var(--primary-light);
  border-radius: 4px;
  margin: 10px 0 4px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  background: var(--primary-green);
  border-radius: 4px;
}

.mock-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mock-progress-text span:last-child {
  color: var(--primary-green);
  font-weight: 700;
}

.mock-tap-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-green), var(--primary-dark));
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 102, 68, 0.4);
}

.mock-tap-circle .count {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.mock-tap-circle .tap-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.mock-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.4375rem;
  color: var(--text-muted);
}

.mock-nav-item.active {
  color: var(--primary-green);
}

.mock-nav-item svg {
  width: 16px;
  height: 16px;
}

/* Mockup: Dua List Screen */
.mock-duas .screen-header {
  background: var(--primary-green);
  padding: 36px 16px 14px;
  position: relative;
}

.mock-duas .screen-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.mock-duas .screen-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.mock-duas .screen-subtitle {
  color: var(--primary-light);
  font-size: 0.625rem;
  margin-top: 2px;
}

.mock-dua-card {
  margin: 10px 12px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 10px 10px 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 3px solid var(--primary-green);
}

.mock-dua-card h4 {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.mock-dua-card .mock-arabic {
  font-size: 0.75rem;
  margin: 4px 0;
}

.mock-dua-card .mock-translit {
  font-size: 0.5rem;
}

.mock-source-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--gold-dark);
  font-size: 0.4375rem;
  font-weight: 700;
  border-radius: 100px;
  float: right;
}

/* ── CTA Banner ── */

.cta-banner {
  padding: 64px 0;
}

.cta-inner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 60%, #007a52 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-inner .btn-play {
  position: relative;
}

/* ── Privacy Policy ── */

.policy-page {
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

.policy-content {
  max-width: 760px;
  margin: 0 auto;
}

.policy-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-highlight {
  background: var(--primary-light);
  border-left: 4px solid var(--primary-green);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.policy-highlight p {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
}

.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content li {
  margin-bottom: 8px;
}

/* ── Footer ── */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.footer-brand svg {
  width: 36px;
  height: 36px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ── Animations ── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mockups-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-phones {
    display: flex;
    gap: -20px;
    position: relative;
  }

  .phone-frame.hero-phone {
    width: 220px;
  }

  .phone-frame.hero-phone:first-child {
    transform: rotate(-6deg) translateY(20px);
    z-index: 1;
  }

  .phone-frame.hero-phone:last-child {
    transform: rotate(6deg) translateY(-10px);
    margin-left: -40px;
    z-index: 2;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 100px 0;
  }
}

@media (max-width: 767px) {
  .hero-visual {
    display: none;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}
