/*--------------------------------------------------------------
# Demo Agents → Solutions Explorer + Recommended Carousel
--------------------------------------------------------------*/

/* ═══ CINEMATIC ONBOARDING ENHANCEMENTS ═══ */
.cinematic-step-indicator {
    position: absolute;
    top: 40px;
    right: 60px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--ink-dim);
    letter-spacing: 0.1em;
}

/* .cinematic-options grid layout defined in demo.css */

/* ═══ RECOMMENDED CAROUSEL (Hero) ═══ */
.demo-rec-carousel {
    margin-top: 60px;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.demo-rec-carousel::-webkit-scrollbar {
    display: none;
}

.demo-rec-track {
    display: flex;
    gap: 24px;
    padding: 0 20px;
    width: max-content;
}

.demo-hero__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.demo-hero__heading {
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 300;
    letter-spacing: -0.04em;
}

.demo-hero__accent {
    background: linear-gradient(135deg, var(--ink), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-hero__subtext {
    text-align: center;
    margin: 0 auto;
}

.sol-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px !important;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.sol-card__img-wrap {
    position: relative;
    margin: -24px -24px 16px -24px;
    height: 180px;
    overflow: hidden;
    border-radius: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sol-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sol-card:hover .sol-card__img {
    transform: scale(1.06);
}

/* Vivid top accent stripe — removed */

/* Hover glow layer */
.sol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(150deg, rgba(255, 61, 138, 0.06) 0%, rgba(255, 61, 138, 0.04) 100%);
    opacity: 0;
    border-radius: 16px !important;
    transition: opacity 0.45s ease;
    z-index: 0;
}

/* Blueprint Lined Corners */
.sol-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    --corner: 14px;
    --line: 1.5px;
    border-radius: 16px !important;
    background:
        linear-gradient(var(--pink) 0 0) top left / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) top left / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) top right / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) top right / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom left / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom left / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom right / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom right / var(--line) var(--corner) no-repeat !important;
    opacity: 0.15 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 10;
}

.sol-card>* {
    position: relative;
    z-index: 1;
}

.sol-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(255, 61, 138, 0.08) !important;
    border-color: rgba(255, 61, 138, 0.3) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.sol-card:hover::before {
    opacity: 1;
}

.sol-card:hover::after {
    opacity: 0.8 !important;
}

/* ═══ AGENT HIGHLIGHT — triggered via URL ?agent= param ═══ */
@keyframes agentPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 39, 216, 0), 0 12px 32px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.08);
    }

    15% {
        box-shadow: 0 0 0 6px rgba(118, 39, 216, 0.35), 0 0 40px rgba(118, 39, 216, 0.5);
        border-color: rgba(118, 39, 216, 0.8);
    }

    40% {
        box-shadow: 0 0 0 3px rgba(118, 39, 216, 0.2), 0 0 60px rgba(118, 39, 216, 0.35);
        border-color: rgba(118, 39, 216, 0.6);
    }

    65% {
        box-shadow: 0 0 0 6px rgba(118, 39, 216, 0.3), 0 0 40px rgba(118, 39, 216, 0.4);
        border-color: rgba(118, 39, 216, 0.7);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(118, 39, 216, 0), 0 12px 32px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

.sol-card--highlighted {
    animation: agentPulseGlow 2.8s ease-in-out forwards !important;
    border-color: rgba(118, 39, 216, 0.8) !important;
    box-shadow: 0 0 0 6px rgba(118, 39, 216, 0.35), 0 0 50px rgba(118, 39, 216, 0.45) !important;
    z-index: 10;
    position: relative;
}

/* Recommended variant */
.sol-card--rec {
    min-width: 340px;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 61, 138, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sol-card--rec:hover {
    border-color: rgba(255, 61, 138, 0.45) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 60px rgba(255, 61, 138, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════
   DEMO HERO — Clean Variant (Dark Premium Glass Theme)
   ═══════════════════════════════════════════════════════ */
.demo-hero.demo-hero--clean {
    background: transparent;
    min-height: auto;
    padding: 140px 0 60px;
}

.demo-hero--clean .demo-hero__texture,
.demo-hero--clean .demo-hero__bg {
    display: block;
}

.demo-hero--clean .demo-hero__heading {
    color: var(--ink);
    font-family: var(--font-primary);
    font-weight: 300;
}

.demo-hero--clean .demo-hero__subtext {
    color: var(--ink-soft);
}

.demo-reset-btn {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--ink-dim);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
}

.demo-reset-btn:hover {
    color: var(--pink);
    border-color: rgba(255, 61, 138, 0.4);
    background: rgba(255, 61, 138, 0.08);
}

/* Carousel Navigation Arrows */
.demo-rec-carousel {
    position: relative;
    padding: 0 40px;
}

.demo-rec-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.demo-rec-viewport::-webkit-scrollbar {
    display: none;
}

.demo-rec-track {
    display: flex;
    gap: 24px;
    padding: 20px 0 40px;
    width: max-content;
}

.demo-rec-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.demo-rec-arrow:hover {
    background: var(--pink) !important;
    color: #050510 !important;
    border-color: var(--pink) !important;
    box-shadow: 0 0 15px rgba(255, 61, 138, 0.3) !important;
}

.demo-rec-arrow--left {
    left: -10px;
}

.demo-rec-arrow--right {
    right: -10px;
}

/* Card internals */
.sol-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sol-card__fn {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pink);
    background: linear-gradient(135deg, rgba(255, 61, 138, 0.08), rgba(255, 61, 138, 0.06));
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 61, 138, 0.15);
    display: inline-block;
}

.sol-card__badges {
    display: flex;
    gap: 6px;
}

.sol-card__badge {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 50px;
}

.sol-card__badge--core {
    background: linear-gradient(135deg, var(--pink), var(--amber));
    color: var(--ink-dark);
}

.sol-card__badge--rec {
    background: rgba(255, 61, 138, 0.08);
    color: var(--pink);
    border: 1px solid rgba(255, 61, 138, 0.15);
}

.sol-card--rec .sol-card__badge--rec {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.2);
}

.sol-card__title {
    font-family: var(--font-primary);
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.28;
    margin: 0;
    min-height: 64px;
    /* Force 2-line height */
    display: flex;
    align-items: center;
}

.sol-card__desc {
    font-family: var(--font-primary);
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 8px;
    min-height: 84px;
    /* Force 3-line height for label alignment */
}

.sol-card__features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sol-card__features-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px !important;
    border: 1px solid var(--glass-border);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.sol-card__features-list li:hover {
    background: rgba(255, 61, 138, 0.08);
    border-color: rgba(255, 61, 138, 0.2);
}

.sol-card__features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.sol-card__problem {
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 12px;
    background: rgba(219, 39, 119, 0.06);
    border-radius: 16px !important;
    margin-bottom: 12px;
    /* Optimized */
    border: 1px solid rgba(255, 77, 157, 0.2);
}

.sol-card__problem span {
    font-weight: 700;
    color: #f472b6;
    text-transform: uppercase;
    font-size: 10px;
    margin-right: 6px;
}

.sol-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    margin-top: auto;
}

.sol-card--rec .sol-card__bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.sol-card__impact {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-dark);
    background: linear-gradient(135deg, var(--pink), var(--amber));
    padding: 5px 12px;
    border-radius: 16px !important;
    display: inline-block;
    white-space: nowrap;
}

.sol-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #050510 !important;
    background: var(--pink) !important;
    padding: 14px 24px;
    border-radius: 16px !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100%;
    border: 1px solid var(--pink) !important;
    box-shadow: 0 4px 14px rgba(255, 61, 138, 0.1);
}

.sol-card__cta:hover {
    background: transparent !important;
    color: var(--pink) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(255, 61, 138, 0.3) !important;
}

/* ═══ SOLUTIONS EXPLORER ═══ */
.demo-solutions {
    padding: 80px 0;
    background: transparent;
    width: 100%;
    display: block;
}

.demo-solutions__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-solutions__heading {
    font-family: var(--font-primary);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    color: var(--ink);
    letter-spacing: -0.04em;
    margin: 16px 0 0;
    line-height: 1.2;
}

.demo-solutions__accent {
    background: linear-gradient(135deg, var(--ink), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}

.demo-solutions__desc {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 500px;
}

/* Tab Filter Bar */
.sol-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
}

@media (max-width: 768px) {
    .sol-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

.tab-btn {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px 24px;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ink-soft) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 15px rgba(255, 61, 138, 0.15) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* View toggle */
.view-all {
    display: block;
    width: 100%;
}

.view-domain {
    display: none;
    width: 100%;
}

/* Domain Grid & Cards */
.sol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .sol-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sol-grid {
        grid-template-columns: 1fr;
    }
}

/* Base card styling (override / fallback) */
.sol-card {
    background: var(--glass-bg-grad) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur, 20px)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) !important;
    box-shadow: var(--shadow-premium) !important;
    height: 100%;
}

.card-band {
    height: 2px;
    background: linear-gradient(to right, var(--pink), rgba(255, 61, 138, 0.08));
    opacity: 0.42;
    margin: -24px -24px 16px -24px;
    transition: opacity 0.3s ease;
}

.sol-card:hover .card-band {
    opacity: 0.85;
}

.card-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-domain-label {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    opacity: 0.6;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
}

.sol-card__badge {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: fit-content;
    margin-top: 4px;
    background: transparent !important;
}

.card-agent {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--pink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-desc {
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--ink-soft) !important;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.pill {
    font-family: var(--font-primary);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 3px !important;
    padding: 2px 7px;
}

/* Buttons and CTAs */
.btn-domain-cta {
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 16px !important;
    border: none !important;
    background: var(--grad-cta) !important;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 61, 138, 0.3) !important;
}

.btn-domain-cta:hover {
    background: var(--grad-cta) !important;
    box-shadow: 0 8px 25px rgba(255, 61, 138, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Solutions row table */
.sol-table {
    position: relative;
    z-index: 1;
    width: 100%;
    border-collapse: collapse;
}

.sol-table thead tr {
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.sol-table thead th {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    padding: 0 14px 16px;
    text-align: left;
}

.sol-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.sol-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.sol-row:hover {
    background: rgba(255, 61, 138, 0.02) !important;
}

.sol-row td {
    padding: 20px 14px;
    vertical-align: middle;
}

/* Featured marker */
.row-marker {
    width: 6px;
    padding-left: 0 !important;
    padding-right: 6px !important;
}

.marker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    opacity: 0;
    margin: 0 auto;
}

.sol-row.is-featured .marker-dot {
    opacity: 0.7;
}

/* Name column */
.row-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.row-name {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.row-sub {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 61, 138, 0.55);
}

/* Subtle "Most Requested" tag */
.row-featured-tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 61, 138, 0.6);
    border: 1px solid rgba(255, 61, 138, 0.18);
    border-radius: 16px !important;
    padding: 1px 6px;
    margin-top: 2px;
    width: fit-content;
    background: rgba(255, 61, 138, 0.04);
}

/* Domain chip */
.row-domain {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

/* What it does */
.row-desc {
    font-family: var(--font-primary);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    max-width: 480px;
}

/* Metric */
.row-metric {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--pink);
    background: rgba(255, 61, 138, 0.06);
    border: 1px solid rgba(255, 61, 138, 0.2);
    padding: 4px 10px;
    border-radius: 16px !important;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Responsive table styling */
@media (max-width: 768px) {
    .sol-table thead {
        display: none;
    }

    .sol-row {
        display: block;
        padding: 16px 0;
    }

    .sol-row td {
        display: block;
        padding: 6px 12px;
    }

    .sol-row td.row-marker {
        display: none;
    }
}
