/* Solutions Deck Styling
   Inherits from landing.css but adds specific pitch-deck structure
*/

html {
    scroll-behavior: smooth;
}

.solutions-page {
    background-color: var(--bg-surface);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.deck-container {
    max-width: 100vw;
    overflow-x: hidden;
}

.deck-slide {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.solutions-page .nav-links {
    display: flex;
    gap: 20px;
}


.solutions-page .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s;
}

.solutions-page .nav-links a:hover {
    color: var(--accent);
}

.solutions-page .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.solutions-page #langToggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}


/* Sections Backgrounds */
.section-alt {
    background: var(--bg-surface-alt);
}

.section-dark {
    background: #0f172a;
    color: white;
}

.section-dark h2 {
    color: white;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-dark .label-sm {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .label-accent {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid #3b82f6;
}

/* Typo tweaks for Deck */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
}

.solutions-page .label-sm {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 20px auto 20px;
    text-align: center;
}

/* Hero Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
}

.scroll-indicator i {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin: -8px 0;
    opacity: 0;
    animation: chevron-flow 2s infinite ease-in-out;
}

.scroll-indicator i:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator i:nth-child(3) { animation-delay: 0.4s; }

@keyframes chevron-flow {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}



/* Layouts */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.copy-side {
    flex: 1;
}

.media-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform 0.3s;
}

.card.glass:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card.glass h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card.glass p {
    color: var(--text-secondary);
}

.mini-stat {
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.bento-lg {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}


.bento-icon.accent-green { color: #10b981; }
.bento-icon.accent-purple { color: #8b5cf6; }
.bento-icon.accent-red { color: #ef4444; }
.bento-icon.accent-orange { color: #f59e0b; }
.bento-icon.accent-blue { color: #3b82f6; }
.bento-icon.accent-gold { color: #fbbf24; }
.bento-icon.accent-pink { color: #ec4899; }


.bento-metric {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.section-dark .bento-metric {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}


/* Specific elements mockups */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card.danger {
    background: rgba(239, 68, 68, 0.1);
}

.metric-card.success {
    background: rgba(16, 185, 129, 0.1);
}

.metric-val {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.danger .metric-val {
    color: #f87171;
}

.success .metric-val {
    color: #34d399;
}

.metric-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Animations & Mocks */
.simulation-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pulse-ring {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 40px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.sub-multiplier-mock {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.sub-synergy-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.synergy-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 220px;
    position: absolute;
    transition: all 0.4s ease;
}

.card-viewer {
    transform: translateX(-40px) scale(0.9);
    z-index: 1;
    opacity: 0.6;
}

.card-subscriber {
    transform: translateX(40px);
    z-index: 2;
    border: 2px solid #9146ff;
    box-shadow: 0 20px 40px rgba(145, 70, 255, 0.2);
}

.bento-item:hover .card-viewer { transform: translateX(-60px) scale(0.85); }
.bento-item:hover .card-subscriber { transform: translateX(60px) scale(1.05); }

.synergy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-viewer .synergy-header { color: var(--text-muted); }
.card-subscriber .synergy-header { color: #9146ff; }

.synergy-xp-bar {
    height: 6px;
    background: var(--bg-surface-alt);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.xp-progress {
    height: 100%;
    background: var(--accent);
}

.card-subscriber .xp-progress {
    background: linear-gradient(90deg, #9146ff, #c8a2ff);
    width: 100% !important;
    animation: pulse-xp 2s infinite;
}

@keyframes pulse-xp {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.synergy-multiplier {
    font-size: 2.5rem;
    font-weight: 900;
}

.card-viewer .synergy-multiplier { color: var(--text-muted); }
.card-subscriber .synergy-multiplier { 
    color: #9146ff;
}


.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.reward-box h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.reward-box p {
    color: var(--text-secondary);
}

.r-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent);
    transition: transform 0.3s;
}

.reward-box:hover .r-icon {
    transform: scale(1.1);
    background: var(--accent);
    color: white;
}

.deck-slide h2+p,
.deck-slide h2+.section-desc {
    margin-top: 24px;
    margin-bottom: 32px;
}

.section-desc {
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Final CTA Section */
.section-cta {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 100px 0;
    overflow: hidden;
    color: white;
}

.section-cta h2 {
    color: white;
}


.cta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: btn-pulse 2s infinite;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.6);
    color: white;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
    }

    .grid-3,
    .rewards-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-auto-rows: auto;
    }

    .bento-lg {
        grid-column: span 1;
    }

    .deck-slide {
        padding: 60px 0;
        min-height: auto;
    }
}