/* Apply General Sans to all text with solid white color */
body,
html {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: #000000 !important;
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
.hero-title, .hero-description,
.section-title, .section-description,
.feature-title, .feature-description,
.cta-title, .cta-description,
.btn, .nav-link, .logo,
.metric-value, .metric-label,
.dashboard-header h3,
button, input, textarea, select {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #ffffff !important;
}

/* Headings also solid white */
h1, h2, h3, .hero-title, .section-title, .cta-title {
    color: #ffffff !important;
}

/* Ensure section title and description are bright white with full opacity */
.section-title,
.section-description,
.features .section-title,
.features .section-description,
.section-header .section-title,
.section-header .section-description {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-weight: 600 !important; /* Make text stand out */
}

/* Ensure images and icons are visible */
img, .site-logo {
    font-family: inherit !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Font Awesome icons need to be inline-block and use their own font */
i, .fas, .fa, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.feature-icon, .benefit-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feature-icon i, .benefit-icon i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Button icons */
.btn i, .btn .fas, .btn .fa {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    text-shadow: none !important;
}

/* Hero section - contains video background */
.hero {
    background: #000000 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh;
    z-index: 1;
}

/* Hero background video - positioned behind hero content */
.hero-background-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 0 !important; /* Behind content */
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0; /* Start hidden for fade-in - allow JS to override */
    animation: videoFadeIn 2s ease-in-out forwards;
    background: #000000 !important;
    /* Maintain quality - no blur */
    filter: none !important;
    -webkit-filter: none !important;
    /* No borders */
    border: none !important;
    outline: none !important;
    /* Maintain aspect ratio and quality */
    min-width: 100% !important;
    max-width: 100% !important;
}

/* When video is playing, ensure it's visible */
.hero-background-video.playing {
    opacity: 1 !important;
}

/* Fade-in animation for video */
@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dark overlay on video for text readability (40-50% black) */
.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Above video, below text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
    pointer-events: none !important;
}

/* Hero content - above video and overlay */
.hero .container,
.hero-content,
.hero-text,
.hero-visual,
.hero-title,
.hero-description,
.hero-launch-status,
.hero-actions {
    position: relative !important;
    z-index: 2 !important; /* Above video and overlay */
}

/* Creative "coming soon" status line in hero */
.hero-launch-status {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: var(--spacing-5);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.hero-launch-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    animation: heroLaunchPulse 1.8s ease-in-out infinite;
}

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

/* Fixed Background Image - Below video */
.fixed-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../../Photos/CSI.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    display: block;
}

/* CTI intro block – above "AI assistance" */
.csi-intro {
    position: relative;
    z-index: 1;
    padding: var(--spacing-20) var(--spacing-6) var(--spacing-8);
    background-image: url('../../Photos/CSI.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.csi-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Match features-section gradient so background feels continuous */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.9) 10%,
        rgba(0, 0, 0, 0.7) 35%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: -1;
    pointer-events: none;
}

.csi-intro-content {
    max-width: 1020px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: var(--spacing-10) var(--spacing-8);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 42%,
        rgba(0, 0, 0, 0.45) 100%
    );
    background-size: 180% 180%;
    backdrop-filter: blur(6px);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateX(1.6deg);
    transform-origin: center top;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: csiPanelBreathe 8s ease-in-out infinite;
    cursor: default;
}

.csi-intro-content::before,
.csi-intro-content::after {
    content: '';
    position: absolute;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    pointer-events: none;
}

.csi-intro-content::before {
    top: 14px;
    left: 14px;
    border-right: none;
    border-bottom: none;
    border-radius: 14px 0 0 0;
}

.csi-intro-content::after {
    right: 14px;
    bottom: 14px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 14px 0;
}

.csi-intro-content:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.csi-intro-content:hover .csi-intro-title {
    letter-spacing: 0.03em;
}

.csi-intro-content:hover .csi-intro-badge {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* ORR-style square orbit on hover */
.csi-intro-orbit {
    position: absolute;
    /* Pull orbit slightly inside so particle is fully visible on top/left edges */
    inset: 6px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.csi-intro-orbit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 24px;
    margin-left: -5px;
    margin-top: -12px;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 35%,
        rgba(255, 255, 255, 0.7) 65%,
        #ffffff 100%
    );
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.85),
        0 0 24px rgba(255, 255, 255, 0.4),
        0 -2px 8px rgba(255, 255, 255, 0.2);
    transform-origin: center center;
}

.csi-intro-content:hover .csi-intro-orbit {
    opacity: 1;
}

.csi-intro-content:hover .csi-intro-orbit::before {
    animation: csiSquareOrbit 10s linear infinite;
}

@keyframes csiSquareOrbit {
    0% {
        top: 0;
        left: 0;
        transform: rotate(90deg);
    }
    24.9% {
        top: 0;
        left: calc(100% - 10px);
        transform: rotate(90deg);
    }
    25% {
        top: 0;
        left: calc(100% - 10px);
        transform: rotate(180deg);
    }
    49.9% {
        top: calc(100% - 10px);
        left: calc(100% - 10px);
        transform: rotate(180deg);
    }
    50% {
        top: calc(100% - 10px);
        left: calc(100% - 10px);
        transform: rotate(270deg);
    }
    74.9% {
        top: calc(100% - 10px);
        left: 0;
        transform: rotate(270deg);
    }
    75% {
        top: calc(100% - 10px);
        left: 0;
        transform: rotate(360deg);
    }
    100% {
        top: 0;
        left: 0;
        transform: rotate(450deg);
    }
}

@keyframes csiPanelBreathe {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.csi-intro-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 var(--spacing-6);
    letter-spacing: 0.02em;
    transition: letter-spacing 0.3s ease;
}

.csi-intro-problem {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0 0 var(--spacing-5);
}

.csi-intro-tagline {
    font-size: clamp(1.1rem, 1.9vw, 1.25rem);
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 var(--spacing-5);
}

.csi-intro-solution {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0 0 var(--spacing-8);
}

.csi-intro-badge {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-5);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

/* Features Section - with background image */
.features {
    padding: var(--spacing-16) 0 var(--spacing-32);
    background-image: url('../../Photos/CSI.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    min-height: 400px; /* Ensure section has height */
}

/* Smooth top gradient fade-in from video to background image */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.4) 8%,
        rgba(0, 0, 0, 0.35) 20%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure section header and content are above the gradient */
.features .section-header,
.features .container {
    position: relative;
    z-index: 2;
}

/* Ensure feature cards are above the gradient */
.features-grid {
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.features .feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(14, 14, 14, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 255, 255, 0.08);
}

.features .section-description {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Less boxy alternative: connected process flow */
.csi-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-12);
    margin-top: var(--spacing-10);
}

.csi-flow::before {
    display: none;
}

.csi-flow-step {
    position: relative;
    text-align: center;
    padding: var(--spacing-5) var(--spacing-4);
}

.csi-flow-node {
    width: 108px;
    height: 108px;
    margin: 0 auto var(--spacing-5);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.csi-flow-node i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95) !important;
}

.csi-flow-node span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600;
}

.csi-flow-step h3 {
    font-size: 1.28rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-2);
    color: #ffffff !important;
}

.csi-flow-step p {
    font-size: 1.06rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82) !important;
    margin: 0;
}

/* Error particles moving outside circles: 01->02 and 02->03 */
.csi-flow-step:not(:last-child)::before {
    display: none;
}

.csi-flow-step:not(:last-child)::after {
    content: '🎟';
    position: absolute;
    top: 68px;
    left: calc(50% - 54px); /* start from current circle left edge */
    font-size: 1.4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    pointer-events: none;
    animation: csiErrorTravel 5.2s linear infinite;
}

.csi-flow-step:nth-child(2):not(:last-child)::after {
    animation-delay: 1.1s;
}

@keyframes csiErrorTravel {
    0% {
        opacity: 0;
        left: calc(50% - 54px);
    }
    10% {
        opacity: 0.95;
    }
    88% {
        opacity: 0.95;
        left: calc(150% + 54px); /* end at next circle right edge */
    }
    100% {
        opacity: 0;
        left: calc(150% + 54px);
    }
}

.csi-flow-step:hover .csi-flow-node {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 18px rgba(255, 255, 255, 0.12);
}

.csi-process-summary {
    margin-top: var(--spacing-10);
    text-align: center;
}

.csi-process-line {
    font-size: clamp(1.05rem, 1.9vw, 1.2rem);
    font-weight: 600;
    margin: 0 0 var(--spacing-2);
    color: #ffffff !important;
}

.csi-process-note {
    margin: var(--spacing-6) 0 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.98rem;
}

/* Per-line scroll reveal utility */
.csi-reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

.csi-reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* AI trust block below process summary */
.csi-trust {
    position: relative;
    margin: var(--spacing-20) auto 0;
    max-width: 900px;
    padding: var(--spacing-10) var(--spacing-6) var(--spacing-6);
    text-align: center;
}

.csi-trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(680px, 88%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

.csi-trust-title {
    margin: 0 0 var(--spacing-4);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff !important;
}

.csi-trust-intro,
.csi-trust-outro {
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.csi-trust-intro {
    margin-bottom: var(--spacing-5);
}

.csi-trust-list {
    list-style: none;
    margin: 0 auto var(--spacing-6);
    padding: 0;
    max-width: 760px;
    text-align: center;
}

.csi-trust-list li {
    position: relative;
    padding: 0.85rem 0 0.85rem 1.6rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    width: fit-content;
    margin: 0 auto;
    min-width: min(720px, 100%);
}

.csi-trust-list li::before {
    content: '•';
    position: absolute;
    left: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
}

.csi-trust-outro {
    margin-top: var(--spacing-2);
    margin-bottom: var(--spacing-12);
    font-weight: 500;
}

/* CTI benefits block (editorial split layout, distinct from trust block) */
.csi-benefits {
    margin: var(--spacing-20) auto 0;
    max-width: 1040px;
    text-align: center;
}

.csi-benefits-title {
    margin: 0 0 var(--spacing-10);
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    letter-spacing: 0.03em;
    color: #ffffff !important;
}

.csi-benefits-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-8) var(--spacing-10);
    text-align: left;
}

.csi-benefit-item {
    position: relative;
    padding: var(--spacing-5) 0 var(--spacing-5) var(--spacing-8);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.csi-benefit-item::before {
    counter-increment: csi-benefits;
    content: counter(csi-benefits, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2rem;
    transform: translateX(-45%);
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.06em;
}

.csi-benefits-list {
    counter-reset: csi-benefits;
}

.csi-benefit-item h4 {
    margin: 0 0 var(--spacing-3);
    font-size: clamp(1.1rem, 1.95vw, 1.32rem);
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.35;
}

.csi-benefit-item p {
    margin: 0;
    max-width: 96%;
    font-size: clamp(0.98rem, 1.45vw, 1.06rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82) !important;
}

.csi-benefit-item:hover {
    transform: translateY(-3px);
    border-left-color: rgba(255, 255, 255, 0.45);
}

.csi-benefit-item:hover::before {
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
    .csi-flow {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .csi-flow::before {
        display: none;
    }

    .csi-flow-step:not(:last-child)::before {
        display: none;
    }

    .csi-flow-step:not(:last-child)::after {
        display: none;
    }

    .csi-benefits-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
}

/* CTA Section - with background image */
.cta {
    padding: var(--spacing-32) 0;
    background-image: url('../../Photos/CSI.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    min-height: 300px;
}

/* Gradient overlay for CTA section */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure CTA content is above the gradient */
.cta-content {
    position: relative;
    z-index: 1;
}

