/**
 * Landing Page Styles
 * Sections: Hero, Features, How It Works, Pricing
 */

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

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

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary, #f8fafc) 0%, var(--primary-color, #8b5cf6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary, #cbd5e1);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color, #8b5cf6), var(--primary-hover, #7c3aed));
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    color: #ffffff !important;
}

/* Override any link colors for buttons */
.markdown-section .cta-button,
.markdown-section .cta-button:hover,
.markdown-section .cta-button:visited,
.markdown-section .cta-button:active,
a.cta-button,
a.cta-button:hover,
a.cta-button:visited,
a.cta-button:active {
    color: #ffffff !important;
}

.cta-button span,
.cta-button:hover span {
    color: #ffffff !important;
}

.code-preview {
    margin-top: 60px;
    background: var(--bg-secondary, #252140);
    border: 1px solid var(--border-color, #3b3754);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 60px var(--shadow-color, rgba(0, 0, 0, 0.3));
    position: relative;
    overflow: hidden;
}

.code-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-tertiary, #2d2a4a);
    border-bottom: 1px solid var(--border-color, #3b3754);
}

.code-preview::after {
    content: '● ● ●';
    position: absolute;
    top: 12px;
    left: 20px;
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    letter-spacing: 4px;
}

.code-content {
    margin-top: 40px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }

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

.comment { color: var(--text-muted, #94a3b8); }
.keyword { color: #c792ea; }
.string { color: var(--success-color, #10b981); }
.function { color: #82aaff; }

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary, #252140);
}

[data-theme="light-blue"] .features {
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary, #f8fafc);
}

[data-theme="light-blue"] .section-title {
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-tertiary, #2d2a4a);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color, #3b3754);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

[data-theme="light-blue"] .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #8b5cf6), #a78bfa);
    transform: scaleX(0);
    transition: transform 0.3s;
}

[data-theme="light-blue"] .feature-card::before {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color, #8b5cf6);
}

[data-theme="light-blue"] .feature-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary, #f8fafc);
}

[data-theme="light-blue"] .feature-card h3 {
    color: #1e293b;
}

.feature-card p {
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.6;
}

[data-theme="light-blue"] .feature-card p {
    color: #475569;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-primary, #1e1b31);
}

[data-theme="light-blue"] .how-it-works {
    background: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #8b5cf6), var(--primary-hover, #7c3aed));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

[data-theme="light-blue"] .step-number {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary, #f8fafc);
}

[data-theme="light-blue"] .step h3 {
    color: #1e293b;
}

.step p {
    color: var(--text-secondary, #cbd5e1);
}

[data-theme="light-blue"] .step p {
    color: #475569;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary, #252140);
    text-align: center;
}

[data-theme="light-blue"] .pricing {
    background: #f8fafc;
}

.pricing-card a.cta-button {
    justify-content: center;
    text-align: center;
    width: 100%;
}
.pricing-card {
    background: var(--bg-tertiary, #2d2a4a);
    border: 2px solid var(--primary-color, #8b5cf6);
    border-radius: 16px;
    padding: 50px;
    position: relative;
    max-width: 500px;
    margin: 40px auto 0;
    box-shadow: 0 20px 60px var(--shadow-color, rgba(0, 0, 0, 0.3));
}

[data-theme="light-blue"] .pricing-card {
    background: #ffffff;
    border: 2px solid #0ea5e9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary, #f8fafc);
}

[data-theme="light-blue"] .pricing-card h3 {
    color: #1e293b;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color, #8b5cf6);
    margin: 20px 0;
}

[data-theme="light-blue"] .price {
    color: #0ea5e9;
}

.price span {
    font-size: 20px;
    color: var(--text-muted, #94a3b8);
}

[data-theme="light-blue"] .price span {
    color: #64748b;
}

.features-list {
    text-align: left;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    color: var(--text-secondary, #cbd5e1);
    list-style: none;
}

[data-theme="light-blue"] .features-list li {
    color: #475569;
}

.features-list li::before {
    content: '✓';
    color: var(--success-color, #10b981);
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 30px;
    }
}

/* Ensure landing page sections work with Docsify */
.markdown-section .hero,
.markdown-section .features,
.markdown-section .how-it-works,
.markdown-section .pricing {
    margin: 0;
    padding-top: 100px;
    padding-bottom: 100px;
}

.markdown-section .hero:first-child {
    margin-top: -40px;
}

/* ===================================
   PRICING PAGE STYLES
   =================================== */

/* Pricing Hero Section */
.pricing-hero {
    padding: 80px 0 40px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary, #f8fafc) 0%, var(--primary-color, #8b5cf6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light-blue"] .pricing-hero h1 {
    background: linear-gradient(135deg, #1e293b 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero p {
    font-size: 20px;
    color: var(--text-secondary, #cbd5e1);
    max-width: 600px;
    margin: 0 auto;
}

[data-theme="light-blue"] .pricing-hero p {
    color: #64748b;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.toggle-label {
    color: var(--text-secondary, #cbd5e1);
    font-weight: 600;
}

.toggle-label.active {
    color: var(--primary-color, #8b5cf6);
}

[data-theme="light-blue"] .toggle-label {
    color: #64748b;
}

[data-theme="light-blue"] .toggle-label.active {
    color: #0ea5e9;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary, #2d2a4a);
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    border: 2px solid var(--border-color, #3b3754);
}

[data-theme="light-blue"] .toggle-switch {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.toggle-switch.active {
    background: var(--primary-color, #8b5cf6);
}

[data-theme="light-blue"] .toggle-switch.active {
    background: #0ea5e9;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.savings-badge {
    background: var(--success-bg, #064e3b);
    color: var(--success-color, #10b981);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--success-color, #10b981);
}

[data-theme="light-blue"] .savings-badge {
    background: #d1fae5;
    color: #059669;
    border-color: #059669;
}

/* Pricing Section (for pricing page) */
.pricing-section {
    padding: 40px 0 80px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-card.featured {
    border-color: var(--primary-color, #8b5cf6);
    background: linear-gradient(135deg, var(--bg-secondary, #252140), var(--bg-tertiary, #2d2a4a));
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

[data-theme="light-blue"] .pricing-card.featured {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color, #8b5cf6), var(--primary-hover, #7c3aed));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

[data-theme="light-blue"] .popular-badge {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary, #f8fafc);
}

[data-theme="light-blue"] .plan-name {
    color: #1e293b;
}

.plan-description {
    color: var(--text-muted, #94a3b8);
    margin-bottom: 25px;
    min-height: 40px;
}

[data-theme="light-blue"] .plan-description {
    color: #64748b;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color, #8b5cf6);
}

[data-theme="light-blue"] .price-amount {
    color: #0ea5e9;
}

.price-period {
    font-size: 16px;
    color: var(--text-muted, #94a3b8);
}

[data-theme="light-blue"] .price-period {
    color: #64748b;
}

.annual-price {
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
    margin-bottom: 25px;
}

[data-theme="light-blue"] .annual-price {
    color: #64748b;
}

.annual-savings {
    color: var(--success-color, #10b981);
    font-weight: 600;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--border-color, #3b3754);
    color: var(--text-primary, #f8fafc) !important;
}

[data-theme="light-blue"] .cta-button.secondary {
    border-color: #cbd5e1;
    color: #1e293b !important;
}

.cta-button.secondary:hover {
    border-color: var(--primary-color, #8b5cf6);
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="light-blue"] .cta-button.secondary:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    color: #1e293b !important;
}

.check-icon {
    color: var(--success-color, #10b981);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 18px;
}

.features-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    border-bottom: 1px solid var(--border-color, #3b3754);
    padding: 12px 0;
}

[data-theme="light-blue"] .features-list li {
    border-bottom-color: #e2e8f0;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    /*background: var(--bg-secondary, #252140);*/
}

[data-theme="light-blue"] .comparison-section {
    background: #f8fafc;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-tertiary, #2d2a4a);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color, #3b3754);
}

[data-theme="light-blue"] .comparison-table {
    background: #ffffff;
    border-color: #e2e8f0;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--bg-primary, #1e1b31);
    padding: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color, #3b3754);
    color: var(--text-primary, #f8fafc);
}

[data-theme="light-blue"] .table-header {
    background: #f1f5f9;
    border-bottom-color: #cbd5e1;
    color: #1e293b;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #3b3754);
    transition: background 0.2s;
}

[data-theme="light-blue"] .table-row {
    border-bottom-color: #e2e8f0;
}

.table-row:hover {
    background: var(--bg-secondary, #252140);
}

[data-theme="light-blue"] .table-row:hover {
    background: #f8fafc;
}

.table-row:last-child {
    border-bottom: none;
}

.feature-name {
    color: var(--text-primary, #f8fafc);
    font-weight: 500;
}

[data-theme="light-blue"] .feature-name {
    color: #1e293b;
}

.feature-value {
    text-align: center;
    color: var(--text-secondary, #cbd5e1);
}

[data-theme="light-blue"] .feature-value {
    color: #64748b;
}

.feature-check {
    color: var(--success-color, #10b981);
    font-size: 20px;
}

.feature-cross {
    color: var(--text-muted, #94a3b8);
    font-size: 20px;
}

[data-theme="light-blue"] .feature-cross {
    color: #94a3b8;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: var(--bg-secondary, #252140);
    border: 1px solid var(--border-color, #3b3754);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

[data-theme="light-blue"] .faq-item {
    background: #ffffff;
    border-color: #e2e8f0;
}

.faq-question {
    padding: 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

[data-theme="light-blue"] .faq-question {
    color: #1e293b;
}

.faq-question:hover {
    background: var(--bg-tertiary, #2d2a4a);
}

[data-theme="light-blue"] .faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    padding: 0 25px 25px;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.7;
}

[data-theme="light-blue"] .faq-answer {
    color: #475569;
}

/* Responsive adjustments for pricing page */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .table-header, .table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 14px;
        padding: 15px 10px;
    }

    .pricing-hero h1 {
        font-size: 36px;
    }
}
