:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: #0a0a0a;
    --bg-card-hover: #141414;
    --accent-blue: #5d5dff;
    --accent-purple: #a855f7;
    --accent-pink: #ff2e93;
    --accent-cyan: #00f0ff;
    --accent-green: #00ff9d;
    --accent-orange: #ff9f1c;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --gradient-blue: linear-gradient(135deg, #5d5dff 0%, #a855f7 100%);
    --gradient-glow: linear-gradient(180deg, rgba(93, 93, 255, 0.15) 0%, transparent 100%);
    --font-primary: 'Nunito', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-btn: 100px;
    --container-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle Deep Space Gradient */
    background: radial-gradient(circle at 50% 0%, #050a14 0%, #000000 60%);
    z-index: -2;
    pointer-events: none;
}

/* Backgrounds */
.cinematic-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998; /* Just below neural-bg (z=9999) */
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
}

.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Overlay mode: Sit on top of everything */
    pointer-events: none; /* Click-through */
    mix-blend-mode: screen; /* Ensure it blends nicely with black backgrounds */
    opacity: 0.6;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(93, 93, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 25%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 8rem 0;
    position: relative;
}



/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0; /* Reduced from 0.8rem to compensate for bigger logo */
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0; /* Prevent logo shrinking */
}

.logo-img {
    height: 60px; /* Increased from 50px */
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0 2rem; /* Add margin to separate from logo and CTA */
    align-items: center; /* Ensure all items, especially text-only links, are vertically centered */
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0; /* Keep buttons sized properly */
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
}

/* Dropdown Navigation Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Mobile Menu Overlay - Force Hide on Desktop */
.mobile-menu-overlay {
    display: none !important;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropbtn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 0;
    z-index: 1000;
    margin-top: 1rem;
    animation: fadeInSlideUp 0.2s ease forwards;
}

/* Specific adjustment for wider dropdowns */
.dropdown:nth-child(2) .dropdown-content {
    min-width: 280px; /* Solutions dropdown */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Invisible bridge to prevent closing when moving mouse */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background: transparent;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 1.75rem; /* Slight slide effect */
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

/* LexAnnotate Promo - Repositioned to Nav CTA */
.lex-annotate-promo {
    position: absolute;
    top: 150%;
    right: 0; /* Align right to CTA button */
    left: auto;
    transform: none; /* Reset center transform */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align arrow to right */
    width: 280px;
    opacity: 0;
    animation: fadeInSlideUp 0.8s ease-out 1s forwards;
    pointer-events: none;
    z-index: 100;
}

.promo-arrow-icon {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 8px;
    margin-right: 40px; /* Align arrow somewhat with the button */
    animation: bounceUp 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 8px var(--accent-blue));
}

.promo-text-box {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    color: #fff;
    text-align: left; /* Text left aligned inside box */
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(93, 93, 255, 0.25);
    position: relative;
}

/* Small triangle on top of box */
.promo-text-box::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 42px; /* Match arrow position */
    left: auto;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 10, 0.95);
    border-left: 1px solid var(--accent-blue);
    border-top: 1px solid var(--accent-blue);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem; /* Account for fixed nav */
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* Give more space to text to prevent wrapping */
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem); /* Slightly smaller max to fit single lines */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    white-space: nowrap; /* Force single line if space permits */
}

@media (max-width: 1200px) {
    .hero-content h1 {
        white-space: normal; /* Allow wrap on smaller laptops */
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brain-hero-container {
    width: 100%;
    height: 100%;
}

/* Vertical Accordion Section (New Design) */
.vertical-accordion-section {
    padding: 8rem 0;
    /* background: var(--bg-primary); Removed for neural bg visibility */
}

.accordion-header {
    margin-bottom: 4rem;
}

.accordion-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.accordion-header h2 span {
    color: var(--accent-blue);
}

.vertical-tabs-container {
    display: flex;
    height: 800px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.vertical-tab-panel {
    position: relative;
    flex: 0 0 100px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

.vertical-tab-panel:first-child {
    border-left: 1px solid var(--border-color);
}

.vertical-tab-panel.active {
    flex: 1;
    cursor: default;
}

/* Collapsed State Content */
.tab-collapsed-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 0;
    align-items: center;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.vertical-tab-panel.active .tab-collapsed-content {
    opacity: 0;
    pointer-events: none;
}

.tab-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.tab-vertical-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-top: 2rem;
}

/* Expanded State Content */
.tab-expanded-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease 0.2s, visibility 0s linear 0.2s;
    display: flex;
}

.vertical-tab-panel.active .tab-expanded-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s;
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    width: 100%;
    height: 100%;
}

.tab-text-content {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.expanded-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tab-text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.tab-text-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
}

.tab-visual-content {
    position: relative;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tab-visual-content img {
    width: 80%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(93, 93, 255, 0.2));
}

/* Autonomous Levels Section */
.autonomous-section {
    padding: 6rem 0;
    position: relative;
    z-index: 5; /* Elevate above background/other sections */
}

.auto-header {
    text-align: center;
    margin-bottom: 4rem;
}

.auto-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
}

.auto-header .highlight-green {
    color: var(--accent-green);
}

.auto-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.auto-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0.5; /* Inactive State */
    transform: scale(0.95);
    position: relative;
    overflow: hidden;
    cursor: pointer !important; /* Force Clickable */
    z-index: 1;
    pointer-events: auto; /* Ensure events are captured */
}

.auto-card.active {
    opacity: 1;
    transform: scale(1.02);
    border-color: var(--accent-blue);
    background: rgba(20, 20, 20, 0.7);
    box-shadow: 0 10px 40px -10px rgba(93, 93, 255, 0.2);
    z-index: 10;
}

.auto-card[data-level="4"].active, 
.auto-card[data-level="5"].active {
    border-color: var(--accent-green);
    box-shadow: 0 10px 40px -10px rgba(0, 255, 157, 0.2);
}

.card-level-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auto-card.active .card-level-badge {
    background: var(--accent-blue);
}

.auto-card[data-level="4"].active .card-level-badge,
.auto-card[data-level="5"].active .card-level-badge {
    background: var(--accent-green);
}

.auto-card-content h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auto-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 2.4rem; /* Fixed height for alignment */
}

.brain-visual {
    width: 100%;
    height: 120px;
    position: relative;
    margin-bottom: 1.5rem;
    pointer-events: none; /* Let clicks pass through to card */
}

.brain-canvas {
    width: 100%;
    height: 100%;
}

.auto-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    height: 4rem; /* Increased height to prevent overlap */
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-gauge-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    border-radius: 3px;
}

.auto-stat {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Slider */
.autonomy-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.5);
    padding: 1.5rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.slider-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.slider-label.human { color: var(--accent-blue); }
.slider-label.ai { color: var(--accent-green); }

.slider-track-wrapper {
    flex-grow: 1;
    position: relative;
    height: 8px;
}

.autonomy-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.slider-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    z-index: 1;
}

/* Custom Thumb */
.autonomy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}

.autonomy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.autonomy-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .auto-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auto-card {
        opacity: 1;
        transform: scale(1);
    }
    
    .autonomy-slider-container {
        display: none; /* Hide interactive slider on mobile, show static cards */
    }
}

/* Ecosystem Section */
.ecosystem-section {
    background: var(--bg-secondary);
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.eco-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.eco-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(93, 93, 255, 0.1);
}

.eco-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.eco-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.eco-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

/* Industry Solutions Section (Redesign) */
.industry-solutions-section {
    padding: 8rem 0;
    /* background: var(--bg-primary); Removed for neural bg visibility */
    position: relative;
}

.industry-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: flex-end; /* Changed from end for better browser support */
}

.industry-title-area h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 500;
}

.industry-title-area .sub-label {
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    font-family: var(--font-mono);
}

.industry-title-area .highlight-green {
    color: var(--accent-blue);
    display: block;
}

.industry-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    padding-bottom: 1rem; /* Align visual with text baseline */
}

.industry-content-grid {
    display: grid;
    grid-template-columns: 60% 40%; /* Adjusted for wider image */
    gap: 4rem;
    position: relative;
    min-height: 500px;
    align-items: start; /* Align to top */
}

.industry-list {
    display: flex;
    flex-direction: column;
}

.industry-visual-col {
    position: sticky; /* Make it stick */
    top: 150px; /* Offset from top to account for nav */
    align-self: start; /* Important for sticky to work inside grid */
    height: auto;
    width: 100%;
    z-index: 10; /* Ensure visual is above other content */
}

.industry-image-frame {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Force 1:1 Square Ratio */
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000; /* Black background for letterboxing */
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.industry-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure full image is visible */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Industry List Styling */
.industry-item {
    padding: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    margin-bottom: 0.5rem;
}

.industry-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.industry-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.industry-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.industry-item.active h3 {
    color: var(--text-primary);
}

.industry-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-item.active .industry-details {
    max-height: 800px; /* Allow expansion */
    opacity: 1;
    margin-top: 1.5rem;
}

.industry-features li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.industry-features li::before {
    content: "•";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.industry-img.active {
    opacity: 1;
}

@media (max-width: 1024px) {
    .industry-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .industry-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .industry-visual-col {
        height: 100%;
        order: -1; /* Show image above list on mobile */
        margin-bottom: 2rem;
    }

    .industry-image-frame {
        height: auto; /* Let aspect-ratio handle height */
    }
    
    .industry-item {
        padding: 1.5rem; /* Keep padding consistent */
    }
    
    .industry-item h3 {
        font-size: 1.25rem; /* Smaller heading on mobile */
    }
}

/* Scale AI Style Product Section */
.scale-product-section {
    /* background: #000; Removed for neural bg visibility */
    color: #fff;
    padding: 8rem 0;
    /* overflow: hidden; <--- REMOVED TO ALLOW STICKY */
}

.scale-header {
    text-align: center;
    margin-bottom: 6rem;
}

.scale-header h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.scale-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0;
}

.scale-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

/* Left Menu */
.scale-menu {
    display: flex;
    flex-direction: column;
}

.scale-item {
    padding: 2.5rem 0;
    border-top: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.scale-item:last-child {
    border-bottom: 1px solid #333;
}

.scale-item.active {
    opacity: 1;
}

.item-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.item-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.scale-item.active .item-desc {
    max-height: 200px;
    margin-top: 1rem;
}

.item-sub-title {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 
 * Replaced the complex CSS 3D engine with a simpler container 
 * for the Canvas animation 'product-flow.js'
 */

.scale-visual-area {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed perspective and 3D transforms */
}

#product-flow-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Remove old isometric styles if they are no longer needed 
   or keep them commented out if you want to be safe. 
   For cleanliness, I am replacing the block of 3D CSS 
   with just the canvas styling needed for the new animation. 
*/

@media (max-width: 1024px) {
    .scale-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .scale-visual-area {
        height: 400px;
        order: -1;
    }
    .iso-scene {
        width: 300px;
        height: 300px;
    }
}

/* Feature Row Updates */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-row.reversed {
    direction: rtl; /* Simple way to flip, but better to reorder columns */
}

.feature-row.reversed .feature-content {
    direction: ltr;
}

.feature-content {
    padding-right: 2rem;
}

.feature-row.reversed .feature-content {
    padding-right: 0;
    padding-left: 2rem;
}

.feature-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.feature-visual img, .feature-visual svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-item svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px -10px rgba(93, 93, 255, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* Stats Section */
.stats-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* POC / CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(93, 93, 255, 0.05) 100%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Trusted By Section */
.trusted-by-section {
    padding: 2rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    /* background: var(--bg-primary); */
}

.trusted-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo-item {
    height: 32px;
    width: auto;
    object-fit: contain;
    /* Monochrome light gray by default for dark mode */
    filter: grayscale(100%) brightness(0) invert(0.7); 
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-2px);
}

/* Quidient Specific Fix (JPEG with background) */
.logo-item.logo-bg-fix {
    /* Invert to make white bg black, then screen to remove black */
    filter: invert(1) grayscale(100%);
    mix-blend-mode: screen; 
}

.logo-item.logo-bg-fix:hover {
    filter: invert(1); /* Keep inverted */
    opacity: 1;
}

/* Scale up for smaller logos (Bonsai) */
.logo-item.logo-scale-up {
    height: 35px; /* Reduced from 55px to fix oversized logo */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .logo-grid {
        gap: 2rem;
    }
    .logo-item {
        height: 28px;
    }
}

@media (max-width: 600px) {
    .logo-grid {
        gap: 1.5rem;
        justify-content: space-evenly;
    }
    .logo-item {
        height: 24px;
    }
}

/* Final CTA Section */
.final-cta-section {
    /* background-color: #000; Removed for neural bg visibility */
    padding: 10rem 0; /* Large padding like screenshot */
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.final-cta-content h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400; /* Thinner weight like screenshot */
    margin-bottom: 1.5rem;
    color: #e5e5e5; /* Slightly off-white */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.final-cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.btn-pill {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pill:hover {
    border-color: var(--text-primary);
    background: #2a2a2a;
}

.btn-text {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.8); /* Semi-transparent */
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--text-primary);
}

/* Testimonials Section */
.testimonials-section {
    /* background: var(--bg-secondary); Removed for neural bg visibility */
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.testimonials-header {
    text-align: left;
    margin-bottom: 6rem;
}

.testimonials-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.testimonials-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.testimonial-quote {
    margin-bottom: 2rem;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--border-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

/* Use Cases Section */
.use-cases-section {
    /* background: #000; Removed for neural bg visibility */
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.use-cases-header {
    text-align: left;
    margin-bottom: 4rem;
}

.use-cases-header h2 {
    font-size: 3.5rem;
    max-width: 800px;
    margin-top: 1rem;
    font-weight: 500;
}

.use-cases-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 800px;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Flex sizing not needed in grid */
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.case-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.case-icon {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.case-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.case-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.case-stat {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: var(--font-mono);
}

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

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 280px;
    }
}
.lex-annotate-promo.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease;
    animation: none;
}

/* Animations */
.animate-on-scroll {
    opacity: 1; /* Changed from 0 to ensure visibility if JS fails */
    transform: translateY(0); /* Changed from 30px */
    transition: all 0.8s ease;
}

/* Optional: Only apply hidden state if JS is active by using a more specific selector or JS-added class if needed. 
   But for now, to fix the "not showing" issue, we default to visible. 
   If we want animation, we can add a class '.hidden-initially' via JS on load.
*/

.animate-on-scroll.hidden-initially {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-row.reversed {
        direction: ltr;
    }
    
    .feature-content {
        padding: 0;
        order: 1;
    }
    
    .feature-visual {
        order: 2;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    /* Responsive Vertical Tabs */
    .vertical-tabs-container {
        flex-direction: column;
        height: auto;
    }
    
    .vertical-tab-panel {
        flex: none;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
    
    .vertical-tab-panel:first-child {
        border-top: 1px solid var(--border-color);
    }
    
    .vertical-tab-panel.active {
        flex: none;
    }
    
    .tab-collapsed-content {
        position: relative;
        width: 100%;
        height: 80px;
        flex-direction: row;
        writing-mode: horizontal-tb;
        padding: 0 2rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .tab-number {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    
    .tab-vertical-title {
        writing-mode: horizontal-tb;
        transform: none;
        margin-top: 0;
        margin-right: auto;
        margin-left: 2rem;
    }
    
    .tab-expanded-content {
        position: relative;
        left: 0;
        height: auto;
        display: none; 
        opacity: 1;
        visibility: visible;
    }
    
    .vertical-tab-panel.active .tab-expanded-content {
        display: block;
    }
    
    .tab-content-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-text-content {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-visual-content {
        height: 300px;
        border-left: none;
    }
    
    .tab-visual-content img {
        width: 60%;
        max-height: 80%;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Trust & Security Section */
.trust-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: transparent;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-visual-col {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: radial-gradient(circle at center, rgba(20, 20, 35, 0.8), transparent 70%); Removed to avoid blockiness */
}

.trust-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
}

#trust-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.trust-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.secure-badge {
    background: rgba(93, 93, 255, 0.1);
    border: 1px solid var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-content-col {
    padding-left: 2rem;
}

.trust-header {
    margin-bottom: 3rem;
}

.trust-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.trust-item:hover {
    opacity: 1;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-blue);
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item:nth-child(2) .trust-icon { color: var(--accent-purple); }
.trust-item:nth-child(3) .trust-icon { color: var(--accent-green); }

.trust-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.trust-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .trust-content-col {
        padding-left: 0;
    }

    .trust-visual-col {
        height: 400px;
        order: -1;
    }
}

/* Ecosystem Section (Using Trust Layout) */
.ecosystem-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: transparent; /* Alternating background */
    border-top: 1px solid var(--border-color);
}

/* Specific styling for Ecosystem alternating layout */
.trust-grid.ecosystem-layout .trust-content-col {
    padding-left: 0;
    padding-right: 2rem;
    order: 1; /* Left on desktop */
}

.trust-grid.ecosystem-layout .trust-visual-col {
    order: 2; /* Right on desktop */
}

@media (max-width: 1024px) {
    .trust-grid.ecosystem-layout .trust-content-col {
        order: 1; /* Content below visual on mobile */
        padding-right: 0;
    }
    
    .trust-grid.ecosystem-layout .trust-visual-col {
        order: -1; /* Visual first on mobile */
    }
}

/* Continuous Operations Process Section - Integrated Technical Style */
.continuous-ops-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.continuous-ops-header {
    text-align: center;
    margin-bottom: 5rem;
}

.continuous-ops-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.continuous-ops-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

.ops-process-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
    margin-top: 2rem;
}

/* Technical "Bus Line" Connector */
.ops-connecting-line {
    position: absolute;
    top: 24px; /* Aligned with top badges/header area */
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.ops-connecting-pulse {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    animation: busPulse 4s linear infinite;
    opacity: 0.5;
}

@keyframes busPulse {
    0% { left: -20%; }
    100% { left: 120%; }
}

.ops-card {
    /* Integrated "Module" Look */
    background: rgba(255, 255, 255, 0.02); /* Very subtle fill */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); /* Sharper corners */
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* Interactive Border Highlight */
.ops-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.ops-card:hover {
    background: var(--bg-card); /* Slightly lighter on hover */
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Number Badge - Technical Label */
.ops-number-badge {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    z-index: 2;
    letter-spacing: 0.1em;
}

.ops-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align */
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.ops-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px; /* Slightly rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ops-card:hover .ops-icon {
    border-color: var(--card-accent);
    color: var(--card-accent);
}

.ops-card h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.ops-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.ops-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.5;
    text-align: left;
}

/* Simple crisp bullet */
.ops-features li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--text-muted); 
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.ops-card:hover .ops-features li::before {
    color: var(--card-accent);
}

/* Card Specific Accents (CSS Variables) */
.ops-card[data-step="1"] { --card-accent: #3b82f6; } /* Blue */
.ops-card[data-step="2"] { --card-accent: #a855f7; } /* Purple */
.ops-card[data-step="3"] { --card-accent: #10b981; } /* Green */
.ops-card[data-step="4"] { --card-accent: #f97316; } /* Orange */
.ops-card[data-step="5"] { --card-accent: #ec4899; } /* Pink */

.ops-card:hover::before {
    background: var(--card-accent);
}

/* Sequential Pulse Animation for Cards */
@keyframes cardScanPulse {
    0% { border-color: var(--border-color); background: rgba(255, 255, 255, 0.02); }
    5% { border-color: var(--card-accent); background: rgba(255, 255, 255, 0.05); } /* Active start */
    15% { border-color: var(--card-accent); background: rgba(255, 255, 255, 0.05); } /* Active hold */
    30% { border-color: var(--border-color); background: rgba(255, 255, 255, 0.02); } /* Fade out */
    100% { border-color: var(--border-color); background: rgba(255, 255, 255, 0.02); }
}

@keyframes iconScanPulse {
    0% { border-color: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
    5% { border-color: var(--card-accent); color: var(--card-accent); }
    15% { border-color: var(--card-accent); color: var(--card-accent); }
    30% { border-color: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
    100% { border-color: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
}

/* Apply animations */
.ops-card {
    animation: cardScanPulse 4s linear infinite;
}

.ops-card .ops-icon {
    animation: iconScanPulse 4s linear infinite;
}

/* Stagger delays to match the bus line pulse (4s duration) */
.ops-card[data-step="1"], .ops-card[data-step="1"] .ops-icon { animation-delay: 0.5s; }
.ops-card[data-step="2"], .ops-card[data-step="2"] .ops-icon { animation-delay: 1.1s; }
.ops-card[data-step="3"], .ops-card[data-step="3"] .ops-icon { animation-delay: 1.7s; }
.ops-card[data-step="4"], .ops-card[data-step="4"] .ops-icon { animation-delay: 2.3s; }
.ops-card[data-step="5"], .ops-card[data-step="5"] .ops-icon { animation-delay: 2.9s; }

/* Ensure hover state overrides animation */
.ops-card:hover {
    background: var(--bg-card) !important; 
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px);
}

.ops-card:hover .ops-icon {
    border-color: var(--card-accent) !important;
    color: var(--card-accent) !important;
}

/* Keep the interactive top border highlight on hover */
.ops-card:hover::before {
    background: var(--card-accent) !important;
}

@media (max-width: 1024px) {
    .ops-process-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ops-connecting-line {
        display: none;
    }
    
    .ops-card {
        min-height: auto;
    }
    
    .ops-number-badge {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ops-card-header {
        align-items: center;
        text-align: center;
    }
    
    .ops-features li {
        padding-left: 0;
        text-align: center;
    }
    
    .ops-features li::before {
        display: none;
    }
}