/* ==========================================================================
   Solutions Page - N-Expert.ai
   AI Bot Solutions Showcase with Interactive Cards
   ========================================================================== */

/* ==========================================================================
   Solutions Intro Section
   ========================================================================== */

.solutions-intro {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}

.solutions-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.solutions-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ==========================================================================
   Bot Cards Grid System
   ========================================================================== */

.bot-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Center last row when it has 2 cards */
.bot-cards-grid::after {
    content: '';
    display: block;
}

/* ==========================================================================
   Bot Card - 3D Flip Card
   ========================================================================== */

.bot-card {
    perspective: 1000px;
    width: 100%;
    height: 480px;
    cursor: pointer;
    position: relative;
}

.bot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.bot-card.flipped .bot-card-inner {
    transform: rotateY(180deg);
}

.bot-card-front,
.bot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.bot-card-front {
    justify-content: flex-start;
}

.bot-card-back {
    transform: rotateY(180deg);
    justify-content: space-between;
}

/* Hover effect */
.bot-card:hover .bot-card-front {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bot-card:hover .bot-card-back {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Bot Card Front - Icon & Content
   ========================================================================== */

.bot-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.bot-card:hover .bot-icon {
    transform: scale(1.1);
}

/* Icon glow effects - set via inline styles */
.bot-icon.cyan {
    background: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(29, 161, 242, 0.4);
}

.bot-icon.red {
    background: var(--accent-red);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.bot-icon.purple {
    background: #9333EA;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.bot-icon.green {
    background: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.bot-icon.orange {
    background: #F59E0B;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.bot-card-front h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
}

.bot-card-front p {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.flip-hint {
    display: block;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.flip-hint i {
    margin-right: 0.5rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Bot Card Back - Detailed Info
   ========================================================================== */

.bot-card-back h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.bot-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Bot Features List
   ========================================================================== */

.bot-features {
    list-style: none;
    margin-bottom: 1rem;
    padding: 0;
}

.bot-features li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.bot-features li i {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Color variants for feature icons */
.bot-features li i.cyan {
    color: var(--accent-cyan);
}

.bot-features li i.red {
    color: var(--accent-red);
}

.bot-features li i.purple {
    color: #9333EA;
}

.bot-features li i.green {
    color: #10B981;
}

.bot-features li i.orange {
    color: #F59E0B;
}

/* ==========================================================================
   Technology Badges
   ========================================================================== */

.bot-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tech-badge {
    background: rgba(29, 161, 242, 0.1);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(29, 161, 242, 0.2);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
}

/* Color variants for tech badges */
.tech-badge.cyan {
    background: rgba(29, 161, 242, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(29, 161, 242, 0.2);
}

.tech-badge.red {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent-red);
    border-color: rgba(230, 57, 70, 0.2);
}

.tech-badge.purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333EA;
    border-color: rgba(147, 51, 234, 0.2);
}

.tech-badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.2);
}

.tech-badge.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Demo Button
   ========================================================================== */

.bot-demo-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.bot-demo-btn i {
    font-size: 1rem;
}

/* ==========================================================================
   Demo Modal Overlay
   ========================================================================== */

.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Demo Modal Container
   ========================================================================== */

.demo-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.demo-modal-overlay.active .demo-modal {
    transform: scale(1);
}

/* ==========================================================================
   Demo Modal Header
   ========================================================================== */

.demo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.demo-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.demo-modal-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.demo-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.demo-modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   Demo Modal Chat Area
   ========================================================================== */

.demo-modal-chat {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 250px;
    max-height: 400px;
    background: var(--bg-darker);
}

/* Custom scrollbar for chat */
.demo-modal-chat::-webkit-scrollbar {
    width: 6px;
}

.demo-modal-chat::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.demo-modal-chat::-webkit-scrollbar-thumb {
    background: rgba(29, 161, 242, 0.3);
    border-radius: 3px;
}

.demo-modal-chat::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 161, 242, 0.5);
}

/* ==========================================================================
   Chat Messages
   ========================================================================== */

.chat-message {
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease;
}

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

.bot-message p {
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.2);
    border-radius: 12px 12px 12px 0;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message p {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light));
    border-radius: 12px 12px 0 12px;
    padding: 1rem;
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 80%;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 1rem;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.2);
    border-radius: 12px 12px 12px 0;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   Demo Modal Input Area
   ========================================================================== */

.demo-modal-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    background: var(--bg-card);
}

.demo-modal-input input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.demo-modal-input input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.demo-modal-input input::placeholder {
    color: var(--text-dim);
}

.demo-modal-input input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-modal-input button {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-modal-input button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.demo-modal-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Chat Area Wrapper & Widget Container
   ========================================================================== */

.demo-chat-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.demo-chat-widget {
    display: none;
    flex: 1;
    min-height: 350px;
    max-height: 500px;
    background: var(--bg-darker);
    border-radius: 0 0 16px 16px;
}

.demo-chat-widget iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Exit Confirmation Dialog
   ========================================================================== */

.confirm-exit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 13, 23, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    border-radius: 16px;
}

.confirm-exit-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-exit-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.confirm-exit-overlay.active .confirm-exit-dialog {
    transform: scale(1);
}

.confirm-exit-icon {
    width: 56px;
    height: 56px;
    background: rgba(230, 57, 70, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--accent-red);
}

.confirm-exit-dialog h4 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.confirm-exit-dialog p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.confirm-exit-buttons {
    display: flex;
    gap: 0.75rem;
}

.confirm-exit-buttons .btn-outline,
.confirm-exit-buttons .btn-red {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    justify-content: center;
    border-radius: 8px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .bot-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .solutions-intro h1 {
        font-size: 2rem;
    }

    .solutions-intro p {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bot-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .bot-card {
        height: 500px;
    }

    .solutions-intro {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .solutions-intro h1 {
        font-size: 1.8rem;
    }

    .solutions-intro p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .demo-modal {
        max-width: 100%;
        max-height: 90vh;
        margin: 0 0.5rem;
    }

    .demo-modal-chat {
        max-height: 300px;
    }

    .demo-chat-widget {
        min-height: 300px;
        max-height: 400px;
    }

    .confirm-exit-dialog {
        padding: 2rem 1.5rem;
    }

    .confirm-exit-buttons {
        flex-direction: column;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .bot-card {
        height: auto;
        min-height: 450px;
    }

    .bot-card-front,
    .bot-card-back {
        padding: 1.5rem;
    }

    .bot-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .bot-card-front h3 {
        font-size: 1.2rem;
    }

    .bot-card-front p {
        font-size: 0.9rem;
    }

    .bot-card-back h3 {
        font-size: 1.1rem;
    }

    .bot-description {
        font-size: 0.9rem;
    }

    .bot-features li {
        font-size: 0.85rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .demo-modal-header {
        padding: 1rem;
    }

    .demo-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .demo-modal-header h3 {
        font-size: 1rem;
    }

    .demo-modal-chat {
        padding: 1rem;
        min-height: 200px;
    }

    .demo-modal-input {
        padding: 1rem;
        flex-direction: column;
    }

    .demo-modal-input button {
        width: 100%;
        justify-content: center;
    }

    .solutions-intro h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
    display: none !important;
}

/* ==========================================================================
   Solution Sub-Page — Shared Layout
   (Finance & Admin, Business Expert, Customer Service, etc.)
   ========================================================================== */

.solution-hero {
    text-align: center;
}

.solution-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.solution-hero h1 span { color: var(--accent-cyan); }

.solution-hero .hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.solution-hero .hero-cta-group {
    margin-bottom: 4rem;
}

.solution-hero-image {
    margin-top: 0;
}

.solution-hero-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Two-column layout */
.solution-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-col-content .section-title {
    text-align: left;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 1.25rem;
}

.solution-col-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.solution-col-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    display: block;
    transition: transform 0.4s ease;
}

.solution-col-image:hover img { transform: scale(1.03); }

/* Pillars grid */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pillar-grid.pillar-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.steps-grid.steps-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.steps-grid.steps-grid-4::before {
    left: calc(12.5% + 1rem);
    right: calc(12.5% + 1rem);
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(29, 161, 242, 0.1);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

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

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Shared text elements */
.solution-section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.solution-security-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-top: 2rem;
}

.solution-trust-line {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-top: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .solution-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Comparison table */
.comparison-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
}

.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.comparison-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.comparison-col-label {
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-align: center;
}

.comparison-col-label.highlight {
    color: var(--accent-cyan);
    background: rgba(29, 161, 242, 0.06);
}

.comparison-row {
    border-bottom: 1px solid var(--border);
}

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

.comparison-feature {
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.comparison-val {
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-dim);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
}

.comparison-val.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
    background: rgba(29, 161, 242, 0.04);
}

/* Testimonial */
.solution-testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
}

.solution-testimonial i {
    font-size: 2rem;
    color: var(--accent-cyan);
    opacity: 0.4;
    margin-bottom: 1.25rem;
    display: block;
}

.solution-testimonial p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.solution-testimonial span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .comparison-wrap { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .solution-hero h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
    .comparison-header, .comparison-row { grid-template-columns: 1fr 1fr 1fr; }
    .comparison-feature, .comparison-val { font-size: 0.8rem; padding: 0.75rem 0.75rem; }
}

.no-scroll {
    overflow: hidden;
}

/* =============================================
   Proof bar (hero stat strip)
   ============================================= */
.solution-proof-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(29, 161, 242, 0.05);
    border: 1px solid rgba(29, 161, 242, 0.15);
    border-radius: 14px;
}

.proof-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.proof-bar-item strong {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.proof-bar-item span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 220px;
    line-height: 1.4;
}

/* =============================================
   Agent cards (MAS table alternative)
   ============================================= */
.agent-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.agent-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(29, 161, 242, 0.1);
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.agent-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.agent-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.agent-card .agent-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.agent-card .agent-edge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(29, 161, 242, 0.08);
    border: 1px solid rgba(29, 161, 242, 0.2);
    border-radius: 20px;
    padding: 0.25rem 0.85rem;
}

/* =============================================
   ROI / Results card
   ============================================= */
.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 860px;
    margin: 2.5rem auto 0;
}

.roi-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.roi-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--accent-cyan);
    line-height: 1.1;
}

.roi-stat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: block;
    margin-top: 0.35rem;
}

.roi-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.roi-card .roi-case {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
}

.roi-card .roi-case strong { color: var(--text-primary); }

/* =============================================
   Early adopter offer box
   ============================================= */
.offer-box {
    background: rgba(29, 161, 242, 0.06);
    border: 1px solid rgba(29, 161, 242, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.offer-box h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.offer-box ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.offer-box ul li i {
    color: var(--accent-cyan);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* 2-column comparison (JurisMind / no feature column) */
.comparison-table.comparison-2col .comparison-header,
.comparison-table.comparison-2col .comparison-row {
    grid-template-columns: 1fr 1fr;
}

/* JurisMind icon placeholder (no hero image) */
.jurismind-icon-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.jurismind-icon-display i {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    opacity: 0.8;
}

.comparison-val.negative {
    color: var(--text-dim);
}

.comparison-val.negative i {
    color: var(--accent-red);
    margin-right: 0.4rem;
}

.comparison-val.highlight i {
    color: var(--accent-cyan);
    margin-right: 0.4rem;
}

@media (max-width: 1024px) {
    .agent-cards-grid { grid-template-columns: 1fr; }
    .roi-stats { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 768px) {
    .solution-proof-bar { flex-direction: column; align-items: center; gap: 1.25rem; }
    .roi-card { padding: 2rem 1.5rem; }
}

/* Accessibility */
.bot-card:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

.demo-modal-close:focus-visible,
.bot-demo-btn:focus-visible,
.demo-modal-input button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bot-card-inner {
        transition: none;
    }

    .chat-message {
        animation: none;
    }

    .typing-indicator span {
        animation: none;
    }

    .bot-demo-btn:hover {
        transform: none;
    }
}
