/* ==========================================================================
   Krishna Darshan - CSS Design Tokens & Base Scaffolding
   ========================================================================== */

:root {
  /* HSL Palette */
  --gold: #d4af37;
  --gold-hover: #f3cf5a;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-dim: rgba(212, 175, 55, 0.15);
  
  --bg-deep: #07070b;
  --bg-velvet: #0e0e1a;
  --bg-velvet-rgb: 14, 14, 26;
  
  --glass-bg: rgba(14, 14, 26, 0.55);
  --glass-border: rgba(212, 175, 55, 0.12);
  --glass-border-light: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0ba;
  --text-muted: #6b6b85;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
  
  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-velvet);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

/* Layout Containers */
.site-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 2;
}

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

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.05);
}

/* Typography Base */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

h2 span {
  font-family: inherit;
  color: var(--gold);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #b38f1d 100%);
  color: #07070b;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #ffe082 0%, #e5be49 50%, #c69f2c 100%);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   Background Ken Burns Slideshow & Vignette
   ========================================================================== */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1);
}

.bg-slide.active {
  opacity: 0.18; /* Darkened to prioritize text legibility */
  animation: kenBurns 24s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(9, 9, 14, 0.2) 20%, rgba(7, 7, 11, 0.85) 80%);
  pointer-events: none;
}

/* Canvas Particle Layer */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 10;
}

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

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-block img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.logo-block span {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 600;
}

.logo-block span span {
  font-family: inherit;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 span {
  font-family: inherit;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-group .btn svg {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.cta-group .btn-primary:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   Vibe / Live Preview (Shloka Card & Audio Player)
   ========================================================================== */
.preview-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Shloka Card Mockup */
.shloka-card-mock {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.sanskrit-text {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 500;
}

.translit-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.translation-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.reference-text {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-actions-mock {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.action-btn-mock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-light);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn-mock:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Mini Audio Player */
.audio-player-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: rgba(14, 14, 26, 0.7);
}

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

.play-btn-mock {
  background: var(--gold);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px var(--gold-glow);
}

.play-btn-mock:hover {
  background: var(--gold-hover);
  transform: scale(1.05);
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
  margin-top: 4px;
}

.sound-waves span {
  width: 2px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 20px;
}

.sound-waves.active span {
  animation: wave 1s infinite alternate;
}

.sound-waves.active span:nth-child(2) { animation-delay: 0.2s; }
.sound-waves.active span:nth-child(3) { animation-delay: 0.4s; }
.sound-waves.active span:nth-child(4) { animation-delay: 0.1s; }

@keyframes wave {
  0% { height: 2px; }
  100% { height: 12px; }
}

.volume-control-mock {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-control-mock svg {
  color: var(--text-secondary);
}

.volume-slider-mock {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
}

.volume-slider-mock::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0) 0%, rgba(14, 14, 26, 0.4) 50%, rgba(7, 7, 11, 0) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.feature-card {
  padding: 40px 32px;
  text-align: left;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Premium Section
   ========================================================================== */
.premium-section {
  position: relative;
  padding: 100px 0;
}

.comparison-wrapper {
  max-width: 850px;
  margin: 56px auto 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.comparison-table th, 
.comparison-table td {
  padding: 20px 24px;
  text-align: left;
}

.comparison-table th {
  background: rgba(14, 14, 26, 0.85);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.comparison-table th.premium-col {
  color: var(--gold);
  font-weight: 700;
}

.comparison-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  font-size: 0.95rem;
}

.comparison-table td.feature-title {
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table td.free-val {
  color: var(--text-secondary);
}

.comparison-table td.premium-val {
  color: var(--gold);
  font-weight: 500;
}

.comparison-table td.premium-val svg {
  vertical-align: middle;
  margin-right: 6px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  position: relative;
  padding: 100px 0;
}

.faq-wrapper {
  max-width: 780px;
  margin: 56px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-trigger h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 24px;
}

.faq-item.active .faq-content {
  max-height: 250px;
  padding-bottom: 24px;
}

.faq-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 64px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 7, 11, 0.9);
  z-index: 10;
}

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

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

.footer-copyright span {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* ==========================================================================
   Legal Document Layout (privacy.html)
   ========================================================================== */
.legal-page {
  padding: 140px 0 100px 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
}

.legal-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--gold);
  text-align: left;
  margin: 40px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

.legal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}



/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-badge {
    margin: 0 auto 24px auto;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
  }
  
  .nav-links {
    display: none; /* Simplification for mobile view */
  }
  
  .hero-section {
    padding-top: 120px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table th, 
  .comparison-table td {
    padding: 16px 12px;
    font-size: 0.85rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .legal-container {
    padding: 24px;
  }
  
  .legal-header h1 {
    font-size: 2rem;
  }
}


