/* Rootensoft 2.0 - Apple/Stripe Tech Minimalist Style */

:root {
    --primary: #6366f1; /* Modern Indigo */
    --hover-primary: #4f46e5;
    --accent: #a855f7; /* Tech Purple */
    --accent-emerald: #10B981;
    --text-main: #0f172a;
    --text-off: #334155;
    --text-muted: #64748b;
    --bg-light: #ffffff; /* Pure white start */
    --bg-faint: #f8fafc;
    --nav-bg: rgba(255, 255, 255, 0.85);   /* Glassy header */
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-soft: rgba(0, 0, 0, 0.04);
    --border-glass: rgba(0, 0, 0, 0.06);
    --gutter: 2rem;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
    --text-main: #f8fafc;
    --text-off: #cbd5e1;
    --text-muted: #64748b;
    --bg-light: #030712; /* Deep body background */
    --bg-faint: #0f172a;
    --nav-bg: #000000;   /* Pure black header for clear partitioning */
    --bg-glass: rgba(3, 7, 18, 0.7);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    
    letter-spacing: 0.01em; /* Slightly wider tracking for dark mode */
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.05); /* Subtle glow */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'HarmonyOS Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 2px 2px, var(--border-soft) 1px, transparent 0);
    background-size: 32px 32px; /* Subtle grid pattern */
    line-height: 1.47059;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

header,
section,
footer {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 72px; /* Slightly reduced from 80px to fit the new G&E layout */
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
}

h1 span {
    color: var(--primary);
}

h2 {
    font-size: 56px;
    line-height: 1.07;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

p.description {
    font-size: 21px;
    color: var(--text-off);
    max-width: 600px;
    margin-bottom: 32px;
}

.tagline {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-faint);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-png {
    height: 38px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.footer-logo-png {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

/* Scroll & Dark Mode Filter for Logo */
body.dark-mode .navbar .logo-png {
    filter: brightness(0) invert(1);
}

.logo:hover .logo-png {
    transform: scale(1.02);
}

.logo-png {
    height: 32px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

/* Rule consolidated above or below */

.logo:hover .logo-png,
.logo:hover .footer-logo-png {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-links > li {
    position: static; /* Required for full-width dropdowns */
}

.nav-links a {
    text-decoration: none;
    font-size: 18px; /* Increased from 14px */
    font-weight: 500;
    color: var(--text-main);
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.chevron-icon {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
}

.nav-links a:hover {
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary));
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(0, 102, 255, 0.3);
}

.nav-links a:hover .nav-icon,
.nav-links a:hover .chevron-icon {
    color: #fff;
}

.has-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Mega Menu Structure - Floating Design */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 700px; /* Reduced from 800px */
    background: var(--bg-light);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    padding: 24px; /* Reduced from 32px */
    margin-top: 10px;
    pointer-events: none; /* Prevent interaction while hidden */
}

.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mega-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 16px; /* Reduced gap */
    padding: 12px 16px !important; /* Reduced padding */
    border-radius: 8px !important;
    background: transparent;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.mega-item:hover {
    background: var(--bg-light) !important;
    border-color: var(--border-soft);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body.dark-mode .mega-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.mega-icon {
    font-size: 22px; /* Reduced from 28px */
    width: 48px; /* Reduced from 60px */
    height: 48px; /* Reduced from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.mega-item:hover .mega-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.mega-text {
    display: flex;
    flex-direction: column;
}

.mega-text strong {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.mega-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 17px;
}

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

.btn-primary:hover {
    background: var(--hover-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
}

/* Breath/Pulse Animation */
.btn-primary {
    animation: btn-breath 3s infinite ease-in-out;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

@keyframes btn-breath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
    50% { box-shadow: 0 0 20px 8px rgba(0, 102, 255, 0.2); }
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
    background: var(--bg-faint);
    border-color: var(--text-main);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

/* Mesh Gradient Background */
.mesh-gradient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6; /* Increased for more visual depth */
    transition: opacity 1s;
}

body.dark-mode .mesh-gradient-container {
    opacity: 0.3;
}

.mesh-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: mesh-float 20s infinite alternate ease-in-out;
}

.mesh-ball-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    animation-delay: 0s;
}

.mesh-ball-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent);
    animation-delay: -5s;
}

@keyframes mesh-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Top Navbar CTA Group */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Removed Theme Switcher Pill Styles */

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.lang-switcher:hover {
    color: var(--text-main);
}

.lang-switcher svg {
    width: 18px;
    height: 18px;
}

/* Login Link */
.login-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.login-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px; /* Use a fixed width for the visual on desktop for stability */
    align-items: center;
    gap: 80px;
}

/* Ensure grid items don't blow out their containers */
.hero-text, .hero-visual {
    min-width: 0;
}

.hero-text {
    flex-grow: 1;
}

/* Hero G&E Brain Visual Frame */
.hero-ge-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 50px 130px -30px rgba(99, 102, 241, 0.4),
        0 20px 40px -10px rgba(99, 102, 241, 0.2),
        inset 0 0 40px rgba(99, 102, 241, 0.1);
    animation: ge-float 10s infinite alternate ease-in-out;
    flex-shrink: 0;
    transform-style: preserve-3d;
    perspective: 2000px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-ge-frame:hover {
    transform: perspective(2000px) rotateY(-18deg) rotateX(6deg) translateY(-30px) scale(1.05) !important;
    box-shadow: 
        0 80px 160px -20px rgba(99, 102, 241, 0.5),
        0 30px 60px -10px rgba(168, 85, 247, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.hero-main-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    mix-blend-mode: normal;
}

/* HUD Overlays for Hero */
.ge-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.hud-item {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hud-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.hud-line {
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: hud-line-grow 3s forwards ease-out;
}

.item-1 {
    top: 20%;
    left: 10%;
    animation: hud-float 4s infinite alternate ease-in-out;
}

.item-2 {
    bottom: 25%;
    right: 15%;
    animation: hud-float 4s infinite alternate-reverse ease-in-out;
}

.ge-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ge-pulse 6s infinite;
}

@keyframes ge-float {
    0% { transform: perspective(2000px) rotateY(-12deg) rotateX(4deg) translateY(0); }
    100% { transform: perspective(2000px) rotateY(-12deg) rotateX(4deg) translateY(-25px); }
}

@keyframes hud-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes hud-line-grow {
    to { width: 100%; }
}

@keyframes ge-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Comparison Slider */
/* AI Pioneer Lab Section (Full Width Premium Showcase) */
.ai-lab {
    background-color: #030712; /* Deep midnight */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15), transparent 40%),
        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% 100%, 100% 100%, 40px 40px, 40px 40px;
    padding: 140px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.lab-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: flex-start; /* Align to top initially */
    gap: 120px;
    padding-top: 40px; /* Added some top space */
}

.lab-text {
    padding-top: 20px; /* Slight offset to match image top line better */
}

.premium-title {
    font-size: 56px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.1;
}

.premium-description {
    font-size: 20px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 48px;
}

.glow-text {
    font-size: 40px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.lab-specs {
    display: flex;
    gap: 60px;
}

.spec-item span {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

/* Shareable Comparison Styles */
/* Premium Frame Enhancement */
.premium-frame {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 16px;
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.comparison-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.comparison-label {
    position: absolute;
    top: 24px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.85); /* Tech Indigo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 6px;
    z-index: 15;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.label-before {
    left: 24px;
}

.label-after {
    right: 24px;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.img-before {
    max-width: none !important; /* Prevent shrinking by parent container */
}

.img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    /* Subtle inner border to mark the split */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.scan-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
    z-index: 11;
}

.img-before {
    max-width: none !important;
    height: 100%;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 11;
    pointer-events: none;
}

.handle-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 11;
    pointer-events: none;
    transition: opacity 0.3s;
}

.comparison-slider:hover .handle-pulse {
    animation: slider-pulse 2s infinite;
    opacity: 0.4;
}

@keyframes slider-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

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

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 12;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.slider-handle svg {
    width: 20px;
    height: 20px;
}

.slider-input:active~.slider-handle {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.premium-caption {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    text-align: left;
    padding: 24px 32px;
}

.premium-caption strong {
    font-size: 20px;
    margin-bottom: 12px;
}

.premium-caption span {
    color: #94a3b8;
}

/* AI Overlays */
.ai-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-overlay-layer.active {
    opacity: 1;
}

.ai-box {
    position: absolute;
    border: 1px solid rgba(0, 102, 255, 0.4);
    background: rgba(0, 102, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-box::after {
    content: attr(data-label);
    position: absolute;
    top: -24px;
    left: 0;
    background: var(--primary);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.box-head {
    top: 12%;
    left: 35%;
    width: 30%;
    height: 20%;
}

.box-torso {
    top: 32%;
    left: 20%;
    width: 60%;
    height: 45%;
}

.box-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid var(--primary);
}

.tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.box-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: box-scan 2s infinite ease-in-out;
}

@keyframes box-scan {

    0%,
    100% {
        transform: translateY(-10px);
        opacity: 0;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

.ai-status-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-dot {
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    box-shadow: 0 0 10px #34c759;
}

/* Auto Sweep Animation Class */
.auto-sweep-mode .slider-input {
    pointer-events: none;
}

/* Bento Grid Enhancement */
.section-header {
    margin-bottom: 60px;
}

/* Bento Grid Sophistication */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "hero hero tall"
        "small1 small2 tall";
    gap: 24px; /* 减小间距，使其更紧凑 */
    padding-bottom: 60px;
}

.bento-area-hero {
    grid-area: hero;
}

.bento-area-tall {
    grid-area: tall;
}

.bento-area-small1 {
    grid-area: small1;
}

.bento-area-small2 {
    grid-area: small2;
}

.bento-card {
    background: linear-gradient(165deg, #ffffff 0%, #f9faff 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(99, 102, 241, 0.06), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 50px 100px -20px rgba(99, 102, 241, 0.25),
        0 20px 40px -10px rgba(168, 85, 247, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Hover Stability Fix */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.bento-card:hover::after {
    inset: -20px;
}

.bento-card-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.bento-card-hero .card-icon {
    flex-shrink: 0;
}

.bento-card-tall {
    background: #ffffff; /* 恢复纯净背景 */
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* 内部由子元素控制间距 */
}

/* 确保 Tall 卡片的图文上下排列 */
.bento-card-tall .relative-z {
    height: auto;
    padding: 40px 40px 0; /* 恢复标准边距，底部留给图表 */
    order: 1; /* 文字在上 */
    justify-content: flex-start;
}

.bento-card-tall h3, 
.bento-card-tall p,
.bento-card-tall .card-icon {
    color: var(--text-main);
}

.bento-card-wide {
    background: var(--text-main);
    color: #fff;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
}

.bento-card-wide h3 {
    color: #fff;
}

.bento-card-wide p {
    color: #a1a1a6;
    max-width: 500px;
}

/* Bento Grid Rich Visuals & Micro-Interactions */
.has-rich-visual {
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.relative-z {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-card-hero .relative-z {
    padding-left: 20px;
    flex: 1.2; /* 给文字更多空间 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blur-bg-content {
    background: linear-gradient(to top, var(--bg-light) 0%, rgba(255, 255, 255, 0) 100%);
    justify-content: flex-start; /* 恢复顶部对齐 */
    padding: 40px;
}

body.dark-mode .blur-bg-content {
    background: linear-gradient(to top, var(--bg-light) 10%, transparent 100%);
}

.bento-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Feature 1: Multi-Platform Glass Stack */
.plat-visual {
    position: relative !important;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    z-index: 1;
}
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(-30px) translateY(10px) perspective(800px) rotateY(15deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
}
body.dark-mode .glass-panel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.panel-tk { transform: translateX(-10px) translateY(5px) perspective(800px) rotateY(15deg); transition-delay: 0.05s; }
.panel-temu { transform: translateX(10px) perspective(800px) rotateY(15deg); transition-delay: 0.1s; }

.bento-card-hero:hover .glass-panel {
    transform: translateX(20px) translateY(0) perspective(800px) rotateY(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Feature 2: Cutout Scan Effect */
.checkboard-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, var(--border-soft) 25%, transparent 25%), linear-gradient(-45deg, var(--border-soft) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--border-soft) 75%), linear-gradient(-45deg, transparent 75%, var(--border-soft) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0;
    transition: opacity 0.5s;
}
.bento-card-tall:hover .checkboard-bg {
    opacity: 1;
}
.bento-card-tall .relative-z {
    height: 45%;
    padding-bottom: 0;
    justify-content: flex-start;
}

.cutout-visual {
    position: relative;
    width: 100%;
    height: 380px; /* 增加高度以支撑长卡片 */
    background: #e60012; 
    order: 2; /* 图像在下 */
    overflow: hidden;
    transition: background 0.4s ease; 
}

.bento-card-tall:hover .cutout-visual {
    background: #ffffff; /* 悬停时背景变白，模拟去背景效果 */
}

.shoe-before, .shoe-after {
    position: absolute;
    top: 10%; /* 改为顶部对齐，方便截取底部 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    width: 90%; /* 稍微放大一点，视觉效果更好 */
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.shoe-before {
    z-index: 1;
}
.shoe-after-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: inset(0 100% 0 0); /* Hidden */
    transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.bento-card-tall:hover .shoe-after-wrapper {
    clip-path: inset(0 0 0 0); /* Reveal from left to right */
}
.bento-card-tall:hover .shoe-before, 
.bento-card-tall:hover .shoe-after {
    /* 移除独立位移动画，让鞋子跟随卡片整体浮动 */
    transform: translateX(-50%); 
}
.scan-line {
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px 2px var(--primary);
    z-index: 3;
    opacity: 0;
    transform: translateX(-10px);
}
.bento-card-tall:hover .scan-line {
    animation: scan-pass 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
@keyframes scan-pass {
    0% { transform: translateX(0); opacity: 0; }
    5% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(600px); opacity: 0; }
}

/* Feature 3: Digital Models Reveal */
.model-visual img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.model-after {
    opacity: 0;
}
.bento-card-small1:hover .model-before {
    opacity: 0;
    transform: scale(1.05);
}
.bento-card-small1:hover .model-after {
    opacity: 1;
    transform: scale(1.05);
}

/* Feature 4: Security Radar */
.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.radar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px dashed var(--primary);
    position: absolute;
    opacity: 0.1;
    transition: opacity 0.5s;
}
.radar-sweep {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(99, 102, 241, 0.4) 100%);
    position: absolute;
    animation: radar-spin 4s linear infinite;
    opacity: 0.15;
    transition: opacity 0.5s;
}
.bento-card-small2:hover .radar-circle {
    opacity: 0.4;
}
.bento-card-small2:hover .radar-sweep {
    opacity: 0.8;
    animation: radar-spin 2s linear infinite;
}
@keyframes radar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-visual-api {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-visual-api code {
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary);
    font-size: 14px;
}

/* Specific Card Elements */
.card-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 24px;
}

.card-tags span {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(230, 0, 18, 0.08);
    color: var(--primary);
    border-radius: 99px;
}

.card-status {
    margin-left: auto;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 6px 16px;
    border-radius: 99px;
}

/* AI Generator Section */
.ai-generator {
    padding: 140px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.gen-content h2 {
    font-size: 52px;
    margin-bottom: 24px;
}

.gen-content p {
    font-size: 19px;
    color: var(--text-off);
    margin-bottom: 40px;
    line-height: 1.6;
}

.gen-content p span {
    color: var(--primary);
    font-weight: 600;
}

.gen-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.step {
    display: flex;
    align-items: center;
    gap: 24px;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--bg-faint);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
    border: 1px solid var(--border-soft);
}

.step-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
}

.gen-visual {
    position: relative;
}

.visual-stack {
    position: relative;
    z-index: 2;
}

.main-output {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

body.dark-mode .main-output {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

.main-output img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.gen-overlay {
    position: absolute;
    inset: 24px;
    pointer-events: none;
}

.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
    opacity: 0;
    z-index: 10;
}

.scan-bar.animating {
    animation: generator-scan 3s infinite ease-in-out;
}

@keyframes generator-scan {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.corner-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.corner-label.tl { top: 20px; left: 20px; }
.corner-label.tr { top: 20px; right: 20px; }
.corner-label.bl { bottom: 20px; left: 20px; }
.corner-label.br { bottom: 20px; right: 20px; }

.stack-bg {
    position: absolute;
    top: 40px;
    right: -40px;
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

footer .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.footer-brand p.footer-slogan {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-badge {
    display: flex;
    gap: 12px;
}

.footer-badge span {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.since-tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.exp-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-column ul.footer-links {
    list-style: none;
    display: block; /* Override previous grid */
    padding: 0;
    margin: 0;
}

.footer-column ul.footer-links li {
    margin-bottom: 16px;
}

.footer-column ul.footer-links a {
    color: var(--text-off);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-column ul.footer-links a:hover {
    color: var(--primary);
    transform: translateX(6px);
}

.footer-contact .contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contact .contact-item .icon {
    font-size: 20px;
    filter: grayscale(1);
    opacity: 0.6;
}

.footer-contact .contact-item p {
    font-size: 14px;
    color: var(--text-off);
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(40px);
}

.animate-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
    transition: var(--transition-smooth);
}

/* Solutions Section Style */
.solutions {
    background: #fcfcfd;
    padding: 120px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.solution-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.solution-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 40px 80px -15px rgba(99, 102, 241, 0.2),
        0 15px 30px -10px rgba(168, 85, 247, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Hover Stability Fix */
.solution-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.solution-card:hover::after {
    inset: -20px;
}

.sol-visual {
    height: 240px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sol-card-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sol-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; 
    filter: none;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .sol-card-bg {
    transform: scale(1.04);
}

.sol-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1;
}

.sol-info {
    padding: 32px;
}

.sol-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.sol-info p {
    font-size: 15px;
    color: var(--text-off);
    line-height: 1.6;
    margin-bottom: 24px;
}

.sol-features {
    list-style: none;
    margin-bottom: 32px;
}

.sol-features li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sol-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 1px solid var(--primary);
    border-radius: 50%;
}

.small-btn {
    padding: 8px 24px;
    font-size: 14px;
}

/* Advanced AI Panels for Solutions */
.ai-panel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

/* Traffic HUD Mode */
.traffic-hud {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hud-surface {
    position: relative;
    width: 160px;
    height: 160px;
    perspective: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hud-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotateX(65deg) translateY(-20px);
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.detection-box {
    position: absolute;
    width: 40px;
    height: 25px;
    border: 1px solid var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateZ(20px);
    transition: var(--transition-smooth);
}

.detection-box::before {
    content: attr(data-label);
    position: absolute;
    top: -14px;
    left: -1px;
    font-size: 7px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 3px;
    white-space: nowrap;
}

body.dark-mode .detection-box::before {
    background: var(--primary);
    color: #fff;
}

.box-1 { animation: hud-track-1 8s infinite linear; }
.box-2 { animation: hud-track-2 8s infinite linear; }

@keyframes hud-track-1 {
    0% { transform: rotateX(65deg) translate(-60px, 40px); }
    100% { transform: rotateX(65deg) translate(80px, -40px); }
}

@keyframes hud-track-2 {
    0% { transform: rotateX(65deg) translate(40px, 60px); }
    100% { transform: rotateX(65deg) translate(-80px, -60px); }
}

.hud-scan-line {
    position: absolute;
    width: 150%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
    animation: hud-scan 4s infinite ease-in-out;
}

@keyframes hud-scan {
    0%, 100% { transform: translateY(-40px) rotateX(65deg); opacity: 0; }
    50% { transform: translateY(40px) rotateX(65deg); opacity: 0.8; }
}

.hud-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
}

.hud-coord, .hud-status {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.6;
}

/* Population Topology Mode */
.population-topology {
    --pop-color: #a855f7;
}

.topo-nodes {
    position: relative;
    width: 100px;
    height: 100px;
}

.node {
    position: absolute;
    border-radius: 50%;
    background: var(--pop-color);
    box-shadow: 0 0 10px var(--pop-color);
}

.node-main { width: 12px; height: 12px; top: 44px; left: 44px; z-index: 5; animation: pulse-glow 2s infinite; }
.node-s1 { width: 6px; height: 6px; top: 10px; left: 20px; animation: node-float 4s infinite ease-in-out; }
.node-s2 { width: 6px; height: 6px; top: 20px; right: 10px; animation: node-float 4s infinite ease-in-out -1s; }
.node-s3 { width: 6px; height: 6px; bottom: 10px; left: 60px; animation: node-float 4s infinite ease-in-out -2s; }

.topo-svg {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.topo-link {
    fill: none;
    stroke: var(--pop-color);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.3;
    animation: link-dash 10s infinite linear;
}

@keyframes link-dash {
    to { stroke-dashoffset: -100; }
}

@keyframes node-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

/* MES Factory Logic Mode */
.mes-flow {
    --mes-color: #0ea5e9;
}

.iso-factory {
    position: relative;
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
}

.iso-box {
    position: absolute;
    background: var(--mes-color);
    opacity: 0.2;
    border: 1px solid var(--mes-color);
    transform: rotateX(60deg) rotateZ(45deg);
}

.box-core { width: 40px; height: 40px; top: 40px; left: 40px; opacity: 0.4; }
.box-sub-1 { width: 20px; height: 20px; top: 10px; left: 10px; }
.box-sub-2 { width: 25px; height: 25px; bottom: 10px; right: 10px; }

.flow-line {
    position: absolute;
    background: var(--mes-color);
    opacity: 0.2;
}

.fl-1 { width: 2px; height: 60px; top: 20px; left: 30px; transform: rotateX(60deg) rotateZ(45deg); }
.fl-2 { width: 60px; height: 2px; bottom: 30px; right: 20px; transform: rotateX(60deg) rotateZ(45deg); }

.mes-data-stream {
    position: absolute;
    inset: 0;
}

.stream-bit {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 10px var(--mes-color);
    border-radius: 50%;
    animation: mes-particle 3s infinite linear;
}

@keyframes mes-particle {
    0% { transform: scale(0); opacity: 0; top: 10%; left: 10%; }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { transform: scale(0); opacity: 0; top: 90%; left: 90%; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--pop-color); }
    50% { box-shadow: 0 0 25px var(--pop-color); }
}

/* Trust Placeholder */
.trust-placeholder {
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid var(--border-soft);
}

.trust-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 30px;
}

.placeholder-dots {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.placeholder-dots span {
    width: 100px;
    height: 24px;
    background: var(--bg-faint);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.partner-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.partner-item span {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--primary);
    transform: translateY(-4px);
}

/* Digital Contact Section - Indigo Polish */
.contact {
    padding: 140px 0;
    background: linear-gradient(180deg, #050a18 0%, #0f172a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.contact .section-header h2 {
    color: #fff;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.contact-wrapper {
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 64px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.02);
}

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

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hq-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    font-size: 24px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.detail-item:hover .detail-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(-10deg) scale(1.1);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-content strong {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 4px;
}

.detail-content span {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Digital HQ Visual - Holographic Refresh */
.digital-hq-visual {
    height: 480px;
    position: relative;
    background: #030712;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(99, 102, 241, 0.2);
}

.hq-map-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.2) saturate(1.2);
    animation: hq-map-float 60s infinite linear;
}

@keyframes hq-map-float {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, -2%); }
    100% { transform: scale(1) translate(0, 0); }
}

.dot-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    z-index: 2;
}

.hq-pulse-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hq-ring-pulse 3s infinite;
}

.pulse-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #fff;
    z-index: 2;
}

.hq-tag {
    position: absolute;
    top: 30px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #e2e8f0;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hq-scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.3), transparent);
    border-top: 2px solid var(--primary);
    animation: hq-scan 6s infinite ease-in-out;
}

.hq-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-stream {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: var(--primary);
    opacity: 0.8;
    letter-spacing: 1px;
}

@keyframes hq-ring-pulse {
    0% { width: 20px; height: 20px; opacity: 1; border-width: 1px; }
    100% { width: 150px; height: 150px; opacity: 0; border-width: 20px; }
}

@keyframes hq-scan {
    0%, 100% { top: -60px; }
    50% { top: 100%; }
}

/* Responsive HQ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-wrapper {
        padding: 40px 24px;
    }
    .hq-details {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

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

@keyframes scan-move {

    0%,
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

@keyframes pulse-warning {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(2);
        opacity: 0;
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(45deg) rotateZ(45deg);
    }

    50% {
        transform: translateY(-10px) rotateX(45deg) rotateZ(45deg);
    }
}

/* Shared Classes */
.text-center {
    text-align: center;
}

/* Responsive Refinement */
@media (max-width: 1024px) {
    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 44px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-text p.description {
        margin: 0 auto 32px;
    }

    .hero-visual {
        order: 1;
        margin: 0 auto;
        max-width: 500px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "tall"
            "small1"
            "small2"
            "wide";
    }

    .bento-card-hero {
        flex-direction: column;
        text-align: center;
    }

    .bento-card-wide {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

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

    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--nav-bg);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 999;
        display: flex; /* Override display: none */
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 24px;
        padding: 15px 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-soft);
        width: 100%;
        justify-content: space-between;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .mobile-nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--text-main);
        transition: var(--transition-smooth);
        border-radius: 2px;
    }

    .mobile-nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }

    header,
    section {
        padding: 60px 0;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}
/* Legacy Project Cases Section - Premium Redesign */
.legacy-cases {
    padding: 120px 0;
    background: radial-gradient(circle at 10% 20%, #f1f5f9 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.legacy-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-soft) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.case-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 40px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 50px 100px -20px rgba(99, 102, 241, 0.25),
        0 20px 40px -10px rgba(168, 85, 247, 0.15);
}

/* Hover Stability Fix */
.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.case-card:hover::before {
    inset: -20px;
}

/* Glass Shine Effect on Hover */
.case-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
    opacity: 0;
}

.case-card:hover::after {
    left: 100%;
    top: 100%;
    opacity: 1;
}

.case-icon {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    transition: var(--transition-smooth);
}

/* Vivid Icon Gradients */
.case-blue .case-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.case-emerald .case-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.case-indigo .case-icon { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #4f46e5; }
.case-purple .case-icon { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: #9333ea; }
.case-amber .case-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.case-rose .case-icon { background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #e11d48; }

.case-card:hover .case-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

.case-icon svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.case-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.case-card p {
    font-size: 16px;
    color: var(--text-off);
    line-height: 1.7;
    opacity: 0.9;
}

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

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

/* ==========================================
   Dark Mode Deep Refinements
   ========================================== */
body.dark-mode .bento-card,
body.dark-mode .solution-card,
body.dark-mode .case-card {
    background: var(--bg-faint);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .bento-card-hero {
    background: linear-gradient(135deg, rgba(30, 30, 40, 1) 0%, var(--bg-faint) 100%);
}

body.dark-mode .bento-card-tall {
    background: rgba(20, 20, 30, 0.6);
}

body.dark-mode .bento-card-wide {
    background: #000;
}

body.dark-mode .card-visual-placeholder {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .plat-badg {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-off);
}

body.dark-mode .sol-visual,
body.dark-mode .case-icon {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .solutions,
body.dark-mode .legacy-cases {
    background: var(--bg-light);
}

body.dark-mode .comparison-container {
    background: var(--bg-faint);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .comparison-slider {
    background: var(--bg-light);
}

/* Core Advantages Section (Enriching Content) */
.advantages {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

body.dark-mode .advantages {
    background: var(--bg-dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.advantage-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    gap: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dark-mode .advantage-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.advantage-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 50px 100px -20px rgba(99, 102, 241, 0.25),
        0 20px 40px -10px rgba(168, 85, 247, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Hover Stability Fix */
.advantage-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.advantage-card:hover::after {
    inset: -20px;
}

.adv-icon {
    font-size: 32px;
    min-width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

body.dark-mode .adv-icon {
    background: rgba(255, 255, 255, 0.05);
}

.advantage-card:hover .adv-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
}

.adv-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.adv-info p {
    font-size: 16px;
    color: var(--text-off);
    line-height: 1.7;
    margin-bottom: 20px;
}

.adv-stat {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-faint);
    color: var(--primary);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border-soft);
}

body.dark-mode .adv-stat {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

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

body.dark-mode .since-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-logo-png {
    filter: brightness(0) invert(1);
}

.footer {
    padding: 100px 0 60px;
    background: #fff;
    border-top: 1px solid var(--border-soft);
}

body.dark-mode .footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
