/* ==========================================================================
   STYLE SHEET: TENY FIAINANA 2
   Modern, Premium Web Design with Rich Aesthetics, Dynamic Interactions,
   Glassmorphism, and Fluid Transitions.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES & DESIGN TOKENS --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Colors: Obsidian Pine Theme (Dark Mode Default) */
  --bg-primary: #040d0a;
  --bg-secondary: #081611;
  --bg-tertiary: #0e241c;
  --bg-glass: rgba(8, 22, 17, 0.75);
  --bg-glass-solid: rgba(12, 30, 23, 0.95);
  
  --border-color: rgba(16, 185, 129, 0.15);
  --border-hover: rgba(16, 185, 129, 0.4);
  --border-glass: rgba(255, 255, 255, 0.05);

  --text-primary: #f0f7f4;
  --text-secondary: #a3c2b2;
  --text-muted: #6b8c7c;

  --accent-emerald: #10b981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-emerald-hover: #059669;
  --accent-gold: #fbbf24;
  --accent-gold-rgb: 251, 191, 36;
  --accent-gold-hover: #f59e0b;
  --accent-red: #f87171;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.5);
  --shadow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  --parallax-overlay: linear-gradient(185deg, rgba(4, 13, 10, 0.88), rgba(8, 22, 17, 0.75));
}

/* --- LIGHT THEME OVERRIDES --- */
body.light {
  --bg-primary: #f6fbf8;
  --bg-secondary: #ebf5f0;
  --bg-tertiary: #dfede5;
  --bg-glass: rgba(246, 251, 248, 0.8);
  --bg-glass-solid: rgba(235, 245, 240, 0.95);
  
  --border-color: rgba(5, 150, 105, 0.1);
  --border-hover: rgba(5, 150, 105, 0.3);
  --border-glass: rgba(5, 150, 105, 0.05);

  --text-primary: #0c2419;
  --text-secondary: #40574c;
  --text-muted: #637a6e;

  --accent-emerald: #059669;
  --accent-emerald-rgb: 5, 150, 105;
  --accent-emerald-hover: #047857;
  --accent-gold: #d97706;
  --accent-gold-rgb: 217, 119, 6;
  --accent-gold-hover: #b45309;

  --shadow-sm: 0 4px 12px rgba(5, 150, 105, 0.05);
  --shadow-md: 0 12px 24px -6px rgba(5, 150, 105, 0.08);
  --shadow-lg: 0 32px 64px -16px rgba(5, 150, 105, 0.15);
  --shadow-emerald: 0 0 25px rgba(5, 150, 105, 0.15);
  
  --parallax-overlay: linear-gradient(185deg, rgba(246, 251, 248, 0.9), rgba(235, 245, 240, 0.8));
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   UTILITY CLASSES & DESIGN SYSTEM
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
}

/* Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-emerald), #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light .text-gradient {
  background: linear-gradient(135deg, var(--accent-emerald), #064e3b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-gradient {
  background: linear-gradient(135deg, var(--accent-gold), #ffe082);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), padding var(--transition-normal);
  padding: 24px 0;
}

.header.scrolled {
  padding: 14px 0;
  background: var(--bg-glass-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-emerald), #047857);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Switcher Toggle */
.theme-switch {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  font-size: 1.1rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.theme-switch:hover {
  transform: rotate(20deg) scale(1.05);
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

/* Ambient glow blobs in background */
.hero-section::before, .hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
}

.hero-section::before {
  top: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: var(--accent-emerald);
}

.hero-section::after {
  bottom: 10%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: var(--accent-gold);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* App Store Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-body);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-align: left;
}

body.light .store-btn {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-sm);
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent-emerald);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
}

.store-btn i {
  font-size: 1.8rem;
}

body.light .store-btn i.fab.fa-android {
  color: #3ddc84;
}

.store-btn-text span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

body.light .store-btn-text span {
  color: rgba(0,0,0,0.5);
}

.store-btn-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

/* Interactive Device Mockup (3D CSS) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-wrapper {
  position: relative;
  perspective: 1200px;
  width: 300px;
  height: 600px;
}

.phone-body {
  width: 100%;
  height: 100%;
  background: #0a0f0d;
  border: 10px solid #1a2420;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
              0 0 40px rgba(16, 185, 129, 0.15), 
              inset 0 0 10px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(10deg);
  transition: transform var(--transition-slow);
}

body.light .phone-body {
  background: #fdfdfd;
  border: 10px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.1), 
              inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.phone-wrapper:hover .phone-body {
  transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
}

/* Phone details */
.phone-notch {
  width: 110px;
  height: 25px;
  background: #1a2420;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

body.light .phone-notch {
  background: #cbd5e1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding-top: 25px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Simulated App UI Inside Phone */
.app-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.app-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

/* Ambient Floating Decorative Elements */
.floating-element {
  position: absolute;
  z-index: 2;
  animation: floatDecoration 6s infinite ease-in-out;
}

.float-1 {
  top: 10%;
  left: -20px;
  background: var(--bg-glass-solid);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.float-2 {
  bottom: 15%;
  right: -30px;
  background: var(--bg-glass-solid);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  animation-delay: 2s;
}

/* ==========================================================================
   AI CHAT SIMULATOR SECTION
   ========================================================================== */
.simulator-section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.sim-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.sim-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sim-prompts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-prompt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
}

.sim-prompt-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-emerald);
  transform: translateX(5px);
}

.sim-prompt-btn.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.sim-prompt-btn i {
  color: var(--accent-emerald);
  transition: transform var(--transition-fast);
}

.sim-prompt-btn:hover i {
  transform: translateX(3px);
}

/* Chat Screen UI */
.chat-window {
  height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.chat-header {
  padding: 18px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.chat-user-info h4 {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.chat-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-primary);
}

.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chat-bubble.user {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(16, 185, 129, 0.15);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.05);
  padding: 12px 18px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  gap: 4px;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.chat-footer {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

.chat-input-sim {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   CANTIQUES PLAYER SECTION
   ========================================================================== */
.cantiques-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  position: relative;
}

.player-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.player-container {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.player-header {
  padding: 20px 24px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-header h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.player-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.player-disc-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.player-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2d7a4d 0%, #064e3b 70%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 10px rgba(16, 185, 129, 0.1);
  animation: rotateDisc 20s linear infinite;
  animation-play-state: paused;
}

.player-disc.playing {
  animation-play-state: running;
}

.player-disc-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.2);
  animation: rotateDisc 40s linear infinite reverse;
}

.player-info {
  text-align: center;
}

.player-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.player-subtitle {
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Audio waves animation */
.audio-waves {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  width: 120px;
  margin-top: 8px;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background: var(--accent-emerald);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.player-disc.playing ~ .audio-waves .wave-bar {
  animation: bounceWave 1.2s infinite ease-in-out alternate;
}

.player-disc.playing ~ .audio-waves .wave-bar:nth-child(2) { animation-delay: 0.15s; height: 18px; }
.player-disc.playing ~ .audio-waves .wave-bar:nth-child(3) { animation-delay: 0.3s; height: 28px; }
.player-disc.playing ~ .audio-waves .wave-bar:nth-child(4) { animation-delay: 0.45s; height: 12px; }
.player-disc.playing ~ .audio-waves .wave-bar:nth-child(5) { animation-delay: 0.6s; height: 22px; }
.player-disc.playing ~ .audio-waves .wave-bar:nth-child(6) { animation-delay: 0.2s; height: 8px; }
.player-disc.playing ~ .audio-waves .wave-bar:nth-child(7) { animation-delay: 0.4s; height: 15px; }

/* Control bar styling */
.player-progress {
  width: 100%;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-emerald);
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

.progress-bar-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent-emerald);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  transition: left 0.1s linear;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

.player-btn {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.player-btn:hover {
  color: var(--text-primary);
}

.player-btn.play-pause {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.player-btn.play-pause:hover {
  transform: scale(1.05);
  background: var(--accent-emerald-hover);
}

/* Lyrics column */
.lyrics-container {
  height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 24px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.lyrics-container::-webkit-scrollbar {
  width: 6px;
}

.lyrics-container::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.lyric-line {
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), font-weight var(--transition-fast), transform var(--transition-fast);
  transform-origin: left center;
}

.lyric-line.active {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  transform: scale(1.02);
}

/* ==========================================================================
   FEATURES GRID SECTION
   ========================================================================== */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

/* ==========================================================================
   28 CROYANCES SECTION
   ========================================================================== */
.croyances-section {
  padding: 100px 0;
  position: relative;
}

.croyances-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.croyances-info {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.croyances-info h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.croyances-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.croyance-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.croyance-item.active {
  border-color: var(--accent-emerald);
}

.croyance-title {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.croyance-title span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.croyance-num {
  font-size: 0.95rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.croyance-title i {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.croyance-item.active .croyance-title i {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

.croyance-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 24px;
}

.croyance-item.active .croyance-content {
  max-height: 500px;
  padding-bottom: 24px;
}

.croyance-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.croyance-verses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verse-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   PARALLAX & TESTIMONIALS SECTION
   ========================================================================== */
.parallax-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 60px 0;
  box-shadow: var(--shadow-lg);
}

.parallax-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  background-image: url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?q=80&w=2070&auto=format');
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.4) contrast(1.1);
  will-change: transform;
}

body.light .parallax-banner-bg {
  filter: brightness(0.6) contrast(1.05);
}

.parallax-banner-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 700px;
}

.parallax-banner-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.parallax-banner-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

/* Testimonials Carousel/Grid */
.testimonials-section {
  padding: 80px 0;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testi-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.testi-stars {
  color: var(--accent-gold);
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.testi-card p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testi-user-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testi-user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DOWNLOAD & CTA SECTION
   ========================================================================== */
.download-section {
  padding: 80px 0;
}

.download-cta {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: white;
}

body.light .download-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.download-cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.download-cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.download-cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

body.light .social-link {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

.social-link:hover {
  transform: translateY(-4px);
  background: white;
  color: var(--accent-emerald-hover);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: var(--bg-primary);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  border-top: 1px solid rgba(16, 185, 129, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  gap: 24px;
}

.footer-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer-meta span i {
  color: var(--accent-emerald);
}

/* ==========================================================================
   SCROLL REVEAL & ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes rotateDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounceWave {
  0% { height: 4px; }
  100% { height: 26px; }
}

@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatDecoration {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .floating-element {
    display: none;
  }
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .player-grid {
    grid-template-columns: 1fr;
  }
  .croyances-layout {
    grid-template-columns: 1fr;
  }
  .croyances-info {
    position: static;
    margin-bottom: 30px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .header {
    padding: 16px 0;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-glass-solid);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    transition: right var(--transition-normal);
    z-index: 1050;
  }
  .nav-menu.open {
    right: 0;
  }
  /* Animation toggle hamburger close */
  .mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .parallax-banner {
    height: 320px;
  }
  .parallax-banner-content h2 {
    font-size: 2rem;
  }
  .download-cta {
    padding: 40px 20px;
  }
  .download-cta-content h2 {
    font-size: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
