/* PhotoMonitoring Landing Page Styles */

/* Keep landing page on a single scroll layer (prevents inner scrollbars when FAQ expands) */
html,
body {
    width: 100%;
    max-width: 100%;
}

html {
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Phosphor Icons duotone customization */
.ph-duotone {
    --ph-duotone-primary: currentColor;
    --ph-duotone-secondary: currentColor;
    vertical-align: -0.125em;
}

/* Feature card icons - cyan duotone */
.feature-icon .ph-duotone {
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.4);
}

/* Use case category icons - cyan duotone */
.category-icon .ph-duotone {
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.4);
}

/* Insight list check icons - green duotone */
.insight-list .ph-duotone {
    --ph-duotone-primary: #10b981;
    --ph-duotone-secondary: rgba(16, 185, 129, 0.4);
}

/* Deployment option icons - gradient accent */
.deploy-icon .ph-duotone {
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.3);
}

/* How it works step icons - cyan duotone */
.step-icon .ph-duotone {
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.3);
}

/* ============================================
   1. HERO SECTION
   ============================================ */

.landing-page {
    overflow-x: hidden;
    min-height: 100vh;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    --hero-gradient: linear-gradient(90deg, rgba(6, 21, 37, 0.92) 0%, rgba(6, 21, 37, 0.86) 28%, rgba(6, 21, 37, 0.65) 48%, rgba(6, 21, 37, 0.35) 65%, rgba(6, 21, 37, 0.1) 82%, rgba(6, 21, 37, 0) 100%);
    background-image:
        var(--hero-gradient),
        var(--hero-image-fallback-large, var(--hero-image-large, url('../img/hero/railways_v2_1920.webp')));
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    animation: none;
    z-index: -2;
}

@supports (background-image: image-set(url('x') 1x)) {
    .hero-background {
        background-image:
            var(--hero-gradient),
            image-set(
                var(--hero-image-large, url('../img/hero/railways_v2_1920.webp')) type("image/webp") 1x,
                var(--hero-image-fallback-large, url('../img/hero/railways_v2.jpg')) type("image/jpeg") 1x
            );
    }
}

@media (max-width: 1199.98px) {
    .hero-background {
        background-image:
            var(--hero-gradient),
            var(--hero-image-medium, var(--hero-image-large, url('../img/hero/railways_v2_1200.webp')));
    }
    @supports (background-image: image-set(url('x') 1x)) {
        .hero-background {
            background-image:
                var(--hero-gradient),
                image-set(
                    var(--hero-image-medium, url('../img/hero/railways_v2_1200.webp')) type("image/webp") 1x,
                    var(--hero-image-fallback-large, url('../img/hero/railways_v2.jpg')) type("image/jpeg") 1x
                );
        }
    }
}

@media (max-width: 767.98px) {
    .hero-background {
        background-image:
            var(--hero-gradient),
            var(--hero-image-small, var(--hero-image-medium, url('../img/hero/railways_v2_768.webp')));
    }
    @supports (background-image: image-set(url('x') 1x)) {
        .hero-background {
            background-image:
                var(--hero-gradient),
                image-set(
                    var(--hero-image-small, url('../img/hero/railways_v2_768.webp')) type("image/webp") 1x,
                    var(--hero-image-fallback-large, url('../img/hero/railways_v2.jpg')) type("image/jpeg") 1x
                );
        }
    }
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 212, 255, 0.12), transparent 36%),
        radial-gradient(circle at 80% 18%, rgba(13, 110, 253, 0.1), transparent 32%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.75;
    margin-bottom: 1rem;
}

.hero-card {
    background: rgba(7, 15, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: clamp(2rem, 2.6vw, 3.2rem);
    padding-left: clamp(1.4rem, 2vw, 2.4rem);
    padding-right: clamp(1.4rem, 2vw, 2.4rem);
    width: 100%;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-title {
    font-size: clamp(2rem, 1.6vw + 1.4rem, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-focus {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-focus strong {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 0.9rem;
    opacity: 0.96;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    white-space: normal;
    hyphens: none;
}

.hero-ctas {
    margin-top: 0.8rem;
    margin-bottom: 1.4rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cta-actions.hero-ctas {
    margin: 0 0 1.1rem;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
}

.hero-ctas .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 230px;
    flex: 1 1 240px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.hero-ctas .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-ctas .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero-ctas .btn-primary:hover::before {
    left: 100%;
}

.hero-ctas .btn-primary:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0d6efd 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.6);
}

.hero-ctas .btn-outline-light {
    border-width: 2px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-ctas .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: white;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-link-light {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link-light:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.hero-trust {
    margin-top: 1.25rem;
    padding: 0.35rem 0;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-number-static {
    animation: none;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.powered-by {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s ease, transform 2s ease;
}

.powered-by img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.powered-by.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.powered-by.justify-content-start {
    justify-content: center;
}

.stat-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 16, 26, 0.85) 60%, rgba(10, 16, 26, 0.95) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.95rem 0.9rem;
    height: 100%;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.hero-visual {
    position: relative;
}

.hero-visual-frame {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(13, 110, 253, 0.12));
    box-shadow:
        0 26px 52px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    min-height: 360px;
    isolation: isolate;
}

.hero-visual-glow {
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle at 40% 45%, rgba(0, 212, 255, 0.25), rgba(13, 110, 253, 0.08), rgba(0, 0, 0, 0.1));
    filter: blur(38px);
    z-index: 0;
}

.hero-visual-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease, filter 0.45s ease;
    border-radius: 26px;
    filter: saturate(0.82) brightness(0.9);
}

.hero-scenarios {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-scenario {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #e7f0ff;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-scenario:hover,
.hero-scenario:focus-visible {
    border-color: rgba(0, 212, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.18);
}

.hero-scenario.active {
    background: linear-gradient(135deg, #0d6efd, #00d4ff);
    color: #0b1828;
    border-color: rgba(0, 212, 255, 0.75);
    box-shadow:
        0 16px 34px rgba(0, 212, 255, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-visual-caption {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: rgba(231, 240, 255, 0.75);
    letter-spacing: 0.01em;
}

/* ============================================
   2. SECTION STYLES
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.glassmorphic {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    position: relative;
    overflow: hidden;
}

.solutions-section {
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08), transparent 28%),
                radial-gradient(circle at 80% 10%, rgba(102, 16, 242, 0.12), transparent 30%),
                #0d1016;
    padding: 6rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.solutions-section .section-title {
    letter-spacing: 0.01em;
}

.solutions-section .lead {
    color: rgba(235, 241, 249, 0.8);
}

.solution-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.05) 0%, rgba(16, 21, 29, 0.8) 60%, rgba(16, 21, 29, 0.92) 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.25rem;
    height: 100%;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 28px 60px rgba(0, 212, 255, 0.15), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.solution-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(13, 110, 253, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 212, 255, 0.18);
}

.solution-card h4 {
    color: #eef3fb;
    letter-spacing: 0.01em;
}

.solution-card p {
    color: rgba(210, 220, 232, 0.7);
}

.solution-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    color: rgba(235, 241, 249, 0.85);
}

.solution-list li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.3rem;
}

.solution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #4dd0c8);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}

.glassmorphic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 212, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

[data-bs-theme="dark"] .glassmorphic {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card.glassmorphic {
    background: rgba(7, 15, 26, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 1.6s ease,
        border-color 1.6s ease,
        box-shadow 1.6s ease,
        backdrop-filter 1.6s ease,
        -webkit-backdrop-filter 1.6s ease;
}

.aos-animate .hero-card.glassmorphic {
    background: rgba(7, 15, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ============================================
   3. PROBLEM SECTION
   ============================================ */

.problem-section {
    background: linear-gradient(180deg, #1a1d20 0%, #2b3035 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.problem-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

/* Subtle divider band for section rhythm */
.what-is-iris-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.what-is-iris-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

/* What is IRIS */
.what-is-iris {
    position: relative;
    z-index: 1;
}

.what-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(13, 110, 253, 0.12));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateX(-4%);
}

.what-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.12), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.what-visual-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 40% 50%, rgba(0, 212, 255, 0.2), rgba(13, 110, 253, 0.05), rgba(0, 0, 0, 0.05));
    filter: blur(35px);
    z-index: 0;
}

.what-visual-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
}

.what-copy {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(4%);
    gap: 0.4rem;
}

.what-copy .section-title {
    text-align: center;
    margin-bottom: 1.6rem;
}

.what-copy p {
    max-width: 600px;
    margin-bottom: 1.55rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .what-visual,
    .what-copy {
        transform: none;
    }
}

.problem-card {
    max-width: 1000px;
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: #dc3545;
}

.problem-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ============================================
   4. HOW IT WORKS SECTION
   ============================================ */

.how-it-works-section {
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 212, 255, 0.1), transparent 32%),
        radial-gradient(circle at 82% 0%, rgba(13, 110, 253, 0.08), transparent 30%),
        linear-gradient(180deg, #171d27 0%, #10161f 100%);
    padding: 6rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Vertical Stepper Design */
.stepper-vertical {
    position: relative;
    padding-left: 100px;
}

/* Vertical connecting line - drawn from each item to next */
.stepper-item::before {
    content: '';
    position: absolute;
    left: -64px;  /* Center of 72px node: -100px + 36px */
    top: 72px;    /* Start below the icon */
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(0, 212, 255, 0.5) 0%,
        rgba(13, 110, 253, 0.3) 100%);
    z-index: 0;
}

/* No line after the last item */
.stepper-item:last-child::before {
    display: none;
}

.stepper-item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    min-height: 120px;
    padding-bottom: 1.5rem;
}

.stepper-item:last-child {
    padding-bottom: 0;
    min-height: auto;
}

.stepper-node {
    position: absolute;
    left: -100px;
    top: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #10161f;  /* Solid background to hide line behind */
    border: 3px solid rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.stepper-node .stepper-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00d4ff, #0d6efd);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a1628;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-node .ph-duotone {
    font-size: 2rem;
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.4);
}

.stepper-item:hover .stepper-node {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(13, 110, 253, 0.2));
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.stepper-content {
    flex: 1;
    padding-top: 1rem;
}

.stepper-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.stepper-item:hover .stepper-content h4 {
    color: #00d4ff;
}

.stepper-content p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Stepper responsive */
@media (max-width: 576px) {
    .stepper-vertical {
        padding-left: 70px;
    }

    .stepper-item::before {
        left: -48px;  /* Center of 44px node: -70px + 22px */
        top: 44px;    /* Start below the icon */
    }

    .stepper-item {
        min-height: 90px;
    }

    .stepper-node {
        left: -70px;
        width: 44px;
        height: 44px;
    }

    .stepper-node .ph-duotone {
        font-size: 1.25rem;
    }

    .stepper-node .stepper-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -5px;
        right: -5px;
    }

    .stepper-content {
        padding-top: 0.25rem;
    }

    .stepper-content h4 {
        font-size: 1rem;
    }

    .stepper-content p {
        font-size: 0.9rem;
    }
}

.step-card {
    padding: 2.5rem 1.75rem 2.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(18, 22, 28, 0.9) 60%, rgba(18, 22, 28, 0.95) 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 16px 32px rgba(0, 212, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.step-number {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff 0%, #0d6efd 100%);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 212, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.step-icon {
    font-size: 2.6rem;
    margin: 0.5rem 0 1rem;
    color: #00c2ff;
}

.step-card h4 {
    font-size: 1.22rem;
    font-weight: 600;
    margin: 0.6rem 0 0.9rem;
    color: #eef3fb;
}

.step-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    color: rgba(220, 230, 242, 0.75);
    font-size: 0.97rem;
    line-height: 1.55;
}

.step-list li {
    margin-bottom: 0.5rem;
}

.how-it-works-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.how-it-works-diagram .diagram-node {
    min-width: 150px;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.how-it-works-diagram .diagram-node i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

.how-it-works-diagram .diagram-node span {
    font-weight: 700;
}

.how-it-works-diagram .diagram-node small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
}

.diagram-arrow {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.5rem;
}

.pipeline-diagram {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-step {
    padding: 0.75rem 1.5rem;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 8px;
    font-weight: 600;
    color: #0d6efd;
}

/* Horizontal Timeline Design */
.timeline-container {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(0, 212, 255, 0.3) 0%,
        rgba(0, 212, 255, 0.6) 50%,
        rgba(13, 110, 253, 0.3) 100%);
    border-radius: 2px;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
}

.timeline-node {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(13, 110, 253, 0.15));
    border: 3px solid rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #00d4ff;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.timeline-node .ph-duotone {
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.4);
}

.timeline-step:hover .timeline-node {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(13, 110, 253, 0.25));
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.timeline-content {
    max-width: 180px;
}

.timeline-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    background: linear-gradient(135deg, #00d4ff, #0d6efd);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.timeline-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* Timeline responsive - stack on mobile */
@media (max-width: 768px) {
    .timeline-container {
        padding: 1rem 0;
    }

    .timeline-line {
        display: none;
    }

    .timeline-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .timeline-node {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        margin-bottom: 0;
    }

    .timeline-content {
        max-width: none;
    }
}

/* ============================================
   5. FEATURES SECTION
   ============================================ */

.features-section {
    background: #2b3035;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.2), 0 0 40px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3), rgba(0, 212, 255, 0.2));
    border-radius: 16px;
    font-size: 2rem;
    color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 1;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #adb5bd;
    line-height: 1.6;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.feature-list li {
    margin-bottom: 0.4rem;
}

/* Minimal List Design for Features */
.feature-list-minimal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

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

/* Ensure collapsed section items have same spacing */
.collapse .feature-item:first-child {
    padding-top: 1.5rem;
}

.feature-item:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.feature-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(13, 110, 253, 0.1));
    border-radius: 12px;
    font-size: 1.5rem;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-item-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(13, 110, 253, 0.2));
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.feature-item-icon .ph-duotone {
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.4);
}

.feature-item-content {
    flex: 1;
}

.feature-item-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-item-content h4 {
    color: #00d4ff;
}

.feature-item-content p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   6. INSIGHT VIEWER SECTION
   ============================================ */

.insight-section {
    background: #13171b;
    padding: 6rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.insight-card.glassmorphic {
    padding: 2.5rem;
}

.insight-text-column {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insight-eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #6c757d;
}

.insight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: #adb5bd;
    line-height: 1.5;
}

.insight-list i {
    color: #00d4ff;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.insight-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-cta-text strong {
    font-size: 1rem;
}

.insight-viewer-column {
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.viewer-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.viewer-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #6c757d;
}

.viewer-mode-group {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.35rem;
}

.viewer-mode-btn {
    border: none;
    background: transparent;
    color: #adb5bd;
    font-weight: 600;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.viewer-mode-btn.active {
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
}

.viewer-stage {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 380px;
    background: #050709;
}

@media (min-width: 1400px) {
    .viewer-stage {
        min-height: 420px;
    }
}

.viewer-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.viewer-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(13, 110, 253, 0.3), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.viewer-stage[data-mode="heatmap"]::after {
    opacity: 0.45;
}

.viewer-stage[data-mode="validation"]::after {
    opacity: 0.6;
    background: radial-gradient(circle at 35% 65%, rgba(32, 201, 151, 0.4), transparent 60%);
}

.viewer-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.viewer-layer-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.65);
    color: #f8f9fa;
    z-index: 2;
}

.viewer-hotspot {
    position: absolute;
    width: 150px;
    height: 110px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.7);
    background: rgba(13, 110, 253, 0.12);
    color: #fff;
    padding: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 2;
}

.hotspot-heatmap {
    top: 20%;
    right: 8%;
}

.hotspot-validation {
    bottom: 14%;
    left: 12%;
}

.viewer-stage[data-mode="heatmap"] .hotspot-heatmap,
.viewer-stage[data-mode="validation"] .hotspot-validation {
    opacity: 1;
    transform: translateY(0);
}

.viewer-stage[data-mode="validation"] .hotspot-validation {
    background: rgba(32, 201, 151, 0.2);
    border-color: rgba(32, 201, 151, 0.8);
}

.viewer-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.viewer-metric {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.metric-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6c757d;
    display: block;
    margin-bottom: 0.35rem;
}

.viewer-metric strong {
    font-size: 1.25rem;
    color: #ffffff;
}

.viewer-caption {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Image Comparison Slider */
.image-comparison-slider {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #050709;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 1400px) {
    .image-comparison-slider {
        min-height: 500px;
    }
}

.comparison-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

@media (min-width: 1400px) {
    .comparison-image-container {
        min-height: 500px;
    }
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.comparison-image-before {
    z-index: 1;
}

.comparison-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 0 0 50%);
    z-index: 2;
}

.comparison-image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0, 212, 255, 0.8) 0%,
        rgba(13, 110, 253, 0.9) 50%,
        rgba(0, 212, 255, 0.8) 100%);
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6),
                0 0 40px rgba(13, 110, 253, 0.4);
    transition: box-shadow 0.3s ease;
}

.comparison-divider:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8),
                0 0 60px rgba(13, 110, 253, 0.6);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5),
                0 0 40px rgba(13, 110, 253, 0.3);
    cursor: ew-resize;
    transition: all 0.3s ease;
    animation: pulse-handle 2s ease-in-out infinite;
}

@keyframes pulse-handle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5),
                    0 0 40px rgba(13, 110, 253, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 212, 255, 0.7),
                    0 0 50px rgba(13, 110, 253, 0.5);
    }
}

.comparison-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.8),
                0 0 60px rgba(13, 110, 253, 0.6);
    animation: none;
}

.comparison-handle:active {
    transform: translate(-50%, -50%) scale(1.05);
}

.comparison-label {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    z-index: 4;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-label-before {
    left: 1.5rem;
}

.comparison-label-after {
    right: 1.5rem;
}

/* Detection Markers */
.detection-marker {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    border: 3px solid rgba(255, 59, 48, 0.9);
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.6),
                0 0 40px rgba(255, 59, 48, 0.4),
                inset 0 0 10px rgba(255, 59, 48, 0.2);
    animation: pulse-marker 2s ease-in-out infinite;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.detection-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background: transparent;
    border-color: rgba(255, 59, 48, 1);
    border-width: 4px;
    box-shadow: 0 0 30px rgba(255, 59, 48, 1),
                0 0 60px rgba(255, 59, 48, 0.8),
                inset 0 0 15px rgba(255, 59, 48, 0.3);
    animation: none;
}

/* Marker sizes */
.marker-small {
    width: 16px;
    height: 16px;
}

.marker-medium {
    width: 24px;
    height: 24px;
}

.marker-large {
    width: 32px;
    height: 32px;
}

/* Pulsing ring effect */
.detection-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 59, 48, 0.6);
    animation: pulse-ring 2s ease-in-out infinite;
}

.detection-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 59, 48, 0.4);
    animation: pulse-ring 2s ease-in-out infinite 0.3s;
}

@keyframes pulse-marker {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* Marker click hint tooltip */
.marker-hint {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: hint-bounce 1.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

.marker-hint::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.85);
}

.marker-hint .ph-duotone {
    font-size: 1.1rem;
    --ph-duotone-primary: #00d4ff;
    --ph-duotone-secondary: rgba(0, 212, 255, 0.4);
}

@keyframes hint-bounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(5px);
    }
}

/* Hide hint after user clicks any marker */
.hint-dismissed .marker-hint {
    display: none;
}

/* Detection Detail Side Panel */
.detection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.detection-modal.active {
    display: block;
    pointer-events: auto;
}

.detection-modal .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detection-modal.active .modal-backdrop {
    opacity: 1;
}

.detection-modal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: rgba(26, 29, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(13, 110, 253, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.detection-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .detection-modal .modal-content {
        width: 95%;
    }
}

.detection-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.detection-modal .modal-close:hover {
    background: rgba(255, 59, 48, 0.8);
    transform: rotate(90deg) scale(1.1);
}

.detection-modal .modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 7rem;
}

.detection-modal .modal-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.detection-info {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #adb5bd;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.detection-number,
.detection-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.detection-label span {
    color: #00d4ff;
    font-weight: 600;
}

.detection-modal .modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 150px); /* Account for header */
}

.detection-modal .modal-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detection-modal .modal-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.detection-modal .modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.detection-modal .modal-image.active {
    opacity: 1;
}

.detection-modal .modal-toggle-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    border: 2px solid rgba(0, 212, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    z-index: 10;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 212, 255, 0.7);
    }
}

.detection-modal .modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
}

.detection-modal .modal-footer small {
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detection-modal .modal-footer i {
    color: #00d4ff;
    animation: rotate 2s linear infinite;
}

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

/* Responsive Side Panel */
@media (max-width: 768px) {
    .detection-modal .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .detection-modal .modal-header h4 {
        font-size: 1.25rem;
    }

    .detection-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detection-modal .modal-body {
        padding: 1.5rem;
    }

    .detection-modal .modal-toggle-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .detection-modal .modal-header {
        padding: 1rem;
    }

    .detection-modal .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 991px) {
    .insight-card.glassmorphic {
        padding: 2rem;
    }

    .insight-text-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .insight-viewer-column {
        padding-left: 0;
    }

    .viewer-mode-group {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .viewer-mode-group {
        flex-direction: column;
        border-radius: 16px;
    }

    .viewer-mode-btn {
        width: 100%;
        text-align: center;
    }

    .viewer-stage {
        min-height: 260px;
    }
}

/* ============================================
   7. USE CASES SECTION
   ============================================ */

.use-cases-section {
    background: #2b3035;
    padding: 5rem 0;
}

.use-case-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    height: 100%;
}

.use-case-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #00d4ff;
}

.use-case-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.use-case-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-case-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00d4ff;
}

.use-case-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.use-case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.use-case-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.use-case-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ============================================
   8. CLIENT SHOWCASE SECTION
   ============================================ */

.clients-section {
    background: #111418;
    padding: 5rem 0;
}

.client-logo-marquee {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.client-logo-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    animation: clientScroll 32s linear infinite;
    width: max-content;
}

.client-logo-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 86px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.client-logo-card img {
    max-height: 60px;
    width: auto;
    filter: none;
    opacity: 1;
}

@keyframes clientScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .client-logo-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.tech-feature-list {
    margin-top: 2rem;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-feature i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.tech-feature strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.tech-diagram-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.pipeline-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
}

.pipeline-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(0, 212, 255, 0.15));
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pipeline-stage:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25), 0 0 30px rgba(13, 110, 253, 0.15);
}

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

.stage-icon-wrapper {
    margin-bottom: 0.75rem;
}

.stage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

/* Gradient colors for each stage */
.pipeline-stage[data-stage="1"] .stage-icon {
    background: linear-gradient(135deg, #0d6efd, #00d4ff);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.pipeline-stage[data-stage="2"] .stage-icon {
    background: linear-gradient(135deg, #00d4ff, #20c997);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.pipeline-stage[data-stage="3"] .stage-icon {
    background: linear-gradient(135deg, #20c997, #0dcaf0);
    color: white;
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}

.pipeline-stage[data-stage="4"] .stage-icon {
    background: linear-gradient(135deg, #0dcaf0, #6610f2);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.4);
}

.pipeline-stage[data-stage="5"] .stage-icon {
    background: linear-gradient(135deg, #6610f2, #d63384);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 16, 242, 0.4);
}

.pipeline-stage:hover .stage-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.stage-name {
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.stage-desc {
    font-size: 0.8rem;
    color: #adb5bd;
    text-align: center;
    font-style: italic;
}

/* Pipeline connectors */
.pipeline-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 32px;
    width: 2px;
}

.connector-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.5), rgba(0, 212, 255, 0.5));
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(0, 212, 255, 0.6);
}

.connector-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* ============================================
   9. FINAL CTA SECTION
   ============================================ */

.final-cta-section {
    background: linear-gradient(135deg, #0a4275 0%, #0d6efd 50%, #00d4ff 100%);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.cta-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-actions {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-info {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================
   10. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .hero-trust {
        padding: 1.5rem 0;
    }

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

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

    .hero-card .powered-by {
        justify-content: center;
    }

    .glassmorphic,
    .solution-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-ctas .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.1rem;
        min-width: 0;
        flex: 1 1 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .how-it-works-diagram {
        flex-direction: column;
    }

    .integration-pipeline {
        justify-content: center;
    }

    .glassmorphic,
    .solution-card {
        padding: 1.5rem;
    }

    .feature-card,
    .use-case-category,
    .step-card,
    .integration-card,
    .solution-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 12px clamp(1.1rem, 4vw + 0.5rem, 1.6rem) 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw + 1.2rem, 2.5rem);
        line-height: 1.15;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-break: normal;
        hyphens: none;
    }

    .hero-ctas {
        margin-top: 0.4rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        display: inline-flex;
        width: 90%;
        max-width: 360px;
        min-width: 240px;
        margin: 0 auto 0.85rem;
        height: auto;
    }

    .hero-ctas .btn-lg {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
        min-width: 0;
        flex: 0 0 auto;
    }

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

    .hero-trust {
        padding: 1rem 0;
    }

    .hero-trust .row {
        justify-content: center;
    }

    .hero-trust .col-6.col-md-4:last-child,
    .hero-trust .col-8.col-md-4:last-child {
        flex: 0 0 auto;
        max-width: 80%;
    }

    .hero-card {
        text-align: left;
    }

    .use-case-item {
        flex-direction: column;
    }

    .integration-pipeline {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* ============================================
   11. ANIMATIONS & TRANSITIONS
   ============================================ */

[data-aos] {
    transition-duration: 0.8s;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
}

/* ============================================
   12. ACCESSIBILITY
   ============================================ */

/* Focus styles for keyboard navigation */
.btn:focus,
.btn-link-light:focus,
a:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glassmorphic {
        border-width: 2px;
    }

    .feature-card:hover,
    .use-case-category,
    .step-card:hover,
    .solution-card,
    .integration-card:hover {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-background {
        animation: none;
    }
}
.stat-number[data-count] {
    animation: countUp 0.7s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION COLLAPSE TOGGLE BUTTONS
   ============================================ */

.section-collapse-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bs-light);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.section-collapse-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--bs-light);
}

.section-collapse-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
    outline: none;
}

/* Toggle text visibility based on aria-expanded state */
.section-collapse-toggle[aria-expanded="true"] .toggle-text-show {
    display: none;
}

.section-collapse-toggle[aria-expanded="false"] .toggle-text-hide {
    display: none;
}

.section-collapse-toggle .toggle-text-hide {
    display: none;
}

.section-collapse-toggle[aria-expanded="true"] .toggle-text-hide {
    display: inline;
}

/* Smooth collapse animation */
.collapse {
    transition: height 0.35s ease;
}

/* Use cases collapse spacing */
.use-case-list > .collapse > .use-case-item,
.use-case-list > .collapsing > .use-case-item {
    margin-bottom: 1rem;
}

.use-case-list > .collapse > .use-case-item:last-child,
.use-case-list > .collapsing > .use-case-item:last-child {
    margin-bottom: 0;
}

/* Features collapse spacing */
#moreFeatures .row {
    margin-top: 0;
}

#moreFeatures .col-md-6:first-child {
    margin-top: 1.5rem;
}

/* How It Works step cards animation enhancement */
.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
