/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Dark Theme */
  --bg-primary: #0C0C0F;
  --bg-secondary: #1A1A1E;
  --text-primary: #FFFFFF;
  --text-secondary: #A3A3A3;
  --accent-primary: #8B5CF6;
  --accent-secondary: #A78BFA;
  --accent-glow: rgba(139, 92, 246, 0.3);
  
  /* Typography */
  --font-family: 'Noto Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-h1: clamp(35px, 8vw, 50px);
  --font-size-h2: clamp(24px, 5.5vw, 32px);
  --font-size-body: clamp(14px, 3.8vw, 16px);
  --font-size-small: clamp(12px, 3.2vw, 14px);
  
  /* Spacing */
  --container-padding: clamp(16px, 5vw, 24px);
  --section-padding: clamp(40px, 10vw, 80px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Hero Section - Updated design with background image */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh; /* fallback */
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px var(--container-padding) 40px;
  overflow: hidden;
}

/* Logo in top left */
.hero__logo {
  position: absolute;
  top: 20px;
  left: var(--container-padding);
  z-index: 10;
}

.logo {
  height: 40px;
  width: auto;
}

.hero__topbar {
  position: absolute;
  top: 20px;
  right: var(--container-padding);
  z-index: 10;
}

.pill-button {
  background: var(--accent-primary);
  border: none;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: 700;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pill-button:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.hero__content {
  text-align: center;
  z-index: 3;
  margin-top: auto;
}

.hero__title {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-main {
  font-size: 180%;
}

.hero__tags {
  font-size: 140%;
  font-weight: 600;
  margin-bottom: 24px;
  background: linear-gradient(270deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FECA57, #FF9FF3, #54A0FF);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.badge-button {
  display: block;
  text-decoration: none;
}

.badge-image {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.web-badge {
  width: 170px;
}

.hero__cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Phone Mockups - 100% viewport height */
.hero__phone {
  position: relative;
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 20px 0;
}

.phone-mockup {
  height: auto;
  width: 110%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Background image instead of glow */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-body);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button--primary {
  background: var(--accent-primary);
  color: white;
  padding: 8px 16px;
}

.cta-button--primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.cta-button--secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.cta-button--secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

.play-badge {
  height: 40px;
  width: auto;
}

/* Social Proof */
.social-proof {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.social-proof__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.social-proof__icon-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.social-proof__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-proof__number {
  display: block;
  font-size: var(--font-size-h2);
  font-weight: 700;
}

.social-proof__label {
  display: block;
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

/* Free Content */
.free-content {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.chip {
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
  font-size: var(--font-size-small);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Individual chip colors */
.chip--islamic {
  background: #0cc358;
  color: #d8f7f2;
}

.chip--hd {
  background: #3498DB;
  color: #daeaf5;
}

.chip--nature {
  background: #9b1cdf;
  color: #e6b9fa;
}

.chip--classic {
  background: #9B59B6;
  color: #F4ECF7;
}

.chip--animated {
  background: #E74C3C;
  color: #f7d2cf;
}

.chip--prayers {
  background: #F39C12;
  color: #fff3c8;
}

/* Features */
.features {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.feature-block__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px auto;
}

.feature-block__title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-block__description {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-text {
  font-size: var(--font-size-body);
  color: var(--text-primary);
}

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

.cta-title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-description {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cta-note {
  font-size: var(--font-size-small);
  color: var(--accent-secondary);
  margin-bottom: 32px;
  opacity: 0.8;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.brand-mark {
  font-size: 24px;
}

.brand-text {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-primary);
}

.footer__text {
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--text-secondary);
}

/* Responsive Design */
@media (min-width: 480px) {
  .hero__cta-row {
    flex-direction: row;
    gap: 16px;
  }
  
  .cta-buttons {
    flex-direction: row;
    gap: 16px;
  }
  
  .chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .phone--left {
    transform: translateX(-30px) translateY(10px) rotate(-2deg);
  }
  
  .phone--right {
    transform: translateX(30px) translateY(-10px) rotate(2deg);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero__glow {
    animation: none;
  }
}

/* Focus styles */
.cta-button:focus,
.pill-button:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Content visibility optimization */
.social-proof,
.free-content,
.features,
.cta-section,
.footer {
  content-visibility: auto;
}
