/* ============================================
   Agentic AI Page Styles
   Dark theme matching Figma design
   ============================================ */

:root {
    --ai-bg: #050A14;
    --ai-bg-2: #081225;
    --ai-card: #171D28;
    --ai-primary: #045DE8;
    --ai-white: #FFFFFF;
    --ai-white-secondary: #D0D0D0;
    --ai-text-muted: #D2D2D2;
    --ai-text-light: #DCDCDC;
    --ai-stroke: rgba(255, 255, 255, 0.1);
    --ai-stroke-active: rgba(255, 255, 255, 0.25);
}

/* Body override for AI page */
.ai-page {
    background: var(--ai-bg);
    color: var(--ai-white);
}

/* ============================================
   Header Overrides for Dark Theme
   ============================================ */
.ai-page .header-banner {
    background: var(--ai-bg);
}

.ai-page .header-banner.dropdown-open {
    background: var(--ai-bg);
}

.ai-page .logo-img {
    filter: brightness(0) invert(1);
}

.ai-page .nav-link-item {
    color: var(--ai-white-secondary);
}

.ai-page .nav-link-item:hover {
    color: var(--ai-white);
}

.ai-page .agentic-text {
    background: linear-gradient(135deg, #3985FF, #7BB3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-page .mobile-menu-toggle span {
    background: var(--ai-white);
}

.ai-page .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.ai-page .mobile-nav {
    background: var(--ai-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.ai-page .mobile-nav-header {
    border-bottom-color: var(--ai-stroke);
    background: var(--ai-bg);
}

.ai-page .mobile-nav-logo {
    filter: brightness(0) invert(1);
}

.ai-page .mobile-nav-link {
    color: var(--ai-white-secondary);
}

.ai-page .mobile-nav-link:hover,
.ai-page .mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ai-white);
}

.ai-page .mobile-nav-link .bi-chevron-down {
    color: rgba(255, 255, 255, 0.4);
}

.ai-page .mobile-nav-link.active .bi-chevron-down {
    color: var(--ai-primary);
}

.ai-page .mobile-accordion-content {
    background: var(--ai-bg-2);
}

.ai-page .mobile-submenu-link {
    color: var(--ai-white-secondary);
}

.ai-page .mobile-submenu-link::before {
    background: rgba(255, 255, 255, 0.2);
}

.ai-page .mobile-submenu-link:hover,
.ai-page .mobile-submenu-link:active {
    color: var(--ai-white);
}

.ai-page .mobile-submenu-link:hover::before,
.ai-page .mobile-submenu-link:active::before {
    background: var(--ai-primary);
}

.ai-page .mobile-sub-accordion-toggle:hover,
.ai-page .mobile-sub-accordion-toggle:active {
    background: rgba(255, 255, 255, 0.04);
}

.ai-page .mobile-sub-accordion-link {
    color: var(--ai-white-secondary);
}

.ai-page .mobile-sub-accordion-toggle:hover .mobile-sub-accordion-link,
.ai-page .mobile-sub-accordion-toggle.active .mobile-sub-accordion-link {
    color: var(--ai-white);
}

.ai-page .mobile-sub-accordion-toggle .bi-chevron-down {
    color: rgba(255, 255, 255, 0.4);
}

.ai-page .mobile-sub-accordion-toggle.active .bi-chevron-down {
    color: var(--ai-primary);
}

.ai-page .mobile-sub-accordion-content {
    background: rgba(255, 255, 255, 0.03);
}

.ai-page .mobile-sub-accordion {
    border-bottom-color: var(--ai-stroke);
}

.ai-page .mobile-deep-link {
    color: rgba(255, 255, 255, 0.5);
}

.ai-page .mobile-deep-link::before {
    background: rgba(255, 255, 255, 0.2);
}

.ai-page .mobile-deep-link:hover,
.ai-page .mobile-deep-link:active {
    color: var(--ai-white);
    background: rgba(255, 255, 255, 0.04);
}

.ai-page .mobile-deep-link:hover::before,
.ai-page .mobile-deep-link:active::before {
    background: var(--ai-primary);
}

.ai-page .mobile-nav-footer {
    border-top-color: var(--ai-stroke);
    background: var(--ai-bg);
}

.ai-page .mobile-nav-cta {
    background: linear-gradient(135deg, #045DE8, #3985FF);
}

/* Dropdown Dark Background with original active/hover & card colors */
.ai-page .nav-dropdown-menu {
    background: var(--ai-card);
    border: 1px solid var(--ai-stroke);
}

.ai-page .dropdown-content {
    background: var(--ai-card);
}

.ai-page .dropdown-item {
    color: var(--ai-white-secondary);
}

.ai-page .dropdown-item:hover,
.ai-page .dropdown-item.active {
    color: var(--primary-color);
}

.ai-page .dropdown-column-left .dropdown-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ai-page .dropdown-divider {
    background: var(--ai-stroke);
}

.ai-page .nav-dropdown-small {
    background: var(--ai-card);
    border: 1px solid var(--ai-stroke);
}

.ai-page .dropdown-small-content {
    background: var(--ai-card);
}

.ai-page .dropdown-small-item {
    color: var(--ai-white-secondary);
}

.ai-page .dropdown-small-item:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Section Tag (Pill/Badge)
   ============================================ */
.ai-section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--ai-text-muted);
    line-height: 20px;
    position: relative;
    box-shadow: inset 0px 4px 24px 0px rgba(4, 93, 232, 0.3);
}

/* ============================================
   Primary CTA Button
   ============================================ */
.ai-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--ai-white);
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid var(--ai-primary, #045DE8);
    background: radial-gradient(88.93% 251.5% at 100% 226.04%, #A6C0DA 0%, #CCE06E 43.75%, #0F4DAE 100%);
    box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

.ai-btn-primary:hover {
    background: radial-gradient(174.93% 201.5% at 100% 226.04%, #A6C0DA 0%, #CCE06E 43.75%, #0F4DAE 100%);
    color: var(--ai-white);
    transform: translateY(-1px);
}

.ai-btn-primary .btn-arrow {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.ai-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: var(--ai-white);
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s ease;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: #050D1B;
}

.ai-btn-secondary:hover {
    background: radial-gradient(174.93% 201.5% at 100% 226.04%, #A6C0DA 0%, #CCE06E 43.75%, #0F4DAE 100%);
    color: var(--ai-white);
    transform: translateY(-1px);
}

.ai-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ai-white);
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ai-btn-link:hover {
    color: #3985FF;
}

.ai-btn-link .btn-arrow {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================
   Hero Section
   ============================================ */
.ai-hero-section {
    position: relative;
    width: 100%;
    min-height: 770px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: #050A14;
}

.ai-hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.ai-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(136.92deg, rgba(186, 210, 122, 0.97) 31.81%, rgba(4, 93, 232, 0.97) 100%);
    mix-blend-mode: multiply;
    z-index: 1;
}

.ai-hero-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-hero-slider {
    width: 100%;
    max-width: 1030px;
    overflow: hidden;
}

.ai-hero-slides {
    position: relative;
    width: 100%;
    min-height: 340px;
}

.ai-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.ai-hero-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ai-hero-slide.prev {
    transform: translateX(-40px);
}

.ai-hero-nav-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
    z-index: 3;
}

.ai-hero-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-hero-pagination {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 60px;
}

.ai-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.ai-hero-dot.active {
    background: #045DE8;
    transform: scale(1.2);
}

.ai-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1030px;
}

.ai-hero-content .ai-section-tag {
    margin-bottom: 24px;
}

.ai-hero-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 67px;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-align: center;
}
.highlight {
    background: linear-gradient(to bottom, #FFFFFF 05%, #045DE8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-hero-subtitle {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: var(--ai-white-secondary);
    max-width: 750px;
    margin: 0 auto;
    margin-bottom: 56px;
}

.ai-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Our Platform Section
   ============================================ */
.ai-platform-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--ai-stroke);
}

.ai-platform-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.ai-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-section-header .ai-section-tag {
    margin-bottom: 16px;
}

.ai-section-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 32px;
    line-height: 1.25;
    color: var(--ai-white);
}

.ai-section-title strong {
    font-weight: 500;
}

.ai-section-subtitle {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: var(--ai-white-secondary);
    max-width: 744px;
    margin: 10px auto 0;
}

/* Platform Cards Grid */
.ai-platform-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ai-platform-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--ai-stroke);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                gap 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s ease,
                box-shadow 0.5s ease;
}

.ai-platform-card--omnihub {
    border-radius: 16px;
    border: 1px solid var(--AI-Stroke, rgba(255, 255, 255, 0.10));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.27) 0%, rgba(0, 0, 0, 0.27) 100%), radial-gradient(109.98% 168.73% at -22% -52.59%, #A6C0DA 0%, #CCE06E 39.05%, #0F4DAE 100%);
    background-blend-mode: plus-darker, normal;
    box-shadow: 0 4px 12px 0 rgba(255, 255, 255, 0.10), 0 0 24px 0 rgba(255, 255, 255, 0.25) inset;
}

.ai-platform-card--omni9 {
    background: var(--ai-card);
}

/* Default state: OmniHub expanded, Omni9 collapsed */
.ai-platform-card.active {
    flex: 2;
    gap: 24px;
    box-shadow: 0px 4px 12px rgba(255,255,255,0.1);
}
.ai-platform-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 24px rgba(255,255,255,0.25);
    pointer-events: none;
}
.ai-platform-card--omni9.active::after {
    box-shadow: inset 0 0 36px rgba(152,124,255,0.24);
}

.ai-platform-card:not(.active) {
    flex: 1;
}

/* Card content area */
.ai-platform-card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: 0;
    width: 100%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-platform-card.active .ai-platform-card-content {
    width: 387px;
}

.ai-platform-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ai-platform-card-badge {
    flex-shrink: 0;
}

.ai-card-icon {
    width: 54px;
    height: 54px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 120px;
    background: radial-gradient(261.44% 126.41% at 103.7% 137.04%, #A6C0DA 0%, #CCE06E 39.05%, #0F4DAE 100%);
}

.ai-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.ai-card-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--ai-white);
    line-height: normal;
    margin: 0;
}

.ai-card-desc {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 29px;
    color: var(--ai-white-secondary);
    margin: 0;
}
.ai-platform-card--omni9:not(.active) .ai-card-desc {
    color: #d0d0d0;
}

/* Image area */
.ai-platform-card-image {
    width: 359px;
    height: 359px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    max-width: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.ai-platform-card.active .ai-platform-card-image {
    opacity: 1;
    max-width: 359px;
    transform: scale(1);
    pointer-events: auto;
}
.ai-platform-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ── Platform Demo Widgets (matching agentic section style) ── */
.plat-demo {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    font-family: 'Lexend', sans-serif;
}
.plat-demo .ai-chat-titlebar {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f1f3;
}
.plat-demo-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

/* ── OmniHub: Knowledge Search Demo ── */
.plat-demo-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    opacity: 0;
    animation: aiDemoFadeIn 0.4s 0.3s ease forwards;
}
.plat-demo-search-text {
    color: #0f1117;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
}
.plat-demo-search-cursor {
    color: #0d6dfd;
    font-weight: 300;
    animation: platBlink 0.8s step-end infinite;
}
.plat-demo-response {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.plat-demo-answer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.plat-demo-answer-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: #525866;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(6px);
    animation: aiDemoFadeUp 0.35s ease forwards;
    animation-delay: calc(2.2s + var(--i) * 0.3s);
}
.plat-demo-answer-line svg { flex-shrink: 0; margin-top: 2px; }
.plat-demo-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    opacity: 0;
    animation: aiDemoFadeIn 0.4s 3.3s ease forwards;
}
.plat-demo-sources-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b919d;
    font-weight: 600;
}
.plat-demo-source-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.plat-demo-source-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #0d6dfd;
    background: rgba(13,109,253,0.06);
    border: 1px solid rgba(13,109,253,0.15);
    border-radius: 6px;
    padding: 3px 8px;
    opacity: 0;
    transform: scale(0.9);
    animation: platPop 0.3s ease forwards;
    animation-delay: calc(3.4s + var(--i) * 0.15s);
}

/* ── Omni9: Pipeline Accelerator Demo ── */
.plat-demo-pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: aiDemoFadeIn 0.4s 0.2s ease forwards;
}
.plat-demo-pipeline-title {
    font-size: 12px;
    font-weight: 600;
    color: #0f1117;
}
.plat-demo-pipeline-badge {
    font-size: 10px;
    font-weight: 500;
    color: #0d6dfd;
    background: rgba(13,109,253,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    animation: aiDemoPulse 1.5s ease infinite;
}
.plat-demo-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.plat-demo-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    padding: 8px 10px;
    opacity: 0;
    transform: translateX(-12px);
    animation: aiDemoSlideIn 0.45s ease forwards;
    animation-delay: calc(0.5s + var(--i) * 0.6s);
}
.plat-demo-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(13,109,253,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6dfd;
    flex-shrink: 0;
}
.plat-demo-step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.plat-demo-step-name {
    font-size: 11px;
    font-weight: 500;
    color: #0f1117;
}
.plat-demo-step-bar {
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.plat-demo-step-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0d6dfd, #22c55e);
    border-radius: 2px;
    animation: aiDemoFill 0.5s ease forwards;
    animation-delay: calc(0.8s + var(--i) * 0.6s);
}
.plat-demo-step-check {
    opacity: 0;
    transform: scale(0);
    animation: platCheckPop 0.3s ease forwards;
    animation-delay: calc(1.2s + var(--i) * 0.6s);
}
.plat-demo-metrics {
    display: flex;
    gap: 6px;
}
.plat-demo-metric {
    flex: 1;
    text-align: center;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    padding: 8px 6px;
    opacity: 0;
    transform: translateY(8px);
    animation: aiDemoFadeUp 0.35s ease forwards;
    animation-delay: calc(3.5s + var(--i) * 0.2s);
}
.plat-demo-metric-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
    line-height: 1.3;
}
.plat-demo-metric-label {
    display: block;
    font-size: 10px;
    color: #8b919d;
    margin-top: 2px;
    font-family: 'Lexend', sans-serif;
}
.plat-demo-metric--ready {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.2);
}
.plat-demo-metric--ready .plat-demo-metric-value { color: #16a34a; font-size: 13px; }

/* ── Platform Demo Keyframes (reuse agentic where possible) ── */
@keyframes platBlink {
    50% { opacity: 0; }
}
@keyframes platPop {
    to { opacity: 1; transform: scale(1); }
}
@keyframes platCheckPop {
    0%  { opacity: 0; transform: scale(0); }
    70% { transform: scale(1.3); }
    100%{ opacity: 1; transform: scale(1); }
}

/* Read more link – pinned to bottom of card content */
.ai-platform-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ai-white);
    text-decoration: none;
    transition: gap 0.2s ease;
}
.ai-platform-read-more:hover {
    gap: 8px;
}
.ai-platform-read-more i {
    font-size: 14px;
}

/* Checklist Items */
.ai-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-checklist-item .check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 1.2px 1.2px rgba(4, 93, 232, 0.15)) drop-shadow(0 2.4px 2.4px rgba(4, 93, 232, 0.13)) drop-shadow(0 6px 3.6px rgba(4, 93, 232, 0.07)) drop-shadow(0 9.6px 3.6px rgba(4, 93, 232, 0.02)) drop-shadow(0 15.6px 4.8px rgba(4, 93, 232, 0.00));
}

.ai-checklist-item span {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 25.6px;
    color: var(--ai-white);
}

/* ============================================
   See Agentic AI in Action (Tabs Section)
   ============================================ */
.ai-action-section {
    padding: 80px 0;
}

.ai-action-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Tabs */
.ai-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #121620;
    border-radius: 24px;
    width: 100%;
    max-width: fit-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar {
        display: none;
    }
}

.ai-tab {
    padding: 16px 5px;
    border-radius: 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--ai-white);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    white-space: nowrap;
    min-width: 207px;
}

.ai-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ai-tab.active {
    background: var(--ai-primary);
    font-weight: 600;
    box-shadow: inset 0px 9px 18px 0px rgba(255, 255, 255, 0.25);
}

/* Tab Content */
.ai-tab-content {
    display: none;
    background: var(--ai-card);
    border: 1px solid var(--ai-stroke);
    border-radius: 16px;
    padding: 24px;
    gap: 40px;
    align-items: stretch;
}

.ai-tab-content.active {
    display: flex;
}

.ai-tab-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: space-between;
}

.ai-tab-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 32px;
    color: var(--ai-white);
}

.ai-tab-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-tab-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai-tab-checklist-item .check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1.2px 1.2px rgba(4, 93, 232, 0.15)) drop-shadow(0 2.4px 2.4px rgba(4, 93, 232, 0.13)) drop-shadow(0 6px 3.6px rgba(4, 93, 232, 0.07)) drop-shadow(0 9.6px 3.6px rgba(4, 93, 232, 0.02)) drop-shadow(0 15.6px 4.8px rgba(4, 93, 232, 0.00));
}

.ai-tab-checklist-item span {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25.6px;
    color: var(--ai-text-light);
}

/* Result Box */
.ai-result-box {
    padding: 14px 16px;
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(90deg, #045DE8 0%, rgba(4, 93, 232, 0.20) 100%);
}

.ai-result-box .result-label {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--ai-white-secondary);
    margin-bottom: 4px;
}

.ai-result-box .result-value {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: var(--ai-white);
}

.ai-tab-right {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.ai-tab-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    max-height: 300px;
    max-width: 100%;
}

/* ============================================
   If This Sounds Familiar Section
   ============================================ */
/* Grid wrapper spanning familiar + case studies */
.ai-grid-wrapper {
    position: relative;
    overflow: hidden;
}

.ai-familiar-section {
    padding: 80px 0;
    position: relative;
}

.ai-familiar-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ai-familiar-cards {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.ai-familiar-card {
    width: calc(25% - 12px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--ai-stroke);
    background: var(--ai-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    z-index: 1;
}

.ai-familiar-card:hover {
    border-color: var(--ai-primary);
    background: radial-gradient(139.67% 110.37% at 48.38% 110.37%, #045DE8 0%, #171D28 35.07%);
    transform: translateY(-4px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08), 0px 8px 16px rgba(0, 0, 0, 0.05);
}

.ai-familiar-card-text {
    font-family: 'Lexend', sans-serif;
    font-size: 22px;
    color: var(--ai-white);
    line-height: 33px;
    margin-bottom: 0px;
}

.ai-familiar-card-text span {
    font-weight: 300;
}

.ai-familiar-card-text strong {
    font-weight: 600;
}

.ai-familiar-bottom-text {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 33px;
    color: #F6F9FF;
    text-align: center;
}

/* ============================================
   Success Stories Section - Dark Theme Overrides
   Uses same HTML structure & classes as index page
   for carousel drag/scroll functionality
   ============================================ */
.ai-success-stories-dark.success-stories-section {
    background: transparent;
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: radial-gradient(32.77% 30.81% at 50% 102.34%, #CBDF71 3.85%, #045DE8 30.77%, rgba(5, 10, 20, 0.00) 100%);
}

.ai-success-stories-dark .btn-primary-case {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: #050D1B;
    color: var(--ai-white);
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    transition: all 0.5s ease;
}

.ai-success-stories-dark .btn-primary-case:hover {
    background: radial-gradient(174.93% 201.5% at 100% 226.04%, #A6C0DA 0%, #CCE06E 43.75%, #0F4DAE 100%);
    border-color: transparent;
    color: var(--ai-white);
    transform: translateY(-1px);
}

.ai-success-stories-dark .success-stories-header {
    text-align: center;
    gap: 16px;
}

.ai-success-stories-dark .success-story-card {
    background: var(--ai-card);
    border: 1px solid var(--ai-stroke);
}

.ai-success-stories-dark .success-story-card:hover {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: radial-gradient(43.89% 12.42% at 47.86% 96.64%, #0D459F 0%, #103A7E 27.92%, #171D28 100%), #171D28;
}

.ai-success-stories-dark .success-story-category {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0px 4px 24px 0px rgba(4, 93, 232, 0.3);
    color: var(--ai-text-muted);
    border-color: transparent;
}

.ai-success-stories-dark .success-story-name {
    color: var(--ai-white);
}

.ai-success-stories-dark .success-story-desc {
    color: var(--ai-white-secondary);
}

.ai-success-stories-dark .metric-value {
    color: var(--ai-white);
}

.ai-success-stories-dark .metric-label {
    color: var(--ai-white-secondary);
}

.ai-success-stories-dark .success-stories-actions {
    text-align: center;
}

.ai-success-stories-dark .success-stories-bg-graphic {
    display: block;
}

/* ============================================
   Why Act Now Section
   ============================================ */
.ai-why-now-section {
    padding: 80px 0;
    background: var(--ai-bg-2);
}

.ai-why-now-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ai-why-now-cards {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.ai-why-now-card {
    flex: 1;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--ai-stroke);
    background: var(--ai-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    z-index: 1;
}

.ai-why-now-card:hover {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: radial-gradient(139.67% 110.37% at 48.38% 110.37%, #045DE8 0%, #050A14 35.07%);
}

.ai-why-now-card-text {
    font-family: 'Lexend', sans-serif;
    font-size: 22px;
    color: var(--ai-white);
    line-height: 33px;
    margin-bottom: 0px;
}

.ai-why-now-card-text span {
    font-weight: 300;
}

.ai-why-now-card-text strong {
    font-weight: 600;
}

.ai-why-now-bottom-text {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 33px;
    color: var(--ai-white);
    text-align: center;
    margin-bottom: 0px;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.ai-why-choose-section {
    padding: 80px;
    background: var(--ai-bg);
}

.ai-why-choose-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.ai-why-choose-image {
    flex: 0 0 624px;
    height: 391px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 34px 9px 0px rgba(0, 0, 0, 0),
        0px 22px 9px 0px rgba(0, 0, 0, 0),
        0px 12px 7px 0px rgba(0, 0, 0, 0.02),
        0px 5px 5px 0px rgba(0, 0, 0, 0.03),
        0px 1px 3px 0px rgba(0, 0, 0, 0.03);
}

.ai-why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-why-choose-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 391px;
}

.ai-why-choose-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.ai-seal-check-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-seal-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-seal-check-item .seal-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 1.167px 1.167px rgba(4, 93, 232, 0.15)) drop-shadow(0 2.333px 2.333px rgba(4, 93, 232, 0.13)) drop-shadow(0 5.833px 3.5px rgba(4, 93, 232, 0.07)) drop-shadow(0 9.333px 3.5px rgba(4, 93, 232, 0.02)) drop-shadow(0 15.167px 4.667px rgba(4, 93, 232, 0.00));
}

.ai-seal-check-item span {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: var(--ai-white);
}

/* ============================================
   CTA / Next Step Section - Dark Theme Overrides
   Uses same HTML structure & classes as other pages
   ============================================ */
.ai-cta-dark.cta-section {
    background: radial-gradient(40.08% 34.48% at 50% 102.34%, rgba(198, 220, 255, 0.60) 0%, rgba(4, 93, 232, 0.60) 33.17%, rgba(5, 10, 20, 0.00) 100%), #081225;
    border-bottom: 1px solid var(--ai-stroke);
}

.ai-cta-dark .cta-content {
    gap: 16px;
}

.ai-cta-dark .cta-title {
    color: var(--ai-white);
}

.ai-cta-dark.cta-section .cta-nine{
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    width: 845px;
    height: auto;
    pointer-events: none;
}

.ai-cta-dark .btn-primary-cta.white {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
}

.ai-cta-dark .btn-primary-cta.white:hover {
    background: #F0F0F0;
    color: var(--primary-color);
}

/* CTA - Custom content styles (unique to AI page) */
.ai-cta-session {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--ai-white);
    line-height: normal;
}

.ai-cta-cover-label {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: var(--ai-white-secondary);
}

.ai-cta-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-cta-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-cta-checklist-item .check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 1.2px 1.2px rgba(4, 93, 232, 0.15)) drop-shadow(0 2.4px 2.4px rgba(4, 93, 232, 0.13)) drop-shadow(0 6px 3.6px rgba(4, 93, 232, 0.07)) drop-shadow(0 9.6px 3.6px rgba(4, 93, 232, 0.02)) drop-shadow(0 15.6px 4.8px rgba(4, 93, 232, 0.00));
}

.ai-cta-checklist-item span {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 25.6px;
    color: var(--ai-white);
}

.ai-cta-note {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 27px;
    color: var(--ai-white-secondary);
}

/* ============================================
   Footer Overrides for Dark Theme
   ============================================ */
.ai-page .footer {
    background: var(--ai-bg);
    border-top: 1px solid var(--ai-stroke);
}

.ai-page .footer-container {
    color: var(--ai-white);
}

.ai-page .footer-tagline {
    color: var(--ai-white-secondary);
}

.ai-page .footer-logo {
    filter: brightness(0) invert(1);
}

.ai-page .social-icon-link {
    color: var(--ai-white-secondary);
    border-color: var(--ai-stroke);
}

.ai-page .social-icon-link:hover {
    color: var(--ai-white) !important;
    border-color: var(--ai-primary) !important;
}

/* Footer social icons – brand colour hover per icon (same as main site) */
.ai-page .footer-social .social-icon-link {
    transition: filter 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.ai-page .footer-social .social-icon-link:nth-child(1):hover {
    color: #0A66C2 !important;
    border-color: #0A66C2 !important;
    filter: grayscale(0%);
    opacity: 1;
}
.ai-page .footer-social .social-icon-link:nth-child(2):hover {
    color: #1877F2 !important;
    border-color: #1877F2 !important;
    filter: grayscale(0%);
    opacity: 1;
}
.ai-page .footer-social .social-icon-link:nth-child(3):hover {
    color: #303030 !important;
    border-color: #2a2a2a !important;
    filter: grayscale(0%);
    opacity: 1;
}
.ai-page .footer-social .social-icon-link:nth-child(4):hover {
    color: #FF0000 !important;
    border-color: #FF0000 !important;
    filter: grayscale(0%);
    opacity: 1;
}
.ai-page .footer-social .social-icon-link:nth-child(5):hover {
    color: transparent !important;
    border-color: transparent !important;
    background: linear-gradient(45deg, #833ab4 0%, #c13584 25%, #e1306c 50%, #f77737 75%, #fcaf45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: grayscale(0%);
    opacity: 1;
}

.ai-page .rating-badge {
    border-color: var(--ai-stroke);
}

.ai-page .rating-score {
    color: var(--ai-white);
}

.ai-page .footer-divider,
.ai-page .footer-bottom-divider {
    background: var(--ai-stroke);
}

.ai-page .footer-heading {
    color: var(--ai-white);
}

.ai-page .footer-links a {
    color: var(--ai-white-secondary);
}

.ai-page .footer-links a:hover {
    color: var(--primary-color);
}

.ai-page .footer-contact-item {
    color: var(--ai-white);
}

.ai-page .footer-contact-item:hover, .ai-page .footer-contact-item:hover i {
    color: var(--primary-color);
}

.ai-page .footer-contact-item i {
    color: var(--white);
}

.ai-page .footer-nav-links a{
    color: var(--white);
}

.ai-page .footer-nav-links a:hover {
    color: var(--primary-color);
}

.ai-page .copyright {
    color: var(--ai-white-secondary);
}

/* ============================================
   Grid Background Overlay
   ============================================ */
.ai-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 1;
    z-index: -1;
}

.ai-grid-overlay.long {
    z-index: 0;
}

.ai-grid-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-grid-overlay .grid-long {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-footer-ratings {
    border-radius: 16px;
    border: 1px solid var(--AI-Stroke, rgba(255, 255, 255, 0.10));
    background: var(--Ai-Card, #171D28);
    /* Chip */
    box-shadow: 0 34px 9px 0 rgba(0, 0, 0, 0.00), 0 22px 9px 0 rgba(0, 0, 0, 0.00), 0 12px 7px 0 rgba(0, 0, 0, 0.02), 0 5px 5px 0 rgba(0, 0, 0, 0.03), 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1400px) {
    .ai-case-card {
        flex: 0 0 calc(100% - 16px);
    }

    .ai-why-choose-image {
        flex: 0 0 50%;
    }

    .ai-platform-card.active .ai-platform-card-content {
        width: 320px;
    }

    .ai-platform-card-image {
        width: 320px;
        height: 340px;
    }

    .ai-platform-card.active .ai-platform-card-image {
        max-width: 320px;
    }

    .plat-demo-body { padding: 10px; gap: 6px; }
    .plat-demo-answer-line { font-size: 10px; }
    .plat-demo-step { padding: 6px 8px; }
    .plat-demo-step-icon { width: 22px; height: 22px; }
    .plat-demo-metric { padding: 6px 4px; }
    .plat-demo-metric-value { font-size: 13px; }
}

@media (max-width: 1200px) {
    .ai-hero-title {
        font-size: 44px;
        line-height: 54px;
    }

    .ai-tab-content.active {
        flex-direction: column;
    }

    .ai-tab-left {
        flex: none;
        width: 100%;
    }

    .ai-tab-right {
        min-height: 250px;
    }

    .ai-familiar-cards {
        flex-wrap: wrap;
    }

    .ai-familiar-card {
        width: calc(50% - 8px);
    }

    .ai-why-choose-container {
        flex-direction: column;
    }

    .ai-why-choose-image {
        flex: none;
        width: 100%;
        height: 350px;
    }

    .ai-why-choose-content {
        height: auto;
        gap: 32px;
    }

}

@media (max-width: 992px) {
    .ai-hero-section {
        min-height: 600px;
    }

    .ai-hero-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .ai-hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .ai-hero-subtitle {
        font-size: 16px;
    }

    .ai-platform-container,
    .ai-action-container,
    .ai-familiar-container,
    .ai-success-stories-container,
    .ai-why-now-container {
        padding: 0 40px;
    }

    .ai-why-choose-section {
        padding: 60px 40px;
    }

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

    .ai-platform-cards {
        flex-direction: column;
    }

    .ai-platform-card {
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .ai-platform-card.active {
        gap: 24px;
    }

    .ai-platform-card.active .ai-platform-card-content {
        width: 100%;
    }

    .ai-platform-card-image {
        width: 100%;
        height: 280px;
        max-width: 100%;
        max-height: 0;
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ai-platform-card.active .ai-platform-card-image {
        max-height: 280px;
    }

    .plat-demo-body { padding: 10px; gap: 6px; }
    .plat-demo-step { padding: 6px 8px; gap: 6px; }
    .plat-demo-step-icon { width: 20px; height: 20px; }
    .plat-demo-step-icon svg { width: 12px; height: 12px; }
    .plat-demo-search { padding: 8px 12px; }
    .plat-demo-source-tags { gap: 4px; }
    .plat-demo-source-tag { font-size: 9px; padding: 2px 6px; }
    .plat-demo-metric { padding: 6px 4px; }
    .plat-demo-metric-value { font-size: 12px; }

    .ai-card-title {
        font-size: 22px !important;
    }

    .ai-why-now-cards {
        flex-direction: column;
    }

    .ai-why-now-card {
        width: 100%;
    }

    .ai-case-card {
        flex-direction: column;
    }

    .ai-case-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .ai-hero-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ai-hero-slides {
        min-height: 300px;
    }

    .ai-hero-pagination {
        margin-top: 24px;
        padding-bottom: 40px;
    }

    .ai-hero-title {
        font-size: 30px;
        line-height: 38px;
    }

    .ai-hero-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .ai-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ai-tabs {
        gap: 4px;
        padding: 4px;
        max-width: 100%;
    }

    .ai-tab {
        font-size: 14px;
        /* padding: 12px 16px; */
        min-width: 140px;
    }

    .ai-familiar-card {
        width: 100%;
    }

    .ai-section-title {
        font-size: 24px;
    }

    .ai-section-subtitle {
        font-size: 16px;
    }

    .ai-platform-container,
    .ai-action-container,
    .ai-familiar-container,
    .ai-success-stories-container,
    .ai-why-now-container {
        padding: 0 20px;
    }

    .ai-why-choose-section {
        padding: 40px 20px;
    }

    .ai-platform-section,
    .ai-action-section,
    .ai-familiar-section,
    .ai-success-stories-section,
    .ai-why-now-section {
        padding: 60px 0;
    }
}

/* ─── Chat Demo Widget ─── */
.ai-chat-demo {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    max-width: 460px;
    min-width: 460px;
    width: 100%;
}

[data-tab-content="omnireagent"] .ai-chat-demo,
[data-tab-content="omniprecisionquote"] .ai-chat-demo,
[data-tab-content="ocrai"] .ai-chat-demo {
    max-width: 100%;
}

.ai-chat-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f1f3;
}

.ai-chat-dots {
    display: flex;
    gap: 5px;
}

.ai-chat-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}

.ai-chat-titlebar-text {
    font-size: 11px;
    color: #8b919d;
    margin-left: 8px;
}

.ai-chat-body {
    padding: 16px;
}

.ai-chat-question {
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #525866;
    font-family: 'Lexend', sans-serif;
}

.ai-chat-answer {
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 12px;
    padding: 16px;
    min-height: 80px;
}

.ai-chat-label {
    font-size: 11px;
    font-weight: 600;
    color: #8b919d;
    margin-bottom: 10px;
}

.ai-chat-typed {
    font-size: 13px;
    color: #0f1117;
    line-height: 1.75;
    margin: 0;
    font-family: 'Lexend', sans-serif;
}

.ai-chat-typed .ai-chat-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #0d6dfd;
    margin-left: 1px;
    animation: aiChatBlink 1s infinite;
    vertical-align: text-bottom;
}

.ai-chat-sources {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-chat-sources.visible {
    opacity: 1;
}

.ai-chat-source-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8f9fb;
    font-size: 11.5px;
    color: #525866;
    font-family: 'Lexend', sans-serif;
}

.ai-chat-source-tag span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-chat-dots-loading {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.ai-chat-dots-loading span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0d6dfd;
    opacity: 0.4;
    animation: aiChatPulse 1s infinite;
}

.ai-chat-dots-loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-dots-loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiChatPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes aiChatBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .ai-chat-demo {
        max-width: 100%;
        min-width: 0;
    }
}

/* ─── Phased Demo (Upload → Process) ─── */
.ai-demo-phased {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 280px;
}

.ai-phase {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-phase-process {
    animation: aiDemoFadeUp 0.4s ease forwards;
}

/* Upload Zone */
.ai-demo-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.ai-demo-upload-zone.ai-dropping {
    border-color: #0d6dfd;
    background: rgba(13, 109, 253, 0.04);
}

.ai-demo-upload-zone.ai-dropped {
    border-color: #22c55e;
    border-style: solid;
    background: rgba(34, 197, 94, 0.04);
}

.ai-demo-upload-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-upload-hint {
    font-size: 10px;
    color: #8b919d;
    font-family: 'Lexend', sans-serif;
}

/* Upload File Rows */
.ai-demo-upload-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-demo-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-demo-upload-row.ai-visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-demo-upload-row svg {
    flex-shrink: 0;
}

.ai-demo-upload-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ai-demo-upload-row-name {
    font-size: 11px;
    font-weight: 500;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-demo-upload-row-size {
    font-size: 10px;
    color: #8b919d;
    font-family: 'Lexend', sans-serif;
    flex-shrink: 0;
}

.ai-demo-upload-bar {
    width: 50px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.ai-demo-upload-bar-fill {
    width: 0;
    height: 100%;
    background: #0d6dfd;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.ai-demo-upload-bar-fill.ai-done {
    background: #22c55e;
}

/* Upload Status Footer */
.ai-demo-upload-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-demo-upload-status.ai-visible {
    opacity: 1;
}

.ai-demo-upload-status-text {
    font-size: 11px;
    color: #525866;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-upload-status-pct {
    font-size: 12px;
    font-weight: 600;
    color: #0d6dfd;
    font-family: 'Lexend', sans-serif;
    transition: color 0.3s ease;
}

/* Step Label (phase 2 header) */
.ai-demo-step-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #16a34a;
    font-family: 'Lexend', sans-serif;
}

/* ─── OmniReagent: Compliance Scanner Demo ─── */
.ai-demo-scanner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-demo-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 10px;
    opacity: 0;
    --upload-offset: 1.8s;
    transform: translateY(8px);
    animation: aiDemoFadeUp 0.4s ease forwards;
    animation-delay: calc(var(--i) * 0.4s + var(--upload-offset));
}

.ai-demo-file svg {
    flex-shrink: 0;
}

.ai-demo-file-info {
    flex: 1;
    min-width: 0;
}

.ai-demo-file-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-demo-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.ai-demo-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #0d6dfd, #22c55e);
    border-radius: 2px;
    animation: aiDemoFill 1s ease forwards;
    animation-delay: calc(var(--i) * 0.4s + var(--upload-offset) + 0.3s);
}

.ai-demo-file-check {
    flex-shrink: 0;
    opacity: 0;
    animation: aiDemoFadeIn 0.3s ease forwards;
    animation-delay: calc(var(--i) * 0.4s + var(--upload-offset) + 1.2s);
}

.ai-demo-results {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(6px);
    animation: aiDemoFadeUp 0.5s ease forwards;
    animation-delay: 2.2s;
}

.ai-demo-stat {
    flex: 1;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.ai-demo-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
    line-height: 1.3;
}

.ai-demo-stat-label {
    display: block;
    font-size: 10px;
    color: #8b919d;
    margin-top: 2px;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-stat-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

.ai-demo-stat-ready .ai-demo-stat-value {
    color: #16a34a;
    font-size: 13px;
}

/* ─── OmniPrecisionQuote: Quote Builder Demo ─── */
.ai-demo-quote {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-demo-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: aiDemoFadeIn 0.4s ease 0.2s forwards;
}

.ai-demo-quote-id {
    font-size: 12px;
    font-weight: 600;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-quote-badge {
    font-size: 10px;
    font-weight: 500;
    color: #0d6dfd;
    background: rgba(13, 109, 253, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    animation: aiDemoPulse 1.5s ease infinite;
}

.ai-demo-quote-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-demo-quote-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-12px);
    animation: aiDemoSlideIn 0.45s ease forwards;
    animation-delay: calc(var(--i) * 0.35s + 0.5s);
}

.ai-demo-quote-part {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ai-demo-quote-name {
    font-size: 12.5px;
    font-weight: 500;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-quote-spec {
    font-size: 10px;
    color: #8b919d;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-quote-nums {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ai-demo-quote-qty {
    font-size: 11px;
    color: #8b919d;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-quote-price {
    font-size: 13px;
    font-weight: 600;
    color: #0d6dfd;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-quote-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(13, 109, 253, 0.06), rgba(13, 109, 253, 0.12));
    border: 1px solid rgba(13, 109, 253, 0.2);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(8px);
    animation: aiDemoFadeUp 0.5s ease forwards;
    animation-delay: 2s;
}

.ai-demo-quote-total-label {
    font-size: 12px;
    font-weight: 500;
    color: #525866;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-quote-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #0d6dfd;
    font-family: 'Lexend', sans-serif;
}

/* ─── OCR AI: Document Processor Demo ─── */
.ai-demo-ocr {
    display: flex;
    gap: 14px;
}

.ai-demo-ocr-doc {
    flex: 0 0 42%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.ai-demo-ocr-line-text {
    font-size: 11px;
    font-weight: 700;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
    letter-spacing: 0.5px;
}

.ai-demo-ocr-line-placeholder {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    transition: background 0.4s ease;
}

.ai-demo-ocr-highlight {
    background: rgba(13, 109, 253, 0.2);
    box-shadow: 0 0 0 2px rgba(13, 109, 253, 0.1);
    border-radius: 3px;
}

.ai-demo-ocr-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d6dfd, transparent);
    box-shadow: 0 0 8px rgba(13, 109, 253, 0.5);
    animation: aiDemoScan 2s ease-in-out infinite;
}

.ai-demo-ocr-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-demo-ocr-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: #f8f9fb;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(10px);
    animation: aiDemoSlideInRight 0.4s ease forwards;
    animation-delay: calc(var(--i) * 0.3s + 0.8s);
}

.ai-demo-ocr-label {
    font-size: 9px;
    font-weight: 600;
    color: #8b919d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-ocr-value {
    font-size: 12px;
    font-weight: 500;
    color: #0f1117;
    font-family: 'Lexend', sans-serif;
}

.ai-demo-ocr-confidence {
    color: #16a34a;
    font-weight: 600;
}

/* ─── Shared Keyframes ─── */
@keyframes aiDemoFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aiDemoFadeIn {
    to { opacity: 1; }
}

@keyframes aiDemoFill {
    to { width: 100%; }
}

@keyframes aiDemoSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes aiDemoSlideInRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes aiDemoScan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

@keyframes aiDemoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ─── Demo responsive ─── */
@media (max-width: 768px) {
    .ai-demo-ocr {
        flex-direction: column;
    }

    .ai-demo-ocr-doc {
        flex: none;
    }

    .ai-demo-results {
        flex-wrap: wrap;
    }

    .ai-demo-stat {
        min-width: calc(50% - 6px);
    }

    .ai-demo-quote-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ai-demo-quote-nums {
        align-self: flex-end;
    }

    .ai-demo-upload-zone {
        padding: 12px;
    }

    .ai-demo-upload-row-name {
        max-width: 120px;
    }
}