/* Creator Business OS - Foundation Page Styles */
/* CRITICAL FIXES: Timer performance, mobile responsiveness, accessibility */

/* CSS Custom Properties with Fallbacks */
:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --purple-primary: #8B7AB8;
    --purple-secondary: #6B5A9B;
    --white: #FFFFFF;
    --black: #000000;
    --green-success: #10B981;
    --red-error: #EF4444;
    --blue-info: #3B82F6;
    --orange-warning: #F59E0B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8B7AB8 0%, #6B5A9B 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-dark: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    
    /* Animation timing */
    --animation-fast: 0.15s;
    --animation-normal: 0.3s;
    --animation-slow: 0.6s;
    
    /* Shadows */
    --shadow-small: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    background: var(--black, #000000);
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Product Hero Section */
.product-hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    background: var(--gradient-dark, linear-gradient(135deg, #1F2937 0%, #111827 100%));
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 75%, rgba(139, 122, 184, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.best-value-badge {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
    animation: pulseSuccess 2s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes pulseSuccess {
    0% { box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5); }
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
}

.foundation-highlight {
    color: #10B981;
    color: var(--green-success, #10B981);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Price Section */
.price-section {
    margin: 2rem 0;
    text-align: left;
}

.original-price {
    color: #4B5563;
    color: var(--gray-600, #4B5563);
    text-decoration: line-through;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 4rem;
    font-weight: 900;
    color: #10B981;
    color: var(--green-success, #10B981);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-note {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.savings-highlight {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
}

/* CRITICAL FIX: Countdown Timer (Performance Optimized) */
.countdown-section {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid #F59E0B;
    border: 2px solid var(--orange-warning, #F59E0B);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.countdown-title {
    color: #F59E0B;
    color: var(--orange-warning, #F59E0B);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timer-unit {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.timer-number {
    font-size: 2rem;
    font-weight: 900;
    color: #F59E0B;
    color: var(--orange-warning, #F59E0B);
    line-height: 1;
    display: block;
}

.timer-label {
    font-size: 0.875rem;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.countdown-message {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1rem;
    font-weight: 500;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(139, 122, 184, 0.2);
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all var(--animation-normal, 0.3s) ease;
}

.trust-badge:hover {
    border-color: #10B981;
    border-color: var(--green-success, #10B981);
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
    transform: translateY(-2px);
}

.trust-badge i {
    color: #10B981;
    color: var(--green-success, #10B981);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--animation-normal, 0.3s) ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    border-color: #8B7AB8;
    border-color: var(--purple-primary, #8B7AB8);
}

.btn-secondary:hover {
    background: #8B7AB8;
    background: var(--purple-primary, #8B7AB8);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.foundation-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
    position: relative;
    overflow: hidden;
}

.foundation-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.foundation-preview h3 {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.foundation-preview h3 i {
    color: #10B981;
    color: var(--green-success, #10B981);
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.preview-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-weight: 500;
}

.preview-list i {
    color: #10B981;
    color: var(--green-success, #10B981);
    font-size: 1.1rem;
}

/* Section Styles */
.target-section,
.included-section,
.value-section,
.faq-section,
.final-cta {
    padding: 6rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #10B981;
    color: var(--green-success, #10B981);
}

.section-header p {
    font-size: 1.125rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    max-width: 600px;
    margin: 0 auto;
}

/* Target Audience Grid */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.target-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--animation-normal, 0.3s) ease;
    backdrop-filter: blur(10px);
}

.target-card:hover {
    border-color: #10B981;
    border-color: var(--green-success, #10B981);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(-5px);
}

.target-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
}

.target-icon i {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.5rem;
}

.target-card h3 {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.target-card p {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    line-height: 1.6;
    margin: 0;
}

/* What's Included Grid */
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.included-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all var(--animation-normal, 0.3s) ease;
}

.included-card:hover {
    border-color: #10B981;
    border-color: var(--green-success, #10B981);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(-5px);
}

.foundation-exclusive {
    border-color: #10B981;
    border-color: var(--green-success, #10B981);
    background: rgba(16, 185, 129, 0.05);
}

.foundation-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.included-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.included-icon i {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.5rem;
}

.included-card h3 {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.included-card p {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-weight: 500;
}

.included-list i {
    color: #10B981;
    color: var(--green-success, #10B981);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Value Section */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--animation-normal, 0.3s) ease;
}

.value-card:hover {
    border-color: #10B981;
    border-color: var(--green-success, #10B981);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(-5px);
}

.value-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #10B981;
    color: var(--green-success, #10B981);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.value-card h4 {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.value-card p {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    line-height: 1.6;
    margin: 0;
}

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

.faq-item {
    border-bottom: 1px solid rgba(139, 122, 184, 0.2);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--animation-normal, 0.3s) ease;
}

.faq-question:hover {
    color: #10B981;
    color: var(--green-success, #10B981);
}

.faq-question:focus {
    outline: 2px solid #10B981;
    outline: 2px solid var(--green-success, #10B981);
    outline-offset: 2px;
}

.faq-icon {
    transition: transform var(--animation-normal, 0.3s) ease;
    color: #8B7AB8;
    color: var(--purple-primary, #8B7AB8);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
    color: #10B981;
    color: var(--green-success, #10B981);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--animation-normal, 0.3s) ease;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    line-height: 1.6;
}

.faq-answer.active {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    background: var(--gradient-dark, linear-gradient(135deg, #1F2937 0%, #111827 100%));
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.125rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin-bottom: 3rem;
}

.guarantee-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
}

.guarantee-card i {
    color: #10B981;
    color: var(--green-success, #10B981);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guarantee-card h3 {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.guarantee-card p {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin: 0;
}

.cta-actions {
    margin: 3rem 0;
}

.order-btn {
    font-size: 1.125rem;
    padding: 1.25rem 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-note {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* CRITICAL FIX: Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .product-hero {
        padding: 6rem 0 4rem;
    }
    
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .current-price {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .timer-unit {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .timer-label {
        font-size: 0.75rem;
    }
    
    .target-grid {
        grid-template-columns: 1fr;
    }
    
    .included-grid {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .value-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .countdown-section {
        padding: 1.5rem;
    }
    
    .countdown-timer {
        justify-content: center;
    }
    
    .timer-unit {
        min-width: 50px;
        padding: 0.5rem 0.25rem;
    }
    
    .timer-number {
        font-size: 1.25rem;
    }
}

/* Animations */
.animate-in {
    animation: slideInUp var(--animation-slow, 0.6s) ease-out forwards;
}

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

/* Performance Optimizations */
.target-card,
.included-card,
.value-card,
.trust-badge {
    will-change: transform;
}

.target-card:hover,
.included-card:hover,
.value-card:hover,
.trust-badge:hover,
.btn:hover {
    will-change: auto;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .target-card:hover,
    .included-card:hover,
    .value-card:hover,
    .trust-badge:hover,
    .btn:hover {
        transform: none;
    }
    
    .best-value-badge,
    .countdown-section::before {
        animation: none;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .target-card,
    .included-card,
    .value-card,
    .countdown-section {
        border-width: 3px;
        border-style: solid;
    }
    
    .target-card h3,
    .included-card h3,
    .value-card h4 {
        color: #FFFFFF !important;
        font-weight: 900 !important;
    }
}

/* Focus Management for Accessibility */
.btn:focus,
.faq-question:focus {
    outline: 3px solid #10B981;
    outline: 3px solid var(--green-success, #10B981);
    outline-offset: 2px;
}

/* Timer Accessibility */
.countdown-timer[aria-live="polite"] {
    /* Ensures screen readers announce timer updates */
}

/* Print Styles */
@media print {
    .product-hero,
    .final-cta {
        background: none !important;
        color: #000000 !important;
    }
    
    .countdown-section {
        border: 1px solid #000000 !important;
        background: none !important;
    }
    
    .included-card,
    .target-card,
    .value-card {
        border: 1px solid #000000 !important;
        background: none !important;
    }
    
    .included-list li,
    .target-card p,
    .value-card p {
        color: #000000 !important;
    }
}