:root {
    --bg-color: #030712;
    --text-primary: #f9fafb;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(17, 24, 39, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --easing: cubic-bezier(0.23, 1, 0.32, 1);

    /* Living Background Colors */
    --orb-1: rgba(59, 130, 246, 0.15);
    --orb-2: rgba(139, 92, 246, 0.15);
    --orb-3: rgba(16, 185, 129, 0.1);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.mono-text {
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Background Effects */
#canvas-web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Optimized Noise: CSS Gradient instead of heavy SVG Filter */
    background: repeating-radial-gradient(circle at 50% 50%,
            transparent 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 2px);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Tech Overlay (Pattern) */
.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Clean Overlay */
    background-image:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)),
        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: 100% 2px, 100% 3px, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: 100;
    opacity: 0.5;
}

/* --- Living Background Orbs --- */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    /* Restored for visuals */
    z-index: -2;
    opacity: 0.5;
    /* Restored opacity */
    animation: drift 20s infinite alternate;
    will-change: transform;
    /* Hint browser */
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--orb-1);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--orb-2);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--orb-3);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.background-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    /* Larger glow */
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(3, 7, 18, 0) 60%);
    z-index: -2;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Floating Command Bar (Redesign) --- */
header.floating-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 64px;
    z-index: 999;
    border-radius: 16px;
    padding: 0 4px;
    /* Optimized Transition: No 'all' to prevent jitter */
    transition: transform 0.4s var(--easing), width 0.4s var(--easing), top 0.4s var(--easing);
    will-change: transform, width;
    overflow: hidden;
    /* For shimmer */
}

/* Cyber Shimmer Border */
header.floating-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    animation: shimmer 6s infinite linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    100% {
        transform: translateX(150%) skewX(-20deg);
    }
}

.header-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    /* Slightly darker for stability */
    backdrop-filter: blur(16px);
    /* Reduced blur radius for performance */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    z-index: 0;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    /* Slightly reduced padding */
}

/* Header Identity */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    /* Prevent crushing */
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    /* Removed pulse animation to reduce visual noise */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--text-primary);
    white-space: nowrap;
}

.corp-id {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.7;
    white-space: nowrap;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 4px;
    /* Tighter gap */
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-link {
    text-decoration: none;
    padding: 8px 12px;
    /* reduced padding */
    color: var(--text-secondary);
    font-size: 0.75rem;
    /* slightly smaller */
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    /* Specific transitions */
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    opacity: 0.5;
    color: var(--accent-blue);
}

/* Nav Active State (Scroll Spy) */
.nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-link.active .nav-num {
    color: #fff;
    opacity: 1;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Header Controls / Telemetry */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.sys-time {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 16px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.btn-micro {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-micro:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Responsive Logic */
@media (max-width: 1024px) {

    /* Hide nav earlier */
    .header-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .sys-time {
        display: none;
    }

    .sys-status {
        display: none;
        /* Hide status text on very small screens */
    }

    .floating-header {
        top: 16px;
        width: 92%;
        padding: 0;
    }

    .header-inner {
        padding: 0 12px;
    }
}

/* Header */
/* Header - Aero Glass V2 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter border */
    background: rgba(3, 7, 18, 0.6);
    /* More transparent */
    transition: transform 0.3s var(--easing);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header Status Line (Active Pulse) */
header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.5) 50%,
            transparent 100%);
    opacity: 0.5;
    z-index: 101;
}

/* Header Ruler Decoration */
header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-image: linear-gradient(to right, var(--text-secondary) 1px, transparent 1px);
    background-size: 20px 100%;
    /* Tick marks every 20px */
    opacity: 0.1;
    pointer-events: none;
}

header.hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    cursor: default;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-symbol {
    color: var(--accent-blue);
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.logo-light {
    font-weight: 300;
    color: var(--text-secondary);
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

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

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

/* Executive Prime (V10) - Titanium & Sheen */
.btn-primary {
    /* Carbon Base + Subtle Micro-Grain */
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
        #09090b;
    background-blend-mode: overlay, normal;

    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Precision Outline */
    padding: 0;
    position: relative;
    width: fit-content;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    /* Sharp technical radius */

    /* Heavy Damping for "Expensive" Feel */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    text-decoration: none !important;
    white-space: nowrap;
    /* Prevent wrapping */

    /* Machined Depth */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        /* Drop */
        0 0 0 1px rgba(0, 0, 0, 0.5),
        /* Dark rim definition */
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    /* Top Highlight (Machined Lip) */
}

/* The Sheen (Light Sweep Animation) */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    transition: none;
    /* Reset instantly */
}

.btn-primary::after {
    content: none;
}

.btn-content {
    background: transparent;
    color: #f8fafc;
    /* Slate 50 */
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    text-transform: none;
    z-index: 2;
    transition: color 0.3s;
}

.btn-icon-svg {
    margin-right: 12px;
    color: #94a3b8;
    /* Slate 400 */
    transition: all 0.3s ease;
    opacity: 1;
}

/* Hover States */
.btn-primary:hover {
    background-color: #18181b;
    /* Zinc 900 */
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Trigger Light Sweep on Hover */
.btn-primary:hover::before {
    left: 150%;
    transition: left 0.7s ease;
    /* Smooth, elegant sweep */
}

.btn-primary:active {
    transform: translateY(1px);
    background-color: #09090b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
}

.btn-primary:hover .btn-content {
    color: #fff;
}

.btn-primary:hover .btn-icon-svg {
    transform: translateX(3px);
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    transition: all 0.3s var(--easing);
}

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

/* Hero */
#hero {
    padding-top: 130px;
    /* Reduced from 200px */
    padding-bottom: 100px;
    /* Reduced from 140px */
    text-align: center;
    position: relative;
    min-height: 90vh;
    /* Ensure full viewport feel without overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 600;
    opacity: 0.9;
}

h1 {
    font-size: 5.5rem;
    /* Bigger */
    line-height: 1.0;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

/* Hero HUD (Side Data) */
.hero-hud {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 0;
    pointer-events: none;
}

.hero-hud.left {
    left: 40px;
    text-align: left;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    padding-left: 12px;
}

.hero-hud.right {
    right: 40px;
    text-align: right;
    border-right: 2px solid rgba(59, 130, 246, 0.3);
    padding-right: 12px;
}

.hud-line {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

/* Hero Scanner Line */
.hero-scanner-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), transparent);
    animation: scanVertical 4s ease-in-out infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes scanVertical {

    0%,
    100% {
        height: 0;
        top: 0;
        opacity: 0;
    }

    50% {
        height: 100%;
        top: 0;
        opacity: 0.5;
    }
}

/* Orbital Rings (Background) */
.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(59, 130, 246, 0.15);
    z-index: -2;
    pointer-events: none;
}

.ring-1 {
    width: 600px;
    height: 600px;
    animation: rotateRing 60s linear infinite;
}

.ring-2 {
    width: 900px;
    height: 900px;
    border: 1px solid rgba(59, 130, 246, 0.05);
    animation: rotateRing 80s linear infinite reverse;
}

.ring-3 {
    width: 1300px;
    height: 1300px;
    border: 1px dashed rgba(59, 130, 246, 0.08);
    opacity: 0.5;
    animation: rotateRing 120s linear infinite;
}

/* Satellites */
.satellite {
    position: absolute;
    top: 50%;
    left: 100%;
    /* Start at edge */
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-blue);
    transform: translate(-50%, -50%);
}

.sat-1 {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
}

/* On ring 1 (rotateRing moves it) */
.sat-2 {
    width: 4px;
    height: 4px;
    left: 0;
    background: var(--accent-cyan);
}

.sat-3 {
    width: 10px;
    height: 2px;
    border-radius: 0;
}

/* A station */

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

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

/* Live Terminal Line */
.live-terminal-line {
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin: 0 auto 32px;
    /* reduced margin */
    display: inline-flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}



/* Partners Grid Layout */
.partners-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--easing);
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.partner-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.partner-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    fill: var(--text-secondary);
    /* Start with slate gray */
    margin-bottom: 12px;
    transition: all 0.3s var(--easing);
    opacity: 0.8;
}

.partner-card:hover .partner-logo {
    fill: #fff;
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.terminal-prompt {
    color: #fff;
    font-weight: 700;
}

.terminal-msg {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    font-family: var(--font-mono);
}

.terminal-msg::after {
    content: '_';
    animation: blink 1s infinite step-end;
}

@media (max-width: 1200px) {
    .hero-hud {
        display: none;
    }

    /* Hide on smaller screens */
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.animated-gradient {
    background: linear-gradient(to right, #ffffff, #60a5fa, #ffffff);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
}

/* --- Ecosystem Grid (Bento) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 24px;
    padding: 20px 0;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    /* Ensure padding is handled by content unless needed here */
    padding: 0;
}

/* Hover State */
.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

/* Inner Content Container */
.bento-content {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Grid Spans */
.span-2-col {
    grid-column: span 2;
}

.span-2-row {
    grid-row: span 2;
}

/* Visual Effects: Noise */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* Visual Effects: Spotlight */
.bento-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* 3D Tilt Effect Base */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Holographic Cards (HUD Fragments) */
.holo-card {
    position: absolute;
    background: rgba(0, 0, 0, 0);
    /* Ultra transparent */
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
    pointer-events: none;
    animation: floatCard 6s ease-in-out infinite;
    border: none;
    /* Corner Borders (Top-Left and Bottom-Right) */
    background-image:
        linear-gradient(var(--accent-blue), var(--accent-blue)),
        linear-gradient(var(--accent-blue), var(--accent-blue));
    background-size: 8px 2px, 2px 8px;
    /* Corner L shapes */
    background-position: top left, top left;
    background-repeat: no-repeat;
    box-shadow: none;
}

/* Add bottom-right corner via after */
.holo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--accent-blue);
    border-right: 2px solid var(--accent-blue);
}

.holo-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.holo-value {
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
}

.left-float {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.right-float {
    top: 25%;
    right: 12%;
    animation-delay: 1.5s;
}

.bottom-float {
    bottom: 20%;
    right: 15%;
    left: auto;
    animation-delay: 3s;
}

/* Moved to right */

@keyframes floatCard {

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

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 1024px) {
    .holo-card {
        display: none;
    }
}

/* --- Holographic Iconography --- */
.bento-icon-shape {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    position: relative;
    /* Default spacing */
}

/* Circle Pulse (Game Controller) */
.circle-pulse {
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.circle-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulseIcon 2s infinite;
}

/* Hex Tech (Mobile/AI) */
.hex-tech {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), transparent);
    border: 1px solid var(--accent-cyan);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s;
}

.hex-tech::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px dashed rgba(6, 182, 212, 0.5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Diamond Grid (DeFi) */
.diamond-grid {
    transform: rotate(45deg);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    overflow: hidden;
}

.diamond-grid::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    top: 50%;
    left: -50%;
    transform: rotate(-45deg);
    animation: scanDiamond 3s infinite linear;
}

/* Alert Triangle (HR) */
.alert-tri {
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 42px solid rgba(245, 158, 11, 0.2);
    position: relative;
}

.alert-tri::after {
    content: '!';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #f59e0b;
    font-weight: bold;
    font-family: var(--font-mono);
}

/* Lab Flask (R&D) */
.lab-flask {
    border: 2px solid var(--accent-purple);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: rgba(139, 92, 246, 0.05);
    overflow: hidden;
}

.lab-flask::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--accent-purple);
    animation: liquidBubble 4s infinite ease-in-out;
}

/* Code Bracket (GitHub) */
.code-bracket {
    border: 2px solid var(--text-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 700;
}

.code-bracket::after {
    content: '</>';
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

@keyframes scanDiamond {
    0% {
        top: -20%;
    }

    100% {
        top: 120%;
    }
}

@keyframes liquidBubble {

    0%,
    100% {
        height: 40%;
        transform: skewY(0);
    }

    50% {
        height: 45%;
        transform: skewY(5deg);
    }
}

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 16px 0 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
    /* Push bottom elements down */
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 20px;
    font-weight: 600;
    width: fit-content;
}

.tag-list {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tag-list li {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Tech Stack Marquee */
#tech-stack {
    padding: 60px 0;
    background: rgba(3, 7, 18, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 60px;
}

.marquee-wrapper {
    width: 100%;
    margin-bottom: 12px;
    /* Tighter vertical spacing */
    position: relative;
    /* fade edges mask */
    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-container {
    display: flex;
    width: fit-content;
    gap: 0;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* We move -50% because we have 2 copies of the content. 
       Moving -50% shifts 1 full copy length, seamless reset. */
    animation: marquee var(--duration, 25s) linear infinite;
    will-change: transform;
}

/* Reverse Animation Class */
.marquee-container.reverse .marquee-content {
    animation-name: marquee-reverse;
}

.marquee-content span {
    font-size: 1.1rem;
    /* Adjusted size */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 15px;
    /* Padding instead of margin for better interaction area */
    user-select: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.marquee-content .dot {
    color: var(--accent-blue);
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 0;
    padding-left: 15px;
    /* Visually spacing the dot */
}

.marquee-content span:hover {
    color: var(--text-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* =========================================
   LEGAL PAGES STYLING (Privacy & Terms)
   ========================================= */
.legal-header {
    padding: 140px 0 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at center, rgba(3, 7, 18, 0) 0%, rgba(3, 7, 18, 1) 100%);
}

.legal-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 60px;
}

.legal-content h2 {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content ul {
    list-style: none;
    /* Custom bullets */
    margin-bottom: 24px;
    padding-left: 0;
}

.legal-content li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.legal-content li::before {
    content: "▹";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    top: 0;
}

.legal-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    border-bottom-color: var(--accent-blue);
    opacity: 0.8;
}

/* Partners Section */
#partners {
    padding: 20px 0 60px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.section-label {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 32px;
    opacity: 0.7;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.partner-item {
    position: relative;
    padding: 10px 20px;
    cursor: default;
}

.partner-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
    transition: color 0.4s var(--easing);
    position: relative;
    z-index: 2;
}

/* Quantum Spotlight (Interactive) */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* Partner Scanning Effect */
.partner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: translateY(-100%);
    animation: scanLine 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.partner-item:hover::after {
    opacity: 1;
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.partner-item:hover .partner-text {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.partner-item:hover .partner-glow {
    opacity: 1;
}

/* Ventures Grid */
#ventures {
    padding: 100px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 70px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Card Background Visuals --- */
.card-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.3s;
}

.bento-item:hover .card-bg-visual {
    opacity: 0.2;
}

.grid-bg {
    background-image: linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.wave-bg {
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(139, 92, 246, 0.2) 10px,
            rgba(139, 92, 246, 0.2) 20px);
}

.circuit-bg {
    background-image: radial-gradient(rgba(6, 182, 212, 0.2) 2px, transparent 2px);
    background-size: 15px 15px;
}

/* --- Neural Core Definition --- */
.neural-core-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.neural-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateSphere 20s linear infinite;
}

.neural-sphere .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.r1 {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) rotateX(60deg);
}

.r2 {
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%) rotateY(60deg);
    animation: pulseRing 4s ease-in-out infinite alternate;
}

.r3 {
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%) rotateX(-45deg) rotateY(45deg);
    border-color: rgba(139, 92, 246, 0.4);
}

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #fff, var(--accent-blue));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-blue), 0 0 80px var(--accent-purple);
    animation: pulseCore 2s ease-in-out infinite;
}

@keyframes rotateSphere {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg);
    }
}

@keyframes pulseCore {

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

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes pulseRing {
    0% {
        border-color: rgba(59, 130, 246, 0.2);
    }

    100% {
        border-color: rgba(59, 130, 246, 0.6);
    }
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    padding: 48px 40px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s;
    /* JS handles smoother tilt */
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    opacity: 0;
    transition: opacity 0.5s var(--easing);
    pointer-events: none;
}

.card:hover .card-glow {
    opacity: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Glitch Effect Class */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(32px, 9999px, 88px, 0);
    }

    5% {
        clip: rect(72px, 9999px, 12px, 0);
    }

    10% {
        clip: rect(49px, 9999px, 2px, 0);
    }

    15% {
        clip: rect(93px, 9999px, 55px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 73px, 0);
    }

    25% {
        clip: rect(81px, 9999px, 36px, 0);
    }

    30% {
        clip: rect(2px, 9999px, 13px, 0);
    }

    35% {
        clip: rect(62px, 9999px, 28px, 0);
    }

    40% {
        clip: rect(55px, 9999px, 90px, 0);
    }

    45% {
        clip: rect(8px, 9999px, 66px, 0);
    }

    50% {
        clip: rect(23px, 9999px, 82px, 0);
    }

    55% {
        clip: rect(98px, 9999px, 4px, 0);
    }

    60% {
        clip: rect(39px, 9999px, 51px, 0);
    }

    65% {
        clip: rect(15px, 9999px, 29px, 0);
    }

    70% {
        clip: rect(76px, 9999px, 91px, 0);
    }

    75% {
        clip: rect(44px, 9999px, 34px, 0);
    }

    80% {
        clip: rect(88px, 9999px, 59px, 0);
    }

    85% {
        clip: rect(7px, 9999px, 77px, 0);
    }

    90% {
        clip: rect(66px, 9999px, 11px, 0);
    }

    95% {
        clip: rect(29px, 9999px, 96px, 0);
    }

    100% {
        clip: rect(51px, 9999px, 47px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 99px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    10% {
        clip: rect(84px, 9999px, 31px, 0);
    }

    15% {
        clip: rect(99px, 9999px, 17px, 0);
    }

    20% {
        clip: rect(3px, 9999px, 66px, 0);
    }

    25% {
        clip: rect(51px, 9999px, 14px, 0);
    }

    30% {
        clip: rect(28px, 9999px, 86px, 0);
    }

    35% {
        clip: rect(73px, 9999px, 45px, 0);
    }

    40% {
        clip: rect(16px, 9999px, 22px, 0);
    }

    45% {
        clip: rect(91px, 9999px, 58px, 0);
    }

    50% {
        clip: rect(69px, 9999px, 10px, 0);
    }

    55% {
        clip: rect(4px, 9999px, 79px, 0);
    }

    60% {
        clip: rect(33px, 9999px, 35px, 0);
    }

    65% {
        clip: rect(82px, 9999px, 64px, 0);
    }

    70% {
        clip: rect(19px, 9999px, 94px, 0);
    }

    75% {
        clip: rect(47px, 9999px, 25px, 0);
    }

    80% {
        clip: rect(78px, 9999px, 52px, 0);
    }

    85% {
        clip: rect(31px, 9999px, 8px, 0);
    }

    90% {
        clip: rect(60px, 9999px, 89px, 0);
    }

    95% {
        clip: rect(11px, 9999px, 42px, 0);
    }

    100% {
        clip: rect(96px, 9999px, 71px, 0);
    }
}

/* --- Compliance Strip (Ticker Tape) --- */
.compliance-strip-wrapper {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.compliance-strip {
    display: inline-block;
    animation: marquee-scroll 60s linear infinite;
    padding-left: 100%;
    /* Start off-screen */
}

.compliance-strip span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-right: 12px;
    letter-spacing: 0.05em;
}

.compliance-strip .separator {
    color: var(--accent-blue);
    opacity: 0.5;
}

/* --- Terminal Footer (Redesign) --- */
/* --- System Root Footer --- */
.terminal-footer {
    background: #020617;
    /* Deepest black */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Hard terminal top border */
    padding: 80px 0 40px;
    position: relative;
    font-family: var(--font-mono);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.map-cell {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.map-cell.active {
    background: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
    animation: serverBlink 3s infinite;
    animation-delay: var(--d, 0s);
}

@keyframes serverBlink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 8px var(--accent-blue);
    }
}

.map-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.terminal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 2px;
    /* Small gap for border effect */
    background: rgba(255, 255, 255, 0.05);
    /* Color of the gap/borders */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Performance Optimization */
    will-change: transform;
    contain: layout paint;
    transform: translateZ(0);
    /* Force GPU */
}

.terminal-module {
    background: #030712;
    /* Match body bg to create border effect */
    padding: 32px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    contain: content;
    /* Isolate layout */
}

.module-header {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.module-header::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent-blue);
}

.terminal-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terminal-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.terminal-links li a:hover {
    color: var(--accent-blue);
    padding-left: 10px;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.terminal-links li a::before {
    content: '>';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--accent-blue);
}

.terminal-links li a:hover::before {
    opacity: 1;
    left: -15px;
    /* Adjust based on padding */
}


.terminal-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.terminal-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 20%;
    height: 1px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
}

.legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
}

.legal-link:hover {
    color: var(--accent-blue);
    opacity: 1;
    text-shadow: 0 0 5px var(--accent-blue);
}

/* Adjust map for terminal module */
.terminal-module .footer-map {
    margin-top: 0;
    background: transparent;
    border: none;
    padding: 0;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .terminal-grid {
        grid-template-columns: 1fr;
    }

    .terminal-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Bento Card Active Border */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    opacity: 0.5;
}

.bento-item:hover::before {
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

@media (max-width: 768px) {
    .log-item {
        flex-direction: column;
        gap: 16px;
    }

    .log-status {
        width: auto;
        align-self: flex-start;
        text-align: left;
    }
}

/* --- New Premium Elements --- */

/* Architectural Grid Overlay (Reactive) */
#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.8;
    z-index: -2;
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 400px);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 400px);
}

/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
}

.boot-content {
    width: 400px;
    max-width: 90%;
}

.boot-logo {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.boot-terminal {
    font-size: 0.8rem;
    line-height: 1.5;
    height: 150px;
    overflow: hidden;
    margin-bottom: 20px;
    color: #10b981;
    /* Terminal Green */
}

.boot-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.boot-progress-fill {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--accent-blue);
}

.cursor-blink {
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Technical Divider */
.tech-divider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    animation: fadeInDivider 0.5s ease forwards 0.5s;
}

.divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex: 1;
    position: relative;
    transform: scaleX(0);
    animation: expandLine 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.8s;
}

.tech-divider .divider-line:first-child {
    transform-origin: right center;
}

.tech-divider .divider-line:last-child {
    transform-origin: left center;
}

/* Dots on the ends of the lines */
.divider-line::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%) scale(0);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.8s;
}

/* Left Dot */
.tech-divider .divider-line:first-child::before {
    left: 0;
}

/* Right Dot */
.tech-divider .divider-line:last-child::before {
    right: 0;
}


@keyframes fadeInDivider {
    to {
        opacity: 1;
    }
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

@keyframes popIn {
    from {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }

    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.tech-divider span {
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 0.15em;
    position: relative;
    z-index: 1;
    background: transparent;
    /* No mask needed */
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    opacity: 0;
    animation: fadeInDivider 0.5s ease forwards 1s;
}

/* System Status Bar */
#system-status {
    background: #000;
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    position: relative;
    z-index: 101;
    display: none;
    /* Mobile hide handled via media query usually, but visible by default on desktop */
    display: block;
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mono-text {
    font-family: var(--font-mono);
    /* Fallback until fonts load, or keep system mono */
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4b5563;
}

.status-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    margin: 0 4px 1px 0;
    box-shadow: 0 0 5px #10b981;
}

/* Typography & Labels */
.section-tag {
    display: block;
    margin-bottom: 16px;
    color: var(--accent-blue);
}

.tech-label-corner {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Capability Matrix */
#capabilities {
    padding: 80px 0;
}

.capability-matrix {
    padding: 60px;
    border-radius: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.matrix-col h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
    font-weight: 600;
}

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

.matrix-col li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    display: inline-block;
    width: 100%;
    transition: all 0.2s;
    font-family: var(--font-mono);
    /* Tech vibe */
    letter-spacing: -0.02em;
}

.matrix-col li:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.matrix-col h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matrix-col h4::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #10b981;
    /* Active light */
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
}


/* ---------------------------------------------------- */




/* ---------------------------------------------------- */
/* PHILOSOPHY / MANIFESTO (DATA SPINE LAYOUT) */
/* ---------------------------------------------------- */
#philosophy {
    padding: 140px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at 50% 0%, rgba(20, 25, 40, 1), #030712 60%);
}

.philosophy-layout {
    display: flex;
    gap: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* The "Data Spine" */
.manifesto-spine {
    width: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.spine-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 40px 0;
    opacity: 0.5;
}

.philosophy-header {
    flex: 0 0 35%;
    padding: 60px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.philosophy-header h2 {
    font-size: 4rem;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
}

.philosophy-content {
    flex: 1;
    padding: 60px 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    text-align: justify;
    /* Newspaper/Terminal feel */
}

/* Drop Cap Upgrade */
/* Drop Cap Upgrade */
.drop-cap::first-letter {
    float: left;
    font-size: 6.5rem;
    line-height: 0.8;
    margin-right: 24px;
    font-weight: 900;
    font-family: var(--font-main);
    background: linear-gradient(135deg, #fff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
    }

    to {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.7));
    }
}

/* ---------------------------------------------------- */
/* TRANSMISSION LOG (TERMINAL STREAM) */
/* ---------------------------------------------------- */
#transmissions {
    padding: 100px 0;
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Tighter gap for "list" feel */
    margin-top: 40px;
    font-family: var(--font-mono);
}

/* Terminal Entry Style */
.log-item {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    /* Date | Content | Status */
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--accent-blue);
    transform: translateX(10px);
}

.log-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.log-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-mono);
    /* Force mono for logs */
}

.log-content p {
    font-size: 0.8rem;
    color: #94a3b8;
    max-width: 90%;
}

/* Neon Chip Badges */
.log-status {
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 0 8px currentColor, inset 0 0 8px currentColor;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px currentColor;
}

.log-status.cmpl {
    color: #10b981;
}

/* Green */
.log-status.actv {
    color: #3b82f6;
}

/* Blue */
.log-status.rnd {
    color: #8b5cf6;
}

/* Purple */

/* Hide old timeline line */
.log-timeline-line,
.log-dot {
    display: none;
}

/* Animation Utils */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2-col,
    .span-2-row {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    header .container {
        justify-content: center;
    }

    nav {
        display: none;
    }

    #hero {
        padding-top: 160px;
        padding-bottom: 100px;
    }

    .terminal-footer {
        text-align: left;
    }
}

.disabled-look {
    opacity: 0.7;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.disabled-look .partner-meta {
    color: #fbbf24;
    /* Amber-400 for 'pending' warning feel */
    opacity: 1;
}

.disabled-look:hover {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Cyber Perspective Grid --- */
.hero-perspective-grid {
    position: absolute;
    bottom: -20%;
    left: 0;
    width: 100%;
    height: 80%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.15;
    z-index: -1;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 100%);
    pointer-events: none;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 50px;
    }
}

/* --- Floating Geometric Shapes (Wireframes) --- */
.geo-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.shape-cube {
    top: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transform: rotate(45deg);
    animation: floatRotate 20s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.shape-cube::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transform: translate(-50%, -50%);
}

.shape-pyramid {
    bottom: 30%;
    right: 20%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(15deg);
    animation: floatRotate 25s linear infinite reverse;
}

.shape-pyramid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.6) rotate(30deg);
}

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

    50% {
        transform: rotate(180deg) translateY(-20px);
    }

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

/* --- CRT Scanlines --- */
.hero-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 2;
    /* On top of background elements but below text */
    pointer-events: none;
    opacity: 0.15;
    animation: scanlineScroll 0.5s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes scanlineScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 4px;
    }
}

/* Ensure Hero Text is above scanlines */
#hero .container {
    z-index: 5;
    position: relative;
}

/* Hero Section - Full Screen & Centered */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    /* Offset for fixed header */
    padding-bottom: 40px;
    z-index: 1;
}

/* Ensure Neural Core stays centered */
.neural-core-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* --- Transmission Log (Vertical Timeline) --- */
.log-list {
    position: relative;
    padding-left: 20px;
    margin-top: 40px;
}

/* Vertical Line */
.log-timeline-line {
    position: absolute;
    top: 0;
    left: 29px;
    /* Aligned with dots */
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(59, 130, 246, 0.5),
            rgba(59, 130, 246, 0.1) 80%,
            transparent);
    z-index: 0;
}

.log-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    padding-left: 50px;
    /* Space for date and dot */
    transition: all 0.3s ease;
    cursor: pointer;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Node Dot */
.log-dot {
    position: absolute;
    left: 24px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: #0f172a;
    border: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.log-item:hover .log-dot {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transform: scale(1.2);
    border-color: #3b82f6;
}

.log-date {
    position: absolute;
    /* Floating date or inline? User mock suggests improved layout. Let's keep date tight */
    /* Wait, vertical layout usually puts date on the left or top. 
       Let's put date ABOVE content but aligned with content */
    left: 60px;
    /* Aligned with text padding */
    top: 0px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Adjust Content Layout */
.log-content {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: 8px;
    position: relative;
    margin-top: 8px;
    /* Space for date */
}

.log-item:hover .log-content {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.log-content h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

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

/* Status Badges */
.log-status {
    font-size: 0.75rem;
    color: #3b82f6;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 1;
}

/* Pulse effect behind status */
.log-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.2);
    z-index: -1;
    animation: statusPulse 2s infinite;
    pointer-events: none;
}

/* --- New Homepage Additions (Generalization) --- */

/* Highlight Card (Live Product) */
.highlight-card {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(0, 0, 0, 0));
    position: relative;
    overflow: hidden;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }

    100% {
        opacity: 0.8;
    }
}

.btn-link-sm {
    display: inline-block;
    margin-top: 1rem;
    color: #10B981;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-link-sm:hover {
    color: #34D399;
    transform: translateX(4px);
}

/* Scanner Animation in Card */
.scanner-anim-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------- */
/* HUD & "DENSITY" UPGRADES (New Feature Phase) */
/* ---------------------------------------------------- */

/* Hero HUD Grid Overlay */
.hud-grid-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vw;
    height: 80vh;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    /* Grid size */
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.hud-grid-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 40%, #030712 90%);
}

/* Rolling Counters */
.hud-corner {
    position: absolute;
    padding: 10px;
    z-index: 2;
    color: var(--text-dim);
    font-size: 0.7rem;
    pointer-events: none;
}

.hud-corner.top-left {
    top: 120px;
    /* Below header */
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 2px solid var(--accent-primary);
    padding-left: 10px;
}

.hud-corner.bottom-right {
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    border-right: 2px solid var(--accent-primary);
    padding-right: 10px;
    text-align: right;
}

.rolling-counter-container {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 2;
    overflow: hidden;
    height: 20px;
    width: 200px;
    opacity: 0.6;
}

.rolling-counter-container .label {
    font-size: 0.65rem;
    color: var(--accent-primary);
    margin-right: 10px;
}

.rolling-numbers {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    animation: rollNumbers 2s infinite linear;
    white-space: nowrap;
}

@keyframes rollNumbers {
    0% {
        transform: translateY(0);
        content: "0101001101...";
    }

    100% {
        transform: translateY(-100%);
    }

    /* Placeholder for JS driven later */
}

/* ---------------------------------------------------- */
/* SERVER RACK ("THE MACHINE") SECTION */
/* ---------------------------------------------------- */
#the-machine {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-rack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.rack-unit {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 4px;
    /* Techy sharp corners */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rack-unit:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.rack-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 5px currentColor;
}

.rack-status.active {
    background-color: #10b981;
    color: #10b981;
}

.rack-status.warning {
    background-color: #f59e0b;
    color: #f59e0b;
}

.rack-status.offline {
    background-color: #ef4444;
    color: #ef4444;
}

.rack-label {
    flex-grow: 1;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.rack-lights {
    display: flex;
    gap: 4px;
}

.rack-lights span {
    width: 6px;
    height: 12px;
    background-color: var(--accent-primary);
    opacity: 0.2;
    border-radius: 1px;
}

/* Animations for rack lights */
.rack-lights span:nth-child(odd) {
    animation: blink 1s infinite alternate;
}

.rack-lights span:nth-child(even) {
    animation: blink 1.5s infinite alternate-reverse;
}

.blink-fast span {
    animation-duration: 0.2s !important;
}

.slow-pulse span {
    animation: blink 3s infinite ease-in-out;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 3px var(--accent-primary);
    }
}

/* ---------------------------------------------------- */
/* FOOTER EXTENSIONS */
/* ---------------------------------------------------- */

/* Ensure footer terminal grid handles new content */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.scan-line {
    width: 100%;
    height: 2px;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: scanDown 2s linear infinite;
}

@keyframes scanDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(60px);
        opacity: 0;
    }
}

/* Color Shift Glow */
.card-glow.color-shift {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* --- Ultimate Init Overlay (Cinematic) --- */
#init-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#init-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Background Grid Texture */
.overlay-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    /* Vignette */
}

.boot-container {
    width: 500px;
    max-width: 90%;
    z-index: 10;
    font-family: var(--font-mono);
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#init-overlay.active .boot-container {
    transform: scale(1);
}

.boot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.boot-icon {
    color: var(--accent-blue);
    animation: spinSlow 4s linear infinite;
}

.boot-log-window {
    height: 140px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Pin to bottom */
    gap: 6px;
    margin-bottom: 20px;
    mask-image: linear-gradient(to bottom, transparent, black 20%);
}

.boot-log-line {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    animation: logAppear 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.boot-log-line span.success {
    color: var(--accent-blue);
    margin-left: 8px;
}

.boot-progress-wrapper {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.boot-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-blue);
    transition: width 0.1s linear;
    /* JS will drive this */
}

.boot-meta {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    opacity: 0.7;
}

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

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

/* --- High-Stability Cinematic Glitch --- */
/* We apply this to a wrapper or body. Instead of shaking everything wildly,
   we use RGB split and slight horizontal shift for a "Digital" feel. */

body.cinematic-glitch {
    position: relative;
    overflow: hidden;
}

body.cinematic-glitch::before,
body.cinematic-glitch::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    /* Copy bg */
    z-index: 10000;
    opacity: 0.5;
    mix-blend-mode: hard-light;
    pointer-events: none;
}

body.cinematic-glitch::before {
    animation: glitchAnim1 0.2s infinite linear alternate-reverse;
    background: rgba(255, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 40%);
}

body.cinematic-glitch::after {
    animation: glitchAnim2 0.2s infinite linear alternate-reverse;
    background: rgba(0, 0, 255, 0.1);
    clip-path: polygon(0 60%, 100% 50%, 100% 100%, 0 100%);
}

@keyframes glitchAnim1 {
    0% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(2px);
    }
}

@keyframes glitchAnim2 {
    0% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(-2px);
    }
}

/* Refined CRT Shutdown (Old TV Style) */
body.crt-shutdown {
    animation: turnOff 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

body.crt-shutdown::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10002;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
    animation: whiteDot 0.6s 0.5s ease-out forwards;
    /* Delays dot until screen collapses */
}

@keyframes turnOff {
    0% {
        transform: scale(1, 1);
        filter: brightness(1) saturate(1);
        opacity: 1;
    }

    40% {
        transform: scale(1, 0.002);
        filter: brightness(3) saturate(0);
        opacity: 1;
    }

    100% {
        transform: scale(0, 0);
        filter: brightness(0);
        opacity: 0;
    }
}

@keyframes whiteDot {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid var(--accent-blue);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-container.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--accent-blue);
}

.toast-message {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #fff;
}

/* --- Turn On (Generic) --- */
@keyframes turnOn {
    0% {
        transform: scale(0, 0);
        filter: brightness(0);
        opacity: 0;
    }

    40% {
        transform: scale(1, 0.002);
        filter: brightness(3) saturate(0);
        opacity: 1;
    }

    100% {
        transform: scale(1, 1);
        filter: brightness(1) saturate(1);
        opacity: 1;
    }
}

.crt-turn-on {
    animation: turnOn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* --- Reboot Splash Screen --- */
#reboot-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

#reboot-splash.active {
    opacity: 1;
    pointer-events: all;
}

.splash-content {
    text-align: center;
    font-family: var(--font-mono);
    color: #ef4444;
    /* Red for failure/reboot */
}

.system-shake {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: intenseShake 0.2s infinite;
    text-shadow: 2px 2px 0px rgba(255, 0, 0, 0.5), -2px -2px 0px rgba(0, 0, 255, 0.5);
}

.reboot-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: blink 0.5s infinite;
}

.splash-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.splash-progress {
    width: 0%;
    height: 100%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    transition: width 0.5s linear;
}

@keyframes intenseShake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}