/* ========================
   CSS Variables & Globals
   ======================== */
:root {
    /* Color Palette */
    --purple-dark: #1D1124;
    --purple-base: #2A1B38;
    --purple-light: #4A335D;
    
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-glow: rgba(212, 175, 55, 0.4);
    
    --cream-bg: #FDFBF7;
    --cream-text: #F4EEDF;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Effects */
    --glass-bg: rgba(42, 27, 56, 0.6);
    --glass-border: rgba(243, 229, 171, 0.15);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--purple-dark);
    color: var(--cream-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ========================
   Typography Utilities
   ======================== */
h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    color: var(--cream-bg);
    line-height: 1.2;
}

.text-gold {
    color: var(--gold-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   Layout & Components
   ======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ambient Glows */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, rgba(29, 17, 36, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

.glow-1 {
    top: -200px;
    left: -200px;
}

.glow-2 {
    bottom: 20%;
    right: -300px;
    background: radial-gradient(circle, rgba(74, 51, 93, 0.5) 0%, rgba(29, 17, 36, 0) 70%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(29, 17, 36, 0.8);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream-bg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), #B8860B);
    color: var(--purple-dark);
    border: none;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
}

.btn-outline {
    background: transparent;
    color: var(--cream-bg);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--gold-primary);
}

/* ========================
   Hero Section
   ======================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-primary);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.1s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--cream-text);
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 500px;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.2s;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.3s;
}

.cta-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(244, 238, 223, 0.7);
}

.stores {
    display: flex;
    gap: 0.5rem;
}

.stores i {
    width: 18px;
    height: 18px;
}

/* ========================
   iPhone Mockup CSS
   ======================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: var(--purple-dark);
    border-radius: 40px;
    position: relative;
    box-shadow: 
        0 0 0 8px #2A1B38,
        0 0 0 10px #4A335D,
        0 30px 60px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
    isolation: isolate;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #2A1B38;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--purple-base), var(--purple-dark));
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 2.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--gold-light);
}

.chat-area {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.chat-bubble {
    padding: 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
    animation: slideUp 0.5s ease forwards;
}

.chat-bubble.user {
    background: var(--gold-primary);
    color: var(--purple-dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-bubble.bot {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-serif);
}

.verse-ref {
    margin-top: 0.8rem;
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-weight: 600;
    font-style: italic;
    text-align: right;
}

.chat-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

.app-input {
    padding: 1rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.input-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}

.floating-card:nth-of-type(1) {
    top: 20%;
    left: -15%;
    animation: float 5s ease-in-out infinite reverse;
}

.floating-card:nth-of-type(2) {
    bottom: 25%;
    right: -25%;
    animation: float 7s ease-in-out infinite;
}

/* ========================
   Animations
   ======================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Typing Effect */
.chat-typing {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 0.8rem 1rem;
    display: inline-flex;
    gap: 4px;
    width: fit-content;
    align-self: flex-start;
    animation: fadeOut 0.5s ease 2s forwards; /* Hides after Bot msg appears */
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeOut {
    to { opacity: 0; position: absolute; pointer-events: none; visibility: hidden; }
}

.delayed {
    opacity: 0;
    animation: slideUp 0.5s ease 2.2s forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

    .floating-card:nth-of-type(1) { left: 0; top: 10%; }
    .floating-card:nth-of-type(2) { right: 0; bottom: 10%; }
}

/* ========================
   Benefits Section
   ======================== */
.benefits {
    padding: 6rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

.benefit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.benefit-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.icon-wrapper i {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold-light);
}

.benefit-card p {
    color: rgba(244, 238, 223, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================
   How it Works Section
   ======================== */
.how-it-works {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: rgba(42, 27, 56, 0.4);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.step-card:hover {
    transform: translateX(10px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(42, 27, 56, 0.6);
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: var(--purple-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

.step-content p {
    color: rgba(244, 238, 223, 0.8);
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-primary), transparent);
    margin-left: 45px; /* aligns with center of step-number (padding 2rem = 32px + 50/2 = 25 -> 57px from edge) */
    opacity: 0.3;
}

@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .step-connector {
        margin-left: 2rem;
    }
}

/* ========================
   Testimonials Section
   ======================== */
.testimonials {
    padding: 6rem 1.5rem;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(74, 51, 93, 0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(180deg, rgba(42, 27, 56, 0.8), rgba(29, 17, 36, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem 2rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: var(--purple-dark);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--cream-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--gold-primary);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gold-primary);
    opacity: 0.8;
}

/* ========================
   Final CTA Section
   ======================== */
.final-cta {
    padding: 8rem 1.5rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(42, 27, 56, 0.9), rgba(29, 17, 36, 0.95));
    border: 1px solid var(--gold-primary);
    border-radius: 30px;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(244, 238, 223, 0.9);
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.cta-actions {
    position: relative;
    z-index: 1;
}

/* ========================
   Footer
   ======================== */
.footer {
    background: #150C1B;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: rgba(244, 238, 223, 0.6);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.link-group a {
    display: block;
    color: rgba(244, 238, 223, 0.6);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--gold-primary);
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    background: rgba(42, 27, 56, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.socials a:hover {
    background: var(--gold-primary);
    color: var(--purple-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    color: rgba(244, 238, 223, 0.4);
    font-size: 0.9rem;
}

/* Base Utils */
.text-center { text-align: center; }

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    color: rgba(244, 238, 223, 0.4);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-legal strong {
    color: var(--gold-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* FAQ Styles */
.faq {
    padding: 6rem 1.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.faq-item p {
    color: rgba(244, 238, 223, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Community Styles */
.community {
    padding: 6rem 1.5rem;
}

.community-box {
    background: linear-gradient(135deg, var(--purple-base), #150C1B);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.community-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0.2;
    z-index: 0;
}

.community-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.community-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.community-content p {
    color: rgba(244, 238, 223, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: var(--cream-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--gold-primary);
}

.community-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .community-box {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .community-visual {
        display: none;
    }
}


