:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-blue: #4a90e2;
    /* Placeholder, will refine */
    --accent-glow: rgba(74, 144, 226, 0.2);
    --secondary-accent: #d4a373;
    /* Warmth */

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;
}

html {
    scroll-behavior: smooth;
}

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

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

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

h1,
h2,
h3,
h4,
.logo,
.btn-primary {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    /* Maintains aspect ratio */
    min-width: 60px;
    /* Ensure visibility */
    display: block;
    overflow: visible;
    /* Allow strokes to sit nicely */
}

/* SVG Logo Animation Styling */
/* SVG Logo Animation Styling */
.logo-svg {
    cursor: pointer;
}

.logo-base {
    fill: #e0e0e0;
    /* White/Light Grey Base */
    transition: opacity 0.3s ease;
}

/* The Blue Fill Layer (Masked) */
.logo-fill-blue {
    fill: var(--accent-blue);
    filter: drop-shadow(0 0 5px var(--accent-blue));
    /* Neon Glow */
}

/* The Mask Content (Drawing Stroke -> Solid Fill) */
.mask-path {
    fill: white;
    stroke: white;
    stroke-width: 4px;
    /* Thicker stroke for mask coverage */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    /* Initially hidden */
    fill-opacity: 0;
    /* Initially transparent fill */
    transition: all 0.3s ease;
}

/* Hover Trigger - Target ALL base layers (icon + text) */
.logo-container:hover .logo-base {
    opacity: 0.3 !important;
    /* Dim base to show blue fill */
}

.logo-container:hover .mask-human {
    animation: drawAndFill 1.2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    animation-delay: 0s;
}

.logo-container:hover .mask-robot {
    animation: drawAndFill 1.2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    animation-delay: 0.6s;
}

.logo-container:hover .mask-8 {
    animation: drawAndFill 2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    animation-delay: 0s;
}

@keyframes drawAndFill {
    0% {
        stroke-dashoffset: 2000;
        fill-opacity: 0;
    }

    70% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
    }

    100% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
    }
}

/* Logo Text Image */
.logo {
    display: flex;
    align-items: center;
}

.logo-text-svg {
    height: 18px;
    /* Adjusted for SVG viewbox ratio */
    width: auto;
    display: block;
    margin-left: 0.4rem;
    /* Removed global fill - let children control their own fill */
    opacity: 1;
}

/* The '8' base layer inside text SVG */
.logo-text-svg .logo-base {
    fill: #e0e0e0;
    transition: opacity 0.3s ease;
}

.logo-container:hover .logo-text-svg .logo-base {
    opacity: 0.3;
}

.logo-text-rel {
    fill: #fff;
}

.logo-text-8 {
    fill: none;
    /* Handled by layers */
}

.logo::after {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0.2rem;
    transition: all 0.3s ease;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Bracket Reveal Animation */
.nav-item::before,
.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: var(--accent-blue);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    font-size: 1.1em;
}

.nav-item::before {
    content: '[';
    left: -10px;
}

.nav-item::after {
    content: ']';
    right: -10px;
}

.nav-item:hover .nav-text {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-item:hover::before {
    opacity: 1;
    left: -15px;
}

.nav-item:hover::after {
    opacity: 1;
    right: -15px;
}

/* Highlight "Contact" differently */
.nav-item.highlight {
    color: var(--accent-blue);
}

.nav-item.highlight:hover .nav-text {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-blue);
}









/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    z-index: 1;
    text-align: center;
    max-width: 1100px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(180deg, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* Vision Perception Animation */
.vision-perception-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: var(--spacing-md) auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perception-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 50%;
    animation: ringPulse 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

.perception-ring-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(74, 144, 226, 0.4);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.perception-scan-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transform-origin: center center;
    animation: scanRotate 3s infinite linear;
    opacity: 0.6;
}

.perception-data {
    text-align: center;
    z-index: 2;
    background: radial-gradient(circle, rgba(5, 5, 5, 0.8) 0%, transparent 80%);
    padding: 20px;
}

.p-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-blue);
    letter-spacing: 0.3em;
    margin-bottom: 5px;
}

.p-status {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.5s ease;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.3;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes scanRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Sections */
.content-section {
    padding: var(--spacing-lg) 0;
    /* Reduced from spacing-xl to close gaps */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#problem {
    padding-top: 0;
    /* Problem section starts immediately after hero */
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: #fff;
}

.quote-block {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--accent-blue);
    font-style: italic;
    color: #bbb;
}

/* Glassmorphism & Tech UI */
.glass-card,
.glass-panel,
.bento-item,
.glass-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More definition */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.glass-card:hover,
.glass-panel:hover,
.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

/* Hero Overlays */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Bleed deeply into next section */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    pointer-events: none;
}

.overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    /* Bleed into next section */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.tech-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    background: rgba(74, 144, 226, 0.1);
    font-family: var(--font-mono);
}

/* Scroll Initialization Gauge */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 10;
    text-align: center;
    font-family: var(--font-mono);
}

.scroll-track {
    width: 4px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.scroll-fill {
    width: 100%;
    height: 0%;
    background: var(--accent-blue);
    position: absolute;
    top: 0;
    left: 0;
    transition: height 0.1s linear, box-shadow 0.3s ease;
}

.scroll-text {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* System Active State */
.scroll-indicator.active .scroll-fill {
    background: #00ffaa;
    /* Success Green-ish */
    box-shadow: 0 0 10px #00ffaa;
}

.scroll-indicator.active .scroll-text {
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

/* Split Screen Section */
.split-screen-container {
    display: flex;
    width: 100%;
    min-height: 60vh;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.no-padding-bottom {
    padding-bottom: 0 !important;
}

/* Diagnostic Panel (Left - Cold/Err) */
.diagnostic-panel {
    flex: 1;
    background: #020202;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.diagnostic-panel .tech-graphic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    filter: grayscale(100%) contrast(150%);
    pointer-events: none;
}

.diagnostic-panel .panel-body p,
.intervention-panel .panel-body p {
    color: #f0f0f0;
    /* High contrast */
    max-width: 95%;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.panel-body .lead-text {
    font-weight: 500;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.alert-text {
    color: #ff4d4d;
}

.status-box {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.05);
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.status-value.error {
    color: #ff4d4d;
    font-weight: 700;
    margin-left: 0.5rem;
    animation: blink 2s infinite;
}

/* Intervention Panel (Right - Warm/Sol) */
.intervention-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(5, 5, 5, 1), rgba(15, 20, 30, 1));
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.organic-graphic-overlay {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.success-text {
    color: var(--accent-blue);
}

.highlight-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
    border-left: 3px solid var(--accent-blue);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.1), transparent);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 8px 8px 0;
}

.intervention-list {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.check-item {
    font-family: var(--font-mono);
    color: var(--secondary-accent);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.panel-header,
.panel-body {
    position: relative;
    z-index: 2;
}

/* Responsive Split */
@media (max-width: 900px) {
    .split-screen-container {
        flex-direction: column;
    }

    .diagnostic-panel,
    .intervention-panel {
        padding: var(--spacing-md);
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


.card-content {
    position: relative;
    z-index: 2;
}

.mono-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.15em;
}

.tech-graphic {
    width: 100%;
    height: 200px;
    /* Adjust based on content */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    mix-blend-mode: screen;
    opacity: 0.6;
}

/* Vision Section */
.glow-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.accent-text {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Bento Grid (Approach) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--spacing-md);
}

.bento-item.wide {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.icon-box {
    font-size: 2rem;
    color: var(--accent-blue);
    /* Placeholder literal number styling */
    font-family: var(--font-heading);
    font-weight: 300;
    opacity: 0.5;
    margin-bottom: var(--spacing-sm);
}

/* Applied Example */
.glass-container {
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
}

.tech-graphic-small {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    mix-blend-mode: lighten;
}

/* Closing */
.closing-section {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.final-vision {
    position: relative;
    display: inline-block;
    margin-top: var(--spacing-lg);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* Responsive Overrides */
@media (max-width: 900px) {

    .card-layout,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.wide {
        grid-column: span 1;
    }
}

.relative {
    position: relative;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.grid-item {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Capabilities */
.capabilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.cap-card {
    text-align: center;
    padding: var(--spacing-md);
}

.cap-card .icon {
    font-family: monospace;
    color: var(--accent-blue);
    margin-bottom: var(--spacing-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer */
/* Comprehensive Footer Redesign */
footer {
    padding: 5rem 0 2rem;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
    position: relative;
    overflow: hidden;
}

/* Add a subtle top glow */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.5), transparent);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.2);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

/* Brand Column */
.footer-brand-col {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ccc;
    font-weight: 300;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(255, 255, 255, 0.02);
}

.social-icon:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.15);
}

/* Links Grid */
.footer-links-grid {
    flex: 2;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 140px;
}

.footer-heading {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;
    position: relative;
}

/* New Hover Effect: Left-to-Right Underline Wipe */
.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 8px var(--accent-blue);
}

.footer-menu a:hover {
    color: var(--accent-blue);
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}

.footer-menu a:hover::after {
    width: 100%;
}

/* Remove the dash before element */
.footer-menu a::before {
    display: none;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #555;
    font-family: var(--font-mono);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #aaa;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .split-layout {
        flex-direction: column;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vision Section - Deep Tech Immersive */
.vision-section {
    padding: 180px 0;
    position: relative;
    overflow: hidden;
    background: #050505;
    min-height: 100vh;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.vision-background-fx {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.glow-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    filter: blur(60px);
    animation: floatingGlow 20s infinite ease-in-out;
}

.data-stream {
    position: absolute;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), transparent);
    opacity: 0.1;
}

.data-stream.vertical {
    width: 1px;
    height: 100%;
    left: 20%;
    top: -100%;
    animation: streamDown 10s infinite linear;
}

.data-stream.horizontal {
    width: 100%;
    height: 1px;
    left: -100%;
    top: 40%;
    animation: streamRight 15s infinite linear;
}

@keyframes streamDown {
    to {
        transform: translateY(200%);
    }
}

@keyframes streamRight {
    to {
        transform: translateX(200%);
    }
}

.vision-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.v-line-wrapper {
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.vision-lead {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 3rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    perspective: 1000px;
}

.vision-lead .v-line {
    display: inline-block;
    opacity: 0;
    transform: rotateX(-90deg) translateY(50px);
    transform-origin: center top;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: calc(var(--line-index) * 0.3s);
}

.vision-section.visible .v-line {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
}

.vision-emphasis {
    font-style: normal;
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.vision-emphasis.behave {
    background: linear-gradient(180deg, var(--accent-blue) 40%, rgba(74, 144, 226, 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Vision Section - Cinematic Terminal */
/* The layout is split: centered top with a connector dropping to a left-aligned card */

.v-focus-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the headline */
    max-width: 1100px;
    margin: 0 auto;
}

.vision-lead {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

/* Connector Animation */
.vision-connector {
    position: relative;
    height: 100px;
    /* Reduced vertical space for better flow */
    width: 2px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connector-line {
    width: 1px;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    transition: height 1s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.5;
}

.vision-section.visible .connector-line {
    height: 100%;
    transition-delay: 1.2s;
    /* Trigger after headline finishes */
}

/* Terminal Card - Glassmorphism, Left Aligned */
.vision-terminal-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 650px;
    /* Keep reading width comfortable */
    margin-top: -10px;
    /* slight overlap with connector space */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    /* inner stroke simulation */

    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: left;
    /* Explicitly left align body text */
}

.vision-section.visible .vision-terminal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1.5s;
    /* Trigger after connector drops */
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.term-dot.red {
    background: #ff5f56;
}

.term-dot.yellow {
    background: #ffbd2e;
}

.term-dot.green {
    background: #27c93f;
}

.term-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 12px;
    letter-spacing: 0.1em;
}

.terminal-body {
    font-family: var(--font-mono);
    /* Switch to mono for "System" feel */
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.term-text {
    margin-bottom: 20px;
    opacity: 0;
    /* JS will toggle opacity for scramble effect */
}

.term-text:last-child {
    margin-bottom: 0;
}

.term-highlight {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
}

.term-highlight.blue {
    color: var(--accent-blue);
    border-bottom-color: rgba(74, 144, 226, 0.5);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Scramble Text Cursor Effect */
.scramble-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent-blue);
    margin-left: 4px;
    animation: blink 1s infinite;
}

@media (max-width: 768px) {
    .vision-terminal-card {
        padding: 20px;
    }

    .terminal-body {
        font-size: 0.9rem;
    }

    .vision-lead {
        font-size: 2.5rem;
    }
}

/* System Architecture Split Layout */
.architecture-split {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    justify-content: space-between;
}

.architecture-text {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.architecture-text .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.architecture-diagram {
    flex: 1.2;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0 40px;
}

.system-bracket {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-bracket {
    left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px 0 0 8px;
}

.right-bracket {
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 8px 8px 0;
}

.bracket-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.right-bracket .bracket-label {
    transform: rotate(0deg);
}

.compact-stack {
    width: 100%;
    max-width: 500px;
    gap: 0.8rem !important;
    /* Vertically smaller */
}

.system-layer {
    width: 100%;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem 1.5rem !important;
    text-align: left !important;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.system-layer:hover {
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.core-layer {
    background: rgba(15, 20, 30, 0.85);
    border: 1px solid rgba(74, 144, 226, 0.3);
    transform: scale(1.03);
    z-index: 10;
}

.core-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.1) inset;
    pointer-events: none;
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.1) inset;
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 50px rgba(74, 144, 226, 0.2) inset;
    }
}

.layer-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.layer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.layer-info {
    flex: 1;
}

.layer-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 500;
}

.layer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem !important;
    font-family: var(--font-body);
}

.flow-arrow {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.5;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: arrowPulse 2s infinite ease-in-out;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-3px);
    }
}

@media (max-width: 992px) {
    .architecture-split {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .architecture-text {
        text-align: center;
        max-width: 100%;
    }

    .architecture-text .section-title {
        text-align: center;
    }
}

/* Applications Section (Rotating Horizontal Bars/Accordion) */
.applications-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Small gap between bars */
    height: 600px;
    /* Fixed height for the widget */
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.app-item {
    position: relative;
    flex: 1;
    /* Default: all items share space equally if not active logic wasn't flex-based, but we want 1 big, rest small */
    /* Using a different approach for pure CSS/JS flex accordion */
    height: 80px;
    /* Collapsed height */
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* The active item expands */
.app-item.active {
    flex-grow: 10;
    /* Expands to fill available space */
    border-color: rgba(74, 144, 226, 0.5);
}

/* Inactive items shrink but stay visible */
.app-item:not(.active) {
    flex-grow: 1;
    opacity: 0.7;
}

.app-item:not(.active):hover {
    opacity: 1;
    background: #1a1a1a;
}

/* Background Image */
.app-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Hidden by default or dimmed */
    transition: opacity 0.8s ease, transform 6s ease;
    transform: scale(1);
    filter: saturate(0);
    /* BW by default */
}

.app-item.active .app-bg {
    opacity: 0.6;
    /* Visible when active */
    transform: scale(1.1);
    /* Slow zoom effect */
    filter: saturate(0.8) contrast(1.1);
    /* Colorize */
}

.app-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Content Layout */
.app-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header (Visible always) */
.app-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    white-space: nowrap;
}

.app-number {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.9rem;
    opacity: 0.8;
}

.app-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: var(--spacing-md);
    opacity: 0;
    /* Hidden when collapsed? Or visible... user said bars show title/subtitle */
    transform: translateX(-10px);
    transition: all 0.4s ease 0.1s;
}

.app-item.active .app-subtitle {
    opacity: 1;
    transform: translateX(0);
}

/* Body Text (Revealed on expand) */
.app-body {
    max-width: 500px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
    height: 0;
}

.app-item.active .app-body {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: var(--spacing-md);
}

.app-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile: Stack normally or keep vertical accordion? */
@media (max-width: 768px) {
    .applications-accordion {
        height: auto;
        gap: var(--spacing-sm);
    }

    .app-item {
        height: 60px;
        flex: none;
        /* Disable flex scaling on mobile maybe? Or keep it? */
    }

    .app-item.active {
        height: 400px;
        /* Fixed height expansion on mobile */
        flex: none;
    }
}

/* Contact Section */
.final-section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-primary);
}

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Left Column - Contact Info */
.contact-info {
    padding-top: 20px;
}

.contact-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: #fff;
    margin: 16px 0 24px 0;
    letter-spacing: -0.02em;
}

.gradient-text {
    color: var(--accent-blue);
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

/* Right Column - Form */
.contact-form-container {
    max-width: 500px;
}

.contact-form {
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form .input-group label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.contact-form .input-group input,
.contact-form .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form .input-group input::placeholder,
.contact-form .input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form .input-group input:focus,
.contact-form .input-group textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(74, 144, 226, 0.05);
}

.contact-form .input-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.contact-form .submit-btn {
    width: 100%;
    padding: 16px 24px;
    margin-top: 10px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-form .submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Loading/Success States */
.btn-loader,
.btn-success {
    display: none;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-arrow {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn.success .btn-text,
.submit-btn.success .btn-arrow,
.submit-btn.success .btn-loader {
    display: none;
}

.submit-btn.success .btn-success {
    display: block;
}

.submit-btn.success {
    background: #0f9d58 !important;
    color: #fff !important;
}

.submit-btn.success svg {
    width: 22px;
    height: 22px;
    animation: scaleIn 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Mobile */
@media (max-width: 900px) {
    .final-section {
        padding: 60px 0;
    }

    .contact-split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-container {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}