:root {
    /* Colors */
    --bg: #ffffff;
    --fg: #1e293b;
    --fg-muted: #475569;
    --border: #e2e8f0;
    
    --primary: #0A1D3D;
    --primary-dark: #050e1f;
    --primary-light: #e6e9ef;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --surface: #ffffff;
    --surface-2: #f8fafc;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Manrope', system-ui, sans-serif;
    --font-accent: 'Playfair Display', serif;
    --font-mono: 'Space Mono', monospace;
    
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 3rem;
    --fs-hero: clamp(2.5rem, 5vw, 5rem);
    
    /* Responsive Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: clamp(1.25rem, 2.5vw, 1.5rem);
    --space-xl: clamp(1.5rem, 3.5vw, 2.25rem);
    --space-2xl: clamp(2rem, 5vw, 3.5rem);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-navbar: 500;
    --z-modal: 900;
    --z-tooltip: 1000;
    --z-cursor: 9999;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition: 0.35s;
    --transition-slow: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Accessibility: Keyboard Focus States */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (pointer: fine) {
    html { cursor: none; } /* Custom cursor only on desktop */
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Elements */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: min(1440px, 100%);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

section {
    padding-block: clamp(4rem, 8vw, 8rem);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor-outline.hover-active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Technical Dot Grid Overlay (Desktop Only) */
@media (min-width: 768px) {
    .hero::before, .about-section::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image: radial-gradient(#1e293b 2px, transparent 2px);
        background-size: 32px 32px;
        opacity: 0.12;
        pointer-events: none;
        z-index: 0;
    }
    
    .hero, .about-section {
        position: relative;
    }
}

/* Layout Utilities */
main {
    width: min(1440px, 100%);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    z-index: 100;
    color: var(--fg);
    background-color: rgba(255, 255, 255, 0.8);
    
    @supports (backdrop-filter: blur(12px)) {
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(12px);
    }
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1440px, 100%);
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-tagline {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    border-left: 1px solid var(--border);
    padding-left: var(--space-md);
    line-height: 1.4;
    max-width: 400px;
    white-space: normal;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: var(--space-xl);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
    align-self: flex-start;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--fg-muted);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: radial-gradient(circle at center, #f5f5f5 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
}

/* Trust Indicators */
.trust-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    padding-block: clamp(2rem, 4vw, 4rem);
}

.trust-container {
    width: min(1440px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    row-gap: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
}

.trust-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.trust-stat:not(:nth-child(4n))::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: var(--border);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
    font-weight: 500;
}

/* Diamond Zig-Zag Pipeline */
.diamond-grid-container {
    position: relative;
    width: 560px;
    height: 320px;
    margin: 0 auto;
    top: 10px;
}

.diamond-svg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.diamond-packet {
    stroke-dasharray: 40 678.82;
    animation: diamondDash 5s infinite;
}

@keyframes diamondDash {
    0% { stroke-dashoffset: 0; opacity: 0; }
    2% { stroke-dashoffset: 0; opacity: 1; }
    10% { stroke-dashoffset: -113.14; opacity: 1; }
    20% { stroke-dashoffset: -226.28; opacity: 1; }
    30% { stroke-dashoffset: -339.42; opacity: 1; }
    40% { stroke-dashoffset: -452.56; opacity: 1; }
    50% { stroke-dashoffset: -565.70; opacity: 1; }
    50.1% { stroke-dashoffset: -565.70; opacity: 0; }
    100% { stroke-dashoffset: -565.70; opacity: 0; }
}

.diamond-laser {
    stroke-dasharray: 113.14;
    animation: diamondLaser 5s infinite;
}

@keyframes diamondLaser {
    0%, 50% { stroke-dashoffset: 113.14; opacity: 0; }
    50.1% { stroke-dashoffset: 113.14; opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    65% { stroke-dashoffset: 0; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.d-node-wrapper {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 120px;
    transform: translate(-50%, -50%);
}

/* Staggered Coordinates */
.n-1 { top: 200px; left: 40px; }
.n-2 { top: 120px; left: 120px; }
.n-3 { top: 200px; left: 200px; }
.n-4 { top: 120px; left: 280px; }
.n-5 { top: 200px; left: 360px; }
.n-6 { top: 120px; left: 440px; }
.n-7 { top: 200px; left: 520px; }

.d-diamond {
    width: 64px;
    height: 64px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    animation: diamondPop 5s infinite;
}

.d-icon {
    transform: rotate(-45deg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.d-label {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--fg);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-diamond {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.highlight-diamond .d-icon {
    color: #f59e0b;
}
.highlight-label {
    color: #f59e0b;
}

/* Timings */
.n-1 .d-diamond { animation-delay: 0s; }
.n-2 .d-diamond { animation-delay: 0.5s; }
.n-3 .d-diamond { animation-delay: 1.0s; }
.n-4 .d-diamond { animation-delay: 1.5s; }
.n-5 .d-diamond { animation-delay: 2.0s; }
.n-6 .d-diamond { animation-delay: 2.5s; }
.n-7 .d-diamond { animation-delay: 3.0s; animation-name: finalDiamondPop; }

@keyframes diamondPop {
    0%, 90% { transform: rotate(45deg) scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-color: var(--border); }
    10% { transform: rotate(45deg) scale(1.15); box-shadow: 0 10px 25px rgba(10, 29, 61,0.2); border-color: var(--primary); }
    20% { transform: rotate(45deg) scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-color: var(--border); }
}

@keyframes finalDiamondPop {
    0%, 90% { transform: rotate(45deg) scale(1); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); border-color: #f59e0b; }
    10% { transform: rotate(45deg) scale(1.2); box-shadow: 0 10px 30px rgba(245,158,11,0.4); border-color: #f59e0b; }
    20% { transform: rotate(45deg) scale(1); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); border-color: #f59e0b; }
}

.decision-speed-graph {
    width: 100%;
    margin-top: auto;
    padding: var(--space-xl) var(--space-xl) var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 10;
}

.speed-graph-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
}

.speed-graph-body {
    position: relative;
    height: 140px;
    width: 100%;
}

.speed-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.zone-label {
    position: absolute;
    top: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-muted);
    z-index: 5;
}

.before-label { left: 40px; top: 15px; }
.after-label { right: 40px; top: 15px; color: #10b981; }

.graph-green-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #10b981;
    box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    transform: translateX(-50%);
    z-index: 2;
}

.anim-fast-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: speedDrawLine 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes speedDrawLine {
    0% { stroke-dashoffset: 1000; }
    50%, 100% { stroke-dashoffset: 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* About Us Section */
.about-section {
    position: relative;
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.about-bg-geometry {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.geo-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(10, 29, 61,0.2);
    transform: translate(-50%, -50%);
    animation: rotate linear infinite;
}

.c1 { width: 300px; height: 300px; animation-duration: 40s; }
.c2 { width: 450px; height: 450px; animation-duration: 60s; animation-direction: reverse; }
.c3 { width: 600px; height: 600px; border-style: dotted; animation-duration: 80s; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.about-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.philosophy-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.philosophy-sub {
    font-size: 1.125rem;
    color: var(--fg-muted);
    line-height: 1.6;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.pillar-item {
    display: flex;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-item:hover {
    transform: translateX(10px);
    border-color: rgba(10, 29, 61,0.2);
    box-shadow: 0 10px 30px rgba(10, 29, 61, 0.05);
}

.pillar-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.8;
}

.pillar-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.pillar-content p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bento Section */
.bento-section {
    padding: var(--space-2xl) 0;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--fg-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

.bento-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
    border-color: var(--fg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.box-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, color 0.4s ease;
}

.bento-card:hover .box-icon {
    transform: scale(1.15) translateY(-5px);
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 5s ease-in-out infinite;
}

.box-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.box-desc {
    color: var(--fg-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

/* Specific Bento Visuals */
/* Data Science Growth Chart */
.growth-chart {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 180px;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.before-label {
    position: absolute;
    top: 16px;
    left: 16px;
}

.after-label {
    position: absolute;
    top: 16px;
    right: 16px;
    text-align: right;
    color: #10b981;
}

.bar-group.continuous {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    width: 100%;
    position: relative;
    padding: 0 10px;
}

.green-divider {
    position: absolute;
    left: 50%;
    bottom: -16px;
    height: 130px;
    width: 2px;
    background: #10b981;
    box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    transform: translateX(-50%);
    z-index: 10;
}

.chart-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--fg-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-label.highlight {
    color: #10b981;
}

.bar {
    width: 12%;
    height: var(--height, 50%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transform-origin: bottom;
    opacity: 1;
}

.bar-gray {
    background: var(--border);
}

.bar-blue {
    background: linear-gradient(0deg, var(--primary), #1a365d);
    box-shadow: 0 0 15px rgba(10, 29, 61, 0.3);
}

/* AI Engineering Pipeline */
.ai-pipeline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-sm);
    flex-grow: 1;
}

.pipeline-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pipeline-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--fg-muted);
}

.highlight-decision {
    color: #f59e0b;
}

.pipeline-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(10, 29, 61, 0.1);
    position: relative;
    z-index: 2;
}

.data-node {
    overflow: hidden;
}

.binary {
    position: absolute;
    font-family: monospace;
    font-size: 10px;
    color: var(--primary);
    opacity: 0;
    animation: binaryRain 2s infinite linear;
}

.b-1 { left: 8px; animation-delay: 0s; }
.b-2 { left: 20px; animation-delay: 0.6s; }
.b-3 { left: 32px; animation-delay: 1.2s; }

@keyframes binaryRain {
    0% { transform: translateY(-20px); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(20px); opacity: 0; }
}

.core-node {
    animation: corePulse 1.5s infinite alternate;
}

.decision-node {
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    animation: decisionFlash 3s infinite;
}

@keyframes decisionFlash {
    0%, 90% { transform: scale(1); box-shadow: 0 0 15px rgba(245,158,11,0.2); background: white; }
    95% { transform: scale(1.15); box-shadow: 0 0 30px rgba(245,158,11,0.6); background: #fef3c7; }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(245,158,11,0.2); background: white; }
}

.pipeline-flow {
    height: 2px;
    width: 40px;
    flex-grow: 1;
    background: var(--border);
    position: relative;
    overflow: hidden;
    margin: 0 16px;
}

.flow-particle {
    position: absolute;
    top: -20px;
    left: 0;
    width: 2px;
    height: 20px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: flowDown 3s infinite linear;
}

.flow-particle.delay {
    animation-delay: 1.5s;
}

@keyframes flowDown {
    0% { top: -20px; }
    50%, 100% { top: 40px; }
}

.box-content-split {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.split-text {
    flex: 1;
}

.split-visual {
    flex: 1;
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Transformation Animation (Manual to Automated) */
.transformation-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-lg);
    gap: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.manual-data {
    position: relative;
    width: 40px;
    height: 100px;
}

.doc {
    position: absolute;
    width: 18px;
    height: 24px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    opacity: 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
    animation: messyFlow 3s infinite cubic-bezier(0.5, 0, 0.2, 1);
}

.doc::after {
    content: '';
    position: absolute;
    top: 4px; left: 3px; width: 10px; height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    box-shadow: 0 4px 0 #cbd5e1, 0 8px 0 #cbd5e1;
}

.doc-1 { top: 0%; left: 0; animation-delay: 0s; }
.doc-2 { top: 40%; left: -10px; animation-delay: 1s; }
.doc-3 { top: 80%; left: 5px; animation-delay: 2s; }

@keyframes messyFlow {
    0% { transform: translate(-20px, 0) rotate(-20deg) scale(0.9); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translate(50px, 0) rotate(0deg) scale(0.3); opacity: 0; }
    100% { opacity: 0; }
}

.automation-core {
    position: relative;
    z-index: 2;
    color: var(--primary);
    background: white;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(10, 29, 61, 0.2);
    box-shadow: 0 0 30px rgba(10, 29, 61, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: corePulse 2s infinite ease-in-out alternate;
}

.automation-core::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1.5px dashed rgba(10, 29, 61, 0.4);
    border-radius: 18px;
    animation: rotate 15s linear infinite;
}

@keyframes corePulse {
    from { box-shadow: 0 0 15px rgba(10, 29, 61, 0.1); transform: scale(1); }
    to { box-shadow: 0 0 40px rgba(10, 29, 61, 0.4); transform: scale(1.05); }
}

.system-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
}

.line {
    height: 8px;
    background: linear-gradient(90deg, var(--primary), #1a365d);
    border-radius: 99px;
    width: 0%;
    opacity: 0;
    box-shadow: 0 0 12px rgba(10, 29, 61, 0.3);
    animation: systemFlow 3s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.line-1 { animation-delay: 0.6s; }
.line-2 { animation-delay: 1.6s; }
.line-3 { animation-delay: 2.6s; }

@keyframes systemFlow {
    0% { width: 0%; opacity: 0; transform: translateX(-10px); }
    20% { opacity: 1; }
    50% { width: 100%; opacity: 1; transform: translateX(0); }
    100% { width: 100%; opacity: 0; transform: translateX(30px); }
}

/* Use Cases Section */
.use-cases-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(10, 29, 61,0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 29, 61, 0.08);
    border-color: rgba(10, 29, 61, 0.2);
}

.case-card:hover::before {
    opacity: 1;
}

.case-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.4s;
}

.case-card:hover .case-icon {
    transform: scale(1.1) rotate(5deg);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--fg);
}

.case-desc {
    color: var(--fg-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact */
.contact-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

/* Contact Form */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: 100%;
    justify-content: center;
}

.form-group {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

.form-control::placeholder {
    color: var(--fg-muted);
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.detail-list a, .detail-list address {
    color: var(--fg);
    text-decoration: none;
    font-style: normal;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.detail-list a:hover {
    opacity: 0.5;
}

.detail-list i {
    opacity: 0.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: var(--space-xl) 0;
}

.footer-content {
    width: min(1440px, 100%);
    margin-inline: auto;
    padding-inline: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* GSAP Initial States */
.fade-up, .fade-in {
    opacity: 0;
    visibility: hidden;
}

/* Solutions Portfolio Section */
.solutions-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.solution-card {
    background: rgba(255, 255, 255, 0.4);
    
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 29, 61, 0.08);
    border-color: rgba(10, 29, 61, 0.2);
}

.solution-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.solution-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.solution-desc {
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: rgba(10, 29, 61, 0.05);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(10, 29, 61, 0.1);
}

/* Industries Section */
.industries-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.industry-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    transition: all 0.3s;
}

.industry-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tech Stack Ticker */
.tech-stack-section {
    padding: var(--space-lg) 0;
    overflow: hidden;
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-ticker-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.tech-ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg-muted);
}

.tech-ticker span:not(.dot) {
    margin: 0 10px;
}

.tech-ticker .dot {
    color: var(--primary);
    margin: 0 15px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Client Journey Section Upgrade */
.journey-section {
    padding: var(--space-2xl) 0;
}

.journey-steps-container {
    position: relative;
    margin-top: var(--space-xl);
    padding: var(--space-lg) 0;
}

/* The Animated Background Line */
.journey-line-bg {
    position: absolute;
    top: 72px; /* Aligns with the center of the step-icon (padding-top 2rem/32px + half icon 30px + 10px visual offset) */
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    z-index: 1;
    overflow: hidden;
}

.journey-line-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: dataFlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dataFlow {
    0% { left: -50%; }
    100% { left: 150%; }
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    position: relative;
    z-index: 2;
}

/* Glassmorphism Cards */
.journey-step {
    background: rgba(255, 255, 255, 0.6);
    
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 29, 61, 0.08);
    border-color: rgba(10, 29, 61, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--fg-muted);
    margin-bottom: var(--space-md);
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.journey-step:hover .step-icon {
    border-color: var(--primary);
    color: var(--primary);
    background: #e6e9ef; /* subtle navy */
    box-shadow: 0 0 20px rgba(10, 29, 61,0.2);
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--fg);
}

.step-content p {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fafafa;
}

.faq-answer {
    max-height: 0;
    padding: 0 var(--space-lg);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    color: var(--fg-muted);
    line-height: 1.6;
}

.faq-item:hover .faq-answer {
    max-height: 200px;
    padding: var(--space-md) var(--space-lg) var(--space-lg) var(--space-lg);
    opacity: 1;
    border-top: 1px dashed var(--border);
}

/* Responsive */
@media (max-width: 900px) {
    .brand-tagline {
        display: none;
    }
    
    .trust-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-xl) 0;
        padding: var(--space-2xl) var(--space-lg);
    }
    .trust-stat:not(:nth-child(4n))::after {
        display: none;
    }
    .trust-stat:not(:nth-child(2n))::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 60px;
        background: var(--border);
    }
    
    .hero-grid, .contact-grid, .cases-grid, .about-grid, .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .journey-steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .journey-line-bg {
        top: 0;
        bottom: 0;
        left: 46px; /* align center with the icon */
        right: auto;
        width: 4px;
        height: 100%;
    }
    
    .journey-line-fill {
        width: 100%;
        height: 50%;
        top: -50%;
        left: 0;
        background: linear-gradient(180deg, transparent, var(--primary), transparent);
        animation: dataFlowMobile 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    @keyframes dataFlowMobile {
        0% { top: -50%; }
        100% { top: 150%; }
    }
    
    .journey-step {
        flex-direction: row;
        text-align: left;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-lg);
    }
    
    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large, .bento-tall, .bento-wide {
        grid-column: span 1;
    }
    
    .box-content-split {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .diamond-grid-container {
        margin: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.65);
        transform-origin: top center;
        margin-bottom: -100px;
    }
    .before-label { left: 5px; top: 10px; font-size: 0.7rem; }
    .after-label { right: 5px; top: 10px; font-size: 0.7rem; }
}

@media (max-width: 400px) {
    .diamond-grid-container {
        margin: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.52);
        transform-origin: top center;
        margin-bottom: -140px;
    }
    .before-label { left: 0; top: 5px; font-size: 0.65rem; }
    .after-label { right: 0; top: 5px; font-size: 0.65rem; }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Industries Card Grid */
.industries-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.industry-card {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    text-align: center;
    transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.industry-card i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin-inline: auto;
}

.team-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.team-avatar i {
    width: 40px;
    height: 40px;
}

.team-card p {
    color: var(--fg-muted);
    font-size: var(--fs-sm);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col.brand-col p {
    color: rgba(255,255,255,0.6);
    margin-top: var(--space-sm);
    font-size: 1.1rem;
}

.footer-col h4 {
    color: var(--surface);
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--surface);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    color: rgba(255,255,255,0.4);
    font-size: var(--fs-sm);
}

/* Business Intelligence Animation */
.bi-anim {
    margin-top: var(--space-lg);
    width: 100%;
    display: flex;
    justify-content: center;
}

.bi-dash {
    width: 320px;
    height: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.bi-sidebar {
    width: 40px;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-md);
    gap: 8px;
}

.bi-sidebar span {
    display: block;
    width: 16px;
    height: 3px;
    background: var(--border);
    border-radius: var(--radius-pill);
}

.bi-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-sm);
    gap: var(--space-sm);
    overflow: hidden;
}

.bi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bi-title {
    height: 8px;
    width: 60px;
    background: var(--border);
    border-radius: 2px;
}

.bi-filters {
    display: flex;
    gap: 4px;
}

.bi-filters span {
    display: block;
    height: 8px;
    width: 24px;
    background: var(--surface-2);
    border-radius: 2px;
}

.bi-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.bi-metric-row {
    display: flex;
    gap: 8px;
    height: 32px;
}

.bi-metric {
    flex: 1;
    background: var(--surface-2);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.bi-charts-row {
    display: flex;
    gap: 8px;
    flex: 1;
}

.bi-chart-box {
    flex: 1;
    background: var(--surface-2);
    border-radius: 4px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    padding: 6px;
}

.bi-chart-box.donut-box {
    align-items: center;
    justify-content: center;
}

.bi-donut {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 6px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spinDonut 3s infinite linear;
}

.bi-bar {
    width: 15%;
    background: var(--border);
    height: 0;
    border-radius: 2px 2px 0 0;
    animation: growBar 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.bi-bar.bi-highlight {
    background: var(--primary);
}

.box-anim {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUpBox 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUpBox {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spinDonut {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


@keyframes growBar {
    from { height: 0; }
    to { height: var(--h); }
}


/* --- RESTORED CSS --- */
.service-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    grid-column: 1 / -1;
    max-width: 1080px;
    margin-inline: auto;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-tall, .bento-wide {
        grid-column: span 1;
    }
    .service-cards-row {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .nav-links, .nav-actions {
        display: none;
    }
    .diamond-grid-container {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #0A1D3D; /* Dark background */
    border-top: none;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    margin-top: var(--space-3xl);
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    width: min(1440px, 100%);
    margin-inline: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    max-height: 96px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-sm);
    filter: brightness(0) invert(1); /* Invert logo to white */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-md);
    font-size: 1.1rem;
}

.footer-col h4 {
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    color: #ffffff !important;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    margin-bottom: var(--space-sm);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.875rem;
}

/* Box Header Layout */
.box-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.box-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.box-header .box-icon {
    margin-bottom: 0;
}

.box-header .box-title {
    margin-bottom: 0;
}

.box-header .box-desc {
    margin-bottom: 0;
}


/* Comparison Cards */
.comparison-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    max-width: 900px;
    margin-inline: auto;
    margin-top: var(--space-2xl);
}

.comp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.comp-traditional {
    opacity: 0.8;
}

.comp-actx {
    border: 1px solid var(--primary);
    box-shadow: 0 15px 40px rgba(10, 29, 61, 0.1);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 29, 61,0.03) 100%);
    transform: scale(1.02);
}

.comp-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 600;
}

.comp-traditional .comp-header {
    color: var(--text-muted);
}
.comp-traditional .comp-header svg {
    color: #94a3b8;
}

.comp-actx .comp-header {
    color: var(--primary);
}
.comp-actx .comp-header svg {
    color: var(--primary);
}

.comp-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.comp-list li {
    font-size: 1.125rem;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.comp-traditional .comp-list li {
    color: var(--text-muted);
}

.comp-actx .comp-list li {
    color: var(--fg);
    font-weight: 500;
}

.comp-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.footer-logo {
    max-height: 96px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-sm);
}

/* Footer Dark Mode Overrides */
footer { background-color: #0A1D3D !important; color: #fff !important; border-top: none !important; }
.footer-logo { filter: brightness(0) invert(1) !important; }
.footer-col h4 { color: #fff !important; }
.footer-col a { color: rgba(255,255,255,0.6) !important; }
.footer-col a:hover { color: #fff !important; }
.footer-col.brand-col p { color: rgba(255,255,255,0.6) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1) !important; color: rgba(255,255,255,0.4) !important; }

.footer-col.brand-col p {
    font-family: var(--font-mono) !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4 !important;
    margin-top: var(--space-md) !important;
}
