/* =========================================================================
   DEXADATA.AI || ENTERPRISE DESIGN SYSTEM
   Theme: Absolute Black, Glassbox, Technical Elite
   ========================================================================= */

:root {
    /* Color Palette */
    --bg-absolute: #000000;

    /* Accent: Vertex Blue / Ice - corporate, cold, precise */
    --accent-color: #3b82f6;
    --accent-light: #93c5fd;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --accent-ice: #f8fafc;

    /* Text Colors (Global) */
    --text-main: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a1b5cc; /* AAA contrast ratio 7:1+ on black */

    /* Status Colors */
    --accent-success: #10b981;
    --accent-success-glow: rgba(16, 185, 129, 0.4);
    /* For primary buttons */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-active: rgba(59, 130, 246, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', -apple-system, system-ui, sans-serif;
    --font-body: 'Outfit', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Professional Fluid Spacing (Golden Ratio 1.618) */
    --phi: 1.618;
    --space-fluid-xs: clamp(0.5rem, 1vw, 0.618rem);
    --space-fluid-s: clamp(0.75rem, 2vw, 1rem); /* Compact for mobile */
    --space-fluid-m: clamp(1rem, 4vw, 1.618rem);
    --space-fluid-l: clamp(1.25rem, 6vw, 2.618rem); /* Restored bounds */
    --space-fluid-xl: clamp(2rem, 8vw, 4.236rem);
    --space-fluid-2xl: clamp(4.236rem, 10vw, 6.854rem);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-absolute);
    color: var(--text-main);
    font-family: var(--font-body) !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Standard overflow-x on body only */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
}

/* =========================================
   TEXTURES & BACKGROUNDS
   ========================================= */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 90%);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.mono-tag {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    white-space: nowrap; /* Prevent bracket splitting */
}

.text-muted {
    color: var(--text-muted);
}

/* =========================================
   COMPONENTS: GLASSBOX
   ========================================= */
.glassbox {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    /* Minimal border radius for sharp, corporate look */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); 
}

/* Specific flat style for small tags - Audit #21 */
.section-tag-wrapper.glassbox {
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.04);
}

.section-light-theme .section-tag-wrapper.glassbox {
    background: rgba(0, 0, 0, 0.03);
}

/* Unified Section Tag Component */
.section-tag-wrapper {
    display: inline-flex;
    margin-bottom: 1.25rem; /* Tightened from 2.5rem */
}

.section-tag-wrapper .mono-tag {
    font-size: 0.72rem;
    color: var(--accent-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Fix for square GCP logo with empty vertical padding - Audit #22 */
.gcp-partner-logo {
    width: 100%;
    height: auto;
    aspect-ratio: 2.8 / 1; /* More vertical headroom to avoid clipping Audit #22 */
    object-fit: cover;
    object-position: center;
    margin: 0.8rem 0; /* Vertical breathing room Audit #22 */
}

.section-light-theme .section-tag-wrapper .mono-tag {
    color: var(--accent-color); /* Higher contrast for light themes */
}

/* =========================================
   NAVIGATION (MINIMALIST)
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Dynamic Inversion for Light Sections & Service Pages */
.glass-nav.light-nav-active,
.service-page-light .glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px) !important;
}

.glass-nav.light-nav-active .mono-link,
.service-page-light .glass-nav .mono-link {
    color: #475569 !important;
}

.glass-nav.light-nav-active .mono-link:hover,
.service-page-light .glass-nav .mono-link:hover {
    color: #0f172a !important;
}

.glass-nav.light-nav-active .dexadata-logo .logo-dexa,
.service-page-light .glass-nav .dexadata-logo .logo-dexa {
    color: #000000 !important;
}

.glass-nav.light-nav-active .dexadata-logo .logo-data,
.service-page-light .glass-nav .dexadata-logo .logo-data {
    color: #525252 !important; /* Neutral Gray instead of Slate */
}

.glass-nav.light-nav-active .dexadata-logo .logo-ai,
.service-page-light .glass-nav .dexadata-logo .logo-ai {
    color: #737373 !important; /* Neutral Gray */
}

.glass-nav.light-nav-active .lang-toggle,
.service-page-light .glass-nav .lang-toggle {
    color: #475569 !important;
}

.glass-nav.light-nav-active .lang-btn:hover,
.service-page-light .glass-nav .lang-btn:hover {
    color: #0f172a !important;
}

.glass-nav.light-nav-active .lang-btn.active,
.service-page-light .glass-nav .lang-btn.active {
    color: #0f172a !important;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem); /* Fluid Nav Padding */
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Secondary Actions are moved to unified responsive block at footer */

/* Base Logo Enforcements */
.dexadata-logo {
    font-size: 1.4rem;
    white-space: nowrap;
    font-family: var(--font-heading) !important;
    display: inline-block;
    color: #ffffff; /* Default base color */
}

.dexadata-logo .logo-dexa {
    color: #ffffff;
    font-weight: 700;
}

.dexadata-logo .logo-data {
    color: var(--text-secondary);
}

.dexadata-logo .logo-slash,
.dexadata-logo .logo-ai {
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mono-link, .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    padding: 0.2rem 0;
}

.mono-link:hover, .nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--text-main);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: lowercase;
    opacity: 1;
}

.nav-links a.btn-primary::after {
    display: none;
}

.btn-secondary {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    color: var(--accent-light);
    background: rgba(255, 255, 255, 0.03);
}

.nav-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-toggle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.lang-btn {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--text-main);
    font-weight: bold;
}

.lang-sep {
    opacity: 0.5;
    margin: 0 4px;
}

.nav-action .btn-secondary {
    text-transform: none;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 11.09rem;
    padding-bottom: var(--space-fluid-xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden; /* Prevent Nexus modules from leaking width */
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-fluid-l);
    display: grid;
    grid-template-columns: 1fr 0.618fr;
    /* Proporção Áurea entre colunas */
    gap: var(--space-fluid-l);
    align-items: center;
}

/* Left Content */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 2.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-color);
    animation: pulse 2.5s infinite;
}

.status-dot.online {
    background-color: var(--accent-success);
    box-shadow: 0 0 12px var(--accent-success);
    animation: pulse-online 2.5s infinite;
}

.status-dot.style-solid {
    box-shadow: none;
    animation: none;
}

h1.hero-title {
    font-size: clamp(2.2rem, 8vw, 5.2rem); /* Fluid Typography */
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 1.618rem;
}

.accent-gradient {
    color: #ffffff; /* Solid Fallback */
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

p.hero-subtitle {
    font-size: 1.12rem;
    /* Alinhamento sutil para leitura moderna */
    line-height: 1.618;
    /* Espaçamento Áureo de entrelinhas */
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2.618rem;
    font-weight: 400;
}

/* Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.618rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-main);
    color: var(--bg-absolute);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.glass-glow {
    position: relative;
}

.glass-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    z-index: 0;
    opacity: 0;
    border-radius: 3px;
    transition: opacity 0.3s;
    filter: blur(8px);
}

.btn-primary:hover {
    background: var(--accent-ice);
    transform: translateY(-1px);
}

.btn-primary:hover::before {
    opacity: 0.7;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    border-left: 1px solid var(--glass-border);
    padding-left: 1.5rem;
}

/* =========================================
   RIGHT SIDE: ABSTRACT INDEXING VISUAL
   ========================================= */
.dex-abstract-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.index-card {
    position: absolute;
    width: 380px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-card:hover {
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.8rem;
}

.data-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    width: 100%;
}

.data-bar.short {
    width: 35%;
}

.data-bar.medium {
    width: 65%;
}

.data-bar.accent-bg {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Card Positions & 3D Transforms */
.card-1 {
    top: 0%;
    right: 2%;
    transform: translateZ(-20px);
    z-index: 1;
    opacity: 0.8;
}

.card-2 {
    left: -2rem;
    top: 35%;
    transform: scale(1.05);
    z-index: 3;
}

.card-3 {
    right: 0%;
    bottom: 2rem;
    z-index: 2;
    transform: scale(0.9);
}

.card-1:not(.active-card),
.card-3:not(.active-card) {
    filter: brightness(0.6);
}

.card-2:not(.active-card) {
    filter: brightness(0.6);
}

.active-card {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.15);
    filter: brightness(1) !important;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 var(--accent-success-glow);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes float1 {

    0%,
    100% {
        transform: translateZ(-80px) rotateY(-15deg) translateY(0);
    }

    50% {
        transform: translateZ(-80px) rotateY(-15deg) translateY(-8px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateZ(60px) rotateY(-5deg) translateY(0);
    }

    50% {
        transform: translateZ(60px) rotateY(-5deg) translateY(-12px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateZ(-40px) rotateY(-10deg) translateY(0);
    }

    50% {
        transform: translateZ(-40px) rotateY(-10deg) translateY(-6px);
    }
}

.card-1 {
    animation: float1 7s ease-in-out infinite;
}

.card-2 {
    animation: float2 5s ease-in-out infinite;
}

.card-3 {
    animation: float3 6s ease-in-out infinite;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
/* Global Responsive Design Block is at the end of file */

@media (max-width: 400px) {
    h1.hero-title {
        font-size: 2.2rem !important;
    }
    .section-container {
        padding: 0 1rem;
    }
}

/* =========================================
   SECTIONS: SHARED STYLES
   ========================================= */
.section {
    padding: var(--space-fluid-xl) 0;
    position: relative;
    z-index: 10;
}

/* =========================================
   LIGHT THEME INVERSION (SERVICES)
   ========================================= */
.section-light-theme {
    background-color: var(--accent-ice);
    /* Soften the contrast jump with an inverted glow/shadow */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -30px 60px rgba(248, 250, 252, 0.05);

    --text-main: #1e293b;
    /* Deep Slate (softer than black) */
    --text-secondary: #334155;
    /* Slate Gray */
    --text-muted: #64748b;
    /* Cool Gray */

    --glass-bg: rgba(255, 255, 255, 1);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-active: rgba(59, 130, 246, 0.3);

    color: var(--text-main);
}

.section-light-theme .glassbox {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Softer shadow for light bg */
}

.section-light-theme .accent-gradient {
    color: #0f172a; /* Dark Fallback for Light Mode */
    background: linear-gradient(135deg, #080C15 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Elite Golden Spacing Audit (Cleaning Px and Static Rems) */
.section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-fluid-m);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.618rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1rem; /* Tightened from 1.618rem */
}

.section-subtitle {
    font-size: 1.12rem;
    line-height: 1.618;
    color: var(--text-muted);
    max-width: 700px;
    font-weight: 400;
    margin-bottom: var(--space-fluid-l);
}

/* =========================================
   SECTION: AGENTS (PRODUCT)
   ========================================= */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-fluid-m);
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-fluid-m);
}

.feature-card {
    padding: clamp(1.5rem, 3vw, 2.618rem);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    overflow-wrap: break-word; /* AAA Typography */
    word-wrap: break-word;
    max-width: 100%;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-active);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(59, 130, 246, 0.05);
}

.feature-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.618rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.95rem;
    line-height: 1.618;
    color: var(--text-muted);
}

/* =========================================
   SECTION: INFRASTRUCTURE (SERVICE)
   ========================================= */
.pipeline-section {
    background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 11, 0.8) 100%);
    border-top: 1px solid var(--glass-border);
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 0.618fr;
    /* Proporção Áurea: Golden Split Layout */
    gap: 4.236rem;
    align-items: center;
}



/* Abstract Pipeline Visual */
.pipeline-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    position: relative;
}

.flow-layer {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.layer-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.accent-bordered {
    border-color: var(--glass-border-active);
    background: rgba(59, 130, 246, 0.03);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1) inset;
}

.flow-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--glass-border);
    font-size: 0.7rem;
}

.flow-connector {
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.connector-line {
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--glass-border) 0%, var(--accent-color) 50%, var(--glass-border) 100%);
    opacity: 0.5;
}

/* =========================================
   RESPONSIVE OVERRIDES
   ========================================= */
/* Responsive Overrides moved to unified block */

/* =========================================================================
   REFINED CONTACT FORM & PREMIUM UI TWEAKS
   ========================================================================= */

.contact-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background: var(--bg-absolute);
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Refined balance for wider form */
    gap: 4.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

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

/* Methodology Block */
.methodology-block {
    margin-top: 3.4rem; /* Fibonacci: 34 */
    max-width: 450px;
}

.methodology-item {
    position: relative;
}

/* Action Grid & Tiles */
.contact-form-container {
    padding: 3.5rem;
    background: linear-gradient(135deg, rgba(8, 12, 21, 0.95) 0%, rgba(3, 5, 10, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(59, 130, 246, 0.03);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-light), transparent);
    opacity: 0.6;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Action Grid & Tiles */
.action-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.1rem; /* Fibonacci: 21 */
}

.action-tile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.618rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.action-tile:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
}

.tile-icon {
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.tile-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tile-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.tile-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.9rem;
    opacity: 0.9;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.6rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.02);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.05),
        inset 0 0 10px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.1rem;
}

select.form-control option {
    background-color: #0c0e14; /* Match site dark background */
    color: #ffffff;
}

textarea.form-control {
    resize: none;
    min-height: 140px;
}

.form-status {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    border: 1px solid transparent;
}

.form-status.success {
    display: block;
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    color: #f87171;
    background: rgba(248, 113, 113, 0.05);
    border-color: rgba(248, 113, 113, 0.2);
}

/* Premium Tech Button */
.btn-primary.glass-glow {
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    border: none;
    overflow: hidden;
}

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

.btn-primary.glass-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

.btn-primary.glass-glow:hover::before {
    left: 100%;
}

.btn-primary.glass-glow:active {
    transform: translateY(-1px) scale(0.99);
}

.clickable-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* =========================================================================
   SERVICES NEXUS VISUALIZATION
   ========================================================================= */

.dex-abstract-container {
    perspective: 1000px;
}

.nexus-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px; /* Base unit (approx 100 / 1.618) */
    height: 62px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 62px rgba(59, 130, 246, 0.4);
    animation: nexus_pulse 4.85s infinite ease-in-out; /* 3s * 1.618 approx */
}

.nexus-hub::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px; /* 62 / 2.618 approx */
    height: 24px;
    background: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--text-main);
}

.nexus-module {
    position: absolute;
    width: clamp(200px, 40vw, 262px); /* Fluid Width */
    padding: var(--space-fluid-s);
    background: linear-gradient(135deg, rgba(8, 12, 21, 0.9) 0%, rgba(3, 5, 10, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(16px);
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --module-scale: 1;
    transform: translateY(0) scale(var(--module-scale));
    transform-origin: center;
    animation-fill-mode: both;
}

.clickable-card {
    cursor: pointer;
}

.nexus-module:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(calc(var(--module-scale) * 1.05)) translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
    z-index: 20;
}

.module-1 { 
    top: 8.5%; 
    left: -5%; 
    animation: nexus_float 6.47s infinite ease-in-out; 
    z-index: 10;
}
.module-2 { 
    bottom: 8.5%; 
    right: -5%; 
    animation: nexus_float 8.1s infinite ease-in-out 1s; 
    z-index: 11;
}
.module-3 { 
    top: 38.2%; 
    right: -12%; 
    --module-scale: 0.7;
    animation: nexus_float 10.4s infinite ease-in-out 2s; 
    z-index: 5;
    opacity: 0.6;
}

@keyframes nexus_pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes nexus_float {
    0%, 100% { transform: translateY(0) scale(var(--module-scale)); }
    50% { transform: translateY(-16px) scale(var(--module-scale)); }
}

.connection-path {
    stroke: var(--accent-light);
    stroke-width: 1;
    fill: none;
    opacity: 0.15;
    stroke-dasharray: 5 5;
    animation: nexus_dash 20s linear infinite;
}

@keyframes nexus_dash {
    to { stroke-dashoffset: -100; }
}

@media (max-width: 1200px) {
    .contact-grid {
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }

    .hero-visual {
        min-height: 400px;
    }
    
    .nexus-module {
        width: 160px;
        padding: 1rem;
    }
}
/* --- Service Page Light Theme (AAA) --- */
.service-page-light {
    background-color: #ffffff !important;
    color: #111827 !important;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.08);
}

.service-page-light section {
    background-color: #ffffff !important;
}

.service-page-light .accent-gradient {
    background: linear-gradient(135deg, #080C15 0%, #1D4ED8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Seamless Navigation (Refined for Component) */
.service-page-light .glass-nav {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle border even when transparent */
    backdrop-filter: none;
    box-shadow: none;
}

.service-page-light .glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.service-page-light .mono-link {
    color: #374151 !important;
}

.service-page-light .text-muted,
.service-page-light .section-subtitle {
    color: #374151 !important;
    opacity: 1;
}

.service-page-light .container {
    padding: 5.5rem 2rem;
}

/* Harmonic CTAs for Light Mode */
.service-page-light .btn-primary {
    background: #080C15 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.service-page-light .btn-primary:hover {
    background: #111827 !important;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.service-page-light .btn-secondary {
    background: transparent !important;
    color: #080C15 !important;
    border: 1px solid rgba(8, 12, 21, 0.1) !important;
}

.service-page-light .btn-secondary:hover {
    background: rgba(8, 12, 21, 0.03) !important;
    border-color: rgba(8, 12, 21, 0.2) !important;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--accent-color);
}

/* Modernization Journey Visual (AAA) */
.modernization-journey {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 5rem 0;
    position: relative;
    width: 100%;
}

.journey-node {
    width: 100%;
    max-width: 800px;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.node-legacy {
    background: rgba(148, 163, 184, 0.05); /* Fluid subtle gray */
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.node-modern {
    background: var(--glass-bg);
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    color: var(--text-main);
}

.node-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.2);
}

.journey-bridge {
    height: 120px;
    width: 4px;
    background: linear-gradient(to bottom, #cbd5e1, #3b82f6);
    position: relative;
    margin: -1px 0;
    z-index: 1;
}

.bridge-pulse {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 40px;
    background: #3b82f6;
    border-radius: 6px;
    filter: blur(4px);
    animation: bridge_flow 2s infinite linear;
}

@keyframes bridge_flow {
    0% { top: -20px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    .journey-node {
        padding: 2rem 1.5rem;
    }
    .journey-bridge {
        height: 80px;
    }
}

.trans-item {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.trans-item svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.future .trans-item svg {
    color: var(--accent-color);
}

@media (max-width: 1024px) {
    .transformation-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .value-bridge {
        transform: rotate(90deg);
        margin: 2rem 0;
    }
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.roadmap-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    color: var(--text-main);
}

.roadmap-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.roadmap-phase {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.75rem;
}

/* --- AAA Roadmap Infographic --- */
.aaa-roadmap {
    position: relative;
    padding: 4rem 0;
}

.roadmap-line {
    display: none; /* Removed brittle absolute line */
}

.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.roadmap-step {
    text-align: left;
}

.step-marker {
    width: 3rem;
    height: 3rem;
    background: var(--glass-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 5;
}

.roadmap-step:not(:last-child) .step-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% + 2rem); /* Reach next marker center */
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #e2e8f0);
    z-index: -1;
    transform: translateY(-50%);
}

.roadmap-step:hover .step-marker {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.step-content {
    background: #ffffff;
    padding: 1rem 0;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Success Factors & Tech Stack */
.tech-badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #374151;
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    border-color: var(--accent-color);
    background: white;
    color: var(--accent-color);
}

.success-block {
    margin-top: 4rem;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
}

/* Use Case Cards */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: var(--transition-smooth);
}

.use-case-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Architecture Layers */
.arch-layers {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.arch-layer {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

/* Responsive grid overrides moved to unified block */

/* --- AAA Modern Roadmap --- */
.aaa-roadmap {
    position: relative;
    padding: 3rem 0;
    margin-top: 2rem;
}

.roadmap-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, var(--accent-color) 50%, #e2e8f0 100%);
    z-index: 1;
}

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

/* Roadmap responsive overrides moved to unified block */

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

.step-marker {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transition: transform 0.3s ease;
}

.roadmap-step:hover .step-marker {
    transform: scale(1.15);
    background: var(--accent-color);
    color: white;
}

.step-content {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    width: 100%;
    transition: transform 0.3s ease;
}

.roadmap-step:hover .step-content {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Final spacing utilities moved to unified block */

/* --- AAA Spacing Utilities (Golden Ratio based) --- */
.py-20 { padding-top: 6.85rem; padding-bottom: 6.85rem; }
.pt-32 { padding-top: 11.08rem; }
.pb-16 { padding-bottom: 4.23rem; }
.py-12 { padding-top: 2.61rem; padding-bottom: 2.61rem; }
.mt-golden { margin-top: 1.618rem; }
.mb-golden { margin-bottom: 1.618rem; }


/* --- Sober Action Icons --- */
.action-tile .tile-icon svg {
    color: var(--accent-light);
    transition: var(--transition-smooth);
}

.action-tile:hover .tile-icon svg {
    color: #ffffff;
    transform: scale(1.1);
}
/* 
=========================================================================
UNIFIED RESPONSIVE ARCHITECTURE (GOLDEN SCALE v1.0)
=========================================================================
Sovereign control for all device breakpoints. 
Consolidated from patchwork legacy queries.
========================================================================= */

@media (max-width: 1200px) {
    h1.hero-title { font-size: 3.8rem; }
    .hero-container { grid-template-columns: 1.2fr 1fr; gap: var(--space-fluid-m); }
    .contact-grid { gap: 4rem; }
}

@media (max-width: 1024px) {
    .grid-3-col, .grid-2-col { grid-template-columns: 1fr 1fr; }
    .layout-split { grid-template-columns: 1fr; gap: var(--space-fluid-xl); }
    .roadmap-grid, .use-case-grid, .arch-layers { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .dex-abstract-container { display: none; }
    .specs { border-left: none; padding-left: 0; text-align: center; }
}

@media (max-width: 768px) {
    /* Suppress Complex Graphics for Mobile Alignment Elite */
    .modernization-journey, .aaa-roadmap, .dex-abstract-container { 
        display: none !important; 
    }
    
    .grid-3-col, .grid-2-col, .roadmap-grid, .use-case-grid, .arch-layers, .comparison-grid { 
        grid-template-columns: 1fr; 
    }
    
    .section { padding: var(--space-fluid-l) 0; }
    .section-container { padding: 0 var(--space-fluid-s); }
    .section-subtitle { margin-bottom: var(--space-fluid-m); }
    
    .comparison-header { display: none; }
    .comparison-cell:nth-child(3n-2) { 
        background: #f8fafc; font-weight: 700; margin-top: 1rem; 
    }

    /* Modern Roadmap Vertical State */
    .aaa-roadmap { padding-left: 2rem; }
    .roadmap-line {
        left: 20px; width: 2px; height: 100%; top: 0;
        background: linear-gradient(180deg, #e2e8f0 0%, var(--accent-color) 50%, #e2e8f0 100%);
    }
    .roadmap-steps { flex-direction: column; gap: var(--space-fluid-m); align-items: flex-start; }
    .roadmap-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 1.5rem; padding: 0; }
    .step-marker { margin-bottom: 0; flex-shrink: 0; }
}

@media (max-width: 600px) {
    .nav-container { padding: 0 var(--space-fluid-s); }
    .nav-links { display: none !important; }
    .nav-action { gap: 0.5rem; }
    .nav-action .btn-primary { padding: 0.5rem 0.8rem !important; font-size: 0.75rem !important; }
    
    .hero-container { padding: 0 1.25rem !important; gap: 1rem !important; }
    .hero-content { width: 100% !important; max-width: 100% !important; text-align: center; }
    h1.hero-title { font-size: 2.4rem !important; line-height: 1.1; margin-bottom: 1rem; }
    p.hero-subtitle { margin: 0 auto 1.618rem auto !important; font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 1rem !important; width: 100%; }
    .hero-actions .btn { width: 100% !important; justify-content: center; }
    
    .nexus-module {
        position: relative; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        width: 100% !important; max-width: 100%; transform: none !important; margin-bottom: 1rem;
        animation: none !important;
    }
    .dex-abstract-container { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; position: relative; }
    .nexus-hub { display: none; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .feature-card { padding: 1.5rem; }
}

/* =========================================
   CLIENT LOGOS MARQUEE
   ========================================= */
.marquee-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    /* Fade edges to smooth transition */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
    align-items: center;
    gap: 5rem;
    padding-left: 5rem;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%) opacity(0.5);
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(100%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-marquee {
    to { transform: translateX(calc(-50% - 2.5rem)); }
}



/* --- Final Layout Safety Net --- */
footer {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .marquee-content { animation: none; }
    .nexus-module, .card-1, .card-2, .card-3 { animation: none !important; }
    .status-dot { animation: none; }
    * { transition-duration: 0.01ms !important; }
}
