/* ===== CSS VARIABLES ===== */
:root {
  /* PRAYR Color Palette */
  --color-primary-purple: #B794F6;
  --color-primary-blue: #90CDF4;
  --color-accent-pink: #FBB6CE;
  --color-accent-green: #9AE6B4;
  --color-accent-yellow: #FBD38D;
  --color-accent-orange: #FBB6B6;
  
  /* Background Colors (Dark Theme) */
  --color-bg-dark: #0F0F1A;
  --color-surface-dark: #1A1A2E;
  --color-card-dark: #242438;
  
  /* Text Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0AEC0;
  --color-text-tertiary: #718096;
  
  /* Solid colors instead of gradients */
  
  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 5rem 0;
  --card-padding: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.text-gradient {
  color: var(--color-primary-purple);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.btn--primary {
  background: var(--color-primary-purple);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-primary-purple);
}

.btn--secondary:hover {
  background: var(--color-primary-purple);
  color: white;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(183, 148, 246, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  height: 70px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-purple);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--color-primary-purple);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero__title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero__features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

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

.hero__feature-icon {
  font-size: 1.2rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Phone mockup pseudo-element removed since we're showing actual screenshot */

.app-screenshot {
  width: 300px;
  height: 600px;
  border-radius: 35px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

/* ===== FEATURES SECTION ===== */
.features {
  padding: var(--section-padding);
  background: var(--color-surface-dark);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-card-dark);
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 148, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary-purple);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

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

.feature-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__icon--purple {
  background: rgba(183, 148, 246, 0.2);
  color: var(--color-primary-purple);
}

.feature-card__icon--blue {
  background: rgba(144, 205, 244, 0.2);
  color: var(--color-primary-blue);
}

.feature-card__icon--green {
  background: rgba(154, 230, 180, 0.2);
  color: var(--color-accent-green);
}

.feature-card__icon--pink {
  background: rgba(251, 182, 206, 0.2);
  color: var(--color-accent-pink);
}

.feature-card__icon--yellow {
  background: rgba(251, 211, 141, 0.2);
  color: var(--color-accent-yellow);
}

.feature-card__icon--orange {
  background: rgba(251, 182, 182, 0.2);
  color: var(--color-accent-orange);
}

.feature-card__title {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.feature-card__text {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== DOWNLOAD SECTION ===== */
.download {
  padding: var(--section-padding);
}

.download__content {
  text-align: center;
}

.download__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-purple);
  font-family: var(--font-heading);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download__buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--color-card-dark);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(183, 148, 246, 0.2);
  transition: all 0.3s ease;
  min-width: 200px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-purple);
}

.download-btn__icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary-purple);
}

.download-btn__icon svg {
  width: 100%;
  height: 100%;
}

.download-btn__text {
  text-align: left;
}

.download-btn__small {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1;
}

.download-btn__large {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

.download__note {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface-dark);
  border-top: 1px solid rgba(183, 148, 246, 0.1);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-purple);
}

.footer__text {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__section {
  min-width: 120px;
}

.footer__heading {
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__link {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary-purple);
}

.footer__bottom {
  border-top: 1px solid rgba(183, 148, 246, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer__copyright {
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero__title {
    font-size: 3.5rem;
  }
  
  .features__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .download__stats {
    gap: 2rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer__links {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    padding: 1rem;
  }
  
  .nav__links {
    display: none;
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero__features {
    justify-content: center;
  }
  
  .hero__cta {
    justify-content: center;
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  .features__grid {
    grid-template-columns: 1fr;
  }
  
  .download__stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .download__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer__links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .app-screenshot {
    width: 200px;
    height: 400px;
    border-radius: 25px;
  }
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Removed gradient shift animation */

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(183, 148, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(183, 148, 246, 0.6);
  }
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.glow-animation {
  animation: glow 3s ease-in-out infinite;
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(183, 148, 246, 0.4);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.feature-card:hover .feature__icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.nav__links a:hover {
  color: var(--color-primary-purple);
  text-shadow: 0 0 15px rgba(183, 148, 246, 0.6);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(183, 148, 246, 0.5));
}

/* ===== INTERACTIVE ELEMENTS ===== */
.download-btn {
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

/* ===== BACKGROUND ANIMATIONS ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(183, 148, 246, 0.05);
  z-index: -1;
}

/* ===== SMOOTH SCROLLING AND TRANSITIONS ===== */
html {
  scroll-behavior: smooth;
}

* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}