/* ==========================================================================
   Bhakti Marga (Temple Pradakshina) — Design System & Styles
   Developer: LogyByte
   ========================================================================== */

:root {
  /* Sacred Devotional Color Palette */
  --saffron-900: #591602;
  --saffron-800: #8c2504;
  --saffron-700: #b33909;
  --saffron-600: #c84b12;
  --saffron-500: #e65c00;
  --saffron-100: #fdeee6;
  --saffron-50:  #fff7f2;

  --gold-700: #8c6310;
  --gold-600: #b0821c;
  --gold-500: #c59b27;
  --gold-400: #dfb15b;
  --gold-100: #fbf2db;
  --gold-50:  #fdf9ee;

  --ink-900: #1a0f07;
  --ink-800: #2d1e12;
  --ink-700: #423020;
  --ink-600: #634b35;
  --ink-400: #9c836c;
  --ink-200: #eddccb;
  --ink-100: #f7efe6;

  --bg: #fdfaf5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f9f2e8;
  --border: #eedecf;
  --border-subtle: #f5ebe1;
  --shadow-sm: 0 1px 2px 0 rgba(45, 30, 18, 0.05);
  --shadow-md: 0 4px 14px -1px rgba(45, 30, 18, 0.08), 0 2px 6px -1px rgba(45, 30, 18, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(45, 30, 18, 0.12), 0 6px 12px -2px rgba(45, 30, 18, 0.06);
  --shadow-glow: 0 0 35px rgba(230, 92, 0, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0a07;
    --surface: #1a120c;
    --surface-raised: #241a12;
    --surface-subtle: #2b1f15;
    --border: #3d2a1d;
    --border-subtle: #302116;

    --ink-900: #fdfaf5;
    --ink-800: #f7efe6;
    --ink-700: #eddccb;
    --ink-600: #c9b49f;
    --ink-400: #9c836c;
    --ink-200: #423020;
    --ink-100: #2d1e12;

    --saffron-100: #3a1505;
    --saffron-50:  #240d03;
    --gold-100: #382909;
    --gold-50:  #241904;

    --shadow-md: 0 4px 14px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(230, 92, 0, 0.35);
  }
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--saffron-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--saffron-500);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink-900);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 820px;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253, 250, 245, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background-color: rgba(26, 18, 12, 0.9);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(179, 57, 9, 0.25);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-600);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--saffron-600);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-800);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron-700), var(--saffron-600));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(179, 57, 9, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron-800), var(--saffron-700));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(179, 57, 9, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink-800);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  color: var(--saffron-600);
  border-color: var(--saffron-500);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-700), var(--gold-600));
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.075rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 92, 0, 0.15) 0%, rgba(230, 92, 0, 0) 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.14) 0%, rgba(197, 155, 39, 0) 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--saffron-50);
  border: 1px solid rgba(179, 57, 9, 0.25);
  color: var(--saffron-700);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

@media (prefers-color-scheme: dark) {
  .hero-pill {
    background-color: var(--saffron-100);
    color: #ff9a3d;
    border-color: rgba(255, 154, 61, 0.3);
  }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink-900);
}

.hero-title span {
  background: linear-gradient(135deg, var(--saffron-600), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-600);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-600);
}

.trust-icon {
  color: var(--saffron-600);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-main {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 24px;
  text-align: center;
}

.hero-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(179, 57, 9, 0.35);
}

.hero-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-card-subtitle {
  font-size: 0.95rem;
  color: var(--ink-400);
  margin-bottom: 20px;
}

.hero-badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-chip {
  padding: 5px 12px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-800);
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-strip {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 8px 16px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--saffron-700);
  margin-bottom: 4px;
}

@media (prefers-color-scheme: dark) {
  .stat-value {
    color: #ff9a3d;
  }
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-600);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background-color: var(--surface-subtle);
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--ink-600);
  line-height: 1.6;
}

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

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 92, 0, 0.4);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron-50), var(--saffron-100));
  color: var(--saffron-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 24px;
}

@media (prefers-color-scheme: dark) {
  .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--saffron-900), var(--saffron-800));
    color: #ff9a3d;
  }
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--ink-600);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--saffron-500);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-normal);
  color: var(--saffron-600);
}

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

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 0.98rem;
  color: var(--ink-600);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--saffron-900), var(--saffron-700));
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(223, 177, 91, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Legal & Static Pages
   ========================================================================== */
.legal-page {
  padding: 48px 0 84px;
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-title {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--ink-400);
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-700);
}

.legal-content h2 {
  font-size: 1.65rem;
  color: var(--saffron-700);
  margin: 36px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

@media (prefers-color-scheme: dark) {
  .legal-content h2 {
    color: #ff9a3d;
  }
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--saffron-600);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--ink-600);
  margin-top: 12px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.92rem;
  color: var(--ink-600);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-400);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .hero-trust {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .cta-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
