/* ============================================
   AIplay Technologies - Premium Enterprise Website
   Design: Minimal Corporate, Enterprise-Grade
   ============================================ */

/* CSS Variables */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-tertiary: #14141c;
    --bg-card: #18181f;
    --bg-card-hover: #1e1e28;

    --text-primary: #ffffff;
    --text-secondary: #a1a1b5;
    --text-muted: #6b6b7d;

    --accent-primary: #6366f1;
    --accent-primary-hover: #818cf8;
    --accent-secondary: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-subtle1: rgba(44, 43, 43, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    --shadow-primary: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-secondary: 0 0 40px rgba(34, 211, 238, 0.2);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
}


/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8fc;

    --text-primary: #0f0f14;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.12);

    --shadow-primary: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-secondary: 0 0 30px rgba(34, 211, 238, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ============================================
   Theme Toggle
   ============================================ */
.theme-toggle {
    
    margin-inline: 12px;
    
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-card);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary); 
     box-shadow: var(--shadow-primary);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border:none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
    transition: var(--transition-base);
  

}


[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand .logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    transition: var(--transition-base);
    background: transparent;
}

.navbar-brand .logo-img:hover {
    filter: drop-shadow(0 0 35px rgba(99, 102, 241, 0.7));
    transform: scale(1.03);
}

/* ============================================
   Mobile Slide-In Menu (Right Side)
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    max-width: 320px;
    min-width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-nav-wrapper.active {
    transform: translateX(0);
}

/* Hamburger to X animation */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
    cursor: pointer;
    z-index: 10000;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation to X */
.navbar-toggler.active .navbar-toggler-icon::before {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-toggler.active .navbar-toggler-icon span {
    opacity: 0;
    transform: scaleX(0);
}

/* Mobile menu header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-nav-close:hover {
    transform: rotate(90deg);
}

/* Mobile menu content */
.mobile-nav-content {
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

.mobile-nav-link i {
    transition: transform 0.3s ease;
}

.mobile-nav-item.expanded .mobile-nav-link i {
    transform: rotate(180deg);
}

/* Mobile dropdown */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-nav-item.expanded .mobile-dropdown {
    max-height: 500px;
}

.mobile-dropdown-item {
    padding: 12px 0 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    color: var(--accent-primary);
    padding-left: 24px;
}

/* Mobile CTA button */
.mobile-nav-cta {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px 12px;
    background: var(--accent-primary);
    color: white !important;
    border-radius: 10px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-cta:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Theme toggle in mobile */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-theme-toggle button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-theme-toggle button:hover {
    border-color: var(--accent-primary);
}

/* Responsive Dropdown */
@media (max-width: 991px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-nav-trigger {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-nav-trigger,
    .mobile-menu-overlay,
    .mobile-nav-wrapper {
        display: none !important;
    }
}
/* ============================================
   Laptop Optimization (992px - 1200px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1200px) {

    .navbar {
        padding: 10px 0;
    }

    .navbar-brand .logo-img {
        height: 40px; /* smaller logo */
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px !important;
    }

   

    .btn-nav {
        padding: 8px 16px !important;
        font-size: 0.6rem;
        margin-left: 4px;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}
.nav-link {
    color: var(--text-secondary) !important;

    font-weight: 500;
    font-size: 0.8rem;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown Styles */
.nav-item.dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item.dropdown .nav-link::after {
    display: none;
}

.dropdown-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown-icon::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-icon::before,
.nav-item.dropdown .nav-link[aria-expanded="true"] .dropdown-icon::before {
    border-top-color: var(--accent-primary);
    transform: rotate(180deg);
}

.nav-item.dropdown:hover .nav-link {
    color: var(--text-primary) !important;
}

.dropdown-menu {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 8px;
    margin-top: 12px;
    box-shadow: var(--shadow-card), 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 240px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text-primary);
    background: transparent;
    padding-left: 24px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scaleX(1);
}

/* Light theme dropdown adjustments */
[data-theme="light"] .dropdown-menu {
    background: var(--bg-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-icon::before {
    border-top-color: var(--text-secondary);
}

[data-theme="light"] .dropdown-item {
    color: var(--text-secondary);
}

[data-theme="light"] .dropdown-item:hover {
    color: var(--text-primary);
}

/* Responsive Dropdown */
@media (max-width: 991px) {
    .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        margin-top: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-item {
        padding: 12px 16px;
    }

    .dropdown-item:hover {
        padding-left: 16px;
    }

    .dropdown-item::before {
        display: none;
    }

    .nav-item.dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-item.dropdown .nav-link::after {
        display: inline-block;
    }

    .dropdown-icon::before {
        border-top-color: var(--text-secondary);
    }

    .nav-item.dropdown:hover .dropdown-icon::before,
    .nav-item.dropdown .nav-link[aria-expanded="true"] .dropdown-icon::before {
        transform: rotate(180deg);
    }

    .collapse.navbar-collapse {
        background: var(--bg-primary);
        padding: 20px;
        border-radius: 12px;
        margin-top: 16px;
        border: 1px solid var(--border-subtle);
    }

    .navbar-nav {
        gap: 8px;
    }

    .nav-link {
        padding: 12px 5px !important;
    }

    .btn-nav {
        margin: 16px 0 0 0;
        display: block;
        text-align: center;
    }
}

.btn-nav {
    background: var(--accent-primary);
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 4px;
}

.btn-nav:hover {
    background: var(--accent-primary-hover);
    box-shadow: var(--shadow-primary);
}

.btn-nav::after {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.06) 0%, transparent 40%),
                      radial-gradient(circle at 60% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 50px
    ;
    
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlight-item i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Custom Buttons */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    transition: var(--transition-base);
}

.btn-primary-custom:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.btn-outline-custom:hover {
    border-color: var(--accent-primary);
    background: rgba(9, 12, 197, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Visual - Agent Dashboard */
.hero-visual {
    perspective: 1000px;
}

.agent-dashboard {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    /* padding: 28px; */
    transform: rotateY(-6deg) rotateX(4deg);
    box-shadow: var(--shadow-card), var(--shadow-primary);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.agent-dashboard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.agent-dashboard1 {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    /* padding: 28px; */
    transform: rotateY(-6deg) rotateX(4deg);
    box-shadow: var(--shadow-card), var(--shadow-primary);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.agent-dashboard1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

@keyframes float {
    0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-6deg) rotateX(4deg) translateY(-10px); }
}

/* ============================================
   Hero Dashboard V2 — Multi-Panel AI Orchestration
   ============================================ */

/* Dot-grid texture on the dashboard card */
.agent-dashboard {
    background-image: radial-gradient(circle, rgba(99,102,241,.07) 1px, transparent 1px);
    background-size: 18px 18px;
}

.ai-db2 {
    padding: 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Scanline sweep */
.db2-scanline {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.12) 20%, rgba(34,211,238,.4) 50%, rgba(34,211,238,.12) 80%, transparent 100%);
    animation: scanLine 6s linear infinite;
    pointer-events: none;
    z-index: 20;
}
@keyframes scanLine {
    0%   { top: 0;    opacity: 0; }
    4%   { opacity: 1; }
    96%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Header */
.ai-db2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 10px;
    position: relative; z-index: 2;
}
.ai-db2-brand {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600; color: var(--text-primary);
}
.ai-db2-dot {
    width: 7px; height: 7px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.ai-db2-live { display: flex; align-items: center; gap: 8px; }
.ai-db2-badge {
    background: rgba(34,211,238,.12);
    color: var(--accent-secondary);
    border: 1px solid rgba(34,211,238,.3);
    border-radius: 4px; padding: 1px 6px;
    font-size: 0.6rem; font-weight: 700; letter-spacing: .1em;
    animation: badgeBlink 2.5s infinite;
}
@keyframes badgeBlink {
    0%,88%,100% { opacity: 1; }
    93%          { opacity: .3; }
}
.ai-db2-clock { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--text-muted); }

/* Main 3-col grid */
.ai-db2-main {
    display: grid;
    grid-template-columns: 1fr 86px 1fr;
    grid-template-rows: auto auto;
    gap: 8px; margin-bottom: 8px;
    position: relative; z-index: 2;
}

/* Panel base */
.db2-panel {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border-subtle);
    border-radius: 10px; padding: 9px 10px;
    transition: border-color .3s, background .3s, box-shadow .3s;
    position: relative;
}
.db2-panel:hover {
    border-color: rgba(99,102,241,.45);
    background: rgba(99,102,241,.05);
    box-shadow: 0 0 18px rgba(99,102,241,.14), inset 0 0 24px rgba(99,102,241,.04);
}
/* Corner bracket indicators on hover */
.db2-panel::before, .db2-panel::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    opacity: 0;
    transition: opacity .3s, width .3s, height .3s;
    pointer-events: none;
}
.db2-panel::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
    border-radius: 3px 0 0 0;
}
.db2-panel::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--accent-secondary);
    border-right: 2px solid var(--accent-secondary);
    border-radius: 0 0 3px 0;
}
.db2-panel:hover::before, .db2-panel:hover::after { opacity: 1; width: 16px; height: 16px; }

.db2-panel-title {
    font-size: 0.63rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em;
    margin-bottom: 7px; display: flex; align-items: center; gap: 4px;
}
.db2-panel-title i { color: var(--accent-primary); font-size: 0.72rem; }

/* Grid placement */
.p-flow        { grid-column: 1; grid-row: 1; }
.db2-center    { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.p-analytics   { grid-column: 3; grid-row: 1; }
.p-integration { grid-column: 1; grid-row: 2; }
.p-performance { grid-column: 3; grid-row: 2; }

/* ---- Agentic Flow Panel ---- */
.flow-svg { width: 100%; height: 68px; display: block; }
.fl-edge {
    stroke: rgba(99,102,241,.55); stroke-width: 1;
    animation: edgePulse 3s ease-in-out infinite;
}
@keyframes edgePulse {
    0%,100% { opacity:.35; stroke-width:1; }
    50%      { opacity:1;   stroke-width:1.4; }
}
.fl-edge-faint { stroke: rgba(255,255,255,.05); stroke-width: .6; }
.fl-node { fill: var(--bg-card); stroke-width: 1.5; }
.fl-hub  {
    stroke: var(--accent-secondary); fill: rgba(34,211,238,.18);
    transform-box: fill-box; transform-origin: center;
    animation: hubPulse 2.5s ease-in-out infinite;
}
@keyframes hubPulse {
    0%,100% { fill-opacity:.18; transform: scale(1); }
    50%      { fill-opacity:.4;  transform: scale(1.18); }
}
.fl-leaf1,.fl-leaf3 { stroke: var(--accent-primary); fill: rgba(99,102,241,.2); }
.fl-leaf2,.fl-leaf4 { stroke: var(--accent-secondary); fill: rgba(34,211,238,.2); }
.fl-pkt { opacity: .9; }
.fl-pkt-a,.fl-pkt-c { fill: var(--accent-secondary); filter: drop-shadow(0 0 3px rgba(34,211,238,.9)); }
.fl-pkt-b,.fl-pkt-d { fill: var(--accent-primary);   filter: drop-shadow(0 0 3px rgba(99,102,241,.9)); }
.p-flow-foot { font-size: .6rem; color: var(--text-muted); text-align: right; margin-top: 3px; }
.pf-num { font-weight: 700; color: var(--accent-secondary); }

/* ---- SVG AI Chip Core ---- */
.ai-core-svg { width: 100%; height: auto; overflow: visible; display: block; }
.acr-ring { fill: none; transform-box: fill-box; transform-origin: center; }
.acr-r1 {
    stroke: rgba(99,102,241,.45); stroke-width: 1.5; stroke-dasharray: 10 5;
    animation: ringRotate 12s linear infinite;
}
.acr-r2 {
    stroke: rgba(34,211,238,.45); stroke-width: 1; stroke-dasharray: 4 8;
    animation: ringRotate 8s linear infinite reverse;
}
.acr-r3 {
    fill: rgba(99,102,241,.07); stroke: rgba(99,102,241,.5); stroke-width: 1;
    animation: innerPulse 2.5s ease-in-out infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
@keyframes innerPulse {
    0%,100% { fill-opacity:.07; stroke-opacity:.5; }
    50%      { fill-opacity:.2;  stroke-opacity:1; }
}
.acr-tr { stroke: rgba(99,102,241,.4); stroke-width: .8; }
.acr-td {
    fill: rgba(99,102,241,.6);
    transform-box: fill-box; transform-origin: center;
    animation: tdPulse 2.2s ease-in-out infinite;
}
@keyframes tdPulse {
    0%,100% { opacity:.6; transform: scale(1); }
    50%      { opacity:1;  transform: scale(1.4); }
}
.acr-pk { opacity: .95; }
.pk-a,.pk-c { fill: var(--accent-secondary); filter: drop-shadow(0 0 2px rgba(34,211,238,.9)); }
.pk-b,.pk-d { fill: var(--accent-primary);   filter: drop-shadow(0 0 2px rgba(99,102,241,.9)); }
.acr-pin {
    fill: rgba(34,211,238,.45);
    animation: pinPulse 3s ease-in-out infinite;
}
@keyframes pinPulse { 0%,100% { opacity:.4; } 50% { opacity:.95; } }
.acr-chip {
    fill: url(#cGrad);
    stroke: rgba(34,211,238,.4); stroke-width: .8;
}
.acr-shine { fill: rgba(255,255,255,.13); }
.acr-txt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; font-weight: 800; fill: #fff;
    text-anchor: middle; dominant-baseline: middle; letter-spacing: 2px;
    filter: drop-shadow(0 0 4px rgba(34,211,238,.9));
}

/* Counter metric below the core */
.ac2-metric { text-align: center; line-height: 1; }
.ac2-val {
    display: block;
    font-family: var(--font-display); font-weight: 700; font-size: .85rem;
    color: var(--accent-secondary);
    transition: transform .3s ease, color .3s ease;
}
.ac2-bump { animation: numBump .45s ease-out; }
@keyframes numBump {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.2); color: #fff; }
    100% { transform: scale(1); }
}
.ac2-unit { font-size: .6rem; color: var(--text-muted); }

/* ---- Predictive Analytics Panel ---- */
.pa-bars {
    display: flex; align-items: flex-end;
    gap: 3px; height: 52px; margin-bottom: 5px;
}
.pa-bw {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 2px; height: 100%; justify-content: flex-end;
}
.pa-bw span { font-size: .52rem; color: var(--text-muted); line-height: 1; }
.pa-bar {
    width: 100%; height: 0;
    background: rgba(99,102,241,.38);
    border-radius: 2px 2px 0 0;
    transition: height .65s cubic-bezier(.34,1.4,.64,1), background .4s;
}
.pa-bar-hi {
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 8px rgba(34,211,238,.45);
}
.pa-trend-svg { width: 100%; height: 16px; display: block; margin-bottom: 5px; overflow: visible; }
.pa-trend-line {
    fill: none; stroke: var(--accent-secondary); stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round; opacity: .65;
}
.pa-kpi { display: flex; align-items: center; gap: 3px; font-size: .62rem; }
.pa-kpi-icon { color: #10b981; font-size: .72rem; }
.pa-pct { font-weight: 700; color: #10b981; }
.pa-kpi-label { color: var(--text-muted); }

/* ---- Enterprise Integration Panel ---- */
.ei-row { display: flex; align-items: center; gap: 3px; margin-bottom: 7px; }
.ei-node {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 4px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    font-size: .52rem; color: var(--text-muted); flex: 1;
    transition: var(--transition-base); cursor: default;
}
.ei-node:hover { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.07); transform: translateY(-1px); }
.ei-node i { font-size: .85rem; color: var(--accent-secondary); }
.ei-hub { border-color: rgba(99,102,241,.3); }
.ei-hub i { color: var(--accent-primary); }
.ei-pipe {
    flex: 1; height: 2px;
    background: rgba(255,255,255,.06);
    position: relative; overflow: visible;
    display: flex; align-items: center;
}
.ei-pulse {
    position: absolute;
    width: 5px; height: 5px;
    background: var(--accent-secondary);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    animation: pipeSlide 1.6s linear infinite;
    box-shadow: 0 0 5px var(--accent-secondary);
}
@keyframes pipeSlide {
    0%   { left: -5px; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: calc(100% + 5px); opacity: 0; }
}
.ei-status { display: flex; align-items: center; gap: 5px; font-size: .6rem; color: var(--text-muted); }
.ei-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }

/* ---- System Performance Panel ---- */
.sp-inner { display: flex; align-items: center; gap: 6px; }
.sp-gauge { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.sp-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sg-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 3; }
.sg-fill {
    fill: none; stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 138.23;
    stroke-dashoffset: calc(138.23 * (1 - var(--pct)));
    animation: gaugeIn 1.8s ease-out both;
}
.sg-teal   { stroke: var(--accent-secondary); filter: drop-shadow(0 0 3px rgba(34,211,238,.6)); }
.sg-violet { stroke: var(--accent-primary);   filter: drop-shadow(0 0 3px rgba(99,102,241,.6)); }
@keyframes gaugeIn { from { stroke-dashoffset: 138.23; } }
.sg-txt {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: .5rem; font-weight: 700; color: var(--text-primary); text-align: center; line-height: 1.25;
}
.sg-txt small { font-weight: 400; color: var(--text-muted); font-size: .46rem; }
.sp-heatmap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.shm-r { display: flex; gap: 2px; }
.shm-c { flex: 1; height: 10px; border-radius: 2px; animation: heatFlicker 3.5s ease-in-out infinite; transition: background .5s; }
.shm-lo { background: rgba(99,102,241,.18); }
.shm-md { background: rgba(99,102,241,.48); animation-delay: .4s; }
.shm-hi { background: var(--accent-primary); animation-delay: .8s; }
@keyframes heatFlicker { 0%,100% { opacity:.65; } 50% { opacity:1; } }

/* ---- Bottom Row ---- */
.ai-db2-bottom { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; position: relative; z-index: 2; }

/* Workflow / Gantt */
.wf-gantt { display: flex; flex-direction: column; gap: 5px; }
.wf-row { display: flex; align-items: center; gap: 6px; }
.wf-lbl { font-size: .58rem; color: var(--text-muted); width: 54px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-track { flex: 1; height: 6px; background: rgba(255,255,255,.04); border-radius: 4px; position: relative; overflow: hidden; }
.wf-bar { position: absolute; left: var(--l); height: 100%; border-radius: 4px; width: 0; animation: wfExpand 1.3s ease-out .3s both; }
@keyframes wfExpand { to { width: var(--w); } }
.wf-done    { background: linear-gradient(90deg, var(--accent-secondary), rgba(34,211,238,.55)); }
.wf-active  { background: linear-gradient(90deg, var(--accent-primary), rgba(99,102,241,.75)); animation: wfExpand 1.3s ease-out .3s both, wfFlash 1.2s ease-in-out 1.6s infinite; }
.wf-pending { background: rgba(255,255,255,.14); }
@keyframes wfFlash { 0%,100% { opacity:1; } 50% { opacity:.55; } }

/* Infrastructure */
.pi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 7px; }
.pi-node {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 4px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: .5rem; color: var(--text-muted); text-align: center;
    transition: var(--transition-base); cursor: default;
}
.pi-node:hover { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.07); transform: translateY(-1px); }
.pi-node i { font-size: .82rem; color: var(--accent-secondary); }
.pi-latency { display: flex; flex-direction: column; gap: 3px; }
.pi-bar-bg { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.pi-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); border-radius: 2px; animation: piFill 1.6s ease-out .6s forwards; }
@keyframes piFill { to { width: 38%; } }
.pi-lbl { font-size: .58rem; color: var(--text-muted); text-align: center; }

/* ---- Live Activity Ticker ---- */
.db2-ticker {
    margin-top: 8px; padding: 5px 0;
    border-top: 1px solid var(--border-subtle);
    overflow: hidden; position: relative; z-index: 2;
}
.db2-ticker::before,
.db2-ticker::after {
    content: ''; position: absolute;
    top: 0; bottom: 0; width: 22px; z-index: 3; pointer-events: none;
}
.db2-ticker::before { left: 0;  background: linear-gradient(to right, var(--bg-secondary), transparent); }
.db2-ticker::after  { right: 0; background: linear-gradient(to left,  var(--bg-secondary), transparent); }
.db2-ticker-inner {
    display: flex; gap: 14px;
    white-space: nowrap; width: max-content;
    animation: tickerScroll 26s linear infinite;
}
.db2-ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.tick-item { font-size: .6rem; display: flex; align-items: center; gap: 4px; }
.tick-ok   { color: #10b981; }
.tick-sync { color: var(--accent-secondary); }
.tick-ai   { color: var(--accent-primary); }
.tick-sep  { color: var(--text-muted); font-size: .65rem; }

/* Responsive */
@media (max-width: 1199px) {
    .ai-db2-main { grid-template-columns: 1fr 78px 1fr; }
}
@media (max-width: 767px) {
    .ai-db2-main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    .db2-center    { grid-column: 1 / 3; grid-row: 1; flex-direction: row; justify-content: center; padding: 6px; gap: 14px; }
    .p-flow        { grid-column: 1; grid-row: 2; }
    .p-analytics   { grid-column: 2; grid-row: 2; }
    .p-integration { grid-column: 1; grid-row: 3; }
    .p-performance { grid-column: 2; grid-row: 3; }
    .ai-db2-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ai-db2-main { grid-template-columns: 1fr; }
    .db2-center    { grid-column: 1; grid-row: 1; }
    .p-analytics   { grid-row: 3; }
    .p-integration { grid-row: 4; }
    .p-performance { grid-row: 5; }
}

/* ============================================
   Data Infrastructure Dashboard (Capability 3)
   ============================================ */
.di-dash {
    padding: 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle, rgba(99,102,241,.07) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* Scanline */
.di-scanline {
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.12) 20%, rgba(34,211,238,.4) 50%, rgba(34,211,238,.12) 80%, transparent 100%);
    animation: scanLine 7s linear infinite;
    pointer-events: none; z-index: 10;
}

/* Header */
.di-header {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600; color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 10px;
    position: relative; z-index: 2;
}
.di-dot {
    width: 7px; height: 7px; background: var(--accent-secondary);
    border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0;
}
.di-pill {
    margin-left: auto;
    background: rgba(16,185,129,.12); color: #10b981;
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 20px; padding: 2px 8px;
    font-size: 0.6rem; font-weight: 600; letter-spacing: .04em;
    animation: pillBlink 3s ease-in-out infinite;
}
@keyframes pillBlink {
    0%,85%,100% { opacity: 1; }
    90%          { opacity: .45; }
}

/* Panel */
.di-panel {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border-subtle);
    border-radius: 10px; padding: 10px;
    margin-bottom: 8px; position: relative; z-index: 2;
    transition: border-color .3s, box-shadow .3s;
}
.di-panel:last-child { margin-bottom: 0; }
.di-panel:hover {
    border-color: rgba(99,102,241,.4);
    box-shadow: 0 0 16px rgba(99,102,241,.1);
}
/* corner brackets */
.di-panel::before, .di-panel::after {
    content: ''; position: absolute;
    width: 10px; height: 10px; opacity: 0;
    transition: opacity .3s, width .3s, height .3s; pointer-events: none;
}
.di-panel::before { top:-1px; left:-1px; border-top:2px solid var(--accent-primary); border-left:2px solid var(--accent-primary); border-radius:3px 0 0 0; }
.di-panel::after  { bottom:-1px; right:-1px; border-bottom:2px solid var(--accent-secondary); border-right:2px solid var(--accent-secondary); border-radius:0 0 3px 0; }
.di-panel:hover::before, .di-panel:hover::after { opacity:1; width:15px; height:15px; }

.di-panel-title {
    font-size: 0.63rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .07em;
    margin-bottom: 10px; display: flex; align-items: center; gap: 4px;
}
.di-panel-title i { color: var(--accent-primary); font-size: 0.72rem; }

/* ── RAG Pipeline ── */
.rag-flow {
    display: flex; align-items: center;
    margin-bottom: 10px; overflow-x: auto;
    scrollbar-width: none;
}
.rag-flow::-webkit-scrollbar { display: none; }

.rag-node {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 7px; min-width: 58px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.55rem; color: var(--text-muted); text-align: center;
    flex-shrink: 0; cursor: default;
    transition: border-color .3s, background .3s, transform .3s;
    position: relative;
}
.rag-node:hover { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.08); transform: translateY(-2px); }
.rag-node i { font-size: 1rem; }
.rn-src  i { color: var(--accent-primary); }
.rn-proc i { color: var(--accent-secondary); }
.rn-vec  i { color: #f59e0b; }
.rn-ai   i { color: #10b981; }

.rag-node-active {
    border-color: rgba(16,185,129,.35) !important;
    background: rgba(16,185,129,.07) !important;
}
.rn-live-dot {
    position: absolute; top: 5px; right: 6px;
    width: 5px; height: 5px; background: #10b981;
    border-radius: 50%; animation: pulse 1.5s infinite;
}

.rag-pipe {
    flex: 1; min-width: 14px; height: 2px;
    background: rgba(255,255,255,.06);
    position: relative; display: flex; align-items: center; overflow: visible;
}

.rag-pkt {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    animation: ragSlide 1.9s linear infinite;
}
.rp1  { background: var(--accent-primary);   box-shadow: 0 0 5px var(--accent-primary);   animation-delay: 0s; }
.rp1b { background: var(--accent-primary);   box-shadow: 0 0 5px var(--accent-primary);   animation-delay: 0.95s; }
.rp2  { background: var(--accent-secondary); box-shadow: 0 0 5px var(--accent-secondary); animation-delay: 0s; }
.rp2b { background: var(--accent-secondary); box-shadow: 0 0 5px var(--accent-secondary); animation-delay: 0.95s; }
.rp3  { background: #f59e0b; box-shadow: 0 0 5px #f59e0b; animation-delay: 0s; }
.rp3b { background: #f59e0b; box-shadow: 0 0 5px #f59e0b; animation-delay: 0.95s; }
@keyframes ragSlide {
    0%   { left: -6px; opacity: 0; }
    7%   { opacity: 1; }
    93%  { opacity: 1; }
    100% { left: calc(100% + 6px); opacity: 0; }
}

.rag-stats {
    display: flex; gap: 6px;
}
.rag-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-subtle);
    border-radius: 7px; padding: 6px 4px;
    font-size: 0.55rem; color: var(--text-muted);
    transition: var(--transition-base); cursor: default;
}
.rag-stat:hover { border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.05); }
.rag-num {
    display: block; font-family: var(--font-display); font-weight: 700;
    font-size: 0.8rem; color: var(--accent-secondary); line-height: 1;
}

/* ── Infrastructure Health ── */
.ih-list { display: flex; flex-direction: column; gap: 8px; }
.ih-row  { display: flex; align-items: center; gap: 9px; }
.ih-icon {
    width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--ic) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--ic) 30%, transparent);
    color: var(--ic); font-size: 0.85rem;
    animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
    0%,100% { box-shadow: 0 0 0 0 transparent; }
    50%      { box-shadow: 0 0 8px 2px color-mix(in srgb, var(--ic) 30%, transparent); }
}
.ih-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ih-top  { display: flex; justify-content: space-between; align-items: center; }
.ih-lbl  { font-size: 0.6rem; color: var(--text-muted); }
.ih-val  { font-size: 0.62rem; font-weight: 600; color: var(--text-secondary); }
.ih-track {
    height: 5px; background: rgba(255,255,255,.06);
    border-radius: 3px; overflow: hidden;
}
.ih-bar {
    height: 100%; width: 0; border-radius: 3px;
    animation: ihGrow 1.4s cubic-bezier(.34,1.2,.64,1) forwards;
}
.ih-bar-v { background: linear-gradient(90deg, #6366f1, rgba(99,102,241,.6));  animation-delay: .2s; }
.ih-bar-c { background: linear-gradient(90deg, #22d3ee, rgba(34,211,238,.6));  animation-delay: .4s; }
.ih-bar-g { background: linear-gradient(90deg, #10b981, rgba(16,185,129,.6));  animation-delay: .6s; }
@keyframes ihGrow { to { width: var(--tw); } }

/* Fallback for color-mix in older browsers */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .ih-icon { background: rgba(99,102,241,.14); border-color: rgba(99,102,241,.3); color: var(--accent-primary); }
}

/* Responsive */
@media (max-width: 991px) {
    .di-dash { padding: 12px; }
    .rag-node { min-width: 50px; padding: 6px 5px; }
}

/* ============================================
   (end Dashboard V2)
   ============================================ */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

.agent-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.workflow-pipeline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow-x: auto;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pipeline-step.completed {
    color: var(--accent-secondary);
}

.pipeline-step.active {
    color: var(--accent-primary);
}

.pipeline-step .step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    font-size: 0.7rem;
}

.pipeline-step.completed .step-icon {
    background: rgba(34, 211, 238, 0.2);
    color: var(--accent-secondary);
}

.pipeline-step.active .step-icon {
    background: rgba(99, 102, 241, 0.3);
    animation: pulse 1.5s infinite;
}

.pipeline-step.active .step-icon.pulse {
    background: var(--accent-primary);
    color: white;
}

.pipeline-connector {
    width: 20px;
    height: 2px;
    background: var(--border-light);
    flex-shrink: 0;
}

.pipeline-connector.completed {
    background: var(--accent-secondary);
}

.terminal-window {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.terminal-line:last-child {
    margin-bottom: 0;
}

.terminal-line .prompt {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.terminal-line .typing-text {
    color: var(--text-secondary);
}

.terminal-line .result {
    color: var(--accent-secondary);
}

.mcp-connections {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.mcp-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.connection-icons {
    display: flex;
    gap: 10px;
}

.conn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-base);
}

.conn-icon:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
  
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-header {
    text-align: center;
    margin-bottom: 48px;
}

.trust-header h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.trust-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.logo-item {
    padding: 16px 28px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.logo-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   Activation Section - New Interactive Layout
   ============================================ */
.activation-section {
    padding: 80px 0;
    overflow: hidden;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Capability Section */
.capability-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.capability-section:first-of-type {
    padding-top: 0;
}

.capability-section:last-child {
    border-bottom: none;
}

.capability-section .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.capability-connector {
    display: none;
    width: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.connector-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    min-height: 100px;
    max-height: 200px;
    border-radius: 2px;
}

.connector-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin: 10px 0;
    box-shadow: 0 0 10px var(--accent-primary);
}

@media (min-width: 992px) {
    .capability-connector {
        display: flex;
    }
    .capability-section .row {
        flex-wrap: nowrap;
    }
}

.capability-visual {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
    transition: var(--transition-base);
}

.visual-container:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

/* Dashboard Visual */
.dashboard-visual {
    min-height: 280px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.dash-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.dashboard-metrics {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: var(--transition-base);
}

.metric-card:hover {
    background: var(--bg-primary);
}

.metric-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 1rem;
}

.metric-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 3px;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
}

.metric-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.roi-badge {
    margin-top: 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

/* Shield Visual */
.shield-visual {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

}

/* Interactive Shield Badges Design */
.shield-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shield-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

.shield-icon-wrapper {
    font-size: 2.5rem;
    color: white;
}

.shield-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shield-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.shield-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.shield-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.shield-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.shield-badge:hover::before {
    opacity: 1;
}

.shield-badge:hover .badge-dot {
    animation: dotPulse 0.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite;
}

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

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.badge-content i {
    font-size: 1.3rem;
}

.badge-content span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Badge Colors */
.badge-gdpr {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}
.badge-gdpr .badge-dot { background: #10b981; }
.badge-gdpr i { color: #10b981; }

.badge-hipaa {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}
.badge-hipaa .badge-dot { background: #3b82f6; }
.badge-hipaa i { color: #3b82f6; }

.badge-aiact {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
}
.badge-aiact .badge-dot { background: #8b5cf6; }
.badge-aiact i { color: #8b5cf6; }

.badge-soc2 {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
}
.badge-soc2 .badge-dot { background: #f59e0b; }
.badge-soc2 i { color: #f59e0b; }

.badge-iso {
    border-color: rgba(236, 72, 153, 0.4);
    background: rgba(236, 72, 153, 0.1);
}
.badge-iso .badge-dot { background: #ec4899; }
.badge-iso i { color: #ec4899; }

.badge-verified {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}
.badge-verified .badge-dot { background: #10b981; }
.badge-verified i { color: #10b981; }

/* Responsive */
@media (max-width: 768px) {
    .shield-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Shield Container */
.shield-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.badges-orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    animation: orbitRotate 25s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbiting-badge {
    position: absolute;
    /* display: flex;
    align-items: center; */
    gap: 5px;
    padding: 12px 20px;
    border-radius: 52px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.orbiting-badge:hover {
    transform: scale(1.15) !important;
    z-index: 100;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge positions on the orbit circle - evenly distributed */
.orbiting-badge:nth-child(1) { top: -12px; left: 50%; transform: translateX(-50%); } /* GDPR - top */
.orbiting-badge:nth-child(2) { top: 20%; right: -30px; } /* HIPAA - right top */
.orbiting-badge:nth-child(3) { bottom: 8%; right: -35px; } /* EU AI Act - right bottom */
.orbiting-badge:nth-child(4) { bottom: -12px; left: 50%; transform: translateX(-50%); } /* SOC 2 - bottom */
.orbiting-badge:nth-child(5) { bottom: 8%; left: -35px; } /* ISO 27001 - left bottom */
.orbiting-badge:nth-child(6) { top: 20%; left: -30px; } /* Verified - left top */

/* Badge Colors */
.badge-gdpr {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.badge-hipaa {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

.badge-aiact {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
}

.badge-soc2 {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.badge-iso {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.5);
    color: #ec4899;
}

.badge-verified {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

/* Inner Ring */
.shield-inner-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: innerRingPulse 3s ease-in-out infinite;
}

@keyframes innerRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
}

/* Shield Main */
.shield-main {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.shield-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(34, 211, 238, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    animation: shieldGlow 2s ease-in-out infinite;
}

@keyframes shieldGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.shield-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: shieldFloat 3s ease-in-out infinite;
}

@keyframes shieldFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.shield-icon-wrapper i {
    font-size: 3.5rem;
    color: var(--accent-primary);
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.shield-check {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #22d3ee);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.shield-check i {
    font-size: 0.9rem;
    color: white;
    filter: none;
    animation: none;
}

/* Light theme adjustments */
[data-theme="light"] .shield-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(34, 211, 238, 0.1) 50%, transparent 70%);
}

[data-theme="light"] .orbiting-badge {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Interactive Pipeline Visual */
.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.pipeline-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pipeline-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 12px;
  min-width: 100px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pipeline-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pipeline-node:hover::before {
  opacity: 1;
}

.pipeline-node:hover {
  transform: translateY(-4px) scale(1.05);
}

.pipeline-node:active {
  transform: translateY(-2px) scale(1.02);
}

.pipeline-node i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.pipeline-node:hover i {
  transform: scale(1.15);
}

.pipeline-node span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Source Nodes */
.source-node {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.source-node:nth-child(2) { animation-delay: 0.2s; }
.source-node:nth-child(3) { animation-delay: 0.3s; }

.source-node:hover {
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Process Nodes */
.process-node {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.process-node:nth-child(2) { animation-delay: 0.5s; }

.process-node:hover {
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.process-node:hover i {
  animation: spin 0.6s ease;
}

/* Vector Node */
.vector-node {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #67e8f9;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* LLM Node */
.llm-node {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f9a8d4;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

.vector-node:hover,
.llm-node:hover {
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

/* Arrow with Animation */
.pipeline-arrow-down {
  /* color: rgba(255, 255, 255, 0.4); */
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  animation: bounce 1.5s ease-in-out infinite;
}

.pipeline-arrow-down:nth-child(1) { animation-delay: 0s; }
.pipeline-arrow-down:nth-child(3) { animation-delay: 0.2s; }

/* Ripple Effect on Click */
.pipeline-node .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Glow Pulse */
.pipeline-node::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: transparent;
  z-index: -1;
  transition: all 0.3s ease;
}

.pipeline-node:hover::after {
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--node-color), transparent);
  opacity: 0.2;
  filter: blur(8px);
}

.source-node { --node-color: #6366f1; }
.process-node { --node-color: #8b5cf6; }
.vector-node { --node-color: #22d3ee; }
.llm-node { --node-color: #ec4899; }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes spin {
  from { transform: rotate(0deg) scale(1.15); }
  to { transform: rotate(360deg) scale(1.15); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Node icon breathing animation */
.pipeline-node i {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.source-node i { animation-delay: 0s; }
.process-node i { animation-delay: 0.5s; }
.vector-node i { animation-delay: 1s; }
.llm-node i { animation-delay: 1.5s; }

/* ============================================
   Premium Dark Pipeline — Grid Layout
   ============================================ */

/* Container & Background */
.pipeline-horizontal {
  display: grid;
  /* Column plan: [Start][→][Input][→][Process][→][Decision][→][Approved][→][Finish]
                  + [↓] (rejected) in same Decision column */
  grid-template-columns: auto 44px auto 44px auto 44px auto 44px auto 44px auto;
  grid-template-rows: auto 56px auto;
  align-items: center;
  justify-content: center;
  /* padding: 48px 40px; */
  /* background: linear-gradient(160deg, #0a0a0f 0%, #0d0d18 50%, #0f0f1a 100%); */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Ambient radial glow behind the pipeline */
.pipeline-horizontal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.09) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 65%);
  pointer-events: none;
  animation: radialPulse 5s ease-in-out infinite;
}

/* Side accent glows */
.pipeline-horizontal::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

/* ── Node Base Card ───────────────────────────── */
.pipeline-horizontal .pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 14px;
  min-width: 104px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(12, 12, 22, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  animation: nodeEntrance 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  z-index: 2;
}

/* Top inner shimmer line */
.pipeline-horizontal .pipeline-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

/* Outer glow halo on hover */
.pipeline-horizontal .pipeline-node::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: transparent;
  z-index: -1;
  transition: all 0.35s ease;
  opacity: 0;
}

.pipeline-horizontal .pipeline-node:hover::after {
  opacity: 1;
  inset: -8px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--node-color) 0%, transparent 65%);
  filter: blur(18px);
}

.pipeline-horizontal .pipeline-node:hover {
  transform: translateY(-5px) scale(1.07);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(18, 18, 32, 0.9);
}

.pipeline-horizontal .pipeline-node i {
  font-size: 1.65rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px var(--node-color));
}

.pipeline-horizontal .pipeline-node:hover i {
  transform: scale(1.25);
  filter: drop-shadow(0 0 14px var(--node-color));
}

.pipeline-horizontal .pipeline-node span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.pipeline-horizontal .pipeline-node:hover span {
  opacity: 1;
}

/* ── Node Color Variants ──────────────────────── */
.source-node {
  --node-color: #6366f1;
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.14), inset 0 0 22px rgba(99, 102, 241, 0.06);
}
.source-node i { color: #818cf8; }

.pipeline-horizontal .process-node {
  --node-color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.14), inset 0 0 22px rgba(139, 92, 246, 0.06);
}
.process-node i { color: #a78bfa; }

.decision-node {
  --node-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.14), inset 0 0 22px rgba(245, 158, 11, 0.06);
}
.decision-node i { color: #fbbf24; }

.success-node {
  --node-color: #22c55e;
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.14), inset 0 0 22px rgba(34, 197, 94, 0.06);
}
.success-node i { color: #4ade80; }

.danger-node {
  --node-color: #ef4444;
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.14), inset 0 0 22px rgba(239, 68, 68, 0.06);
}
.danger-node i { color: #f87171; }

.finish-node {
  --node-color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.14), inset 0 0 22px rgba(34, 211, 238, 0.06);
}
.finish-node i { color: #67e8f9; }

/* ── Arrow Base ───────────────────────────────── */
.pipeline-arrow,
.pipeline-arrow-down,
.pipeline-arrow-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Dotted line segment */
.line {
  position: absolute;
  background: repeating-linear-gradient(90deg, rgba(139, 92, 246, 0.75) 0px, rgba(139, 92, 246, 0.75) 5px, transparent 5px, transparent 10px);
  background-size: 10px 2px;
  animation: flowDots 0.75s linear infinite;
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.65));
}

/* Arrowhead triangle */
.arrowhead {
  position: absolute;
  width: 0;
  height: 0;
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.85));
}

/* ── Horizontal Arrow ────────────────────────── */
.pipeline-arrow {
  width: 44px;
  height: 36px;
}
.pipeline-arrow .line {
  top: 50%;
  left: 0;
  right: 6px;
  height: 2px;
  margin-top: -1px;
  animation: flowDots 0.75s linear infinite;
}
.pipeline-arrow .arrowhead {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #a78bfa;
}

/* ── Vertical Down Arrow (rejected branch) ───── */
.pipeline-arrow-down {
  width: 36px;
  height: 44px;
  grid-column: 7;
  grid-row: 2;
}
.pipeline-arrow-down .line {
  top: 0;
  bottom: 6px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(180deg, rgba(239, 68, 68, 0.75) 0px, rgba(239, 68, 68, 0.75) 5px, transparent 5px, transparent 10px);
  background-size: 2px 10px;
  animation: flowDotsV 0.75s linear infinite;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.65));
}
.pipeline-arrow-down .arrowhead {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #f87171;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.85));
}

/* ── Left Arrow (rejected path return) ────────── */
.pipeline-arrow-left {
  width: 40px;
  height: 36px;
  transform: rotate(180deg);
}
.pipeline-arrow-left .line {
  top: 50%;
  left: 0;
  right: 6px;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(239, 68, 68, 0.75) 0px, rgba(239, 68, 68, 0.75) 5px, transparent 5px, transparent 10px);
  background-size: 10px 2px;
  animation: flowDots 0.75s linear infinite;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.65));
}
.pipeline-arrow-left .arrowhead {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f87171;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.85));
}

/* ── Branch Layout via Grid ───────────────────── */
/* Approved branch: rows 1, cols 9-11 */
.branch-line.approved {
  display: contents;
}
/* Rejected branch: rows 2-3, cols 7-11 */
.branch-line.rejected {
  display: contents;
}

/* Danger node (Rejected) in row 2, col 7 */
.pipeline-branch .danger-node {
  grid-column: 7;
  grid-row: 3;
}

/* Reprocess node in row 2, col 11 */
.pipeline-branch .process-node.small {
  grid-column: 11;
  grid-row: 3;
}

/* ── Interactivity ────────────────────────────── */
.pipeline-horizontal .pipeline-node.dim-path {
  opacity: 0.3 !important;
  filter: grayscale(0.5);
  transform: scale(0.97) !important;
}

/* ── Keyframe Animations ──────────────────────── */
@keyframes flowDots {
  0% { background-position: 0 0; }
  100% { background-position: 10px 0; }
}

@keyframes flowDotsV {
  0% { background-position: 0 0; }
  100% { background-position: 0 10px; }
}

@keyframes nodeEntrance {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes radialPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes nodeBreath {
  0%, 100% { box-shadow: 0 0 20px var(--node-color), inset 0 0 14px rgba(255,255,255,0.04); }
  50% { box-shadow: 0 0 36px var(--node-color), inset 0 0 20px rgba(255,255,255,0.07); }
}

.pipeline-horizontal .pipeline-node.idle-glow {
  animation: nodeBreath 3.5s ease-in-out infinite;
}

/* ── Responsive: Tablet ────────────────────────── */
@media (max-width: 900px) {
  .pipeline-horizontal {
    grid-template-columns: auto 36px auto 36px auto 36px auto 36px auto 36px auto;
    padding: 36px 24px;
  }
  .pipeline-arrow { width: 36px; }
  .pipeline-arrow-left { width: 32px; }
  .pipeline-arrow-down { width: 30px; height: 40px; }
  .pipeline-horizontal .pipeline-node { min-width: 92px; padding: 14px 16px; }
}

/* ── Responsive: Mobile (vertical stack) ──────── */
@media (max-width: 640px) {
  .pipeline-horizontal {
    grid-template-columns: auto;
    grid-template-rows: none;
    flex-direction: column;
    gap: 0;
    padding: 28px 16px;
  }

  /* All arrows become down-arrows on mobile */
  .pipeline-arrow {
    width: 36px;
    height: 40px;
    transform: rotate(90deg);
  }

  .pipeline-arrow-left {
    width: 36px;
    height: 40px;
    transform: rotate(90deg);
  }

  /* Rejected branch stacks vertically */
  .pipeline-arrow-down {
    width: 36px;
    height: 40px;
    grid-column: 1;
    grid-row: auto;
    transform: rotate(0deg);
  }

  .pipeline-branch .danger-node,
  .pipeline-branch .process-node.small {
    grid-column: 1;
    grid-row: auto;
  }

  /* Restack branch lines */
  .branch-line.approved,
  .branch-line.rejected {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pipeline-horizontal .pipeline-node {
    min-width: 88px;
    padding: 12px 16px;
  }

  .pipeline-horizontal .pipeline-node i { font-size: 1.35rem; }
  .pipeline-horizontal .pipeline-node span { font-size: 0.62rem; }
}

@media (max-width: 400px) {
  .pipeline-horizontal .pipeline-node { min-width: 76px; padding: 10px 12px; }
  .pipeline-horizontal .pipeline-node i { font-size: 1.2rem; }
}

/* Workflow Visual */
.workflow-visual {
    min-height: 220px;
}

.workflow-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-bottom: 20px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.workflow-step:hover .step-circle {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.workflow-step span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.workflow-connector {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--border-subtle) 0%, var(--accent-primary) 50%, var(--border-subtle) 100%);
    position: relative;
}

.workflow-connector::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: connectorPulse 1.5s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(10px); }
}

.workflow-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;

}

.tool-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.tool-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

@keyframes barGrow {
    from { height: 0; }
}

.bar-label {
    position: absolute;
    bottom: -30px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bar-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.chart-label {
    position: absolute;
    bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Shield Graphic */
.shield-graphic {
    position: relative;
    width: 180px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-layer {
    position: absolute;
    border: 2px solid;
    border-radius: 12px;
    opacity: 0.3;
}

.shield-layer-1 {
    width: 160px;
    height: 180px;
    border-color: var(--accent-primary);
    animation: shieldPulse 3s ease-in-out infinite;
}

.shield-layer-2 {
    width: 120px;
    height: 140px;
    border-color: #10b981;
    animation: shieldPulse 3s ease-in-out infinite 0.5s;
}

.shield-layer-3 {
    width: 80px;
    height: 100px;
    border-color: #f59e0b;
    animation: shieldPulse 3s ease-in-out infinite 1s;
}

@keyframes shieldPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.shield-graphic i {
    font-size: 3rem;
    color: var(--accent-primary);
    z-index: 10;
}

/* Pipeline Graphic */
.pipeline-graphic {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pipeline-stage {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 70px;
    transition: var(--transition-base);
}

.pipeline-stage:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.pipeline-stage i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}


.pipeline-stage span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pipeline-arrow {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

/* Agent Graphic */
.agent-graphic {
    position: relative;
    width: 200px;
    height: 200px;
}

.agent-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.agent-node-1 { top: 50%; left: 0; transform: translateY(-50%); }
.agent-node-2 { top: 0; left: 50%; transform: translateX(-50%); }
.agent-node-3 { top: 50%; right: 0; transform: translateY(-50%); }
.agent-node-4 { bottom: 0; left: 50%; transform: translateX(-50%); }

.agent-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.agent-connections svg {
    width: 100%;
    height: 100%;
}

/* Capability Content */
.capability-content {
    padding: 20px;
}

.capability-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.capability-content h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.capability-tagline {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.capability-content > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.capability-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.capability-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.capability-features li i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.capability-features li i.bi-shield-fill {
    color: #10b981;
}

.capability-features li i.bi-diagram-3-fill {
    color: #8b5cf6;
}

.capability-features li i.bi-robot {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 991px) {
    .capability-section .row {
        flex-direction: column;
    }

    .capability-section .col-lg-6:first-child {
        order: 1 !important;
    }

    .capability-section .col-lg-6:last-child {
        order: 2 !important;
    }

    .capability-visual {
        margin-bottom: 40px;
    }

    .visual-container {
        max-width: 100%;
    }

    .dashboard-visual,
    .shield-visual,
    .pipeline-visual,
    .workflow-visual {
        min-height: auto;
        padding: 20px;
    }

    .workflow-pipeline {
        flex-wrap: wrap;
        gap: 16px;
    }

    .workflow-connector {
        display: none;
    }

    /* Shield Visual Responsive */
    .shield-container {
        width: 160px;
        height: 160px;
    }

    .shield-orbit {
        width: 180px;
        height: 180px;
    }

    .shield-inner-ring {
        width: 130px;
        height: 130px;
    }

    .shield-main {
        width: 80px;
        height: 80px;
    }

    .shield-icon-wrapper i {
        font-size: 2.5rem;
    }

    .shield-glow {
        width: 110px;
        height: 110px;
    }

    .shield-check {
        width: 24px;
        height: 24px;
    }

    .shield-check i {
        font-size: 0.75rem;
    }

    .comp-badge {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .badge-pos-1 { top: -5px; }
    .badge-pos-2 { right: -10px; }
    .badge-pos-3 { right: -5px; }
    .badge-pos-4 { bottom: 0; }
    .badge-pos-5 { left: -15px; }

    .verified-badge {
        bottom: 5px;
        right: 15px;
        padding: 4px 10px;
        font-size: 0.6rem;
    }
}

@media (max-width: 767px) {
    .activation-section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .capability-content h3 {
        font-size: 1.35rem;
    }

    .chart-graphic {
        gap: 20px;
    }

    .chart-bar {
        width: 45px;
    }
}

/* ============================================
   Solutions Section
   ============================================ */
.solutions-section {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px;
    height: 100%;
    position: relative;
    transition: var(--transition-base);
}

.solution-card:hover {
    border-color:var(--accent-primary);
    transform: translateY(-2px);
}



.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.solution-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.solution-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.solution-features li i {
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Case Studies Section
   ============================================ */
.case-studies-section {
    padding: 40px 0;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px;
    height: 100%;
    transition: var(--transition-base);
}

.case-card:hover {
    border-color: var(--accent-primary);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.case-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.case-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 6px 14px;
    border-radius: 20px;
}

.case-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   Security Section
   ============================================ */
.security-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.security-content h2 {
    margin-bottom: 16px;
}

.security-content > p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: var(--transition-base);
}

.badge-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 8px;
}

.badge-item span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.cta-section > .container > p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

/* ============================================
   Footer
   ============================================ */
.footer-section {
    padding: 80px 0 40px ;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-brand img {
    height: 200px;
    width: 200px;
    margin-bottom: 16px;
    /* filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5)); */
    background: transparent;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 14px;
    padding-left: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--text-muted);
    transform: translateY(-10px);

}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   Animations
   ============================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
    padding: 180px 0 20px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-visual {
        display: block;
        margin-top: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-highlights {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-stats {
        gap: 40px;
    }

    .agent-dashboard {
        transform: none;
        animation: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .agent-dashboard img {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .theme-toggle {
        top: auto;
        bottom: 24px;
        right: 24px;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .trust-stats {
        gap: 30px;
    }

    .stat-card {
        flex: 1 1 40%;
    }



    .logo-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .solution-card,
    .case-card {
        padding: 28px;
    }

    .compliance-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-brand .logo-img {
        height: 36px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-header h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Shield Visual Mobile */
    .shield-visual {
        min-height: 280px;
        display: none;
    }

    .shield-container {
        width: 140px;
        height: 140px;
    }

    .shield-orbit {
        width: 160px;
        height: 160px;
    }

    .shield-inner-ring {
        width: 110px;
        height: 110px;
    }
    .agent-dashboard{
        display: none;
    }

    .shield-main {
        width: 70px;
        height: 70px;
    }

    .shield-icon-wrapper i {
        font-size: 2rem;
    }

    .shield-glow {
        width: 90px;
        height: 90px;
    }

    .shield-check {
        width: 20px;
        height: 20px;
    }

    .shield-check i {
        font-size: 0.65rem;
    }

    .comp-badge {
        padding: 5px 8px;
        font-size: 0.55rem;
        gap: 4px;
    }

    .badge-icon i {
        font-size: 0.8rem;
    }

    .badge-pos-1 { top: 0; }
    .badge-pos-2 { right: -5px; }
    .badge-pos-3 { right: 0; bottom: 10%; }
    .badge-pos-4 { bottom: 5px; }
    .badge-pos-5 { left: -10px; }

    .verified-badge {
        bottom: 0;
        right: 10px;
    }

    /* Trust section mobile fixes */
    .trust-logos {
        gap: 16px;
    }

    .logo-item {
        padding: 8px 14px;
    }

    .logo-item img {
        max-width: 32px;
        height: auto;
    }

    .logo-item span {
        font-size: 0.85rem;
    }

    /* Hero mobile adjustments */
    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .highlight-item {
        font-size: 0.85rem;
    }

    .hero-buttons .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* Pipeline horizontal scroll fix for tablets */
    .pipeline-horizontal {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 32px 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* Case study cards mobile */
    .case-card {
        padding: 20px;
    }

    .kpi-ring {
        width: 70px;
        height: 70px;
    }

    .ring-svg {
        width: 70px;
        height: 70px;
    }

    .ring-value {
        font-size: 0.9rem !important;
    }

    .result-item {
        margin-bottom: 16px;
    }

    .case-results {
        flex-wrap: wrap;
    }
}

/* Tablet specific fixes (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .trust-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-card {
        flex: 1 1 calc(50% - 20px);
        max-width: 200px;
    }

    .capability-section {
        margin-bottom: 40px;
    }

    .pipeline-horizontal {
        padding: 36px 20px;
        gap: 0;
    }
}

/* Large tablet fixes (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        max-width: 520px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .stat-card {
        flex: 1 1 100%;
    }

    .trust-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Ensure proper rendering on high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-grid {
        background-size: 60px 60px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: var(--shadow-primary);
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ================================
   Case Study KPI Ring Metrics
================================ */

.kpi-ring{
    position:relative;
    width:90px;
    height:90px;
    margin-bottom:12px;
}

.ring-svg{
    transform:rotate(-90deg);
}

/* background ring */

.ring-bg{
    fill:none;
    stroke:rgba(99, 102, 241, 0.1);
    stroke-width:8;
}

/* animated progress ring */

.ring-progress{
    fill:none;
    stroke:var(--accent-primary);
    stroke-width:8;
    stroke-linecap:round;

    stroke-dasharray:239;
    stroke-dashoffset:239;

    transition:stroke-dashoffset 1.8s cubic-bezier(.22,1,.36,1);
}

/* value inside circle */

.ring-value{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    font-size:18px;
    font-weight:700;
    font-family:var(--font-display);

    background:var(--accent-gradient);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* metric layout */

.result-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.result-label{
    font-size:14px;
    color:var(--text-secondary);
    margin-top:6px;
}

/* hover effect */

.case-card:hover .ring-progress{
    filter:brightness(1.2);
}
.nlp-ring{
    border:2px solid var(--accent-primary);
    border-radius:50%;
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--accent-primary);

    animation:nlpBeat 2s infinite ease-in-out;
}

/* glowing pulse */

.nlp-ring::before{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:50%;
    border:2px solid var(--accent-primary);
    opacity:.6;

    animation:nlpWave 2s infinite ease-out;
}

/* center text */

.nlp-ring .ring-value{
    font-weight:700;
    letter-spacing:1px;
}

/* =============================
   Beat animation
============================= */

@keyframes nlpBeat{

0%{
box-shadow:0 0 0 rgba(99,102,241,0.0);
transform:scale(1);
}

25%{
box-shadow:0 0 20px rgba(99,102,241,0.35);
transform:scale(1.05);
}

50%{
box-shadow:0 0 35px rgba(99,102,241,0.45);
transform:scale(1.08);
}

75%{
box-shadow:0 0 20px rgba(99,102,241,0.35);
transform:scale(1.05);
}

100%{
box-shadow:0 0 0 rgba(99,102,241,0.0);
transform:scale(1);
}

}


/* expanding disco wave */

@keyframes nlpWave{

0%{
transform:scale(1);
opacity:.6;
}

70%{
transform:scale(1.5);
opacity:0;
}

100%{
transform:scale(1.5);
opacity:0;
}

}



/* =========================
   NETWORK SHIELD DESIGN
========================= */

.shield-container{
    position:relative;
    width:300px;
    height:300px;
    margin:auto;
}

/* Center Core */
.shield-core{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:90px;
    height:90px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background: radial-gradient(circle,
        rgba(99,102,241,0.2),
        rgba(34,211,238,0.1));
    border:1px solid var(--border-light);
}

.shield-core i{
    font-size:2.5rem;
    color:var(--accent-primary);
    filter: drop-shadow(0 0 15px rgba(99,102,241,0.6));
}

/* Nodes */
.node{
    position:absolute;
    padding:8px 14px;
    border-radius:20px;
    font-size:0.90rem;
    font-weight:600;
    /* background:rgba(255,255,255,0.05); */
    background: rgba(115, 78, 219, 0.05);
    border:1px solid var(--border-light);
    backdrop-filter: blur(10px);
    color:var(--text-secondary);
    transition:0.3s;
}

.node:hover{
    background:var(--accent-primary);
    color:white;
    transform:scale(1.1);
}

/* Positions */
.top{ top:10px; left:50%; transform:translateX(-50%); }
.bottom{ bottom:10px; left:50%; transform:translateX(-50%); }
.left-top{ top:70px; left:0; }
.left-bottom{ bottom:70px; left:0; }
.right-top{ top:70px; right:0; }
.right-bottom{ bottom:70px; right:0; }

/* SVG Lines */
.network-lines{
    position:absolute;
    width:100%;
    height:100%;
}

/* Dotted animated lines */
.dotted-line{
    stroke: var(--accent-primary);
    stroke-width:2;
    stroke-dasharray:4 6;
    animation: flow 2s linear infinite;
    opacity:0.6;
}

/* Flow animation */
@keyframes flow{
    from{
        stroke-dashoffset:0;
    }
    to{
        stroke-dashoffset:20;
    }
}



/* pipe line */
/* =========================
   PREMIUM PIPELINE UI
========================= */

.pipeline-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 40px;
  border-radius: none  ;
  position: relative;
  background:var(--bg-secondary);
  overflow: hidden;
}

/* Background Glow */
.pipeline-horizontal::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 200%;
  background: var(--bg-secondary);
  animation: glowPulse 4s infinite ease-in-out;
}

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

/* NODE */
.pipeline-node {
  position: relative;
  padding: 18px 22px;
  border-radius: 14px;
  min-width: 110px;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
  z-index: 2;
}

.pipeline-node:hover {
  transform: translateY(-6px) scale(1.07);
  box-shadow:
    0 0 25px var(--node-color),
    0 0 60px rgba(99,102,241,0.2);
}

/* ICON */
.pipeline-node i {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: block;
}

/* TEXT */
.pipeline-node span {
  font-size: 0.7rem;
  font-weight: 600;
}

/* COLORS */
.source-node { --node-color:#6366f1; color:#a5b4fc; }
.process-node { --node-color:#8b5cf6; color:#c4b5fd; }
.vector-node { --node-color:#22d3ee; color:#67e8f9; }
.llm-node { --node-color:#ec4899; color:#f9a8d4; }

/* ARROW */
.pipeline-arrow {
  width: 40px;
  height: 30px;
  position: relative;
}

/* DOTTED FLOW */
.line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 6px;
  height: 2px;
  transform: translateY(-50%);
  background:--bg-secondary;
  background-size: 200% 100%;
  animation: flowDots 0.6s linear infinite;
}

/* ARROW HEAD */
.arrowhead {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #a78bfa;
}

/* FLOW ANIMATION */
@keyframes flowDots {
  from { background-position: 0 0; }
  to { background-position: 20px 0; }
}

/* HOVER DIM EFFECT */
.pipeline-node.dim {
  opacity: 0.25;
  filter: grayscale(0.5);
} 


/* =========================
   FOOTER INQUIRY INPUT
========================= */

.footer-inquiry {
    margin-top: 10px;
}

.footer-inquiry .input-group {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-base);
}

.footer-inquiry .input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99,102,241,0.2);
}

/* INPUT */
.footer-inquiry input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.footer-inquiry input::placeholder {
    color: var(--text-muted);
}

/* BUTTON */
.footer-inquiry button {
    padding: 12px 16px;
    border: none;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.footer-inquiry button:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

/* ICON */
.footer-inquiry button i {
    font-size: 1rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .footer-inquiry {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .footer-inquiry .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .footer-inquiry input {
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }

    .footer-inquiry button {
        width: 100%;
        justify-content: center;
    }
}