/* ==========================================================================
   SOLUTIONS PAGES TEMPLATE
   Visually distinct from Features pages:
   - Split-layout hero (text left, image right)
   - Accent color themes per persona
   - Stat/number boxes instead of problem cards
   - Horizontal workflow steps instead of cards
   - Testimonial + CTA rows
   ========================================================================== */

/* ─── Wrapper ─── */
.solution-page-wrapper {
    background-color: #06060a;
    color: #f1f1f1;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Unified accent — same color across all solution pages */
.solution-page-wrapper {
    --accent: #38bdf8;
    /* default: sky blue — overridden per persona */
    --accent-dim: rgba(56, 189, 248, 0.12);
    --accent-border: rgba(56, 189, 248, 0.2);
}

/* ─── Global Background ─── */
.solution-page-wrapper {
    background: linear-gradient(180deg, #06060a 0%, #0a0d18 50%, #06060a 100%);
}

.solution-page-wrapper>* {
    position: relative;
    z-index: 1;
}

/* ─── 1. HERO — Split Layout (CARD STYLE) ─── */
.solution-hero {
    width: calc(100% - 6vw);
    max-width: 1400px;
    height: auto;
    min-height: 480px;
    margin: 120px auto 80px auto;
    /* Increased bottom margin/padding */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d0d14;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Grid background only inside the hero card */
.solution-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top center, rgba(14, 30, 80, 0.4) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
    z-index: 0;
    border-radius: 36px;
}

/* Left half background */
.solution-hero-left {
    padding: 60px 40px 60px 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Right half — image */
.solution-hero-right {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.solution-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.7) saturate(1.1);
}

/* Dark gradient fade from left onto the image */
.solution-hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0d0d14 0%, transparent 40%);
    z-index: 1;
}

/* Persona badge */
.solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    width: fit-content;
}

.solution-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.solution-hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.solution-hero-title span {
    background: linear-gradient(135deg, var(--accent), #0284c7 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solution-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

.solution-hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Breadcrumb */
.solution-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Mono', monospace;
}

.solution-breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.solution-breadcrumb a:hover {
    color: var(--accent);
}

.solution-breadcrumb .sol-bc-current {
    color: var(--accent);
}

.sol-bc-sep {
    color: rgba(255, 255, 255, 0.15);
}

/* Stats row inside hero */
.solution-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.solution-stat {
    display: flex;
    flex-direction: column;
}

.solution-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.solution-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

/* ─── 2. SECTIONS ─── */
.solution-section {
    padding: 100px 5vw;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.solution-section-pill {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.solution-section-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
}

.solution-section-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 56px auto;
    text-align: center;
}

.solution-section-pill-wrapper {
    text-align: center;
}

/* ─── 3. WORKFLOW STEPS (Striking Horizontal Cards) ─── */
.solution-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    counter-reset: step-counter;
}

.solution-step {
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
    counter-increment: step-counter;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solution-step:hover {
    background: rgba(25, 25, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.solution-step-num {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Subtle glow behind the number box */
.solution-step-num::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent);
    border-radius: 18px;
    filter: blur(12px);
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.solution-step:hover .solution-step-num::before {
    opacity: 0.3;
}

.solution-step-num::after {
    content: "0" counter(step-counter);
}

.solution-step h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.solution-step p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* ─── 4. SOLUTIONS FEATURES GRID (Horizontal 4-card) ─── */
.solution-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.solution-feature-item {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.solution-feature-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
    background: rgba(25, 25, 30, 0.8);
}

.solution-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: url(#silver-gradient);
}

.solution-feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.solution-feature-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ─── 5. FAQ ─── */
.solution-faq-section {
    padding: 100px 5vw;
}

/* Reuse .faq-wrapper / .faq-accordion-container / .faq-item from style.css */

/* ─── 5. SEO SECTIONS (2-Column with Image) ─── */
.solution-seo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-seo-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    align-self: center;
}

.solution-seo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── 6. CTA ─── */
.solution-cta {
    padding: 100px 5vw;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.solution-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at center, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.solution-cta-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.solution-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.solution-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 40px;
    line-height: 1.7;
}

.solution-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Section Divider ─── */
.solution-divider {
    height: 1px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(90deg,
            transparent,
            rgba(200, 200, 220, 0.3) 30%,
            rgba(220, 220, 240, 0.5) 50%,
            rgba(200, 200, 220, 0.3) 70%,
            transparent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .solution-hero {
        grid-template-columns: 1fr;
        height: auto;
        min-height: unset;
        max-height: unset;
        width: calc(100% - 6vw);
        margin: 120px auto 40px auto;
        border-radius: 24px;
    }

    .solution-hero-left {
        padding: 60px 5vw;
    }

    .solution-hero-right {
        height: 360px;
        min-height: unset;
    }

    .solution-steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .solution-steps::before {
        display: none;
    }

    .solution-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .solution-hero-title {
        font-size: 2.4rem;
    }

    .solution-steps {
        grid-template-columns: 1fr;
    }

    .solution-cta h2 {
        font-size: 2rem;
    }

    .solution-section {
        padding: 60px 5vw;
    }
}