/* =========================================================================
   xcPEP PAGE - Overrides & Page-Specific Components
   Inherits: style.css → theme-xcpep.css → desktop-industry.css
   ========================================================================= */

/* ── Section Header: remove narrow constraint for xcPEP ── */
.xcpep-page .section-header {
    max-width: none;
}
.xcpep-page .section-header p {
    max-width: none;
}

/* ── Faster reveal - cards appear sooner, less delay ── */
.xcpep-page .reveal {
    transform: translateY(16px);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   PREMIUM GLASS SYSTEM - xcPEP Page-Specific Overrides
   Enhances the base .glass-card from desktop-industry.css
   ========================================================================= */

/* ── Light Mode: Frosted Apple-like depth ── */
[data-theme="light"] .xcpep-page .glass-card {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.55) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02),
        0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .xcpep-page .glass-card:hover {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.7) 100%);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.06);
}

/* ── Dark Mode: Deeper glass with richer depth ── */
[data-theme="dark"] .xcpep-page .glass-card {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .xcpep-page .glass-card:hover {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.025) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(59, 130, 246, 0.04);
}

/* ===================== HERO OVERRIDES ===================== */
#hero-section.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: max(120px, 10vh) 0 4rem;
    background: var(--bg-body);
    overflow: hidden;
    position: relative;
}

/* Animated gradient sweep behind hero */
#hero-section.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%,
        rgba(59, 130, 246, 0.04) 0%,
        transparent 50%);
    animation: heroGradientSweep 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] #hero-section.hero::after {
    background: radial-gradient(ellipse at 30% 50%,
        rgba(59, 130, 246, 0.06) 0%,
        transparent 50%);
}

@keyframes heroGradientSweep {
    0%   { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(5%, -3%) rotate(2deg); }
    66%  { transform: translate(-3%, 5%) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Kill mesh-bg pseudo-element blobs - xcPEP hero is clean/flat */
/* Note: ::after is now the animated gradient sweep, only kill ::before */
#hero-section.mesh-bg::before {
    display: none;
}

/* Override hero-grid columns - match production proportions */
#hero-section .hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

/* Hero CTAs - horizontal row, matching production */
#hero-section .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ── Video Tagline (above video, desktop only) ── */
.hero-video-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.8rem;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ── Video Container (clean, flat - no 3D tilt) ── */
.xc-hud-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xc-hud-container {
    position: relative;
    width: 92%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #030508;
    box-shadow:
        0 24px 60px -12px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

[data-theme="light"] .xc-hud-container {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

.xc-hud-container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 70px -12px rgba(var(--accent-primary-rgb), 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.xc-hud-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.4) 120%);
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .xc-hud-vignette {
    background: none;
}

.xc-hud-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px 5px rgba(var(--accent-primary-rgb), 0.5);
    animation: xc-scanLine 3.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

[data-theme="light"] .xc-hud-scanner { display: none; }

@keyframes xc-scanLine {
    0% { top: -10%; opacity: 0; }
    15% { opacity: 1; }
    40% { top: 110%; opacity: 1; }
    50% { top: 110%; opacity: 0; }
    100% { top: 110%; opacity: 0; }
}
/* ── Value Prop Mini-Cards (below video) ── */
.hero-props-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-top: 1.2rem;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
}

.hero-prop {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: var(--glass-bg);
    border: var(--glass-border-subtle);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease;
}

.hero-prop:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.2);
}

.hero-prop i {
    color: var(--accent-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0.9;
}

.hero-prop div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-prop strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.hero-prop span {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-weight: 400;
}

[data-theme="light"] .hero-prop {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── Hero Pillar Cards (4-column grid - inside container-hook) ── */
.hero-pillars-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding-top: 0;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-pillar.glass-card {
    padding: 1.8rem 1.4rem;
}

.hero-pillar h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

/* Hero readability */
.hero-sub {
    color: var(--text-body);
    line-height: 1.7;
}

.hero-pillar .card-text {
    color: var(--text-body);
    font-size: 0.88rem;
    line-height: 1.5;
}


/* ===================== FEATURES - Page-Specific Overrides ===================== */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 4rem;
}

/* Feature image cards */
.xc-feature-img {
    padding: 0 !important;
    overflow: hidden;
}

.xc-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.xc-feature-img:hover img {
    transform: scale(1.03);
}

/* Feature bullets - keep page-specific */
.feature-bullets {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.feature-bullets i {
    color: var(--accent-primary);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* 2-column bento override */
.xc-bento-2col {
    grid-template-columns: 1fr 1fr;
}

/* Bento card content */
.bento-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.bento-visual {
    margin-top: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--glass-border-subtle);
}

.bento-visual img {
    width: 100%;
    display: block;
}

/* API Terminal Mockup */
.api-terminal-mockup {
    margin-top: auto;
    background: #0f172a;
    border-radius: 12px;
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #334155;
}

.api-code-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.api-line { color: #e2e8f0; }

.api-line.response {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.method {
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.method.post {
    background: rgba(var(--accent-primary-rgb), 0.2);
    color: var(--accent-secondary);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
}

.api-json {
    color: #94a3b8;
    line-height: 1.4;
    padding-left: 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.status { color: #4ade80; font-weight: 700; }
.status.pulse { animation: status-glow 2s infinite; }

@keyframes status-glow {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.7; text-shadow: 0 0 12px rgba(74, 222, 128, 1); }
}

[data-theme="dark"] .api-terminal-mockup {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* ── Enhanced Glass: Section 2 Cards ── */
/* Dark mode: deeper glass with subtle inner glow */
[data-theme="dark"] .bento-card.glass-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bento-card.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .xc-feature-img.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Light mode: subtle, barely-there cards (split-grids above have no cards) */
[data-theme="light"] .bento-card.glass-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .bento-card.glass-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .xc-feature-img.glass-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Apply Intense Cyber-Glassmorphism to all secondary section cards */
[data-theme="dark"] .pillar-card,
[data-theme="dark"] .db-card,
[data-theme="dark"] .uc-card,
[data-theme="dark"] .pcb-card,
[data-theme="dark"] .ai-node,
[data-theme="dark"] .ai-output-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pillar-card:hover,
[data-theme="dark"] .db-card:hover,
[data-theme="dark"] .uc-card:hover,
[data-theme="dark"] .pcb-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .api-terminal-mockup {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===================== PILLARS ===================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.pillar-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.35s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-hover);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary-soft);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(10, 88, 202, 0.12);
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 8px 24px var(--accent-primary-glow);
}

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

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

/* ===================== WORKFLOW (SCROLL-DRIVEN STICKY) ===================== */

/* ── Mobile accordions: hidden on desktop ── */
.wf-mobile-accordion { display: none; }
.feat-mobile-accordion { display: none; }

/* ── Outer section: subtle gradient background for depth ── */
.wf-scroll-section {
    position: relative;
    background: var(--bg-body);
}

[data-theme="dark"] .wf-scroll-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(8, 12, 24, 1) 0%, #000 70%);
}

/* ── Scroll spacer: tall container to create scroll range ── */
.wf-scroll-spacer {
    position: relative;
    /* height set by JS: 100vh * numSteps */
}

/* ── Content panel: pinned via JS (not CSS sticky - parent overflow chains break it) ── */
.wf-sticky {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(64px + 48px + 1rem) 0 2rem;
    box-sizing: border-box;
    background: var(--bg-body);
    z-index: 10;
}

[data-theme="dark"] .wf-sticky {
    background: #000;
}

/* JS adds .pinned when section is in scroll range */
.wf-sticky.pinned {
    position: fixed;
    top: 0;
    left: 0;
}

/* JS adds .past when user scrolls past the end */
.wf-sticky.past {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
}

/* ── Split layout: steps left, image right ── */
.wf-split {
    display: grid;
    grid-template-columns: 0.38fr 0.62fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}

/* ── Left: Vertical step cards ── */
.wf-steps-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
}

/* ── Vertical connecting track ── */
/* Math: dot center = step-padding-left(0.8rem) + dot-radius(23px) = 0.8rem + 23px
   Track is 3px wide, so left = center - 1.5px = calc(0.8rem + 21.5px) */
.wf-vtrack {
    position: absolute;
    left: calc(0.8rem + 21.5px);
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 2px;
    z-index: 0;
}

[data-theme="dark"] .wf-vtrack {
    background: rgba(255, 255, 255, 0.06);
}

.wf-vtrack-fill {
    width: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0%;
    box-shadow:
        0 0 8px 1px rgba(var(--accent-primary-rgb), 0.35),
        0 0 20px 3px rgba(var(--accent-primary-rgb), 0.15);
    position: relative;
}

/* Leading edge glow dot on the fill */
.wf-vtrack-fill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow:
        0 0 6px 2px rgba(var(--accent-primary-rgb), 0.6),
        0 0 16px 4px rgba(var(--accent-primary-rgb), 0.25);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ── Each step row (always a subtle card) ── */
.wf-step {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem 1.5rem 1.2rem 0.8rem;
    margin: 0.25rem 0;
    position: relative;
    z-index: 1;
    cursor: default;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .wf-step {
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
}

/* ── Step dot (numbered circle) ── */
.wf-step-dot {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: 2.5px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .wf-step-dot {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-body, #0a0f1c);
}

.wf-step-dot span {
    font-family: var(--font-mono, 'Roboto Mono', monospace);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* ── Step body (title + description - always visible per user decision) ── */
.wf-step-body {
    padding-top: 0;
    opacity: 0.45;
    transition: opacity 0.4s ease;
}

.wf-step-body h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.wf-step-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 0;
}

/* ── Active step: prominent glassmorphic highlight ── */
.wf-step.active {
    background: rgba(var(--accent-primary-rgb), 0.06);
    border-color: rgba(var(--accent-primary-rgb), 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(var(--accent-primary-rgb), 0.06);
}

[data-theme="dark"] .wf-step.active {
    background: rgba(var(--accent-primary-rgb), 0.08);
    border-color: rgba(var(--accent-primary-rgb), 0.2);
    box-shadow:
        0 4px 30px rgba(var(--accent-primary-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wf-step.active .wf-step-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 5px rgba(var(--accent-primary-rgb), 0.12),
        0 4px 16px rgba(var(--accent-primary-rgb), 0.25);
    transform: scale(1.1);
}

[data-theme="dark"] .wf-step.active .wf-step-dot {
    box-shadow:
        0 0 0 5px rgba(var(--accent-primary-rgb), 0.18),
        0 6px 20px rgba(var(--accent-primary-rgb), 0.35),
        0 0 30px rgba(var(--accent-primary-rgb), 0.1);
}

.wf-step.active .wf-step-dot span {
    color: #fff;
}

.wf-step.active .wf-step-body {
    opacity: 1;
}

/* ── Completed step (before active) ── */
.wf-step.completed .wf-step-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.wf-step.completed .wf-step-dot span {
    color: #fff;
}

.wf-step.completed .wf-step-body {
    opacity: 0.5;
}

/* ── Right: Image panel - glassmorphic device frame ── */
.wf-img-panel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    align-self: stretch; /* fill the grid row height */
    min-height: 400px;
}

[data-theme="dark"] .wf-img-panel {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Device chrome title bar */
.wf-img-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 5;
    /* Three dots */
    background-image:
        radial-gradient(circle 5px at 16px 18px, #ff5f56 100%, transparent 100%),
        radial-gradient(circle 5px at 34px 18px, #ffbd2e 100%, transparent 100%),
        radial-gradient(circle 5px at 52px 18px, #27c93f 100%, transparent 100%);
    background-repeat: no-repeat;
}

[data-theme="dark"] .wf-img-panel::before {
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    background-image:
        radial-gradient(circle 5px at 16px 18px, rgba(255, 95, 86, 0.7) 100%, transparent 100%),
        radial-gradient(circle 5px at 34px 18px, rgba(255, 189, 46, 0.7) 100%, transparent 100%),
        radial-gradient(circle 5px at 52px 18px, rgba(39, 201, 63, 0.7) 100%, transparent 100%);
}

.wf-img {
    position: absolute;
    top: 36px; /* below title bar */
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

.wf-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.wf-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* ===================== XCPROC DATABASES (MASTER-DETAIL) ===================== */
.db-master-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Tab Bar (horizontal) */
.db-sidebar {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .db-sidebar {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.db-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.3rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

[data-theme="dark"] .db-tab {
    background: transparent;
    border-color: transparent;
    border-bottom-color: transparent;
}

.db-tab i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    width: 20px;
    text-align: center;
}

.db-tab:hover {
    color: var(--text-heading);
    background: rgba(var(--accent-primary-rgb), 0.03);
    transform: none;
}

.db-tab.active {
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--accent-primary);
    box-shadow: none;
    color: var(--accent-primary);
    transform: none;
}

.db-tab.active i {
    color: var(--accent-primary);
}

/* Dark Mode Tab Bar */
[data-theme="dark"] .db-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

[data-theme="dark"] .db-tab.active {
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--accent-primary);
    box-shadow: none;
    color: #fff;
}

[data-theme="dark"] .db-tab.active i {
    color: var(--accent-secondary);
}

/* ── Accordion elements: hidden on desktop ── */
.db-acc-chevron { display: none; }
.db-acc-body { display: none; }

/* Content Area */
.db-content {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    min-height: 500px;
}

[data-theme="dark"] .db-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.db-panel {
    display: none;
}

.db-panel.active {
    display: block;
}

.db-panel h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.db-panel p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}

.db-img-wrap {
    width: 100%;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding-top: 36px; /* space for device chrome title bar */
}

/* Device chrome title bar on database images */
.db-img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(240, 240, 240, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 2;
    background-image:
        radial-gradient(circle 5px at 16px 18px, #ff5f56 100%, transparent 100%),
        radial-gradient(circle 5px at 34px 18px, #ffbd2e 100%, transparent 100%),
        radial-gradient(circle 5px at 52px 18px, #27c93f 100%, transparent 100%);
    background-repeat: no-repeat;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

[data-theme="dark"] .db-img-wrap::before {
    background-color: rgba(30, 35, 50, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    background-image:
        radial-gradient(circle 5px at 16px 18px, #ff5f56 100%, transparent 100%),
        radial-gradient(circle 5px at 34px 18px, #ffbd2e 100%, transparent 100%),
        radial-gradient(circle 5px at 52px 18px, #27c93f 100%, transparent 100%);
    background-repeat: no-repeat;
}

[data-theme="dark"] .db-img-wrap {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.db-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.db-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.db-icon.teal {
    background: var(--accent-teal-soft);
    color: var(--accent-teal);
}

.db-icon.violet {
    background: var(--accent-violet-soft);
    color: var(--accent-violet);
}

.db-icon.blue {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
}

.db-icon.emerald {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
}

.db-icon.amber {
    background: var(--accent-amber-soft);
    color: var(--accent-amber);
}

.db-icon.rose {
    background: var(--accent-rose-soft);
    color: var(--accent-rose);
}

.db-icon.indigo {
    background: var(--accent-indigo-soft);
    color: var(--accent-indigo);
}

/* Removed .db-card.db-custom column span */

.db-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
}

.db-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   AI FLOW TIMELINE (Legacy-style clean 3-card flow)
   ═══════════════════════════════════════════════════════ */
.ai-flow-timeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.ai-flow-card {
    flex: 1;
    padding: 2rem 1.8rem;
    border-radius: var(--radius-lg, 20px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    min-width: 0;
}

.ai-flow-card h4 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading, var(--text-1));
    margin: 0;
    line-height: 1.3;
}

.ai-flow-card p {
    font-size: 0.9rem;
    color: var(--text-muted, var(--text-2));
    line-height: 1.5;
    margin: 0;
}

/* Source card accent */
.ai-flow-source {
    border-top: 3px solid var(--accent-primary, #3b82f6);
}

/* Hub card accent */
.ai-flow-hub {
    border-top: 3px solid #8b5cf6;
}

/* Destinations card */
.ai-flow-dest {
    border-top: 3px solid #10b981;
}

/* Card icons */
.ai-flow-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--accent-primary-soft, rgba(59, 130, 246, 0.1));
    color: var(--accent-primary, #3b82f6);
    flex-shrink: 0;
}

.ai-flow-card-icon.hub-icon {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
}

/* Data type tags */
.ai-flow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.4rem;
}

.ai-flow-tag {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.3px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
    white-space: nowrap;
}

[data-theme="light"] .ai-flow-tag {
    background: rgba(var(--accent-primary-rgb), 0.08);
    color: var(--blue-deep);
    border-color: rgba(var(--accent-primary-rgb), 0.2);
}

/* Destination grid (2×2) */
.ai-dest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 0.5rem;
    width: 100%;
}

.ai-dest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: var(--glass-card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--glass-card-border, rgba(255, 255, 255, 0.06));
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-heading, var(--text-1));
    transition: all 0.3s ease;
}

.ai-dest-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.ai-dest-item i {
    font-size: 1rem;
    color: #10b981;
    flex-shrink: 0;
}

.ai-dest-item span {
    white-space: nowrap;
}

/* Connector arrows */
.ai-flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    position: relative;
}

.ai-flow-arrow {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-primary, #3b82f6);
    opacity: 0.6;
    line-height: 1;
}

.ai-arrow-mobile {
    display: none;
}

.ai-flow-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary, #3b82f6);
    opacity: 0;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Mobile: Stack vertically */
@media (max-width: 900px) {
    .ai-flow-timeline {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .ai-flow-connector {
        width: auto;
        height: 50px;
        flex-direction: column;
    }

    .ai-arrow-desktop {
        display: none;
    }

    .ai-arrow-mobile {
        display: block;
    }

    .ai-flow-card {
        padding: 1.5rem 1.2rem;
    }
    
    .ai-dest-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ai-dest-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-flow-card h4 {
        font-size: 1.05rem;
    }
}

/* ===================== AI NEXUS - ULTRA-PREMIUM DATA CONSTELLATION ===================== */
.ai-flow-timeline { display: none; }
.ai-nexus-mobile { display: none; }

.ai-nexus {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 3rem;
    width: 100%;
    min-height: 380px;
    position: relative;
}

/*
 * 4-COLUMN LAYOUT: Card1(16%) + Hub(22%) + Streams(24%) + Destinations(38%) = 100%
 * Connector is a fixed-width element between Card1 and Hub, not counted as a column.
 */

/* Column 1: Card 1 */
.ai-nexus-card1 {
    flex: 0 0 25%;
}

/* Column 2: Hub (more content, wider) */
.ai-nexus-hub-node {
    flex: 0 0 25%;
}

/* Column 3: SVG Streams - defined later */
/* Column 4: Destinations - defined later */

/* Custom card style - NOT inheriting from global .glass-card */
.ai-nexus-node {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.ai-nexus-node:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

/* Light mode overrides for source nodes */
[data-theme="light"] .ai-nexus-node {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(59, 130, 246, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .ai-nexus-node:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.1);
}

.ai-nexus-node h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.3;
}

.ai-nexus-node p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: none;
}

.ai-nexus-node-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
    color: #3b82f6;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.08);
}

/* ── Connector between cards ── */
.ai-nexus-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    flex-shrink: 0;
    position: relative;
}
.ai-nexus-connector-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
    margin-left: -2px;
}

/* ── Hub node - premium glow ── */
.ai-nexus-hub-node {
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.03)) !important;
    position: relative;
    overflow: visible;
}
[data-theme="light"] .ai-nexus-hub-node {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(255, 255, 255, 0.9)) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.ai-nexus-hub-node::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), transparent 60%);
    z-index: 0;
    animation: nexusGlow 3s ease-in-out infinite;
    pointer-events: none;
}
.ai-nexus-hub-node > * { position: relative; z-index: 1; }

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

/* #3: Hub breathing pulse - feels alive */
.ai-nexus-hub-node {
    animation: hubBreathe 4s ease-in-out infinite;
}
@keyframes hubBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

/* #4: Connector dot traveling animation */
.ai-nexus-connector-dot {
    animation: dotTravel 2.5s ease-in-out infinite;
}
@keyframes dotTravel {
    0% { transform: translateX(-30px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(5px); opacity: 0; }
}

/* #5: Destination cards stagger entrance */
.ai-nexus-dest-card {
    animation: destSlideIn 0.6s ease-out both;
}
.ai-nexus-dest-card:nth-child(1) { animation-delay: 0.1s; }
.ai-nexus-dest-card:nth-child(2) { animation-delay: 0.25s; }
.ai-nexus-dest-card:nth-child(3) { animation-delay: 0.4s; }
.ai-nexus-dest-card:nth-child(4) { animation-delay: 0.55s; }

@keyframes destSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* #6: Stream path drawing animation */
.ai-nexus-svg path[id^="stream"] {
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: drawStream 1.5s ease-out forwards;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}
#stream1 { animation-delay: 0s; }
#stream2 { animation-delay: 0.15s; }
#stream3 { animation-delay: 0.3s; }
#stream4 { animation-delay: 0.45s; }

@keyframes drawStream {
    to { stroke-dashoffset: 0; }
}

/* #2: Interactive stream highlighting - JS adds .stream-highlight-N to .ai-nexus */
.ai-nexus.stream-active .ai-nexus-svg path[id^="stream"] { opacity: 0.12; transition: opacity 0.3s ease; }
.ai-nexus.stream-active .ai-nexus-svg path:not([id]) { opacity: 0.08; transition: opacity 0.3s ease; }

.ai-nexus.stream-highlight-1 .ai-nexus-svg #stream1 { opacity: 0.9 !important; stroke-width: 3.5; }
.ai-nexus.stream-highlight-2 .ai-nexus-svg #stream2 { opacity: 0.9 !important; stroke-width: 3.5; }
.ai-nexus.stream-highlight-3 .ai-nexus-svg #stream3 { opacity: 0.9 !important; stroke-width: 3.5; }
.ai-nexus.stream-highlight-4 .ai-nexus-svg #stream4 { opacity: 0.9 !important; stroke-width: 3.5; }

/* Dashed overlay also highlights */
.ai-nexus.stream-highlight-1 .ai-nexus-svg path:nth-of-type(5) { opacity: 0.5 !important; }
.ai-nexus.stream-highlight-2 .ai-nexus-svg path:nth-of-type(6) { opacity: 0.5 !important; }
.ai-nexus.stream-highlight-3 .ai-nexus-svg path:nth-of-type(7) { opacity: 0.5 !important; }
.ai-nexus.stream-highlight-4 .ai-nexus-svg path:nth-of-type(8) { opacity: 0.5 !important; }

/* Highlighted endpoint glow dot */
.ai-nexus.stream-active .ai-nexus-svg circle[cx="300"] { opacity: 0.1 !important; }
.ai-nexus.stream-highlight-1 .ai-nexus-svg circle[cy="35"][cx="300"] { opacity: 0.8 !important; }
.ai-nexus.stream-highlight-2 .ai-nexus-svg circle[cy="155"][cx="300"] { opacity: 0.8 !important; }
.ai-nexus.stream-highlight-3 .ai-nexus-svg circle[cy="265"][cx="300"] { opacity: 0.8 !important; }
.ai-nexus.stream-highlight-4 .ai-nexus-svg circle[cy="365"][cx="300"] { opacity: 0.8 !important; }

/* Hub icon - clean rounded square with pulse ring */
.hub-glow {
    overflow: visible;
}

/* Larger, more prominent hub icon */
.ai-nexus-hub-node .ai-nexus-node-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(96, 165, 250, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Pulse ring - matches rounded square shape */
.ai-nexus-orbit {
    position: absolute;
    inset: -6px;
    border-radius: 18px;  /* Icon 14px + 4px offset = soft match */
    border: 1.5px solid rgba(59, 130, 246, 0.15);
    animation: ringPulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* Second ring - larger, offset timing */
.ai-nexus-orbit::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 22px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    animation: ringPulse 3s ease-in-out infinite 1.5s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.06); }
}


/* Enhanced hub glow - visible in light mode */
[data-theme="light"] .ai-nexus-hub-node {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12), 0 4px 16px rgba(59, 130, 246, 0.06);
}
[data-theme="light"] .ai-nexus-hub-node::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.08), transparent 60%);
}

/* ── Column 3: SVG Streams ── */
.ai-nexus-streams {
    flex: 0 0 30%;
    height: 380px;
    display: flex;
    align-items: center;
    margin-left: -7rem;
    overflow: visible;
}
.ai-nexus-svg { width: 100%; height: 100%; overflow: visible; }

/* ── Column 4: Destinations - Individual Cards ── */
.ai-nexus-destinations {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    height: 380px;           /* Match SVG streams height exactly */
    position: relative;
}

/* Eyebrow - positioned at top, doesn't affect card distribution */
.ai-nexus-dest-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3b82f6;
    opacity: 0.7;
    margin-bottom: 0;
    padding-left: 0.2rem;
    position: absolute;
    top: -1.4rem;
    left: 0;
}

.ai-nexus-dest-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Cards distribute evenly = aligns with SVG endpoints */
    height: 100%;                   /* Fill the 380px */
}

/* Individual destination card - each one standalone */
.ai-nexus-dest-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
[data-theme="light"] .ai-nexus-dest-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ai-nexus-dest-card:hover {
    transform: translateX(4px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    background: rgba(59, 130, 246, 0.06);
}
[data-theme="light"] .ai-nexus-dest-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.08);
}

/* Shimmer sweep */
.ai-nexus-dest-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.04), transparent);
    animation: shimmerSweep 6s ease-in-out infinite;
    animation-delay: var(--shimmer-delay, 0s);
}
@keyframes shimmerSweep {
    0% { left: -100%; }
    40%, 100% { left: 200%; }
}

/* Left accent bar */
.ai-nexus-dest-card::after {
    content: '';
    position: absolute;
    top: 20%; bottom: 20%; left: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #3b82f6, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ai-nexus-dest-card:hover::after { opacity: 0.6; }

/* Icon wrap - uses per-card blue gradient */
.ai-nexus-dest-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--icon-from, #3b82f6) 20%, transparent),
        color-mix(in srgb, var(--icon-to, #60a5fa) 8%, transparent));
    color: var(--icon-from, #3b82f6);
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--icon-from, #3b82f6) 12%, transparent);
    transition: all 0.3s ease;
}
.ai-nexus-dest-card:hover .ai-nexus-dest-icon-wrap {
    box-shadow: 0 0 12px color-mix(in srgb, var(--icon-from, #3b82f6) 25%, transparent);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--icon-from, #3b82f6) 28%, transparent),
        color-mix(in srgb, var(--icon-to, #60a5fa) 12%, transparent));
}

/* Title - direct child of card now */
.ai-nexus-dest-card h5 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    white-space: nowrap;
}

/* ── Responsive: 4-column system ── */
/* Default: Card1(25%) + Hub(25%) + Streams(30%) + Destinations(20%) = 100% */

/* 27-32" ultrawide - cap total width */
@media (min-width: 1921px) {
    .ai-nexus { max-width: 1600px; margin-left: auto; margin-right: auto; }
}

/* 13-14" small laptop */
@media (max-width: 1366px) {
    .ai-nexus-card1    { flex: 0 0 22%; }
    .ai-nexus-hub-node { flex: 0 0 24%; }
    .ai-nexus-streams  { flex: 0 0 30%; }
    .ai-nexus-destinations { flex: 0 0 24%; }
    /* 22 + 24 + 30 + 24 = 100% */
    .ai-nexus-node { padding: 1.1rem 0.9rem; }
    .ai-nexus-node h4 { font-size: 0.88rem; }
    .ai-nexus-dest-card { padding: 0.75rem 0.9rem; }
}

/* 12-13" ultrabook */
@media (max-width: 1024px) {
    .ai-nexus-card1    { flex: 0 0 20%; }
    .ai-nexus-hub-node { flex: 0 0 22%; }
    .ai-nexus-streams  { flex: 0 0 30%; }
    .ai-nexus-destinations { flex: 0 0 28%; }
    /* 20 + 22 + 30 + 28 = 100% */
    .ai-nexus-streams { height: 340px; }
    .ai-nexus-dest-card { padding: 0.65rem 0.8rem; gap: 0.7rem; }
    .ai-nexus-dest-icon-wrap { width: 34px; height: 34px; font-size: 0.9rem; }
    .ai-nexus-dest-card h5 { font-size: 0.8rem; }
    .ai-nexus-node { padding: 1rem 0.8rem; }
    .ai-nexus-node h4 { font-size: 0.82rem; }
    .ai-nexus-node p { font-size: 0.72rem; }
}

/* Below 900px - switch to mobile */
@media (max-width: 900px) {
    .ai-nexus { display: none !important; }
    .ai-nexus-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 2rem;
    }
    .ai-nexus-mobile .ai-nexus-node { width: 100%; }
    .ai-nexus-mobile-arrow { font-size: 1.5rem; color: var(--accent-primary); opacity: 0.5; padding: 0.5rem 0; }
    .ai-nexus-mobile-dest { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; width: 100%; }
}


@media (max-width: 480px) {
    .ai-nexus-mobile-dest { grid-template-columns: 1fr; }
}

/* ── Mobile Accordion for DB Section ── */
@media (max-width: 900px) {
    .db-master-detail {
        flex-direction: column;
    }

    /* Hide the desktop content panel on mobile */
    .db-content {
        display: none !important;
    }

    .db-sidebar {
        width: 100%;
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
        gap: 0.4rem;
    }

    .db-tab {
        white-space: normal;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-md);
        border-left: none;
        transform: none !important; /* no translateX on mobile */
    }

    .db-tab.active {
        border-left: 4px solid var(--accent-primary);
        transform: none !important;
    }

    [data-theme="dark"] .db-tab.active {
        border-left: 4px solid var(--accent-primary);
    }

    /* Show chevron on mobile */
    .db-acc-chevron {
        display: inline-block !important;
        margin-left: auto;
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        color: var(--text-muted);
    }

    .db-tab.active .db-acc-chevron {
        transform: rotate(180deg);
        color: var(--accent-primary);
    }

    /* Accordion body: show when previous sibling tab is active */
    .db-acc-body {
        display: none;
        overflow: hidden;
    }

    .db-tab.active + .db-acc-body {
        display: block !important;
        animation: accSlideIn 0.35s ease forwards;
    }

    @keyframes accSlideIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .db-acc-body p {
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.55;
        padding: 0.8rem 1rem 0.6rem;
        margin: 0;
    }

    .db-acc-img {
        padding: 0 0.5rem 1rem;
    }

    .db-acc-img img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
        object-fit: contain;
    }

    /* No device chrome on mobile accordion images */
    .db-acc-img::before {
        display: none;
    }
}

.db-card:nth-child(4)::before {
    background: var(--accent-emerald);
}

.db-card:nth-child(5)::before {
    background: var(--accent-amber);
}

.db-card:nth-child(6)::before {
    background: var(--accent-rose);
}

.db-card:nth-child(7)::before {
    background: var(--accent-indigo);
}

/* ===================== COST MODEL LIBRARY ===================== */


.cm-highlight-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-md);
    align-items: flex-start;
    border-left: 4px solid var(--accent-primary);
    margin-top: 3rem;
}

.cm-hl-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cm-highlight-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.cm-highlight-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    max-width: none;
}

/* ===================== COST MODEL LIBRARY TABLE ===================== */
.proc-table-container {
    width: 100%;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--shadow-sm);
}

.proc-table-header {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    padding: 1.2rem 2rem;
    border-bottom: var(--card-border);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.proc-row {
    display: flex;
    border-bottom: var(--card-border);
    transition: background-color 0.2s ease;
}

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

.proc-row:hover {
    background: var(--accent-primary-soft);
}

.proc-col-group {
    width: 35%;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--text-heading);
    border-right: var(--card-border);
    display: flex;
    align-items: center;
}

.proc-col-list {
    width: 65%;
    padding: 1.5rem 2rem;
}

.proc-accordion {
    width: 100%;
}

.proc-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.95rem;
    user-select: none;
}

.proc-accordion summary::-webkit-details-marker {
    display: none;
}

.proc-acc-title {
    opacity: 0.9;
}

.proc-acc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.proc-accordion[open] .proc-acc-icon {
    background: var(--accent-primary);
    color: white;
    transform: rotate(180deg);
}

.proc-accordion .close-icon {
    display: none;
}

.proc-accordion[open] .expand-icon {
    display: none;
}

.proc-accordion[open] .close-icon {
    display: block;
}

.proc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.proc-tag {
    padding: 0.4rem 1rem;
    background: var(--glass-bg-strong);
    border: var(--glass-border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all 0.2s ease;
    cursor: default;
}

.proc-tag:hover {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    border-color: rgba(10, 88, 202, 0.2);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .proc-table-header {
        display: none;
    }

    .proc-row {
        flex-direction: column;
    }

    .proc-col-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
        padding: 1rem 1.2rem;
        font-size: 0.88rem;
    }

    .proc-col-list {
        width: 100%;
        padding: 1rem 1.2rem;
    }

    .proc-accordion summary {
        font-size: 0.82rem;
    }

    .proc-tag {
        padding: 0.3rem 0.75rem;
        font-size: 0.72rem;
    }

}

/* ── AI Destination Cards (kept - used by current HTML) ── */

.ai-dest-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px;
    flex-shrink: 0;
}

.ai-dest-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(8, 112, 255, 0.2);
}

.ai-dest-header h4 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-dest-list {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
}

.ai-dest-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: default;
    width: 100%;
}

.ai-dest-card:hover {
    transform: translateX(5px);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(8, 112, 255, 0.1);
}

.dest-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dest-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dest-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dest-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dest-icon.violet {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dest-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
}

@media (max-width: 992px) {



    .data-particle {
        top: -30px;
        left: 0;
        width: 100%;
        height: 30px;
        background: linear-gradient(180deg, transparent, var(--accent-primary), transparent);
        animation: flowDown 2s infinite linear;
    }

    @keyframes flowDown {
        0% {
            top: -30px;
        }

        100% {
            top: 100%;
        }
    }

    .ai-flow-branches {
        display: none;
    }

    .ai-dest-list {
        height: auto;
        gap: 1rem;
        width: 100%;
    }
}

/* ===================== AI PCB HARDWARE ===================== */
.ai-pcb-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ai-pcb-text h2 {
    margin-bottom: 1rem;
}

.ai-pcb-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ai-pcb-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ai-pcb-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-body);
}

.ai-pcb-list li i {
    color: var(--accent-tertiary);
    margin-top: 3px;
    flex-shrink: 0;
}

.pcb-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.pcb-scan-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pcb-scan-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-tertiary);
    box-shadow: 0 0 8px var(--accent-tertiary);
    animation: pulse 1.5s infinite;
}

.pcb-scan-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-tertiary);
    letter-spacing: 1px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.pcb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pcb-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--glass-bg-strong);
    border: var(--glass-border-subtle);
    text-align: center;
}

.pcb-component i {
    font-size: 1.3rem;
}

.pcb-component span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.pcb-component.identified {
    border-color: rgba(13, 148, 136, 0.3);
    background: rgba(13, 148, 136, 0.05);
}

.pcb-component.identified i {
    color: var(--accent-teal);
}

.pcb-component.scanning {
    border-color: rgba(10, 88, 202, 0.3);
    background: rgba(10, 88, 202, 0.05);
    animation: pulse 1.2s infinite;
}

.pcb-component.scanning i {
    color: var(--accent-primary);
}

.pcb-status {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.pcb-status .result {
    color: var(--accent-tertiary);
}

.pcb-status .cmd {
    color: var(--accent-primary);
}

/* ===================== USE CASES ===================== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Default: each card spans 2 of 6 cols = 3 per row */
.uc-card {
    grid-column: span 2;
}

/* Last row with 2 remaining cards: span 3 each = 50-50 */
.use-cases-grid .uc-card:nth-child(7) {
    grid-column: 1 / span 3;
}

.use-cases-grid .uc-card:nth-child(8) {
    grid-column: 4 / span 3;
}

.uc-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow */
.uc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 159, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.uc-card:hover::before {
    opacity: 1;
}

.uc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

/* Dark mode: blue accent glow on use-case hover */
[data-theme="dark"] .uc-card:hover {
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* (Removed: uc-icon CSS - now using card-icon from desktop-industry.css) */
.uc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.uc-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: none;
}

/* ===================== VS LEGACY ===================== */
.vs-table-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 3rem;
    padding: 0;
}

.vs-col {
    padding: 2.5rem;
}

.vs-xcpep {
    background: linear-gradient(135deg, rgba(10, 88, 202, 0.04) 0%, rgba(10, 88, 202, 0.01) 100%);
}

.vs-legacy {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

.vs-col-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vs-col-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.vs-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.xcpep-badge {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    border: 1px solid rgba(10, 88, 202, 0.2);
}

.legacy-badge {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.vs-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vs-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.vs-xcpep .vs-list li i {
    color: var(--accent-tertiary);
    font-size: 0.85rem;
}

.vs-legacy .vs-list li i {
    color: var(--accent-rose);
    font-size: 0.85rem;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    background: linear-gradient(180deg, transparent, rgba(10, 88, 202, 0.1), transparent);
}

.vs-divider span {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.4rem 0.7rem;
    border-radius: 100px;
}

.vs-note {
    text-align: center;
    max-width: none;
    margin: 2rem auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* Glassmorphic CTA Button */
.vs-cta-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.vs-cta-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.vs-cta-glass:hover {
    background: rgba(var(--accent-primary-rgb), 0.14);
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    box-shadow: 0 8px 32px rgba(var(--accent-primary-rgb), 0.15),
                0 0 0 1px rgba(var(--accent-primary-rgb), 0.1);
    transform: translateY(-2px);
    color: var(--accent-primary);
    text-decoration: none;
}

.vs-cta-glass:hover::before {
    opacity: 1;
}

.vs-cta-glass i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.vs-cta-glass:hover i {
    transform: translateX(4px);
}

.vs-info-callout {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--accent-primary-soft);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
    text-align: left;
    max-width: none;
}

.vs-info-callout p {
    font-size: 0.92rem;
    color: var(--text-heading);
    margin: 0;
    max-width: none;
    line-height: 1.65;
}

/* ===================== AI DATA LAYER ===================== */
.ai-layer-visual {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.ai-node {
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 220px;
    flex-shrink: 0;
}

.ai-xcpep {
    border: 1px solid rgba(10, 88, 202, 0.2);
    background: linear-gradient(135deg, rgba(10, 88, 202, 0.06), rgba(124, 58, 237, 0.04));
}

.ai-node-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px var(--accent-primary-glow);
}

.ai-node h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.ai-node p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.ai-arrow-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.ai-arrow-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ai-data-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    max-width: 200px;
}

.ai-data-chips span {
    padding: 0.2rem 0.6rem;
    background: var(--accent-primary-soft);
    border: 1px solid rgba(10, 88, 202, 0.15);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
}

.ai-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(5px);
        opacity: 0.6;
    }
}

.ai-outputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex-shrink: 0;
}

.ai-output-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.25s ease;
}

.ai-output-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

.ai-output-card i {
    font-size: 1.3rem;
    color: var(--accent-primary);
}

.ai-output-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
}

/* ===================== PHILOSOPHY ===================== */

.phil-col {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

.phil-good {
    border: 1px solid rgba(10, 88, 202, 0.15);
    background: linear-gradient(135deg, rgba(10, 88, 202, 0.04), rgba(13, 148, 136, 0.02));
    border-left: 3px solid rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .phil-good {
    border-color: rgba(16, 185, 129, 0.12);
    border-left-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.01));
}

.phil-bad {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    border-left: 3px solid rgba(239, 68, 68, 0.25);
    opacity: 0.85;
}

[data-theme="dark"] .phil-bad {
    border-color: rgba(239, 68, 68, 0.08);
    border-left-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(0, 0, 0, 0.01));
    opacity: 0.8;
}

.phil-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.phil-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.glass-box-icon {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 6px 20px var(--accent-primary-glow);
}

.black-box-icon {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}

.phil-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    width: fit-content;
}

.phil-tag.bad {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

.phil-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phil-col ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.phil-good ul li i {
    color: var(--accent-tertiary);
}

.phil-bad ul li i {
    color: var(--accent-rose);
}

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

.sec-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.sec-card:hover .sec-badge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .sec-card:hover {
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(59, 130, 246, 0.04);
}

.sec-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    min-width: 48px;
}

.sec-badge.logo-badge {
    background: transparent;
    border-radius: 0;
    width: auto;
    height: 50px;
    justify-content: flex-start;
}

.cert-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.gdpr-ccpa-badge {
    gap: 15px;
}

.cert-logo.gdpr-logo {
    height: 100%;
}

.cert-logo.ccpa-logo {
    height: 90%;
}

.sec-badge.blue {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
}

.sec-badge.teal {
    background: var(--accent-teal-soft);
    color: var(--accent-teal);
}

.sec-badge.violet {
    background: var(--accent-violet-soft);
    color: var(--accent-violet);
}

.sec-badge.emerald {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
}

.sec-badge.amber {
    background: var(--accent-amber-soft);
    color: var(--accent-amber);
}

.sec-badge.rose {
    background: var(--accent-rose-soft);
    color: var(--accent-rose);
}

.sec-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.sec-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===================== BADGE PILL ===================== */
.badge-pill {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: var(--accent-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===================== SECTION HEADER P OVERRIDES ===================== */
#philosophy .section-header p,
#security .section-header p {
    max-width: none;
}

/* ===================== CTA BANNER BLUE OVERRIDE ===================== */
.cta-banner {
    background: linear-gradient(135deg, #0a3d91 0%, #0a58ca 40%, #3b82f6 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Animated shimmer sweep across CTA */
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent);
    animation: ctaShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShimmer {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: 150%; }
}

/* Dark mode: vibrant blue gradient CTA */
[data-theme="dark"] .cta-banner {
    background: linear-gradient(135deg,
        #1e3a8a 0%,
        #2563eb 50%,
        #3b82f6 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow:
        0 8px 40px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light mode: blue gradient CTA (overrides global violet from desktop-industry.css) */
[data-theme="light"] .cta-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #3b82f6 100%) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .cta-banner h2 {
    color: #fff !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
}
[data-theme="light"] .cta-banner p {
    color: rgba(255, 255, 255, 0.8) !important;
}
[data-theme="light"] .cta-banner .btn,
[data-theme="light"] .cta-banner .cta-banner-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1d4ed8 !important;
    border: none !important;
}
[data-theme="light"] .cta-banner .btn:hover,
[data-theme="light"] .cta-banner .cta-banner-btn:hover {
    background: #fff !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2) !important;
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    width: auto;
    font-size: 1rem;
    font-weight: 600;
    color: #0a58ca;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.cta-banner-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: #0a58ca;
    text-decoration: none;
}

.cta-banner-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.cta-banner-btn:hover i {
    transform: translateX(4px);
}

/* =====================================================================
   DARK MODE  -  EXTREME GLASSMORPHISM
   ===================================================================== */

/* Hero in dark: vivid mesh blobs, neon chips */



[data-theme="dark"] .xc-page-nav {
    border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .xc-page-nav a:hover {
    color: var(--blue-bright);
    border-bottom-color: var(--blue-bright);
}

/* Pillars  -  glowing glass cards */
[data-theme="dark"] .pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(77, 159, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

[data-theme="dark"] .pillar-card:hover {
    border-color: rgba(77, 159, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(77, 159, 255, 0.08);
}

[data-theme="dark"] .pillar-icon {
    background: rgba(77, 159, 255, 0.1);
    border-color: rgba(77, 159, 255, 0.15);
    color: var(--blue-bright);
}

[data-theme="dark"] .pillar-card:hover .pillar-icon {
    background: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(77, 159, 255, 0.4);
}

/* Workflow */
[data-theme="dark"] .workflow-line {
    background: linear-gradient(90deg, var(--blue-core), var(--accent-secondary));
    opacity: 0.3;
}

[data-theme="dark"] .ws-content {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(77, 159, 255, 0.08);
}

[data-theme="dark"] .ws-content:hover {
    border-color: rgba(77, 159, 255, 0.2);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(77, 159, 255, 0.06);
}

[data-theme="dark"] .ws-icon {
    background: rgba(77, 159, 255, 0.1);
    color: var(--blue-bright);
}

/* db cards in dark */
[data-theme="dark"] .db-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .db-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(77, 159, 255, 0.06);
    border-color: rgba(77, 159, 255, 0.15);
}

/* Dark mode cost model table */
[data-theme="dark"] .proc-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .proc-table-header {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

[data-theme="dark"] .proc-col-group,
[data-theme="dark"] .proc-row,
[data-theme="dark"] .proc-table-header {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .proc-row:hover {
    background: rgba(77, 159, 255, 0.03);
}

[data-theme="dark"] .proc-col-group {
    color: white;
}

[data-theme="dark"] .proc-accordion summary {
    color: var(--blue-bright);
}

[data-theme="dark"] .proc-acc-icon {
    background: rgba(77, 159, 255, 0.15);
    color: var(--blue-bright);
}

[data-theme="dark"] .proc-accordion[open] .proc-acc-icon {
    background: var(--blue-bright);
    color: #000;
}

[data-theme="dark"] .proc-tag {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(77, 159, 255, 0.1);
    color: var(--text-body);
}

[data-theme="dark"] .proc-tag:hover {
    background: rgba(77, 159, 255, 0.1);
    color: var(--blue-bright);
    border-color: rgba(77, 159, 255, 0.25);
}

@media (max-width: 768px) {
    [data-theme="dark"] .proc-col-group {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

[data-theme="dark"] .cm-highlight-box {
    border-left-color: var(--blue-bright);
    background: rgba(77, 159, 255, 0.05);
    border-color: rgba(77, 159, 255, 0.1);
}

/* PCB card */
[data-theme="dark"] .pcb-card {
    background: rgba(8, 8, 18, 0.8);
    border-color: rgba(77, 159, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(45, 212, 191, 0.06);
}

[data-theme="dark"] .pcb-component {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .pcb-component.identified {
    background: rgba(45, 212, 191, 0.06);
    border-color: rgba(45, 212, 191, 0.2);
}

/* Use cases */
[data-theme="dark"] .uc-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .uc-card:hover {
    border-color: rgba(77, 159, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(77, 159, 255, 0.07);
}

/* VS Legacy */
[data-theme="dark"] .vs-table-wrap {
    background: rgba(8, 8, 18, 0.85);
    border-color: rgba(77, 159, 255, 0.1);
}

[data-theme="dark"] .vs-xcpep {
    background: rgba(77, 159, 255, 0.04);
}

[data-theme="dark"] .vs-divider span {
    background: rgba(20, 20, 40, 0.9);
    border-color: rgba(77, 159, 255, 0.15);
    color: var(--blue-bright);
}

[data-theme="dark"] .vs-list li {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .xcpep-badge {
    background: rgba(77, 159, 255, 0.12);
    border-color: rgba(77, 159, 255, 0.2);
    color: var(--blue-bright);
}

/* AI layer */
[data-theme="dark"] .ai-xcpep {
    background: rgba(77, 159, 255, 0.05);
    border-color: rgba(77, 159, 255, 0.15);
    box-shadow: 0 0 30px rgba(77, 159, 255, 0.08);
}

[data-theme="dark"] .ai-data-chips span {
    background: rgba(77, 159, 255, 0.1);
    border-color: rgba(77, 159, 255, 0.2);
    color: var(--blue-bright);
}

[data-theme="dark"] .ai-output-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ai-output-card:hover {
    border-color: rgba(77, 159, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Philosophy */
[data-theme="dark"] .phil-good {
    background: rgba(77, 159, 255, 0.04);
    border-color: rgba(77, 159, 255, 0.12);
    box-shadow: 0 0 30px rgba(77, 159, 255, 0.05);
}

[data-theme="dark"] .phil-bad {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .black-box-icon {
    background: rgba(255, 255, 255, 0.05);
}

/* Security */
[data-theme="dark"] .sec-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sec-card:hover {
    border-color: rgba(77, 159, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ===================== FEATURES SHOWCASE ===================== */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 3rem;
}







.feature-bullets {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--text-body);
}

.feature-bullets li i {
    color: var(--accent-tertiary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Feature image panel */
.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* Scenario stat card */
.feature-stat-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.fsc-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.fsc-row {
    display: grid;
    grid-template-columns: 130px 1fr 60px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.fsc-label {
    font-size: 0.83rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.fsc-bar-wrap {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.fsc-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 100px;
    transition: width 1s ease;
}

.fsc-bar-high {
    background: var(--accent-rose);
}

.fsc-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    text-align: right;
}

.fsc-value.good {
    color: var(--accent-tertiary);
}

.fsc-value.high {
    color: var(--accent-rose);
}

.fsc-delta {
    margin-top: 1.2rem;
    padding: 0.75rem 1rem;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-tertiary);
    text-align: center;
}

.fsc-delta strong {
    font-weight: 700;
}

/* API code card */
.feature-api-card {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.api-method {
    background: var(--accent-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.api-code {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.78rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.api-response {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.api-res-label {
    font-size: 0.72rem;
    color: var(--accent-tertiary);
    font-weight: 600;
}

.api-res-body {
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.78rem;
    color: var(--accent-tertiary);
    line-height: 1.7;
}

/* Dark mode overrides for new components */

[data-theme="dark"] .feature-stat-card {
    background: rgba(8, 8, 18, 0.8);
    border-color: rgba(77, 159, 255, 0.1);
}

[data-theme="dark"] .fsc-bar-wrap {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .fsc-delta {
    background: rgba(45, 212, 191, 0.06);
    border-color: rgba(45, 212, 191, 0.15);
}

[data-theme="dark"] .feature-api-card {
    background: rgba(8, 8, 18, 0.8);
    border-color: rgba(77, 159, 255, 0.1);
}

[data-theme="dark"] .api-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .api-code {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--accent-secondary);
}

[data-theme="dark"] .api-res-body {
    background: rgba(45, 212, 191, 0.05);
    border-color: rgba(45, 212, 191, 0.15);
    color: var(--accent-tertiary);
}

/* =====================================================================
   RESPONSIVE  -  xcPEP page
   ===================================================================== */
@media (max-width: 1024px) {


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

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

    .workflow-line {
        display: none;
    }

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

    .use-cases-grid .uc-card {
        grid-column: auto;
    }

    .cost-models-layout {
        grid-template-columns: 1fr;
    }

    .ai-pcb-layout {
        grid-template-columns: 1fr;
    }

    .ai-layer-visual {
        flex-direction: column;
        text-align: center;
    }

    .ai-arrow {
        transform: rotate(90deg);
    }


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

    .vs-table-wrap {
        grid-template-columns: 1fr;
    }

    .vs-divider {
        display: none;
    }
}

@media (max-width: 768px) {


    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .db-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .ai-pcb-layout {
        grid-template-columns: 1fr;
    }


    .ai-layer-visual {
        align-items: stretch;
    }

    .ai-outputs {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================================================================
   NEW ELEMENTS  -  Real images, client marquee, video card
   ===================================================================== */


/* Feature image glass cards (Cinematic) */
.feature-image.glass-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    min-height: 360px;
    display: flex;
    align-items: stretch;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
    background: var(--glass-bg);
}

.feature-image.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 10;
}

[data-theme="dark"] .feature-image.glass-card {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: #000;
}

[data-theme="dark"] .feature-image.glass-card::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.feature-image.glass-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    border-radius: 20px;
    display: block;
    min-height: 360px;
    position: relative;
    z-index: 1;
}

/* Client logos marquee */
.clients-marquee-section {
    padding: 1.5rem 0 2rem;
    background: transparent;
    overflow: hidden;
    text-align: center;
}

.clients-marquee-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}

.clients-marquee-track {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.clients-marquee-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: marquee-scroll 28s linear infinite;
    width: max-content;
}

.clients-marquee-inner img {
    height: 32px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.45);
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.clients-marquee-inner img:hover {
    filter: grayscale(0) opacity(0.9);
}

[data-theme="dark"] .clients-marquee-inner img {
    filter: grayscale(1) invert(1) opacity(0.35);
}

[data-theme="dark"] .clients-marquee-inner img:hover {
    filter: grayscale(0) invert(1) opacity(0.85);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Custom Database Callout Card */
.custom-db-card {
    margin-top: 2.5rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fd 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Subtle accent glow in top-right corner */
.custom-db-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[data-theme="dark"] .custom-db-card {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.12);
    border-left: 4px solid var(--accent-primary);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .custom-db-card::before {
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.08) 0%, transparent 70%);
}

/* Header: icon badge + title inline */
.custom-db-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.custom-db-header > i {
    font-size: 1rem;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

[data-theme="dark"] .custom-db-header > i {
    background: rgba(var(--accent-primary-rgb), 0.12);
}

.custom-db-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .custom-db-card h3 {
    color: #fff;
}

.custom-db-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 1.8rem;
    text-align: justify;
    max-width: none;
}

/* Separator line above pills */
.custom-db-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .custom-db-pills {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.custom-db-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
}

[data-theme="dark"] .custom-db-pill {
    color: rgba(255, 255, 255, 0.85);
}

.custom-db-pill i {
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* PCB video card */
.pcb-video-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    min-height: 340px;
    display: flex;
    align-items: stretch;
}

.pcb-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    min-height: 340px;
    display: block;
}


/* (Old hero-video-card CSS removed - now using xc-hud-container) */

/* Dark theme - hide mesh blobs for pitch black hero */
[data-theme="dark"] #hero-section .mesh-blob {
    display: none;
}

/* ==========================================================================
   xcPEP vs Legacy Data Table Styles
   ========================================================================== */
.vs-data-table-wrap {
    margin-top: 3rem;
    padding: 0;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .comparison-table th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(255, 255, 255, 0.02));
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.comparison-table th.col-xcpep {
    color: var(--accent-primary);
    font-weight: 700;
}

.comparison-table td {
    padding: 0;
}

/* Accordion Styles */
.comparison-table details {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

.comparison-table summary::-webkit-details-marker {
    display: none;
}

.comparison-table summary:hover {
    background: var(--glass-bg-hover);
}

[data-theme="dark"] .comparison-table summary:hover {
    background: rgba(59, 130, 246, 0.04);
}

.comparison-table .summary-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    background-image: linear-gradient(135deg, var(--accent-primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-differentiator-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.comparison-table summary .summary-icon {
    transition: transform 0.3s ease;
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.comparison-table details[open] summary .summary-icon {
    transform: rotate(180deg);
}

/* Sub-table Styles */
.sub-table-wrapper {
    background: rgba(255, 255, 255, 0.01);
    animation: accordionDropdown 0.3s ease-out forwards;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Adjust column widths to match headers */
.comparison-table th:first-child,
.sub-table td:first-child {
    width: 40%;
}

.comparison-table th.col-xcpep,
.sub-table td.col-xcpep {
    width: 30%;
}

.comparison-table th.col-legacy,
.sub-table td.col-legacy {
    width: 30%;
}

.sub-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: top;
    font-size: 0.95rem;
    color: var(--text-body);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    /* very light separator */
}

html[data-theme="dark"] .sub-table td {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.icon-text-flex {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.icon-text-flex .icon {
    margin-top: 0.15rem;
}

.vs-check {
    color: #10B981;
}

/* Emerald Green */
.vs-cross {
    color: #6B7280;
}

/* Gray */
.vs-partial {
    color: #F59E0B;
}

/* Amber */

html[data-theme="dark"] .vs-cross {
    color: #9CA3AF;
}

@media (max-width: 768px) {

    .comparison-table th:first-child,
    .sub-table td:first-child {
        width: 100%;
        display: block;
    }

    .comparison-table th.col-xcpep,
    .comparison-table th.col-legacy {
        display: none;
        /* Hide headers on mobile */
    }

    .sub-table td.col-xcpep,
    .sub-table td.col-legacy {
        width: 100%;
        display: block;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .sub-table td:first-child {
        font-weight: 600;
        padding-bottom: 0.25rem;
        border-top: none;
    }

    .sub-table tr {
        display: block;
        padding: 1rem 0;
        border-top: 1px solid var(--border-light);
    }

    .icon-text-flex {
        display: flex;
    }

    /* We use the content value of data-label */
    .icon-text-flex::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        min-width: 80px;
        color: var(--text-heading);
        font-size: 0.85rem;
    }
}

/* ===================== STICKY NAV FROM AUTOMOTIVE ===================== */
        .sticky-sub-nav {
            position: fixed;
            top: 72px; /* Matches scrolled .vault-nav .nav-inner height */
            left: 0;
            width: 100%;
            z-index: 900;
            background: var(--glass-bg-strong);
            backdrop-filter: var(--backdrop-blur-heavy);
            -webkit-backdrop-filter: var(--backdrop-blur-heavy);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            padding: 0.8rem 0;
            transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-20px);
        }

        .sticky-sub-nav.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        [data-theme='dark'] .sticky-sub-nav {
            background: rgba(10, 15, 26, 0.7);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        .sub-nav-inner {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            align-items: center;
        }

        .sub-nav-link {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-3);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 0.5rem;
            opacity: 0.7;
        }

        .sub-nav-link:hover {
            color: var(--accent-blue);
            opacity: 1;
        }

        [data-theme='dark'] .sub-nav-link {
            color: rgba(255, 255, 255, 0.6);
        }

        [data-theme='dark'] .sub-nav-link:hover {
            opacity: 1;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }

        .sub-nav-link.active {
            color: var(--accent-blue);
            opacity: 1;
            position: relative;
        }

        .sub-nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: var(--accent-blue);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--accent-blue);
        }

        [data-theme='light'] .sub-nav-link.active {
            color: var(--blue-core);
        }

        [data-theme='light'] .sub-nav-link.active::after {
            background: var(--blue-core);
            box-shadow: 0 0 8px rgba(10, 88, 202, 0.4);
        }

        /* Secondary Contextual Sub-Nav (Projects & Digital) */
        .context-sub-nav {
            position: fixed;
            top: 150px; /* Approved breathing room below primary sub-nav */
            left: 0;
            width: 100%;
            z-index: 850;
            background: rgba(10, 15, 26, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 0.6rem 0; /* Slightly more padding */
            transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
        }

        [data-theme='light'] .context-sub-nav {
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .context-sub-nav.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .context-nav-inner {
            display: flex;
            justify-content: center;
            gap: 2.5rem; /* Matched to primary sub-nav */
            align-items: center;
        }

        .context-nav-link {
            font-family: var(--font-mono);
            font-size: 0.7rem; /* Improved legibility */
            font-weight: 500;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 1.2px;
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
        }

        .context-nav-link:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        [data-theme='light'] .context-nav-link {
            color: rgba(0, 0, 0, 0.5);
        }

        [data-theme='light'] .context-nav-link:hover {
            color: var(--blue-core);
            background: rgba(10, 88, 202, 0.05);
        }

        .context-nav-link.active {
            color: var(--accent-blue);
            background: transparent;
            opacity: 1;
            box-shadow: none;
            position: relative;
        }

        .context-nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: var(--accent-blue);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--accent-blue);
        }

        [data-theme='light'] .context-nav-link.active {
            color: var(--blue-core);
            background: transparent;
        }

        [data-theme='light'] .context-nav-link.active::after {
            background: var(--blue-core);
            box-shadow: 0 0 8px rgba(10, 88, 202, 0.4);
        }

        [data-theme='light'] .context-nav-link {
            color: rgba(0, 0, 0, 0.5);
        }

        .context-nav-link:hover {
            color: var(--accent-blue);
            background: rgba(59, 130, 246, 0.1);
        }

        [data-theme='dark'] .context-nav-link:hover {
            color: #fff;
        }

        @media (max-width: 768px) {
            .sub-nav-inner {
                gap: 1.5rem;
                overflow-x: auto;
                justify-content: flex-start;
                padding-bottom: 0.5rem;
            }

            .sub-nav-link {
                white-space: nowrap;
            }

            /* Hide scrollbar */
            .sub-nav-inner::-webkit-scrollbar {
                display: none;
            }

            .sub-nav-inner {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
        }
    
/* ===================== PHASE 2 AUTOMOTIVE PARITY UPDATES ===================== */
/* DB Panels - simple display toggle */
.db-panel:not(.active) { 
    display: none;
}
.db-panel.active { 
    display: block;
}

/* Unified Shadows Override */


/* =====================================================================
   COMPREHENSIVE MOBILE RESPONSIVE  -  xcPEP & xcPROC pages
   Ported from legacy xcpep-styles.css breakpoints
   ===================================================================== */

/* ─────────────────────── 1200px  Viewport ─────────────────────── */
@media (max-width: 1200px) {
    /* Hero: tighten the 2-col split */

    /* Hero pillars: 3 columns on moderate screens */
    .hero-pillars-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Workflow: reduce gap */
    .workflow-scroll-container {
        gap: 2rem;
    }


    /* AI Data Layer: reduce hub width */
    .ai-core-hub {
        width: 360px;
    }
}

/* ─────────────────────── 900px  Tablet ─────────────────────── */
@media (max-width: 900px) {
    /* ── HERO: Stack to single column ── */



    /* Hero pillars: 2 columns */
    .hero-pillars-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }


    /* ── FEATURES: Stack all feature rows ── */





    /* ── WORKFLOW: Disable scroll-pin on mobile, vertical timeline + flowing pulse ── */
    .wf-scroll-spacer {
        height: auto !important;
    }

    .wf-sticky {
        position: relative !important;
        height: auto;
        padding: 3rem 0;
        background: transparent !important;
    }

    .wf-sticky.pinned,
    .wf-sticky.past {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
    }

    .wf-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wf-img-panel {
        display: none;
    }

    .wf-step-body,
    .wf-step.active .wf-step-body,
    .wf-step.completed .wf-step-body {
        opacity: 1 !important;
    }

    .wf-step-body p {
        max-height: none;
        opacity: 1;
        margin-top: 0.35rem;
    }

    .wf-step {
        padding: 0.8rem 0.5rem 0.8rem 0;
        margin: 0;
        background: none !important;
        border: none !important;
        border-radius: 0;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .wf-step-dot,
    [data-theme="dark"] .wf-step-dot {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: var(--accent-primary) !important;
        border-color: var(--accent-primary) !important;
        box-shadow: none;
        transform: none;
    }

    .wf-step-dot span,
    [data-theme="dark"] .wf-step-dot span {
        color: #fff !important;
        font-size: 0.68rem;
    }

    /* Override active/completed glow on mobile - all dots same */
    .wf-step.active .wf-step-dot,
    .wf-step.completed .wf-step-dot {
        box-shadow: none !important;
        transform: none !important;
    }

    .wf-step-body h3 {
        font-size: 0.95rem;
    }

    .wf-step-body p {
        font-size: 0.78rem;
    }

    /* ── Vertical track: full gradient + flowing pulse ── */
    .wf-vtrack {
        left: 17px;
        width: 2px;
        overflow: visible;
    }

    .wf-vtrack-fill {
        height: 100% !important;
    }

    /* ── Primary energy pulse (bright, travels top→bottom) ── */
    .wf-vtrack::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent-primary);
        box-shadow:
            0 0 8px 3px rgba(var(--accent-primary-rgb), 0.6),
            0 0 20px 6px rgba(var(--accent-primary-rgb), 0.3),
            0 0 40px 10px rgba(var(--accent-primary-rgb), 0.1);
        z-index: 3;
        animation: wfPulseFlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    /* ── Secondary pulse (dimmer, offset timing for cascading feel) ── */
    .wf-vtrack::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(var(--accent-primary-rgb), 0.5);
        box-shadow:
            0 0 6px 2px rgba(var(--accent-primary-rgb), 0.4),
            0 0 16px 5px rgba(var(--accent-primary-rgb), 0.15);
        z-index: 3;
        animation: wfPulseFlow 4s cubic-bezier(0.4, 0, 0.6, 1) 2s infinite;
    }

    /* Light mode: brighter pulse visibility */
    [data-theme="light"] .wf-vtrack::before {
        background: var(--accent-primary);
        box-shadow:
            0 0 6px 2px rgba(var(--accent-primary-rgb), 0.5),
            0 0 14px 4px rgba(var(--accent-primary-rgb), 0.25);
    }

    [data-theme="light"] .wf-vtrack::after {
        background: rgba(var(--accent-primary-rgb), 0.4);
        box-shadow:
            0 0 4px 2px rgba(var(--accent-primary-rgb), 0.3),
            0 0 10px 3px rgba(var(--accent-primary-rgb), 0.12);
    }
}

/* ── Pulse flow keyframes (outside media query) ── */
@keyframes wfPulseFlow {
    0% {
        top: 2%;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 98%;
        opacity: 0;
    }
}

/* ── Continue 900px tablet rules ── */
@media (max-width: 900px) {
    /* ── PILLARS GRID: 2 columns ── */
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── USE CASES: 2 columns ── */
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid .uc-card {
        grid-column: auto;
    }

    /* ── AI PCB: Stack ── */
    .ai-pcb-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* ── PHILOSOPHY: Stack ── */

    /* ── SECURITY: 2 columns ── */
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── VS LEGACY: Stack ── */
    .vs-table-wrap {
        grid-template-columns: 1fr;
    }

    .vs-divider {
        display: none;
    }

    /* ── AI LAYER: Stack vertically ── */
    .ai-layer-visual {
        flex-direction: column;
        text-align: center;
    }

    .ai-arrow {
        transform: rotate(90deg);
    }




    .ai-flow-branches {
        display: none;
    }

    .ai-core-hub {
        width: 100%;
        max-width: 400px;
    }

    .ai-dest-list {
        height: auto;
        gap: 1rem;
        width: 100%;
    }

    /* ── XCPROC: hiw-timeline stack ── */
    .hiw-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hiw-timeline::before,
    .hiw-timeline::after {
        display: none;
    }

    .hiw-card {
        margin: 0;
    }

    /* ── XCPROC: FAQ tile grid ── */
    .faq-tile-grid {
        grid-template-columns: 1fr;
    }

    .faq-compact-grid {
        grid-template-columns: 1fr;
    }

    /* ── DISABLE HOVER TRANSFORMS ON TOUCH ── */
    .hero-pillar:hover,
    .bento-card:hover,
    .pillar-card:hover,
    .uc-card:hover,
    .sec-card:hover,
    .ai-output-card:hover,
    .phil-col:hover {
        transform: none;
    }

    /* ── HERO VIDEO: Scale down ── */


    /* ── FEATURE IMAGES: Constrain height ── */
    .feature-image.glass-card {
        min-height: 260px;
    }

    .feature-image.glass-card img {
        min-height: 260px;
    }

    /* ── PCB VIDEO: Reduce height ── */
    .pcb-video-card {
        min-height: 260px;
    }

    .pcb-video-card video {
        min-height: 260px;
    }
}

/* ─────────────────────── 768px  Mobile ─────────────────────── */
@media (max-width: 768px) {
    /* ── GLOBAL SPACING ── */
    .section {
        padding: 3rem 0;
    }

    .section-header h2,

    .section-header p {
        font-size: 0.95rem;
    }

    /* ── HERO ── */




    .hero-ctas {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-ctas .btn {
        text-align: center;
        width: 100%;
    }

    /* ── HERO PILLARS: Single column ── */
    .hero-pillars-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding-bottom: 2rem;
    }


    .hero-pillar {
        padding: 1.2rem 1rem;
    }

    /* ── PILLARS GRID: Single column ── */
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    /* ── USE CASES: Single column ── */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid .uc-card {
        grid-column: auto;
    }

    /* ── SECURITY: Single column ── */
    .security-grid {
        grid-template-columns: 1fr;
    }

    /* ── FEATURE TEXT ── */


    /* ── PCB GRID ── */
    .pcb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── AI OUTPUTS ── */
    .ai-outputs {
        grid-template-columns: 1fr 1fr;
    }

    /* ── DB CONTENT ── */
    .db-content {
        padding: 1.5rem;
        min-height: auto;
    }

    /* ── XCPROC PAGE ── */
    .db-showcase .db-pill-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.8rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .db-showcase .db-pill-nav::-webkit-scrollbar {
        display: none;
    }

    .db-display-header h3 {
        font-size: 1.2rem;
    }

    .db-display-header p {
        font-size: 0.88rem;
    }

    /* ── VS BENTO CARDS ── */
    .vs-bento-card {
        padding: 2rem;
    }

    .solution-card .vs-bento-list li,
    .problem-card .vs-bento-list li {
        font-size: 0.92rem;
    }

    /* ── RESEARCH BANNER ── */
    .research-banner {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .rb-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.3), transparent);
    }

    .rb-left h3 {
        font-size: 1.6rem;
    }

    .rb-features {
        grid-template-columns: 1fr;
    }

    /* ── FAQ COMPACT ── */
    .faq-compact-grid {
        grid-template-columns: 1fr;
    }

    .faq-compact-item {
        padding: 1.5rem;
    }

    /* ── STICKY SUB-NAV: Scroll horizontally ── */
    .sub-nav-inner {
        gap: 1.5rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav-link {
        white-space: nowrap;
        font-size: 0.7rem;
    }

    .sub-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .sub-nav-inner {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* ── CONTEXT SUB-NAV ── */
    .context-nav-inner {
        gap: 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .context-nav-link {
        white-space: nowrap;
    }

    .context-nav-inner::-webkit-scrollbar {
        display: none;
    }

    /* ── CLIENTS MARQUEE ── */
    .clients-marquee-inner img {
        height: 24px;
        max-width: 80px;
    }

    /* ── FEATURE STAT CARD ── */
    .fsc-row {
        grid-template-columns: 100px 1fr 50px;
        gap: 0.5rem;
    }

    .fsc-label {
        font-size: 0.75rem;
    }

    /* ── API TERMINAL ── */
    .api-terminal-mockup {
        font-size: 0.72rem;
        padding: 1rem;
    }

    /* ── CUSTOM DB CARD ── */
    .custom-db-card {
        padding: 1.4rem 1.2rem;
    }

    .custom-db-header > i {
        display: none;
    }

    .custom-db-pills {
        display: none;
    }

    .custom-db-card h3 {
        font-size: 1.05rem;
    }

    .custom-db-card p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 0;
        text-align: left;
    }

    /* ── COST MODEL HIGHLIGHT ── */
    .cm-highlight-box {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ─────────────────────── 600px  Small Mobile ─────────────────────── */
@media (max-width: 600px) {
    /* ── GLOBAL ── */
    .section {
        padding: 2.5rem 0;
    }

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

    /* ── HERO ── */




    /* ── HERO PILLARS: Compact ── */
    .hero-pillar {
        padding: 1rem;
        border-radius: 14px;
    }

    .hero-pillar p {
        font-size: 0.75rem;
    }

    .hero-pillar h3 {
        font-size: 0.88rem;
    }


    /* Disable shimmer/glow on small mobile */
    .hero-pillar::after,
    .hero-pillar::before {
        display: none;
    }

    [data-theme="dark"] .hero-pillar::after {
        display: none;
    }

    /* ── FEATURE TEXT ── */

    /* ── FEATURE IMAGES: Reduce min-height ── */
    .feature-image.glass-card {
        min-height: 200px;
    }

    .feature-image.glass-card img {
        min-height: 200px;
    }

    /* ── FEATURE CARDS: Remove fixed aspect-ratio to prevent overflow ── */
    

    /* ── FEATURE BENTO CARDS ── */
    .bento-card {
        padding: 1.5rem;
    }

    .bento-content h3 {
        font-size: 1.3rem;
    }

    /* ── DB MASTER-DETAIL: Compact sidebar ── */
    .db-sidebar {
        flex-direction: column;
    }

    .db-tab {
        padding: 0.8rem 1rem;
        font-size: 0.88rem;
    }

    .db-tab.active {
        border-bottom: none;
        border-left: 4px solid var(--accent-primary);
    }

    [data-theme="dark"] .db-tab.active {
        border-bottom: none;
        border-left: 4px solid var(--accent-primary);
    }

    /* ── DB PANEL ── */
    .db-panel h3 {
        font-size: 1.2rem;
    }

    .db-panel p {
        font-size: 0.9rem;
    }

    /* ── PILLAR CARDS ── */
    .pillar-card {
        padding: 1.5rem;
    }

    /* ── USE CASE CARDS ── */
    .uc-card {
        padding: 1.4rem;
    }

    .uc-card h3 {
        font-size: 0.9rem;
    }

    .uc-card p {
        font-size: 0.8rem;
    }

    /* ── SECURITY CARDS ── */
    .sec-card {
        padding: 1.5rem;
    }

    .sec-card h3 {
        font-size: 0.92rem;
    }

    .sec-card p {
        font-size: 0.82rem;
    }

    .sec-badge.logo-badge {
        height: 40px;
    }

    /* ── PHILOSOPHY ── */
    .phil-col {
        padding: 1.5rem;
    }

    .phil-col ul li {
        font-size: 0.88rem;
    }

    /* ── VS LEGACY ── */
    .vs-col {
        padding: 1.5rem;
    }

    .vs-col-header h3 {
        font-size: 1.1rem;
    }

    .vs-list li {
        font-size: 0.85rem;
    }

    /* ── AI LAYER ── */

    .ai-source-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .ai-source-text h4 {
        font-size: 1.1rem;
    }

    .ai-core-hub {
        padding: 1.5rem;
    }

    .ai-dest-card {
        padding: 0.8rem 1rem;
    }

    .ai-tag {
        font-size: 0.68rem;
        padding: 0.3rem 0.7rem;
    }

    /* ── PCB GRID: Full width components ── */
    .pcb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .pcb-component {
        padding: 0.6rem;
    }

    .pcb-component span {
        font-size: 0.62rem;
    }

    /* ── COMPARISON TABLE: Mobile card layout ── */
    .comparison-table summary {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .key-differentiator-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .sub-table td {
        padding: 0.8rem 1.2rem;
        font-size: 0.88rem;
    }

    /* ── XCPROC: VS BENTO ── */
    .vs-bento-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .vs-bento-header {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .vs-bento-header h3 {
        font-size: 1.2rem;
    }

    .vs-bento-list li {
        font-size: 0.9rem;
    }

    /* ── XCPROC: RESEARCH BANNER ── */
    .research-banner {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .rb-left h3 {
        font-size: 1.4rem;
    }

    .rb-left p {
        font-size: 0.92rem;
    }

    .rbf-item {
        font-size: 0.82rem;
    }

    /* ── XCPROC: HIW CARDS ── */
    .hiw-card {
        padding: 1.5rem;
    }

    .hiw-step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.72rem;
    }

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

    .hiw-card p {
        font-size: 0.88rem;
    }

    /* ── XCPROC: FAQ TILES ── */
    .faq-tile {
        padding: 1.2rem;
    }

    .faq-tile-q {
        font-size: 0.95rem;
    }

    .faq-tile-a {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }

    /* ── XCPROC: DB SHOWCASE ── */
    .db-display-header {
        padding: 1rem 1rem 0.5rem;
    }

    .db-display-header h3 {
        font-size: 1.1rem;
    }

    .db-display-img {
        padding: 0 1rem 1rem;
    }

    /* ── XCPROC: DB MODAL ── */
    .db-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .db-modal-nav.prev {
        left: 0.5rem;
    }

    .db-modal-nav.next {
        right: 0.5rem;
    }

    .db-modal-info {
        padding: 1rem;
    }

    .db-modal-info h4 {
        font-size: 1.1rem;
    }

    .db-modal-info p {
        font-size: 0.85rem;
    }

    /* ── FEATURE STAT CARD: Responsive bars ── */
    .fsc-row {
        grid-template-columns: 80px 1fr 45px;
    }

    .fsc-label {
        font-size: 0.7rem;
    }

    .fsc-value {
        font-size: 0.72rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   xcPEP - Mobile Responsive Overrides for Migrated Components
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tablet: ≤1024px ── */
@media (max-width: 1024px) {
    #hero-section .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-pillars-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .xc-bento-2col {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Mobile: ≤768px ── */
@media (max-width: 768px) {
    /* Hero: natural flow on mobile */
    #hero-section.hero {
        min-height: auto;
        padding: max(100px, 12vh) 1.25rem 2rem;
    }

    #hero-section .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 0;
    }

    /* Hide sticky sub-nav on mobile */
    .sticky-sub-nav {
        display: none !important;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
    }

    .hero-sub {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* HUD container: full width, flat */
    .xc-hud-container {
        width: 100%;
        transform: none !important;
        border-radius: var(--radius-md);
    }

    .xc-hud-container:hover {
        transform: none !important;
    }

    .xc-hud-scanner {
        display: none;
    }

    .hero-props-row,
    .hero-video-tagline {
        display: none;
    }

    /* Hide secondary CTAs on mobile - only show Cost Models */
    #hero-section .hero-ctas .hero-cta-desktop {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Hero CTAs: centered, square-rounded, NOT full width */
    #hero-section .hero-ctas {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.7rem !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #hero-section .hero-ctas .btn {
        width: auto !important;
        max-width: none !important;
        min-width: auto;
        flex: 0 0 auto;
        display: inline-flex !important;
        padding: 0.65rem 1.6rem;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    /* Split grid → single column */
    .split-grid,
    .split-grid.reverse {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        direction: ltr;
    }

    .split-grid.reverse > * {
        direction: ltr;
    }

    /* ── Feature 01: Cost from Drawings - TEXT ONLY, no image ── */
    .split-grid:not(.reverse) .xc-feature-img {
        display: none;
    }

    /* Feature 01: hide description, show only bullets */
    .split-grid:not(.reverse) > div > p {
        display: none;
    }

    .split-grid:not(.reverse) .feature-bullets {
        display: flex;
        gap: 0.4rem;
        margin-top: 0.6rem;
    }

    .split-grid:not(.reverse) .feature-bullets li {
        font-size: 0.78rem;
    }

    .split-grid:not(.reverse) .feature-bullets i {
        font-size: 0.68rem;
    }

    /* ── Feature 02: Configurable Models - IMAGE + scaled-down text ── */
    .split-grid.reverse .xc-feature-img {
        border-radius: var(--radius-md);
        overflow: hidden;
        aspect-ratio: 16 / 9;
    }

    .split-grid.reverse .xc-feature-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .split-grid.reverse > div > p {
        display: block;
        font-size: 0.8rem !important;
        line-height: 1.5;
        margin-top: 0.5rem !important;
        color: var(--text-muted);
    }

    /* Hide bullets for Feature 02 - description is enough */
    .split-grid.reverse .feature-bullets {
        display: none;
    }

    /* ── Simulation bento - SHOW image + text ── */
    .bento-card:not(.api-bento) .bento-visual {
        display: block;
        margin-top: 0.8rem;
    }

    .bento-card:not(.api-bento) .bento-visual img {
        border-radius: var(--radius-md);
    }

    /* ── API bento - TEXT ONLY (terminal already hidden) ── */
    .api-terminal-mockup {
        display: none;
    }

    .api-bento .bento-visual {
        display: none;
    }

    /* ── Bento → single column ── */
    .xc-bento-2col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ── Features section: tighter spacing ── */
    .features-showcase {
        gap: 2rem;
        margin-top: 2rem;
    }

    /* Feature titles */
    .features-showcase h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem;
    }

    /* Bento cards: compact text */
    .bento-card h3 {
        font-size: 1.05rem !important;
    }

    .bento-card p {
        font-size: 0.8rem !important;
        line-height: 1.5;
        color: var(--text-muted);
    }

    /* Section headers */
    #features .section-header p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Use cases grid: 2 columns on tablet/mobile */
    .use-cases-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .use-cases-grid .uc-card {
        grid-column: auto !important;
    }

    /* Philosophy: stack */
    .phil-col {
        width: 100%;
    }
}

/* ── Small phone: ≤480px ── */
@media (max-width: 480px) {
    #hero-section.hero {
        padding: max(90px, 10vh) 1rem 2rem;
    }

    .hero-headline {
        font-size: 2rem !important;
    }

    /* CTAs: compact, left-aligned on small phones */
    #hero-section .hero-ctas {
        justify-content: flex-start;
    }

    #hero-section .hero-ctas .btn {
        width: auto !important;
        min-width: auto;
        padding: 0.55rem 1.3rem;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    /* Use cases: single column */
    .use-cases-grid {
        grid-template-columns: 1fr !important;
    }

    .use-cases-grid .uc-card {
        grid-column: auto !important;
    }

    /* Section headers: tighter */
    .section-header h2 {
        font-size: 1.6rem;
    }

    /* P1: Left-align paragraph text on small screens (centered multiline = hard to read) */
    .xcpep-page .section-header.centered p {
        text-align: left;
    }

    /* P1: Remove paragraph max-width on mobile */
    .xcpep-page p {
        max-width: none !important;
    }
}

