/* Shopify Store Optimization Page Styles */
/* Extends the main 8989.ai design system */

/* Trust Signals in Hero */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    min-width: 120px;
    transition: transform 0.3s var(--ease-smooth);
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--gray-light);
    font-weight: 500;
}

.cta-note {
    margin-top: 1rem;
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--black-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-dark);
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.breadcrumb a:hover {
    color: var(--accent-secondary);
}

.breadcrumb span {
    color: var(--gray-light);
}

/* Problem Section */
.problem-section {
    padding: var(--section-padding) 0;
    background: var(--black);
}

.problem-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

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

.problem-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

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

.problem-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

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

.problem-card p {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Solution Section */
.solution-section {
    padding: var(--section-padding) 0;
    background: var(--black-secondary);
}

.solution-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

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

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.solution-card ul {
    list-style: none;
    padding: 0;
}

.solution-card li {
    color: var(--white);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1rem;
}

/* Process Section */
.process-section {
    padding: var(--section-padding) 0;
    background: var(--black);
}

.process-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-smooth) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-month {
    background: var(--accent-gradient);
    color: var(--white);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    min-width: 140px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.timeline-content p {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* ROI Calculator */
.roi-section {
    padding: var(--section-padding) 0;
    background: var(--black-secondary);
}

.roi-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

.roi-calculator {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.roi-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.calculator-input {
    margin-bottom: 2.5rem;
}

.calculator-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
    font-size: 1.1rem;
}

.calculator-input input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    background: var(--black-secondary);
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s var(--ease-smooth);
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.calculator-results {
    display: grid;
    gap: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 83, 0.2);
    transition: all 0.3s var(--ease-smooth);
}

.result-item:hover {
    background: rgba(0, 200, 83, 0.15);
    transform: translateY(-2px);
}

.result-label {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.result-value {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--black);
}

.pricing-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

/* Enterprise Upgrade Card */
.pricing-card.enterprise-upgrade {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.pricing-card.enterprise-upgrade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.enterprise-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: inline-block;
}

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

.enterprise-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s var(--ease-smooth);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

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

.pricing-card.popular {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    background: rgba(0, 200, 83, 0.05);
}

.pricing-card.popular::before {
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.price span {
    font-size: 1.25rem;
    color: var(--gray-light);
    font-weight: 500;
}

.price-description {
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-card li {
    color: var(--white);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.guarantee {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 83, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.guarantee p {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.guarantee strong {
    color: var(--accent-primary);
}

/* Case Studies */
.case-studies-section {
    padding: var(--section-padding) 0;
    background: var(--black-secondary);
}

.case-studies-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.case-study {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.case-study:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.case-study:hover::before {
    opacity: 1;
}

.case-study h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
}

.case-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-metric {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 83, 0.2);
    transition: all 0.3s var(--ease-smooth);
}

.result-metric:hover {
    background: rgba(0, 200, 83, 0.15);
    transform: translateY(-2px);
}

.metric-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    font-weight: 600;
}

.case-study p {
    color: var(--white);
    font-style: italic;
    line-height: 1.6;
    font-size: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--black);
}

.faq-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    line-height: 1.1;
}

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

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.faq-item p {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Final CTA Section */
.final-cta-section {
    padding: var(--section-padding) 0;
    background: var(--black-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
}

.final-cta-section p {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 3rem;
}

.final-cta-section .cta-button {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--black-secondary);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.close {
    color: var(--gray-light);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    transition: color 0.3s var(--ease-smooth);
}

.close:hover {
    color: var(--white);
}

.modal-content h2 {
    color: var(--white);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem !important;
    }
    
    .trust-signals {
        gap: 1rem;
    }
    
    .trust-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
    
    .problem-section h2,
    .solution-section h2,
    .process-section h2,
    .roi-section h2,
    .pricing-section h2,
    .case-studies-section h2,
    .faq-section h2,
    .final-cta-section h2 {
        font-size: 2rem;
    }
    
    .problem-grid,
    .solution-grid,
    .pricing-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-month {
        min-width: auto;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .case-results {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 2rem;
    }
    
    .roi-calculator {
        padding: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem !important;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .trust-signals {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-item {
        width: 100%;
        max-width: 200px;
    }
    
    .problem-section h2,
    .solution-section h2,
    .process-section h2,
    .roi-section h2,
    .pricing-section h2,
    .case-studies-section h2,
    .faq-section h2,
    .final-cta-section h2 {
        font-size: 1.75rem;
    }
}