/* =====================================================
   SpiriseBible Premium CSS - High-end Design System
   Inspired by Apple, Stripe, Linear design principles
   ===================================================== */

/* ========== CSS Variables & Design Tokens ========== */
:root {
    /* Color Palette - Sacred & Premium */
    --color-primary: #D4AF37;        /* Refined Gold */
    --color-primary-light: #E6D4A3;  /* Light Gold */
    --color-primary-dark: #B8941F;   /* Deep Gold */
    
    --color-text-primary: #1A1A1A;   /* Almost Black */
    --color-text-secondary: #374151; /* Medium Gray - Better Contrast */
    --color-text-tertiary: #6B7280;  /* Light Gray - Still Readable */
    --color-text-inverse: #FFFFFF;   /* Pure White */
    
    --color-bg-primary: #FFFFFF;     /* Pure White */
    --color-bg-secondary: #FAFAFA;   /* Off White */
    --color-bg-tertiary: #F5F5F5;    /* Light Gray */
    --color-bg-accent: #FFF9F0;      /* Warm Cream */
    
    --color-border: #E5E5E5;         /* Subtle Border */
    --color-border-light: #F0F0F0;   /* Very Light Border */
    
    /* Typography Scale */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    --text-7xl: 4.5rem;     /* 72px */
    
    /* Spacing Scale */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    --space-32: 8rem;       /* 128px */
    
    /* Effects */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    
    --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

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

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
    font-weight: 300;
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 300;
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 400;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 400;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.lead {
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ========== Layout Components ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
}

.section-large {
    padding: var(--space-32) 0;
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-base);
}

.logo:hover {
    opacity: 0.7;
}

.logo-img {
    height: 24px;
    width: 24px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    list-style: none;
}

/* Hide menu toggle on large screens */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

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

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    gap: var(--space-2);
}

.btn-group {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border-color: var(--color-text-primary);
    background: var(--color-bg-secondary);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-text-inverse);
    font-weight: 500;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.cta-button {
    padding: var(--space-2) var(--space-5);
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.cta-button:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* ========== Hero Section ========== */
.hero {
    padding-top: calc(72px + var(--space-20));
    padding-bottom: var(--space-20);
    background: linear-gradient(180deg, var(--color-bg-accent) 0%, var(--color-bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* ========== Cards & Features ========== */
.card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

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

.feature-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    filter: grayscale(0.3);
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-bg-accent);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-6);
}

/* ========== Scripture Section ========== */
.scripture-section {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    background: var(--color-bg-accent);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.scripture-section::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 120px;
    font-family: var(--font-display);
    color: rgba(212, 175, 55, 0.1);
    font-weight: 400;
}

.scripture-quote {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-4);
}

.scripture-reference {
    font-size: var(--text-base);
    color: var(--color-primary);
    font-weight: 500;
}

/* ========== Email Subscribe Section ========== */
.email-subscribe-section {
    padding: var(--space-24) 0;
    background-color: var(--color-bg-tertiary);
}

.subscribe-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.subscribe-description {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.subscribe-form {
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.email-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-primary);
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.subscribe-button {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-inverse);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.subscribe-note {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    opacity: 0.8;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .subscribe-form .form-group {
        flex-direction: row;
        align-items: center;
    }
    
    .email-input {
        flex: 1;
    }
    
    .subscribe-button {
        flex-shrink: 0;
    }
}

/* ========== Footer ========== */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

/* ========== Responsive Design ========== */

/* Mobile First - Enhanced responsive breakpoints */
@media (max-width: 480px) {
    :root {
        --text-base: 0.9rem;      /* 14.4px */
        --text-lg: 1.05rem;       /* 16.8px */
        --text-xl: 1.15rem;       /* 18.4px */
        --text-2xl: 1.35rem;      /* 21.6px */
        --text-3xl: 1.65rem;      /* 26.4px */
        --text-4xl: 1.95rem;      /* 31.2px */
        --text-5xl: 2.4rem;       /* 38.4px */
        
        --space-6: 1.25rem;       /* 20px */
        --space-8: 1.75rem;       /* 28px */
        --space-10: 2.25rem;      /* 36px */
        --space-12: 2.75rem;      /* 44px */
        --space-16: 3.5rem;       /* 56px */
    }
    
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .container-narrow {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
        line-height: 1.2;
        margin-bottom: var(--space-6);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-8);
    }
    
    .btn-group {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .features-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .feature-showcase-card {
        padding: var(--space-8);
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-10);
    }
    
    .hero-visual {
        margin-top: var(--space-8);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .features-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .feature-showcase-card {
        padding: var(--space-8);
    }
    
    .newsletter-form {
        flex-direction: row;
        max-width: 400px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: var(--space-8);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-primary);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: var(--space-4) 0;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        display: block;
        text-align: center;
        margin: 0;
        padding: var(--space-2) 0;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: var(--space-2);
        border-radius: var(--radius-sm);
        outline: none !important;
        box-shadow: none !important;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus,
    .menu-toggle:active,
    .menu-toggle:focus-visible {
        background: none !important;
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Remove all possible backgrounds from button */
    button.menu-toggle {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: none !important;
        filter: none !important;
    }
    
    .menu-toggle span {
        width: 24px;
        height: 2px;
        background: var(--color-text-primary);
        transition: all var(--transition-base);
        border-radius: 1px;
        display: block;
        transform-origin: center;
    }
    
    .menu-toggle:hover span {
        background: var(--color-primary);
    }
    
    /* Menu toggle animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-large {
        padding: var(--space-16) 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .container {
        max-width: 900px;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* ========== Special Effects ========== */
.bg-soft {
    background: var(--color-bg-secondary);
}

.bg-white {
    background: var(--color-bg-primary);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg-secondary) 100%);
}

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

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

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

.mb-5 {
    margin-bottom: var(--space-10);
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* ========== Premium Hover Effects ========== */
.feature-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-base);
}

.feature-link:hover {
    gap: var(--space-2);
    color: var(--color-primary-dark);
}

/* ========== Feature Showcase Cards ========== */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.feature-showcase-card {
    background: var(--color-bg-primary);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.feature-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.feature-showcase-card:hover::before {
    transform: scaleX(1);
}

.feature-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

/* ========== Newsletter Form ========== */
.newsletter-form {
    display: flex;
    gap: var(--space-4);
    max-width: 500px;
    margin: 0 auto;
}

.form-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ========== Pattern Decorations ========== */
.pattern-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--color-primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: -1;
}

.pattern-dots.top-right {
    top: -100px;
    right: -100px;
}

.pattern-dots.bottom-left {
    bottom: -100px;
    left: -100px;
}

/* ========== App Buttons ========== */
.app-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
}

.app-button img {
    height: 48px;
    transition: transform var(--transition-base);
}

.app-button:hover img {
    transform: scale(1.05);
}

/* ========== Quote Section ========== */
.quote {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-primary);
}

/* ========== Minimal Hero ========== */
.hero-minimal {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
    background: var(--color-bg-accent);
    text-align: center;
}

.hero-minimal h1 {
    margin-bottom: var(--space-4);
}

.hero-minimal .lead {
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Share Section Component ========== */
.share-section {
    background: var(--color-bg-tertiary);
    border-radius: 16px;
    padding: var(--space-10);
    margin: var(--space-12) 0;
    text-align: center;
}

.share-section h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    color: white;
    position: relative;
    overflow: hidden;
}

.share-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.share-btn:hover:before {
    left: 100%;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.twitter:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-btn.email {
    background: #ea4335;
}

.share-btn.email:hover {
    background: #d33b2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.share-btn.copy {
    background: #667eea;
}

.share-btn.copy:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.share-message {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: #10b981;
    color: white;
    border-radius: 8px;
    font-size: var(--text-sm);
    display: inline-block;
    animation: slideInUp 0.3s ease;
}

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

/* ========== Audio Player Component ========== */
.audio-player-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: var(--space-10);
    margin: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.audio-player-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.audio-player-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.audio-player-content h3 {
    color: white;
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.audio-player-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.audio-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: white;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.audio-btn.primary {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.audio-btn.primary:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.audio-progress {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 var(--space-8);
}

.audio-progress-bar {
    background: white;
    height: 100%;
    width: 0;
    transition: width 0.1s linear;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    margin: var(--space-2) var(--space-8) 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.voice-options {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
}

.voice-option {
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.voice-option.active,
.voice-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .audio-controls {
        transform: scale(0.9);
    }
    
    .voice-options {
        flex-wrap: wrap;
    }
}

/* ========== Story Timeline Navigation ========== */
.timeline-navigation {
    background: var(--color-bg-secondary);
    padding: var(--space-12) 0;
    position: sticky;
    top: 72px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--color-border-light);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-progress-bar {
    height: 100%;
    width: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.timeline-interactive {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: var(--space-2);
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    margin-bottom: var(--space-2);
}

.timeline-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 100px;
    transition: all var(--transition-base);
}

.timeline-item.active .timeline-marker {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.timeline-item.active .timeline-label {
    color: var(--color-text-primary);
    font-weight: 600;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

.timeline-item:hover .timeline-label {
    color: var(--color-text-primary);
}

/* Story Scene Styles */
.story-scene {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.story-scene.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Enhanced Story Hero */
.story-hero {
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.story-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.story-category {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    backdrop-filter: blur(10px);
}

.story-hero h1 {
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.story-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

.story-meta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* Enhanced Interactive Elements */
.interactive-element {
    background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg-tertiary) 100%);
    border-radius: 16px;
    padding: var(--space-8);
    margin: var(--space-10) 0;
    position: relative;
    overflow: hidden;
}

.interactive-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
}

.reflection-point {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: var(--space-6);
    margin: var(--space-8) 0;
    border-radius: 0 12px 12px 0;
}

.epic-quote {
    font-size: var(--text-xl);
    line-height: 1.8;
    position: relative;
    padding: var(--space-8);
}

.epic-quote::before,
.epic-quote::after {
    content: '"';
    font-size: var(--text-6xl);
    font-family: var(--font-display);
    position: absolute;
    color: var(--color-primary);
    opacity: 0.2;
}

.epic-quote::before {
    top: -10px;
    left: -10px;
}

.epic-quote::after {
    bottom: -40px;
    right: -10px;
}

@media (max-width: 768px) {
    .timeline-navigation {
        padding: var(--space-6) 0;
    }
    
    .timeline-interactive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-label {
        font-size: 0.75rem;
        max-width: 60px;
    }
    
    .story-hero h1 {
        font-size: var(--text-4xl);
    }
}

/* ========== New Hero Section (TheBibleChat Style) ========== */
.hero-new {
    padding: var(--space-24) 0 var(--space-20);
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 50%, #F8F9FA 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle yellow-green background overlay */
.hero-new::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, 
        rgba(173, 255, 47, 0.05) 0%, 
        rgba(144, 238, 144, 0.03) 30%, 
        rgba(124, 252, 0, 0.02) 50%, 
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-new > .container {
    position: relative;
    z-index: 2;
}

.hero-header {
    margin-bottom: var(--space-16);
}

.hero-main-title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.app-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: var(--color-bg-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.rating-stars {
    font-size: var(--text-lg);
    letter-spacing: 2px;
}

.rating-text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Hero Showcase Layout */
.hero-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

/* Cards positioning for screens > 1024px */
@media (min-width: 1025px) {
    .hero-showcase {
        position: relative;
    }
    
    .left-card {
        margin-right: auto;
        margin-left: 0;
    }
    
    .right-card {
        margin-left: auto;
        margin-right: 0;
    }
}

/* Ensure cards stay on sides and center wraps */
@media (min-width: 1025px) {
    .hero-showcase {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1024px) {
    .hero-showcase {
        justify-content: center;
        align-items: center;
    }
    
    .left-card,
    .right-card {
        margin: 0 auto;
    }
    
    .app-showcase {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: var(--space-8);
    }
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-header {
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A202C;
    margin: 0;
}

.reviewer-stars {
    display: flex;
    gap: 2px;
}

.reviewer-stars svg {
    width: 14px;
    height: 14px;
    fill: #FFD700;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #718096;
}

.review-date,
.review-source {
    margin: 0;
}

.review-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #2D3748;
    margin: 0;
}

.left-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.right-card {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
}

.left-card .testimonial-card {
    animation: float-left 20s ease-in-out infinite;
}

.right-card .testimonial-card {
    animation: float-right 20s ease-in-out infinite;
}

@keyframes float-left {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

@keyframes float-right {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Download Section - Separate from card */
.download-section {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Left card download aligns to the right */
.left-card .download-section {
    align-items: flex-end;
}

/* Right card download aligns to the left */
.right-card .download-section {
    align-items: flex-start;
}

.store-buttons {
    margin-bottom: 1rem;
}

/* When app showcase is hidden, center downloads */
@media (max-width: 1024px) {
    .hero-showcase:not(:has(.app-showcase)) .download-section,
    .app-showcase:empty + .right-card .download-section,
    .left-card:has(+ .app-showcase:empty) .download-section {
        align-items: center;
    }
}

.store-button {
    display: inline-block;
    background: transparent;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.store-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.store-button img {
    display: block;
    height: 60px;
    width: auto;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 0.5rem;
}

.qr-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4A5568;
    margin: 0;
}

.qr-code {
    width: 128px;
    height: 128px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px;
    background: white;
}

/* Hide QR section on small screens */
@media (max-width: 1024px) {
    .qr-section {
        display: none;
    }
}

/* App Screenshot */
.app-showcase {
    position: relative;
    z-index: 2;
}

.app-screenshot {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    transition: transform var(--transition-slow);
}

.app-showcase:hover .app-screenshot {
    transform: scale(1.02) translateY(-8px);
}

/* Hero Tagline */
.hero-tagline {
    margin-top: var(--space-12);
}

.hero-tagline p {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 720px;
    background: #4A4539; /* Classic antique brown tone */
    border-radius: 16px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    padding: 1.5rem 2rem;
    z-index: 100;
    transition: transform 0.3s ease-out;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.floating-cta.show {
    transform: translateX(-50%) translateY(0);
}

.floating-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.cta-qr-android,
.cta-qr-ios {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cta-qr-image {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    object-fit: contain;
    box-sizing: content-box;
    display: block;
}

.cta-qr-label {
    color: #D4AF37;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

.cta-text-content {
    flex: 1;
    text-align: center;
}

.cta-main-text {
    color: #FDF6E3;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-family: var(--font-serif);
}

.cta-sub-text {
    color: rgba(253, 246, 227, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.cta-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4A4539;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #D4AF37;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cta-close-btn:hover {
    background: #D4AF37;
    color: #4A4539;
}

.cta-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive for floating CTA */
@media (max-width: 640px) {
    .floating-cta {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 1rem;
    }
    
    .floating-cta-content {
        gap: 1rem;
    }
    
    .cta-qr-android,
    .cta-qr-ios {
        display: none; /* Hide QR codes on mobile */
    }
    
    .cta-text-content {
        text-align: center;
    }
    
    .cta-main-text {
        font-size: 1rem;
    }
    
    .cta-sub-text {
        font-size: 0.75rem;
    }
    
    .cta-close-btn {
        top: -6px;
        right: -6px;
        width: 24px;
        height: 24px;
    }
    
    .cta-primary-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .cta-close-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem;
    }
    
    .cta-close-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-showcase {
        flex-direction: column;
        gap: var(--space-8);
    }
    
    .left-card,
    .right-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .app-showcase {
        order: -1; /* Show app screenshot first */
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-8);
    }
    
    .app-screenshot {
        width: 280px;
    }
    
    .testimonial-card {
        margin: 0 auto;
    }
    
    .download-section {
        align-items: center !important;
    }
    
    .store-button {
        margin: 0 auto;
        display: block;
        max-width: 200px;
    }
    
    .store-button img {
        height: 50px;
    }
    
    .qr-section {
        display: none; /* Hide QR code on mobile as it's not useful */
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .app-screenshot {
        width: 240px;
        height: auto;
    }
    
    .testimonial-card {
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .store-button img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .hero-new {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .floating-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
    }
    
    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Features Page Hero Text Fix */
.hero h1,
.hero-title {
    color: #1f2937 !important; /* Dark gray color for visibility */
    background: none !important;
    -webkit-text-fill-color: #1f2937 !important;
}

.hero .lead,
.hero-subtitle {
    color: #4b5563 !important; /* Medium gray for subtitle */
}

/* Alternative: If you want to keep gradient but make it darker */
.hero h1.gradient-text {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
