:root {
    --bg: #FEF9F6;
    --indigo: #2B2D7A;
    --indigo-dark: #1F215A;
    --beige: #F5EFE9;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --muted: #6B6B7A;
    --radius: 24px;
    --shadow-soft: 0 10px 30px rgba(43,45,122,0.08);
    --shadow-lift: 0 20px 50px rgba(43,45,122,0.12);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--indigo); line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(48px, 7vw, 84px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(254, 249, 246, 0.85);
    border-bottom: 1px solid rgba(43,45,122,0.06);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--indigo); font-weight: 600; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--indigo); }
.nav-cta { background: var(--indigo); color: white !important; padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow-soft); transition: var(--transition); border: none; cursor: pointer; font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif; }
.nav-cta:hover { transform: translateY(-1px); background: var(--indigo-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--indigo); border-radius: 2px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; z-index: 0; }
.blob-1 { width: 420px; height: 420px; background: linear-gradient(135deg, #c7d2fe, #ddd6fe); top: -120px; left: -120px; animation: float 20s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: linear-gradient(135deg, #818cf8, #2B2D7A); bottom: -180px; right: -150px; animation: float 25s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.05); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.date-pill { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); background: var(--beige); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; font-weight: 600; }
.lead { font-size: 20px; color: var(--text); margin: 26px 0 18px; max-width: 520px; font-weight: 500; }
.sanskrit { color: var(--muted); font-size: 15px; max-width: 480px; }
.sanskrit span { color: var(--indigo); font-weight: 600; font-size: 18px; }

.hero-visual { display: flex; justify-content: center; }
.glass-card { background: rgba(255,255,255,0.65); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lift); text-align: center; transform: translateY(0); transition: var(--transition); }
.glass-card:hover { transform: translateY(-8px); }
.phone-frame { background: #111; border-radius: 28px; padding: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); margin-bottom: 22px; }
.phone-frame img { width: 250px; height: auto; display: block; border-radius: 20px; }

.btn-primary { background: var(--indigo); color: white; border: none; padding: 15px 30px; border-radius: 16px; font-weight: 600; font-size: 16px; cursor: pointer; transition: var(--transition); box-shadow: 0 10px 24px rgba(43,45,122,0.28); width: 100%; font-family: 'Inter', sans-serif; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(43,45,122,0.35); }
.app-meta { font-size: 12px; color: var(--muted); margin-top: 12px; font-weight: 500; }

/* Sections */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 60px; font-size: 17px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid rgba(43,45,122,0.05); }
.feature-card.beige { background: var(--beige); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feature-icon { width: 52px; height: 52px; background: var(--indigo); color: white; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-card h3 { font-family: 'Inter', sans-serif; font-size: 18px; color: var(--indigo); margin-bottom: 10px; font-weight: 600; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.how { background: var(--white); }
.timeline { max-width: 780px; margin: 60px auto 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--indigo), rgba(43,45,122,0.15)); }
.step { display: flex; gap: 28px; margin-bottom: 36px; position: relative; }
.step-num { width: 58px; height: 58px; background: var(--bg); border: 3px solid var(--indigo); color: var(--indigo); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; z-index: 1; font-family: 'Playfair Display', serif; }
.step-content { background: var(--bg); padding: 26px 30px; border-radius: 20px; flex: 1; box-shadow: var(--shadow-soft); transition: transform .2s; }
.step-content:hover { transform: translateX(4px); }
.step-content h4 { font-family: 'Inter', sans-serif; font-size: 18px; margin-bottom: 6px; color: var(--indigo); font-weight: 600; }
.step-content p { color: var(--muted); font-size: 15px; }

#preview { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 860px; margin: 60px auto 0; align-items: start; }
.preview-item { text-align: center; }
.preview-item img { width: 100%; max-width: 300px; height: auto; border-radius: 36px; box-shadow: 0 30px 60px rgba(43,45,122,0.2); border: 9px solid #0f0f0f; background: #000; transition: var(--transition); }
.preview-item img:hover { transform: translateY(-10px) scale(1.02); }
.preview-item p { margin-top: 22px; color: var(--text); font-weight: 500; font-size: 16px; }

#philosophy .phil-intro { max-width: 720px; margin: 0 auto 50px; text-align: center; color: var(--muted); font-size: 17px; line-height: 1.75; }
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pillar { background: var(--white); padding: 32px 28px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-soft); border: 1px solid rgba(43,45,122,0.04); transition: var(--transition); }
.pillar:hover { transform: translateY(-5px); }
.pillar-icon { font-size: 32px; margin-bottom: 10px; }
.pillar h4 { color: var(--indigo); margin: 12px 0 8px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 18px; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.6; }

#reviews { background: var(--beige); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.review-card { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.stars { color: #F59E0B; margin-bottom: 14px; font-size: 18px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: var(--text); margin-bottom: 16px; line-height: 1.65; }
.review-author { font-weight: 600; color: var(--indigo); font-size: 14px; }

.cta-banner { background: var(--indigo); color: white; border-radius: var(--radius); padding: 70px 40px; text-align: center; margin: 90px auto; max-width: 1000px; box-shadow: var(--shadow-lift); position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.15), transparent); top: -100px; right: -100px; border-radius: 50%; }
.cta-banner h3 { color: white; font-size: clamp(28px, 4vw, 42px); margin-bottom: 24px; position: relative; }
.cta-banner .btn-primary { background: white; color: var(--indigo); width: auto; padding: 15px 36px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.cta-banner .btn-primary:hover { background: var(--beige); }

footer { background: var(--white); border-top: 1px solid rgba(0,0,0,0.06); padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr; gap: 40px; align-items: start; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; color: var(--indigo); font-size: 17px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-grid p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-grid a { color: var(--indigo); text-decoration: none; font-weight: 500; }
.footer-grid a:hover { text-decoration: underline; }
.footer-note { font-style: italic; color: var(--muted); font-size: 14px; text-align: center; align-self: center; }

.btn-secondary { background: transparent; border: 1.5px solid var(--indigo); color: var(--indigo); padding: 10px 18px; border-radius: 12px; font-weight: 500; cursor: pointer; transition: .2s; font-family: 'Inter', sans-serif; font-size: 14px; }
.btn-secondary:hover { background: var(--indigo); color: white; }
.copyright { text-align: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); color: var(--muted); font-size: 13px; }

/* Modal Styles - Updated */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--bg); max-width: 500px; width: 100%; max-height: 90vh; border-radius: var(--radius); overflow-y: auto; display: flex; flex-direction: column; box-shadow: var(--shadow-lift); animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 24px 30px; border-bottom: 1px solid rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; background: var(--white); position: sticky; top: 0; z-index: 1; }
.modal-header h3 { margin: 0; font-size: 22px; }
.modal-body { padding: 30px; }

/* Ad Container Styles */
.ad-container { margin-bottom: 20px; }
.ad-box { background: var(--white); padding: 20px; border-radius: 16px; border: 1px solid rgba(43,45,122,0.1); }
#adMediaContainer video,
#adMediaContainer img { width: 100%; height: auto; display: block; max-height: 300px; object-fit: contain; background: #000; }
.ad-timer-bar { width: 100%; height: 4px; background: linear-gradient(90deg, var(--indigo), #818cf8); border-radius: 2px; transition: width 1s linear; }

/* Button Styles */
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn-secondary { background: transparent; border: 2px solid var(--indigo); color: var(--indigo); padding: 12px 24px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; font-size: 15px; }
.btn-secondary:hover { background: var(--indigo); color: white; }
.btn-primary { width: auto; padding: 14px 30px; font-size: 16px; }
.download-link-container { text-align: center; margin-top: 20px; }
.download-btn { display: inline-block; text-decoration: none; width: auto; background: #10B981; padding: 16px 32px; font-size: 18px; border-radius: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(16,185,129,0.3); }
.download-btn:hover { background: #059669; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 600px) {
    .modal-content { margin: 10px; max-height: 95vh; }
    .modal-body { padding: 20px; }
    #adMediaContainer video,
    #adMediaContainer img { max-height: 200px; }
}

/* FAQ Accordion */
#faq .accordion { max-width: 820px; margin: 50px auto 0; }
.faq-item { background: var(--white); border-radius: 18px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.04); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 26px; font-weight: 600; font-size: 16px; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; }
.faq-q:hover { color: var(--indigo); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 26px; }
.faq-a p { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-item.active .faq-a { max-height: 200px; }
.chevron { transition: transform .3s; color: var(--indigo); }
.faq-item.active .chevron { transform: rotate(180deg); }

/* Responsive */
@media (max-width: 980px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-note { grid-column: 1 / -1; order: 3; margin-top: 10px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.06); box-shadow: var(--shadow-soft); gap: 18px; align-items: flex-start; }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    
    .hero { padding: 60px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .lead, .sanskrit { margin-left: auto; margin-right: auto; }
    .phone-frame img { width: 220px; }
    
    .section { padding: 70px 0; }
    .features-grid, .phil-grid, .reviews-grid, .preview-grid { grid-template-columns: 1fr; gap: 20px; }
    .preview-grid { gap: 50px; }
    .timeline::before { left: 22px; }
    .step { gap: 20px; }
    .step-num { width: 46px; height: 46px; font-size: 17px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .cta-banner { padding: 50px 24px; margin: 60px 24px; }
}