/* OmniSentient — Landing page section styles
   Extracted from index.html inline <style> on 2026-05-23 to reduce
   the HTML payload and let the browser cache visual styles. Covers:
   3D hero orbital, trust cube, operational animations, trusted-by
   marquee, capabilities layout, and the interactive pipeline demo.
   Hero general styles + responsive resets still live inline in
   index.html since they reference Jinja-conditional surface classes. */

/* ══════════════════════════════════════════════════════════════ */
/* 3D Hero Orbital — Ultra Premium Gyroscope + Particle System  */
/* Three rings on genuinely different 3D planes, gradient ring  */
/* borders, ambient drifting particles, expanding pulse waves.  */
/* ══════════════════════════════════════════════════════════════ */
.os3d-hero-stage {
    position: relative;
    width: 100%;
    max-width: clamp(320px, 36vw, 560px);
    overflow: visible;
    /* Safari < 15 / older browser fallback: 1/1.3 = 0.7692 → 76.92% */
    height: 0;
    padding-bottom: 76.92%;
    margin: 0 auto;
    perspective: 1100px;
    perspective-origin: 50% 40%;
}

/* Modern browsers: prefer aspect-ratio (cleaner, allows children to use height) */
@supports (aspect-ratio: 1/1) {
    .os3d-hero-stage {
        aspect-ratio: 1.3 / 1;
        height: auto;
        padding-bottom: 0;
    }
}

/* Breathing nebula halo */
.os3d-hero-stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 52% 52% at 40% 50%, rgba(124, 58, 237, 0.30) 0%, transparent 65%),
        radial-gradient(ellipse 52% 52% at 62% 50%, rgba(6, 182, 212, 0.20) 0%, transparent 65%);
    animation: os3d-halo-breathe 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes os3d-halo-breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.18);
        opacity: 1;
    }
}

/* Perspective grid floor — fluid, never overflows the stage */
.os3d-floor-grid {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotateX(72deg);
    width: min(80%, 360px);
    height: clamp(120px, 28vw, 170px);
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.18) 1px, transparent 1px);
    background-size: clamp(28px, 5vw, 40px) clamp(28px, 5vw, 40px);
    mask-image: radial-gradient(ellipse 82% 82% at 50% 100%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 82% 82% at 50% 100%, black 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* ── Wireframe containment sphere — spinning holographic field ── */
/* Sphere scales with stage. clamp keeps it readable on tiny phones */
/* and prevents it from dwarfing the larger comet orbits at desktop. */
.os3d-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(170px, 38%, 240px);
    height: clamp(170px, 38%, 240px);
    transform-style: preserve-3d;
    animation: os3d-sphere-spin 55s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes os3d-sphere-spin {
    from {
        transform: translate(-50%, -50%) rotateX(-8deg) rotateY(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(-8deg) rotateY(360deg);
    }
}

/* Sphere rings — direct border guarantees visibility everywhere; */
/* the ::before adds the conic-gradient sheen for depth illusion. */
.os3d-sring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.20);
    transform-style: preserve-3d;
}

/* Gradient sheen — fades around the ring for 3D depth effect */
.os3d-sring::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 1px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    background: conic-gradient(from 0deg,
            rgba(196, 181, 253, 0.95) 0deg,
            rgba(6, 182, 212, 0.18) 90deg,
            rgba(196, 181, 253, 0.95) 180deg,
            rgba(6, 182, 212, 0.18) 270deg,
            rgba(196, 181, 253, 0.95) 360deg);
}

/* Equatorial ring — brighter cyan, doubles as an obvious horizontal halo */
.os3d-sr-eq {
    border-color: rgba(103, 232, 249, 0.78);
    box-shadow: 0 0 18px rgba(103, 232, 249, 0.30);
}

.os3d-sr-eq::before {
    background: conic-gradient(from 0deg,
            rgba(165, 243, 252, 0.95) 0deg,
            rgba(167, 139, 250, 0.30) 90deg,
            rgba(165, 243, 252, 0.95) 180deg,
            rgba(167, 139, 250, 0.30) 270deg,
            rgba(165, 243, 252, 0.95) 360deg);
}

/* 9 meridian rings (longitude) at 20° intervals on Y */
.os3d-sr-1 {
    transform: rotateY(0deg);
}

.os3d-sr-2 {
    transform: rotateY(20deg);
}

.os3d-sr-3 {
    transform: rotateY(40deg);
}

.os3d-sr-4 {
    transform: rotateY(60deg);
}

.os3d-sr-5 {
    transform: rotateY(80deg);
}

.os3d-sr-6 {
    transform: rotateY(100deg);
}

.os3d-sr-7 {
    transform: rotateY(120deg);
}

.os3d-sr-8 {
    transform: rotateY(140deg);
}

.os3d-sr-9 {
    transform: rotateY(160deg);
}

/* Equatorial ring — horizontal halo */
.os3d-sr-eq {
    transform: rotateX(90deg);
}

/* ── Orbit rings — each on a genuinely different 3D plane ────── */
/* Direct border guarantees visibility; ::before adds the gradient */
/* sheen for that "near side bright, far side dim" depth illusion. */
.os3d-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 1;
}

/* Gradient sheen layered on top of the solid border */
.os3d-orbit::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 50%;
    padding: 1.5px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* Ring 1 — violet — equatorial tilt */
.os3d-orbit-1 {
    border-color: rgba(167, 139, 250, 0.85);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.30);
}

.os3d-orbit-1::before {
    background: conic-gradient(from 0deg,
            rgba(228, 217, 255, 1) 0deg, rgba(124, 58, 237, 0.85) 90deg,
            rgba(124, 58, 237, 0.10) 180deg, rgba(124, 58, 237, 0.85) 270deg,
            rgba(228, 217, 255, 1) 360deg);
}

/* Ring 2 — cyan — polar tilt (vertical, genuinely different plane) */
.os3d-orbit-2 {
    border-color: rgba(34, 211, 238, 0.85);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.30);
}

.os3d-orbit-2::before {
    background: conic-gradient(from 0deg,
            rgba(165, 243, 252, 1) 0deg, rgba(6, 182, 212, 0.85) 90deg,
            rgba(6, 182, 212, 0.10) 180deg, rgba(6, 182, 212, 0.85) 270deg,
            rgba(165, 243, 252, 1) 360deg);
}

/* Ring 3 — rose — diagonal tilt (third unique plane) */
.os3d-orbit-3 {
    border-color: rgba(244, 114, 182, 0.85);
    box-shadow: 0 0 24px rgba(244, 114, 182, 0.30);
}

.os3d-orbit-3::before {
    background: conic-gradient(from 0deg,
            rgba(254, 205, 211, 1) 0deg, rgba(244, 114, 182, 0.85) 90deg,
            rgba(244, 114, 182, 0.10) 180deg, rgba(244, 114, 182, 0.85) 270deg,
            rgba(254, 205, 211, 1) 360deg);
}

/* Each ring spins on Z within its own unique base plane */
.os3d-orbit-1 {
    animation: os3d-spin-1 13s linear infinite;
}

.os3d-orbit-2 {
    animation: os3d-spin-2 17s linear infinite;
}

.os3d-orbit-3 {
    animation: os3d-spin-3 21s linear infinite reverse;
}

@keyframes os3d-spin-1 {
    from {
        transform: rotateX(72deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(72deg) rotateZ(360deg);
    }
}

@keyframes os3d-spin-2 {
    from {
        transform: rotateY(62deg) rotateZ(0deg);
    }

    to {
        transform: rotateY(62deg) rotateZ(360deg);
    }
}

@keyframes os3d-spin-3 {
    from {
        transform: rotateX(42deg) rotateY(58deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(42deg) rotateY(58deg) rotateZ(360deg);
    }
}

/* ── Orbs — lead (0°) and tail (180°) per ring ──────────────── */
.os3d-orb-lead,
.os3d-orb-tail {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
}

.os3d-orb-lead {
    top: -11px;
    width: 22px;
    height: 22px;
}

.os3d-orb-tail {
    bottom: -8px;
    width: 11px;
    height: 11px;
    opacity: 0.60;
}

/* Orbit 1 — violet */
.os3d-orbit-1 .os3d-orb-lead {
    background: radial-gradient(circle at 32% 32%, #e4d9ff, #6d28d9);
    box-shadow: 0 0 8px #c4b5fd, 0 0 22px #7c3aed,
        0 0 48px rgba(124, 58, 237, 0.70), 0 0 80px rgba(124, 58, 237, 0.32);
}

.os3d-orbit-1 .os3d-orb-tail {
    background: radial-gradient(circle at 35% 35%, #c4b5fd, #5b21b6);
    box-shadow: 0 0 8px #a78bfa, 0 0 18px rgba(124, 58, 237, 0.55);
}

/* Orbit 2 — cyan */
.os3d-orbit-2 .os3d-orb-lead {
    background: radial-gradient(circle at 32% 32%, #a5f3fc, #0369a1);
    box-shadow: 0 0 8px #67e8f9, 0 0 22px #06b6d4,
        0 0 48px rgba(6, 182, 212, 0.70), 0 0 80px rgba(6, 182, 212, 0.32);
}

.os3d-orbit-2 .os3d-orb-tail {
    background: radial-gradient(circle at 35% 35%, #67e8f9, #0e7490);
    box-shadow: 0 0 8px #22d3ee, 0 0 18px rgba(6, 182, 212, 0.55);
}

/* Orbit 3 — rose */
.os3d-orbit-3 .os3d-orb-lead {
    background: radial-gradient(circle at 32% 32%, #fecdd3, #9f1239);
    box-shadow: 0 0 8px #fda4af, 0 0 22px #ec4899,
        0 0 48px rgba(244, 114, 182, 0.70), 0 0 80px rgba(244, 114, 182, 0.32);
}

.os3d-orbit-3 .os3d-orb-tail {
    background: radial-gradient(circle at 35% 35%, #fda4af, #9d174d);
    box-shadow: 0 0 8px #f472b6, 0 0 18px rgba(244, 114, 182, 0.55);
}

/* ── Ambient particles — drifting in the energy field ─────── */
.os3d-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.os3d-p1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    background: rgba(196, 181, 253, .9);
    box-shadow: 0 0 8px #a78bfa;
    animation: os3d-drift-a 8s ease-in-out infinite;
}

.os3d-p2 {
    width: 3px;
    height: 3px;
    top: 14%;
    right: 18%;
    background: rgba(103, 232, 249, .9);
    box-shadow: 0 0 7px #22d3ee;
    animation: os3d-drift-b 11s ease-in-out infinite 0.8s;
}

.os3d-p3 {
    width: 5px;
    height: 5px;
    top: 58%;
    left: 8%;
    background: rgba(196, 181, 253, .7);
    box-shadow: 0 0 9px #a78bfa;
    animation: os3d-drift-c 9s ease-in-out infinite 2.1s;
}

.os3d-p4 {
    width: 3px;
    height: 3px;
    top: 68%;
    right: 12%;
    background: rgba(253, 164, 175, .9);
    box-shadow: 0 0 7px #f472b6;
    animation: os3d-drift-a 13s ease-in-out infinite 1.5s;
}

.os3d-p5 {
    width: 4px;
    height: 4px;
    top: 36%;
    left: 4%;
    background: rgba(103, 232, 249, .7);
    box-shadow: 0 0 7px #22d3ee;
    animation: os3d-drift-b 10s ease-in-out infinite 3.2s;
}

.os3d-p6 {
    width: 3px;
    height: 3px;
    top: 46%;
    right: 6%;
    background: rgba(251, 191, 36, .9);
    box-shadow: 0 0 7px #fbbf24;
    animation: os3d-drift-c 12s ease-in-out infinite 0.4s;
}

@keyframes os3d-drift-a {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: .50;
    }

    33% {
        transform: translate(8px, -10px) scale(1.5);
        opacity: 1;
    }

    66% {
        transform: translate(-5px, -6px) scale(.8);
        opacity: .60;
    }
}

@keyframes os3d-drift-b {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: .55;
    }

    40% {
        transform: translate(-10px, -8px)scale(1.6);
        opacity: 1;
    }

    70% {
        transform: translate(6px, -13px) scale(.9);
        opacity: .40;
    }
}

@keyframes os3d-drift-c {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: .40;
    }

    50% {
        transform: translate(10px, -14px)scale(1.7);
        opacity: .90;
    }
}

/* ── Expanding pulse rings — broadcast waves from core ──────── */
.os3d-core-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    animation: os3d-ring-pulse 3.6s ease-out infinite;
}

.os3d-core-ring-1 {
    border: 1px solid rgba(196, 181, 253, 0.75);
    animation-delay: 0s;
}

.os3d-core-ring-2 {
    border: 1px solid rgba(6, 182, 212, 0.55);
    animation-delay: 1.8s;
}

@keyframes os3d-ring-pulse {
    0% {
        width: clamp(80px, 22%, 116px);
        height: clamp(80px, 22%, 116px);
        opacity: 0.85;
    }

    100% {
        /* Stay within the sphere bounds (sphere maxes at 240px in clamp) */
        width: clamp(180px, 50%, 250px);
        height: clamp(180px, 50%, 250px);
        opacity: 0;
    }
}

/* ── Core — pulsing violet nucleus with tri-color radar sweep ── */
.os3d-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: linear-gradient(145deg,
            rgba(124, 58, 237, 0.52), rgba(6, 182, 212, 0.28), rgba(124, 58, 237, 0.22));
    border: 1px solid rgba(196, 181, 253, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 1px rgba(196, 181, 253, 0.18),
        0 0 22px rgba(124, 58, 237, 0.48),
        0 0 55px rgba(124, 58, 237, 0.22),
        inset 0 0 26px rgba(124, 58, 237, 0.28);
    animation: os3d-core-pulse 5s ease-in-out infinite;
    z-index: 3;
    overflow: hidden;
}

.os3d-core::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(196, 181, 253, 0.82) 18deg,
            rgba(6, 182, 212, 0.42) 36deg,
            rgba(244, 114, 182, 0.15) 52deg,
            transparent 64deg,
            transparent 360deg);
    animation: os3d-scan 2.8s linear infinite;
}

@keyframes os3d-scan {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes os3d-core-pulse {

    0%,
    100% {
        box-shadow: 0 0 22px rgba(124, 58, 237, 0.38), 0 0 55px rgba(124, 58, 237, 0.18),
            inset 0 0 20px rgba(124, 58, 237, 0.20);
    }

    50% {
        box-shadow: 0 0 50px rgba(124, 58, 237, 0.68), 0 0 90px rgba(6, 182, 212, 0.32),
            0 0 120px rgba(99, 102, 241, 0.12), inset 0 0 36px rgba(124, 58, 237, 0.38);
    }
}

.os3d-core-glyph {
    width: 40px;
    height: 40px;
    color: #fff;
    filter: drop-shadow(0 0 8px #c4b5fd) drop-shadow(0 0 20px rgba(124, 58, 237, 0.95));
    /* High z-index so the shield is always above the radar sweep */
    position: relative;
    z-index: 10;
}

/* ── Labels — live dot + glowing text, sequential pulse ─────── */
.os3d-stage-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.os3d-tag {
    position: absolute;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 14px currentColor, 0 0 5px rgba(0, 0, 0, 0.95);
    animation: os3d-tag-pulse 9s ease-in-out infinite;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.os3d-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
    flex-shrink: 0;
    animation: os3d-dot-blink 9s ease-in-out infinite;
}

.os3d-tag.detect {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: #c4b5fd;
    animation-delay: 0s;
}

.os3d-tag.detect::before {
    animation-delay: 0s;
}

.os3d-tag.explain {
    top: 74%;
    left: 16%;
    color: #67e8f9;
    animation-delay: 3s;
}

.os3d-tag.explain::before {
    animation-delay: 3s;
}

.os3d-tag.remediate {
    top: 74%;
    right: 12%;
    color: #fda4af;
    animation-delay: 6s;
}

.os3d-tag.remediate::before {
    animation-delay: 6s;
}

@keyframes os3d-tag-pulse {

    0%,
    30%,
    100% {
        opacity: 0.45;
    }

    10%,
    20% {
        opacity: 1;
        text-shadow: 0 0 22px currentColor, 0 0 44px currentColor;
        letter-spacing: 0.24em;
    }
}

@keyframes os3d-dot-blink {

    0%,
    30%,
    100% {
        transform: scale(1);
        opacity: 0.65;
    }

    10%,
    20% {
        transform: scale(1.8);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════ */
/* Enterprise Security Section                     */
/* ═══════════════════════════════════════════════ */

/* --- Section-level background treatment --- */
.security-section {
    position: relative;
    padding: 100px 0 110px;
    background: #030712;
}

/* --- Centered Header --- */
.security-enterprise-header {
    max-width: 740px;
    margin: 0 auto 60px;
    text-align: center;
}

.security-enterprise-header .section-heading {
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 16px;
}

.security-enterprise-header .section-desc {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto;
}

/* --- 2×2 Grid --- */
.security-enterprise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 32px);
    max-width: 820px;
    margin: 0 auto;
}

/* --- Card --- */
.security-enterprise-card {
    position: relative;
    padding: 32px 30px 32px 46px;
    background: #0c1121;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Left accent stripe */
.security-enterprise-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #5558c9;
    transition: background 0.2s ease;
}

.security-enterprise-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.security-enterprise-card:hover::before {
    background: #6366f1;
}

/* --- Card Typography --- */
.security-enterprise-card .card-title {
    font-size: var(--fs-h3);
    font-weight: 650;
    color: #e2e8f0;
    margin-bottom: 10px;
    letter-spacing: 0.005em;
}

.security-enterprise-card .card-text {
    font-size: var(--fs-body-sm);
    line-height: 1.65;
    color: #8694a8;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .security-enterprise-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .security-section {
        padding: 72px 0 80px;
    }

    .security-enterprise-header {
        margin-bottom: 40px;
    }
}

/* Tablets — hero already single-column at 1024; suppress the headline */
/* break here so the line breaks naturally based on its width.         */
@media (max-width: 1024px) {
    .hero-headline br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .os3d-orbit-1,
    .os3d-orbit-2,
    .os3d-orbit-3,
    .os3d-sphere,
    .os3d-core,
    .os3d-core-ring,
    .os3d-particle,
    .os3d-hero-stage::before,
    .os3d-tag,
    .os3d-tag::before {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════ */
/* OPERATIONAL RIGOR ANIMATIONS                  */
/* ═══════════════════════════════════════════════ */

/* Surgical Scanner Sweep */
.hero-headline {
    position: relative;
    overflow: hidden;
}

.hero-headline::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
    animation: surgical-scan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes surgical-scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    50% {
        top: 110%;
        opacity: 0;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Live Monitoring Heartbeat */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: live-heartbeat 2s ease-in-out infinite;
}

@keyframes live-heartbeat {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.4;
        box-shadow: 0 0 12px var(--accent-primary);
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════════ */
/* TRUSTED BY MARQUEE — PREMIUM SVG LOGOS         */
/* ═══════════════════════════════════════════════ */
.trust-marquee-section {
    background: var(--bg-main);
    padding: 48px 0;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

/* Fade edges for seamless infinite scroll illusion */
.trust-marquee-section::before,
.trust-marquee-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.trust-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main, #0B0B0F), transparent);
}
.trust-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main, #0B0B0F), transparent);
}

.marquee-track {
    display: flex;
    gap: 72px;
    align-items: center;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.trust-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-logo-container:hover {
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.35));
    transform: scale(1.08);
}

.trust-logo {
    height: 28px;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.trust-logo-container:hover .trust-logo,
.trust-logo:hover {
    opacity: 0.9;
}

.trust-logo-svg {
    height: 30px;
    width: auto;
    opacity: 0.45;
    transition: opacity 0.35s ease;
    fill: currentColor;
    color: rgba(255, 255, 255, 0.85);
}

.trust-logo-container:hover .trust-logo-svg {
    opacity: 0.95;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════════════════ */
/* CAPABILITIES — ALTERNATING 2-COL LAYOUT        */
/* ═══════════════════════════════════════════════ */
.capabilities-alt {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 6vw, 80px);
    margin-top: clamp(48px, 5vw, 72px);
}

.capability-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

/* Alternate: even rows flip text/visual order */
.capability-row:nth-child(even) {
    direction: rtl;
}
.capability-row:nth-child(even) > * {
    direction: ltr;
}

.capability-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.capability-number {
    font-size: var(--fs-body-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.capability-number::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0.5;
}

.capability-title {
    font-size: clamp(1.25rem, 1rem + 0.6vw, 1.6rem);
    font-weight: 700;
    color: var(--text-strong, #fff);
    line-height: 1.25;
}

.capability-desc {
    font-size: var(--fs-body, 0.95rem);
    line-height: 1.7;
    color: var(--text-muted, #94a3b8);
    max-width: 48ch;
}

.capability-visual {
    position: relative;
    padding: 28px;
    border-radius: 14px;
    background: rgba(15, 15, 35, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Spotlight Glow */
.capability-visual::before, .capability-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease;
}

.capability-visual::before {
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--cap-accent, rgba(124, 58, 237, 0.08)),
        transparent 40%
    );
    z-index: 1;
}

.capability-visual::after {
    padding: 1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--cap-accent, rgba(124, 58, 237, 0.5)),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}

.capability-visual:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.capability-visual:hover::before, .capability-visual:hover::after {
    opacity: 1;
}

.capability-visual > * {
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .capability-row,
    .capability-row:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* ═══════════════════════════════════════════════ */
/* INTERACTIVE PIPELINE-FIX DEMO SECTION          */
/* ═══════════════════════════════════════════════ */
.demo-section {
    background: var(--bg-main, #0B0B0F);
    padding: clamp(72px, 7vw, 120px) 0;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    top: 20%;
    left: -100px;
    pointer-events: none;
}

.demo-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    bottom: 10%;
    right: -100px;
    pointer-events: none;
}

.demo-header {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.demo-title-hook {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--text-strong, #fff);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 12px 0 16px;
}

.demo-sub-hook {
    font-size: var(--fs-body-lg);
    color: var(--text-muted, #94a3b8);
    max-width: 54ch;
    margin: 0 auto;
    line-height: 1.6;
}

.demo-sandbox {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: clamp(24px, 3vw, 32px);
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 1024px) {
    .demo-sandbox {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.demo-panel {
    background: rgba(15, 15, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Spotlight Glow */
.demo-panel::before, .demo-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease;
}

.demo-panel::before {
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(167, 139, 250, 0.06),
        transparent 40%
    );
    z-index: 1;
}

.demo-panel::after {
    padding: 1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(167, 139, 250, 0.5),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}

.demo-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.demo-panel:hover::before, .demo-panel:hover::after {
    opacity: 1;
}

.demo-panel > * {
    position: relative;
    z-index: 3;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(2, 6, 23, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-dots {
    display: flex;
    gap: 6px;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.panel-dot.red { background: #ef4444; }
.panel-dot.yellow { background: #f59e0b; }
.panel-dot.green { background: #10b981; }

.panel-title {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.panel-body {
    padding: 24px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: clamp(0.72rem, 0.65rem + 0.15vw, 0.8rem);
    line-height: 1.55;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Step-Specific Panel Styling */
/* Step 1: Console Panel */
.console-content {
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.console-prompt {
    color: #64748b;
    margin-bottom: 12px;
}

.console-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.console-status.fail {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.console-status.pass {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.console-error-box {
    background: rgba(239, 68, 68, 0.06);
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    margin: 12px 0;
    color: #fca5a5;
}

/* Step 2: AST Connector Panel */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    height: 100%;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.workflow-step.active {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.2);
}

.workflow-step.success {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.2);
}

.workflow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
    box-shadow: none;
    flex-shrink: 0;
}

.workflow-step.active .workflow-dot {
    background: #a78bfa;
    box-shadow: 0 0 8px #a78bfa;
    animation: workflow-dot-pulse 1.5s ease-in-out infinite;
}

.workflow-step.success .workflow-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

@keyframes workflow-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

.workflow-label {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
}

.workflow-step.active .workflow-label {
    color: #c4b5fd;
}

.workflow-step.success .workflow-label {
    color: #34d399;
}

.workflow-time {
    font-size: 0.65rem;
    color: rgba(167, 139, 250, 0.8);
    margin-left: auto;
    background: rgba(167, 139, 250, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Step 3: Git Diff Panel */
.pr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pr-badge {
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
}

.pr-badge.open {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.pr-badge.merged {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.pr-title {
    font-weight: 700;
    color: var(--text-strong, #fff);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

.diff-container {
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.diff-line {
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.diff-line.del {
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

.diff-line.add {
    background: rgba(16, 185, 129, 0.08);
    color: #86efac;
}

.diff-line.normal {
    color: #64748b;
}

.pr-actions {
    margin-top: auto;
}

.approve-merge-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #C084FC;
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.approve-merge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(192, 132, 252, 0.6);
    background: #d8b4fe;
}

.approve-merge-btn:active {
    transform: translateY(1px);
    opacity: 0.9;
}

.approve-merge-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Slack Slide Down Card */
.slack-card-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: min(420px, 90vw);
    z-index: 100;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.slack-card-container.visible {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.slack-card {
    background: #1e1e24;
    border-left: 4px solid #4a154b;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.slack-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #3f0e40;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.1rem;
}

.slack-body {
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    line-height: 1.4;
}

.slack-sender {
    font-weight: 700;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.slack-time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.slack-msg {
    color: rgba(255, 255, 255, 0.85);
}

.slack-msg strong {
    color: #38bdf8;
}

/* ── Final CTA actions — extracted from inline styles ──────────────── */
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: clamp(20px, 2.5vw, 36px);
}

.cta-btn {
    padding: 16px 36px;
}

.cta-btn.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-microcopy {
    text-align: center;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.85;
    letter-spacing: 0.01em;
}

/* ───────────────────────────────────────────────────────────────────────
   SECTION 4 — Core Capabilities (clean dark 3-card layout, v2)
   Flat dark surfaces, no gradients/glow. Stripe-dark-mode aesthetic.
   ─────────────────────────────────────────────────────────────────────── */
.core-features-v2 {
    background: #0b0f1a;
    padding: clamp(60px, 8vw, 80px) 0;
    border-top: 1px solid #1f2937;
}

.core-features-v2 .cf-header {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 56px);
    text-align: center;
}

.cf-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    border: 1px solid #1f2937;
    border-radius: 6px;
    padding: 5px 12px;
    margin-bottom: 20px;
}

.cf-heading {
    font-size: var(--fs-h2);
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Constrained + centred — compact/premium, not full-width stretch */
    max-width: 680px;
    margin: 0 auto 16px;
}

.cf-sub {
    font-size: var(--fs-body);
    /* Slightly brighter than #9ca3af for better readability */
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 56ch;
}

.cf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 32px);
}

.cf-card {
    /* Extreme Glassmorphism Base */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    cursor: default;
}

/* The God-Tier Hover Glow */
.cf-card::before, .cf-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease;
}

/* Interior Glow (follows mouse) */
.cf-card::before {
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124, 58, 237, 0.08),
        transparent 40%
    );
    z-index: 1;
}

/* Border Glow (follows mouse) */
.cf-card::after {
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.4),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}

.cf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cf-card:hover::before, .cf-card:hover::after {
    opacity: 1;
}

/* Ensure content stays above the pseudo-element gradients */
.cf-card > * {
    position: relative;
    z-index: 3;
}

.cf-card-media {
    height: 150px;
    background: #0A0E1A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    position: relative;
}

/* Inline <object> SVG fills the media slot; scripts inside SVG can execute
   (unlike background-image, which sandboxes script tags). pointer-events:none
   so the SVG doesn't intercept clicks on the parent card. */
.cf-card-media-svg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 0;
}

.cf-card-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: #f9fafb;
    /* Explicit rhythm: 16px above (breathing room from media), 8px below */
    margin: 16px 0 8px;
    line-height: 1.3;
}

.cf-card-desc {
    font-size: var(--fs-body);
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 880px) {
    .cf-grid { grid-template-columns: 1fr; }
}
