/* Additional styles for LumaTales - loaded after critical CSS */

/* Mobile-first base styles */
:root {
    --primary: #7c3aed;
    --secondary: #f59e0b;
    --gray-50: #f9fafb;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --white: #ffffff;
    --touch-target: 44px; /* Minimum touch target size */
    --premium-gradient: linear-gradient(135deg, #7c3aed 0%, #f59e0b 100%);
    --premium-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

/* Base styles optimized for mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    overflow-x: hidden;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-optimized container */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Header: fixed, reduced height */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

/* Hero: new glowing gradient background */
.hero {
    background: var(--premium-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Unified button style */
.btn, .btn-primary, .header-cta {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--premium-gradient);
    color: white;
    box-shadow: var(--premium-shadow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Mobile-optimized cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Step Cards */
.step-card {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.step-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Powers Section */
.powers-section {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: white;
}

.powers-section .section-title,
.powers-section .section-subtitle {
    color: white;
}

.power-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.power-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.power-card h3,
.power-card p {
    color: white;
}

/* Story Cards */
.story-card .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.story-link:hover {
    transform: translateX(4px);
}

/* Benefit Cards */
.benefit-icon {
    background: linear-gradient(135deg, var(--primary), #ec4899) !important;
    color: white !important;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 16px;
    color: var(--gray-600);
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.author h4 {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 14px;
    margin-bottom: 4px;
}

.author span {
    color: var(--gray-600);
    font-size: 12px;
}

/* Pricing */
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid var(--primary);
    box-shadow: var(--premium-shadow);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--premium-gradient);
}

.pricing-header {
    background: var(--premium-gradient);
    margin: -40px -40px 32px -40px;
    padding: 32px 40px;
    color: white;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

.offer-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.timer {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0;
    font-family: 'Inter', sans-serif;
}

.pricing-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0 0 0;
}

.price-container {
    text-align: center;
    margin: 24px 0;
}

.price {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.original-price {
    font-size: 18px;
    color: var(--gray-600);
    text-decoration: line-through;
    margin-right: 12px;
}

.price-subtitle {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}

/* Features */
.features {
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.feature i {
    color: #10b981;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Guarantee */
.guarantee {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #a7f3d0;
}

.guarantee h4 {
    color: #047857;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guarantee p {
    color: #059669;
    font-size: 13px;
    line-height: 1.4;
}

/* CTA Button */
.cta-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Security */
.security {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-600);
    flex-wrap: wrap;
}

.security span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--gray-50);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--gray-600);
    line-height: 1.6;
    display: none;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #d1d5db;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
}

.footer-content {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
}

.footer p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #6b7280;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--premium-gradient);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 12px;
    opacity: 0.9;
}

.modal-content {
    padding: 20px;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
}

.price-large {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.price-desc {
    font-size: 12px;
    color: var(--gray-600);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.modal-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-cta:hover {
    transform: translateY(-1px);
}

.security-note {
    text-align: center;
    font-size: 11px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Fade/slide-in animation for .fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Restore premium-gradient-text, premium-btn, sparkle-bg, and hero styles */
.premium-gradient-text {
    background: linear-gradient(90deg, #ffd700 0%, #ffb347 40%, #a7ffeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.15));
}
.premium-btn {
    background: linear-gradient(90deg, #ffb347 0%, #ffd700 60%, #a7ffeb 100%) !important;
    color: #222 !important;
    box-shadow: 0 4px 24px 0 rgba(255, 215, 0, 0.18);
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.premium-btn::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #fffbe6 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    animation: premium-btn-glow 2.5s infinite linear;
}
@keyframes premium-btn-glow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.2) rotate(360deg); }
}

.sparkle-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.sparkle-bg::before, .sparkle-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #fffbe6 0%, #ffd700 60%, transparent 100%);
    opacity: 0.7;
    animation: sparkle-move 6s infinite alternate;
}
.sparkle-bg::before {
    width: 80px; height: 80px; left: 10%; top: 20%; animation-delay: 0s;
}
.sparkle-bg::after {
    width: 60px; height: 60px; right: 15%; top: 40%; animation-delay: 2s;
}
@keyframes sparkle-move {
    0% { transform: scale(1) translateY(0); opacity: 0.7; }
    100% { transform: scale(1.2) translateY(-30px); opacity: 0.4; }
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 120px 0 80px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
}

.btn, .btn-primary, .header-cta {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Responsive grid for all sections */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}
@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}