/* ==========================================================================
   PRAYPAL — Minimalist Spiritual Sanctuary
   Design Philosophy: Radical Simplicity, Human Presence, Quiet Restraint
   ========================================================================== */

:root {
  /* Warm Porcelain Light Palette */
  --bg-primary: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3F1ED;
  --bg-card: #FFFFFF;
  
  --text-primary: #171717;
  --text-secondary: #666666;
  --text-muted: #8E8E8E;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.06);
  
  --accent-dot: #10B981; /* Living emerald line indicator */
  --accent-action: #171717;
  --accent-action-text: #FFFFFF;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Deep Obsidian Dark Palette */
  --bg-primary: #0D0D0E;
  --bg-surface: #141416;
  --bg-subtle: #1C1C20;
  --bg-card: #141416;
  
  --text-primary: #EDEDED;
  --text-secondary: #999999;
  --text-muted: #666666;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.08);
  
  --accent-action: #EDEDED;
  --accent-action-text: #0D0D0E;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   SITE HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .site-header {
  background-color: rgba(13, 13, 14, 0.85);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-dot {
  color: #10B981;
}

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

.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-theme:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

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

[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

.nav-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-action);
  color: var(--accent-action-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-call-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-dot);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 64px 0 56px;
}

.hero-header {
  max-width: 720px;
  margin: 0 auto 48px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-dot);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtext {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-action);
  color: var(--accent-action-text);
  border: 1px solid transparent;
}

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

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

/* HERO IMAGE CARD */
.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
  background: var(--bg-subtle);
}

.lifestyle-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-caption-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(13, 13, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caption-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.caption-text {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   EVERYDAY MOMENTS SECTION
   -------------------------------------------------------------------------- */
.moments-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-intro {
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-heading {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-description {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.moment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.moment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.moment-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
}

.moment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.moment-content {
  padding: 24px;
}

.moment-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.moment-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.moment-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   HOW IT WORKS SECTION
   -------------------------------------------------------------------------- */
.how-section {
  padding: 80px 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   ASSURANCES SECTION
   -------------------------------------------------------------------------- */
.assurances-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.assurances-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.assurance-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.assurance-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-primary);
}

.assurance-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.assurance-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   FINAL CALL CTA SECTION
   -------------------------------------------------------------------------- */
.final-cta-section {
  padding: 96px 0;
  background-color: var(--bg-primary);
}

.cta-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-subtext {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   MINIMAL FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 48px 0;
  color: var(--text-secondary);
}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.footer-right {
  max-width: 480px;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE OPTIMIZATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-section {
    padding: 44px 0 40px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .cta-button-row {
    flex-direction: column;
    width: 100%;
  }

  .nav-call-btn span:last-child {
    display: none;
  }

  .nav-call-btn {
    padding: 8px 10px;
  }

  .hero-caption-overlay {
    position: static;
    border-radius: 0;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: none;
    border-top: 1px solid var(--border-card);
  }

  .caption-text {
    color: var(--text-secondary);
  }
}
