:root {
    --bg-dark: #0b0f14;
    --bg-card: rgba(22, 27, 34, 0.7);
    --bg-elevated: #161b22;
    --accent-green: #00ff9c;
    --accent-green-glow: rgba(0, 255, 156, 0.3);
    --accent-blue: #00d2ff;
    --accent-purple: #c700ff;
    --accent-red: #ff4d4d;
    --accent-red-glow: rgba(255, 77, 77, 0.3);
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --text-bright: #ffffff;
    --border-color: rgba(48, 54, 61, 0.5);
    --border-glow: rgba(0, 255, 156, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --header-height: 120px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 20px var(--accent-green-glow);
    --glass: blur(12px) saturate(180%);
}

body.light-theme {
    --bg-dark: #f5f7fa;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-elevated: #ffffff;
    --accent-green: #00875a;
    --accent-green-glow: rgba(0, 135, 90, 0.15);
    --accent-blue: #0066cc;
    --accent-purple: #800080;
    --accent-red: #d32f2f;
    --accent-red-glow: rgba(211, 47, 47, 0.15);
    --text-main: #1f2328;
    --text-muted: #57606a;
    --text-bright: #0b0f14;
    --border-color: rgba(210, 218, 225, 0.8);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 135, 90, 0.1);
    --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* Theme Toggle Button */
.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn-theme-toggle:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 255, 156, 0.05);
}

body.light-theme .btn-theme-toggle:hover {
    background: rgba(0, 135, 90, 0.05);
}

/* Light Theme Component Overrides */
body.light-theme .main-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--border-color);
}

body.light-theme .main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .main-footer {
    background: linear-gradient(180deg, #e9ecef 0%, var(--bg-dark) 100%);
    border-top-color: var(--border-color);
}

body.light-theme .main-logo {
    filter: drop-shadow(0 0 10px rgba(0, 135, 90, 0.15));
}

body.light-theme .btn-primary {
    background: var(--bg-elevated);
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.light-theme .orbit-item {
    background: var(--bg-elevated);
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .hero-sub-panel {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.light-theme .process-icon {
    background: var(--bg-elevated);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.light-theme .sim-modal {
    background: var(--bg-elevated);
    border-color: var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

body.light-theme .request-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-color: var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

body.light-theme .director-frame {
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body.light-theme .sub-director-frame {
    background: var(--bg-card);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

body.light-theme .btn-back {
    background: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

@media (max-width: 1024px) {
    body.light-theme .main-nav {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: var(--border-color);
    }
    body.light-theme .mobile-lang-panel {
        border-top-color: var(--border-color);
    }
}

/* IT Equipment Catalog Styles */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: var(--glass);
}

.category-tab:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.category-tab.active {
    background: var(--accent-green);
    color: #0b0f14;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green-glow);
}

body.light-theme .category-tab.active {
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card-wrapper {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card {
    height: 100%;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-green);
}

.product-icon-box {
    font-size: 24px;
    color: var(--text-muted);
    opacity: 0.7;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.product-card .desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.product-specs li {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-specs li i {
    color: var(--accent-green);
    margin-top: 3px;
    font-size: 12px;
}

.product-footer {
    margin-top: auto;
}

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

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .category-tabs {
        gap: 10px;
    }
    .category-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
}

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

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Cyber Grid Lines */
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        /* Multi-Color Glowing Neon Meshes */
        radial-gradient(circle at 15% 20%, rgba(0, 255, 156, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(0, 210, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(199, 0, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 25% 85%, rgba(255, 56, 56, 0.04) 0%, transparent 40%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: -1;
}

.page-header {
    position: relative;
}

.page-header .container {
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-logo {
    height: 100px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 255, 156, 0.4));
}




.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}


.logo-text::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

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


.main-nav ul {
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
}


.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-bright);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.lang-current .fi,
.lang-list .fi {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.lang-current i {
    font-size: 10px;
    color: var(--text-muted);
}

.lang-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.lang-dropdown:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown:hover .lang-current {
    border-color: var(--accent-green);
    background: rgba(0, 255, 156, 0.05);
}

.lang-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-green);
}

.lang-list a.active {
    color: var(--accent-green);
    background: rgba(0, 255, 156, 0.05);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: rgba(22, 27, 34, 0.8);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 156, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-bright);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
}




/* Hero Section */
.hero {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 156, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 156, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48Zz48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMSIgZmlsbD0icmdiYSgwLCAyNTUsIDE1NiwgMC4xKSIvPjwvZz48L3N2Zz4=');
    background-size: 100% 4px, 40px 40px;
    opacity: 0.4;
    animation: move-bg 60s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes move-bg {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 1000px 1000px; }
}




.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    color: var(--text-bright);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-animated-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
}

.static-text {
    display: block;
    margin-bottom: 15px;
}

.dynamic-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 100px;
}

.dynamic-item {
    font-size: 18px;
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green-glow);
    font-weight: 500;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dynamic-item.visible {
    opacity: 1;
}

.dynamic-icon {
    margin-left: 10px;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.dynamic-icon.show {
    opacity: 1;
    transform: scale(1);
}

/* Typewriter Cursor */
.typed-cursor {
    display: inline-block;
    color: var(--accent-green);
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

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

/* Animations for dynamic items */
.dynamic-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.dynamic-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.dynamic-icon {
    font-size: 0.7em;
    margin-left: 10px;
    color: var(--accent-green);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.dynamic-icon.show {
    opacity: 1;
    transform: scale(1);
}

/* Hero Visual Fixes */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.total-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.total-core {
    position: relative;
    z-index: 5;
}

.total-core img {
    height: auto;
    width: 280px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 156, 0.2));
    animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(0, 255, 156, 0.2)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 50px rgba(0, 255, 156, 0.4)); }
}

.orbit-container {
    position: absolute;
    inset: 0;
}

.orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(0, 255, 156, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-green);
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.1);
    z-index: 10;
}

.orbit-item.i1 { animation: orbit1 20s infinite linear; }
.orbit-item.i2 { animation: orbit2 20s infinite linear; }
.orbit-item.i3 { animation: orbit3 20s infinite linear; }

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(120deg) translateX(160px) rotate(-120deg); }
    to { transform: rotate(480deg) translateX(160px) rotate(-480deg); }
}

@keyframes orbit3 {
    from { transform: rotate(240deg) translateX(160px) rotate(-240deg); }
    to { transform: rotate(600deg) translateX(160px) rotate(-600deg); }
}

/* Buttons with arrows */
.btn-with-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-arrow-down {
    font-size: 18px;
    color: var(--accent-green);
}

.shimmering-arrow {
    animation: arrowShimmer 2s infinite ease-in-out;
}

@keyframes arrowShimmer {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* Optimization Core Panel */
.hero-sub-panel {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(0, 255, 156, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    max-width: 550px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 156, 0.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-green);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.panel-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-weight: 700;
}

.hero-sub-container p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.hero-highlight {
    color: #fff;
    font-weight: 700;
    border-left: 2px solid var(--accent-green);
    padding-left: 15px;
    display: block;
}

/* Chaos to Unity Stream */
.chaos-unity-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chaos-side {
    position: relative;
    width: 200px;
    height: 450px;
    z-index: 5;
}

.process-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(22, 27, 34, 0.9);
    border: 2px solid var(--color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color);
    font-size: 20px;
    box-shadow: 0 0 20px var(--color);
    animation: icon-float 5s infinite ease-in-out;
}

@keyframes icon-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(8px, -15px) rotate(5deg); }
    66% { transform: translate(-5px, 10px) rotate(-5deg); }
}

.p1 { top: 5%; left: 10%; animation-delay: 0s; }
.p2 { top: 22%; left: 55%; animation-delay: 0.8s; }
.p3 { top: 38%; left: 5%; animation-delay: 1.5s; }
.p4 { top: 55%; left: 45%; animation-delay: 2.2s; }
.p5 { top: 72%; left: 15%; animation-delay: 3s; }
.p6 { top: 88%; left: 60%; animation-delay: 3.8s; }

/* The Neural Stream */
.stream-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.stream-path {
    fill: none;
    stroke: url(#streamGrad);
    stroke-width: 2.5;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    opacity: 0.2;
    animation: stream-flow 5s infinite;
}

@keyframes stream-flow {
    0% { stroke-dashoffset: 800; opacity: 0.1; }
    40% { stroke-dashoffset: 0; opacity: 0.6; }
    80% { stroke-dashoffset: -800; opacity: 0.1; }
    100% { opacity: 0; }
}

.s1 { animation-delay: 0s; }
.s2 { animation-delay: 0.4s; }
.s3 { animation-delay: 0.8s; }
.s4 { animation-delay: 1.2s; }
.s5 { animation-delay: 1.6s; }

.impulse-node {
    filter: drop-shadow(0 0 10px #fff);
}

/* Center Gate (The Barrier) */
.center-gate {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 480px;
    background: linear-gradient(to bottom, transparent, #fff, var(--accent-green), #fff, transparent);
    box-shadow: 0 0 40px rgba(0, 255, 156, 0.4);
    z-index: 4;
}

/* Premium Hero Section - Full Restore */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    padding: 0;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 156, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 156, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Global Chaos Container */
.chaos-global-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    --gather-center-x: 50%;
    --gather-center-y: 50%;
    --impulse-x: var(--gather-center-x);
    --impulse-y: var(--gather-center-y);
    --gather-radius: calc(var(--core-size, 720px) * 0.4375);
    --gather-duration: 16s;
}

.process-flow-layer {
    display: none;
}

.pull-lines-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 108;
    pointer-events: none;
}

.pull-line {
    stroke: rgba(0, 255, 156, 0.58);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(0, 255, 156, 0.55));
    animation: pull-line-reach var(--gather-duration) infinite ease-out;
}

.pl1, .pl6 { stroke: rgba(255, 62, 62, 0.62); filter: drop-shadow(0 0 6px rgba(255, 62, 62, 0.5)); }
.pl2, .pl7 { stroke: rgba(255, 152, 0, 0.66); filter: drop-shadow(0 0 6px rgba(255, 152, 0, 0.55)); }
.pl3, .pl8 { stroke: rgba(33, 150, 243, 0.66); filter: drop-shadow(0 0 6px rgba(33, 150, 243, 0.58)); }
.pl4 { stroke: rgba(76, 175, 80, 0.66); filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.55)); }
.pl5 { stroke: rgba(233, 30, 99, 0.66); filter: drop-shadow(0 0 6px rgba(233, 30, 99, 0.55)); }

.chaos-global-container.is-capturing .pull-line,
.chaos-global-container.is-scanning .pull-line {
    stroke: rgba(0, 255, 156, 0.72);
    filter: drop-shadow(0 0 7px rgba(0, 255, 156, 0.48));
}

.chaos-global-container.is-capturing .pl1,
.chaos-global-container.is-capturing .pl4,
.chaos-global-container.is-capturing .pl7,
.chaos-global-container.is-scanning .pl1,
.chaos-global-container.is-scanning .pl4,
.chaos-global-container.is-scanning .pl7 {
    stroke: rgba(0, 195, 125, 0.76);
    filter: drop-shadow(0 0 6px rgba(0, 195, 125, 0.42));
}

.chaos-global-container.is-capturing .pl2,
.chaos-global-container.is-capturing .pl5,
.chaos-global-container.is-capturing .pl8,
.chaos-global-container.is-scanning .pl2,
.chaos-global-container.is-scanning .pl5,
.chaos-global-container.is-scanning .pl8 {
    stroke: rgba(112, 255, 196, 0.78);
    filter: drop-shadow(0 0 8px rgba(112, 255, 196, 0.52));
}

.pull-center {
    fill: url(#pullDotGlow);
    opacity: 0;
    animation: pull-center-pulse var(--gather-duration) infinite ease-out;
}

.impulse-node {
    display: none;
}

.impulse-node::before,
.impulse-node::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 156, 0.45);
    box-shadow: 0 0 16px rgba(0, 255, 156, 0.3);
}

.impulse-node::after {
    inset: 34%;
    border-color: rgba(255, 180, 64, 0.7);
    box-shadow: 0 0 18px rgba(255, 152, 0, 0.5);
}

.chaos-global-container::before,
.chaos-global-container::after {
    content: '';
    position: absolute;
    top: var(--gather-center-y);
    left: var(--gather-center-x);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    display: none;
}

.chaos-global-container::before {
    width: 120px;
    height: 120px;
    background:
        radial-gradient(circle, rgba(0, 255, 156, 0.35) 0%, rgba(0, 255, 156, 0.12) 38%, transparent 72%);
    filter: blur(8px);
    opacity: 0;
    z-index: 105;
    animation: logo-intake-pulse var(--gather-duration) infinite ease-out;
}

.chaos-global-container::after {
    width: 56.25%;
    height: 56.25%;
    border: 1px solid rgba(0, 255, 156, 0.28);
    box-shadow: inset 0 0 35px rgba(0, 255, 156, 0.08), 0 0 24px rgba(0, 255, 156, 0.18);
    opacity: 0;
    z-index: 104;
    animation: managed-process-ring var(--gather-duration) infinite ease-out;
}

.sq-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(13, 17, 23, 0.9);
    border: 2px solid var(--sq-color);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--sq-color);
    font-size: 24px;
    box-shadow: 0 0 30px var(--sq-color);
    z-index: 110;
    opacity: 1;
    top: var(--gather-center-y);
    left: var(--gather-center-x);
    right: auto;
    animation: global-gather var(--gather-duration) infinite cubic-bezier(0.19, 1, 0.22, 1);
    transform: translate(-50%, -50%) translate(var(--chaos-x), var(--chaos-y)) rotate(var(--chaos-rotate)) scale(0.94);
    transition: border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.sq-item::before,
.sq-item::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(0, 255, 156, 0.72);
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
}

.sq-item::after {
    inset: -22px;
    border-color: rgba(0, 255, 156, 0.38);
}

.sq-item.is-unified {
    --sq-color: var(--accent-green) !important;
    background: rgba(0, 255, 156, 0.08);
    box-shadow: 0 0 28px rgba(0, 255, 156, 0.58);
}

.sq-item.is-detected::before {
    animation: detection-lock 1.1s ease-out infinite;
}

.sq-item.is-detected::after {
    animation: detection-lock 1.1s ease-out 0.22s infinite;
}

.sq-item.is-jamming {
    animation: item-under-gear 520ms steps(2, end) infinite;
}

.sq-item.is-jamming::before {
    border-color: rgba(255, 152, 0, 0.72);
    animation: gear-impact-ping 620ms ease-out infinite;
}

.sq-item.is-jamming::after {
    border-color: rgba(255, 77, 77, 0.42);
    animation: gear-impact-ping 620ms ease-out 0.16s infinite;
}

.sq-item.is-chaos-slip {
    animation: chaos-slip-warning 540ms ease-in-out infinite;
}

.sq-item.is-chaos-slip::before {
    border-color: rgba(255, 152, 0, 0.8);
    animation: gear-impact-ping 760ms ease-out infinite;
}

.sq-item.is-chaos-slip::after {
    border-color: rgba(255, 77, 77, 0.46);
    animation: gear-impact-ping 760ms ease-out 0.2s infinite;
}

.chaos-global-container.is-scanning::before,
.chaos-global-container.is-scanning::after {
    display: block;
}

.chaos-global-container.is-scanning::before {
    animation: radar-core-flash 1.4s ease-out infinite;
}

.chaos-global-container.is-scanning::after {
    animation: radar-sweep-ring 1.4s ease-out infinite;
}

@keyframes detection-lock {
    0% {
        opacity: 0;
        transform: scale(0.82);
    }
    28% {
        opacity: 0.9;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes item-under-gear {
    0%, 100% {
        filter: blur(0) brightness(1.1);
    }
    50% {
        filter: blur(0.2px) brightness(1.35);
    }
}

@keyframes chaos-slip-warning {
    0%, 100% {
        filter: blur(0) brightness(1.08);
    }
    50% {
        filter: blur(0.25px) brightness(1.42);
    }
}

@keyframes gear-impact-ping {
    0% {
        opacity: 0;
        transform: scale(0.86) rotate(0deg);
    }
    30% {
        opacity: 0.85;
        transform: scale(1.05) rotate(8deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.38) rotate(-10deg);
    }
}

@keyframes radar-core-flash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    32% {
        opacity: 0.82;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.55);
    }
}

@keyframes radar-sweep-ring {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.48);
    }
    35% {
        opacity: 0.58;
        transform: translate(-50%, -50%) scale(0.82);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.28);
    }
}

.chaos-global-container.is-sequenced .pull-line,
.chaos-global-container.is-sequenced .pull-center,
.chaos-global-container.is-sequenced .sq-item {
    animation: none;
}

.chaos-global-container.is-sequenced .pull-line {
    transition: opacity 120ms ease-out;
}

.chaos-global-container.is-sequenced .pull-line.is-active {
    opacity: 0.95;
}

.chaos-global-container.is-sequenced .pull-center {
    opacity: 0.24;
}

.chaos-global-container.is-sequenced .sq-item {
    will-change: transform, opacity, filter;
}

/* Initial scattered positions (Chaos) */
/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 80px;
    z-index: 10;
    position: relative;
}

.hero-grid-centered {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    grid-template-columns: minmax(300px, 0.92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: clamp(32px, 5vw, 84px);
    margin-top: -8vh;
}

.hero-title-main {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-bright);
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Perfectly Coaxial Assembly Core */
.hero-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 720px;
    position: relative;
    transform: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 14px rgba(0, 255, 156, 0.72);
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.assembly-core-wrap {
    position: relative;
    --core-size: min(720px, 92vw, calc(100vh - 120px));
    width: var(--core-size);
    max-width: 100%;
    min-width: min(100%, 520px);
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.hero-visual-col.is-business-online .assembly-core-wrap {
    transform: scale(0.9);
}

.hero-visual-col.is-business-slowed .assembly-core-wrap {
    transform: scale(0.88);
}

.assembly-core-final {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3-Stage Assembly: Ring -> Background -> Logo */
.core-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10;
}

.core-orbit-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.core-orbit-ring::before {
    content: '';
    position: absolute;
    inset: -3%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 1deg,
            rgba(0, 255, 156, 0.78) 0deg 3.4deg,
            rgba(0, 255, 156, 0.28) 3.4deg 6.8deg,
            transparent 6.8deg 12deg
        );
    opacity: 0.62;
    filter: drop-shadow(0 0 10px rgba(0, 255, 156, 0.34));
    pointer-events: none;
    -webkit-mask:
        radial-gradient(circle closest-side, transparent 0 calc(100% - 9%), #000 calc(100% - 8.5%) calc(100% - 2%), transparent calc(100% - 1.5%));
    mask:
        radial-gradient(circle closest-side, transparent 0 calc(100% - 9%), #000 calc(100% - 8.5%) calc(100% - 2%), transparent calc(100% - 1.5%));
    animation: outer-ring-spin var(--gather-duration) infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes outer-ring-spin {
    0%, 26% { opacity: 0; transform: rotate(-30deg) scale(0.9); }
    32% { opacity: 0.8; transform: rotate(15deg) scale(1.02); }
    40%, 85% { opacity: 0.62; transform: rotate(120deg) scale(1); }
    92%, 100% { opacity: 0; transform: rotate(180deg) scale(1.05); }
}

.core-orbit-ring::after {
    content: '';
    position: absolute;
    inset: 6.25%;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 156, 0.34);
    box-shadow:
        0 0 18px rgba(0, 255, 156, 0.18),
        inset 0 0 18px rgba(0, 255, 156, 0.12);
    pointer-events: none;
    animation: inner-ring-pulse var(--gather-duration) infinite ease-in-out;
}

@keyframes inner-ring-pulse {
    0%, 25% { opacity: 0; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.05); }
    35%, 85% { opacity: 0.6; transform: scale(1); }
    90%, 100% { opacity: 0; transform: scale(1.1); }
}

.chaos-global-container.is-gear-jammed ~ .assembly-core-final .core-orbit-ring {
    animation: gear-jam-attempt 1.18s ease-in-out infinite;
}

.chaos-global-container.is-business-online ~ .assembly-core-final .core-orbit-ring {
    animation: mechanism-online-rotate 18s linear infinite;
}

.chaos-global-container.is-business-slowed ~ .assembly-core-final .core-orbit-ring {
    animation: mechanism-resist-chaos 1.9s ease-in-out infinite;
}

.ring-track-final {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 0;
    opacity: 0.34;
    animation: track-process-glow var(--gather-duration) infinite ease-in-out;
}

@keyframes track-process-glow {
    0%, 25% { opacity: 0; stroke-width: 1; stroke-dashoffset: 1200; }
    30% { opacity: 0.8; stroke-width: 4; stroke-dashoffset: 0; filter: drop-shadow(0 0 10px var(--accent-green)); }
    35%, 85% { opacity: 0.34; stroke-width: 2; stroke-dashoffset: 0; filter: none; }
    90%, 100% { opacity: 0; stroke-width: 1; stroke-dashoffset: -1200; }
}

.chaos-global-container.is-business-online ~ .assembly-core-final .ring-track-final {
    opacity: 0.56;
    filter: drop-shadow(0 0 8px rgba(0, 255, 156, 0.42));
}

@keyframes mechanism-online-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes gear-jam-attempt {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
        filter: drop-shadow(0 0 0 rgba(255, 152, 0, 0));
    }
    18% {
        transform: translate(-50%, -50%) rotate(8deg);
    }
    28% {
        transform: translate(-50%, -50%) rotate(3deg);
        filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.28));
    }
    42% {
        transform: translate(-50%, -50%) rotate(13deg);
    }
    50%, 78% {
        transform: translate(-50%, -50%) rotate(9deg);
        filter: drop-shadow(0 0 15px rgba(255, 77, 77, 0.22));
    }
}

@keyframes mechanism-resist-chaos {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
        filter: drop-shadow(0 0 8px rgba(0, 255, 156, 0.18));
    }
    28% {
        transform: translate(-50%, -50%) rotate(10deg);
    }
    46% {
        transform: translate(-50%, -50%) rotate(7deg);
        filter: drop-shadow(0 0 14px rgba(255, 152, 0, 0.26));
    }
    72% {
        transform: translate(-50%, -50%) rotate(18deg);
    }
}

@keyframes stage1-ring-draw {
    0% { stroke-dashoffset: 1200; opacity: 0; }
    6%, 30% { stroke-dashoffset: 0; opacity: 1; stroke-width: 6; }
    36%, 100% { stroke-dashoffset: 0; opacity: 0.34; stroke-width: 2; }
}

.core-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 69.44%;
    height: 69.44%;
    background: radial-gradient(circle, rgba(0, 255, 156, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 15;
    animation: core-bg-pulse var(--gather-duration) infinite ease-in-out;
}

@keyframes core-bg-pulse {
    0%, 24% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    28% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
    35%, 85% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
    92%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.chaos-global-container.is-inner-online ~ .assembly-core-final .core-bg-circle {
    animation: mechanism-core-breathe 2.8s ease-in-out infinite;
}

@keyframes mechanism-core-breathe {
    0%, 100% {
        opacity: 0.36;
        transform: translate(-50%, -50%) scale(0.96);
    }
    50% {
        opacity: 0.62;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@keyframes stage2-bg-fill {
    0%, 30% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    36%, 42% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    48%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
}

.core-logo-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    --logo-visual-offset-x: 0px;
    --logo-visual-offset-y: 0px;
    z-index: 20;
    opacity: 1;
    animation: logo-soft-awaken var(--gather-duration) infinite ease-out;
}

.core-logo-box::before {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    transform: translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y));
    background: radial-gradient(circle, rgba(0, 255, 156, 0.36) 0%, rgba(0, 255, 156, 0.08) 48%, transparent 76%);
    filter: blur(12px);
    opacity: 0.18;
    z-index: -1;
    animation: logo-soft-glow var(--gather-duration) infinite ease-out;
}

.core-logo-box::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 255, 156, 0.46);
    border-radius: 50%;
    transform: translate(-50%, -50%) translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y)) scale(0.88);
    opacity: 0;
    box-shadow: 0 0 22px rgba(0, 255, 156, 0.24), inset 0 0 18px rgba(0, 255, 156, 0.12);
    pointer-events: none;
    z-index: 2;
    transition: opacity 180ms ease, transform 220ms ease;
}

.chaos-global-container.is-scanning ~ .assembly-core-final .core-logo-box::after,
.chaos-global-container.is-capturing ~ .assembly-core-final .core-logo-box::after,
.chaos-global-container.is-inner-online ~ .assembly-core-final .core-logo-box::after {
    opacity: 0.95;
    transform: translate(-50%, -50%) translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y)) scale(1);
    animation: capture-ring-breathe 1.4s ease-in-out infinite;
}

.chaos-global-container.is-business-online ~ .assembly-core-final .core-logo-box::after {
    border-color: rgba(112, 255, 196, 0.72);
    box-shadow: 0 0 28px rgba(0, 255, 156, 0.36), inset 0 0 22px rgba(0, 255, 156, 0.18);
}

@keyframes capture-ring-breathe {
    0%, 100% {
        box-shadow: 0 0 18px rgba(0, 255, 156, 0.22), inset 0 0 14px rgba(0, 255, 156, 0.1);
    }
    50% {
        box-shadow: 0 0 34px rgba(0, 255, 156, 0.48), inset 0 0 24px rgba(0, 255, 156, 0.2);
    }
}

@keyframes stage3-logo-awaken {
    0%, 34% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    40%, 46% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); filter: brightness(1.3); }
    52%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
}

.core-logo-box img {
    width: 100%;
    display: block;
    transform: translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y));
}

/* Scattered chaos starts aside, then becomes one controlled process. */
.c1 { --chaos-x: -450px; --chaos-y: -215px; --chaos-drift-x: -24px; --chaos-drift-y: -12px; --return-x: -420px; --return-y: -204px; --pull-x: -220px; --pull-y: -109px; --chaos-rotate: -13deg; --orbit-angle: 0deg; --orbit-counter-angle: 0deg; }
.c2 { --chaos-x: 470px; --chaos-y: -190px; --chaos-drift-x: 20px; --chaos-drift-y: 16px; --return-x: 445px; --return-y: -176px; --pull-x: 244px; --pull-y: -75px; --chaos-rotate: 11deg; --orbit-angle: 45deg; --orbit-counter-angle: -45deg; }
.c3 { --chaos-x: -520px; --chaos-y: -50px; --chaos-drift-x: -28px; --chaos-drift-y: 10px; --return-x: -480px; --return-y: -53px; --pull-x: -235px; --pull-y: -25px; --chaos-rotate: -8deg; --orbit-angle: 90deg; --orbit-counter-angle: -90deg; }
.c4 { --chaos-x: 515px; --chaos-y: -18px; --chaos-drift-x: 16px; --chaos-drift-y: -18px; --return-x: 485px; --return-y: 24px; --pull-x: 263px; --pull-y: 12px; --chaos-rotate: 14deg; --orbit-angle: 135deg; --orbit-counter-angle: -135deg; }
.c5 { --chaos-x: -420px; --chaos-y: 122px; --chaos-drift-x: -18px; --chaos-drift-y: 18px; --return-x: -402px; --return-y: 119px; --pull-x: -213px; --pull-y: 67px; --chaos-rotate: 9deg; --orbit-angle: 180deg; --orbit-counter-angle: -180deg; }
.c6 { --chaos-x: 555px; --chaos-y: 140px; --chaos-drift-x: 26px; --chaos-drift-y: -10px; --return-x: 522px; --return-y: 156px; --pull-x: 289px; --pull-y: 93px; --chaos-rotate: -12deg; --orbit-angle: 225deg; --orbit-counter-angle: -225deg; }
.c7 { --chaos-x: -350px; --chaos-y: 265px; --chaos-drift-x: -22px; --chaos-drift-y: -16px; --return-x: -326px; --return-y: 246px; --pull-x: -172px; --pull-y: 124px; --chaos-rotate: 10deg; --orbit-angle: 270deg; --orbit-counter-angle: -270deg; }
.c8 { --chaos-x: 505px; --chaos-y: 286px; --chaos-drift-x: 18px; --chaos-drift-y: 12px; --return-x: 484px; --return-y: 280px; --pull-x: 263px; --pull-y: 149px; --chaos-rotate: -15deg; --orbit-angle: 315deg; --orbit-counter-angle: -315deg; }

@keyframes global-gather {
    0% {
        top: var(--gather-center-y);
        left: var(--gather-center-x);
        transform: translate(-50%, -50%) translate(calc(var(--chaos-x) * 1.5), calc(var(--chaos-y) * 1.5)) rotate(calc(var(--chaos-rotate) * 2)) scale(0.8);
        opacity: 0;
        filter: blur(4px);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0px var(--sq-color);
        color: var(--sq-color);
        background: rgba(13, 17, 23, 0.9);
    }
    4% {
        transform: translate(-50%, -50%) translate(var(--chaos-x), var(--chaos-y)) rotate(var(--chaos-rotate)) scale(0.9);
        opacity: 0.8;
        filter: blur(0px);
        border-color: var(--sq-color);
        box-shadow: 0 0 10px var(--sq-color);
    }
    18% {
        transform: translate(-50%, -50%) translate(calc(var(--chaos-x) + var(--chaos-drift-x)), calc(var(--chaos-y) + var(--chaos-drift-y))) rotate(calc(var(--chaos-rotate) + 15deg)) scale(0.95);
        opacity: 0.9;
        filter: blur(0px);
        border-color: var(--sq-color);
        box-shadow: 0 0 15px var(--sq-color);
        color: var(--sq-color);
        background: rgba(13, 17, 23, 0.9);
    }
    23% {
        transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(0.2);
        opacity: 1;
        filter: blur(1px) brightness(1.5);
        border-color: var(--sq-color);
        box-shadow: 0 0 30px var(--sq-color);
        color: var(--sq-color);
        background: rgba(13, 17, 23, 0.9);
    }
    24.9% {
        transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(0.1);
        opacity: 0;
        filter: blur(2px) brightness(2);
        border-color: var(--accent-green);
        box-shadow: 0 0 30px var(--accent-green);
        color: var(--accent-green);
        background: rgba(0, 255, 156, 0.1);
    }
    25% {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 0deg)) translateX(0px) rotate(calc(var(--orbit-counter-angle) - 0deg)) scale(0.1);
        opacity: 0;
        filter: blur(2px) brightness(2);
        border-color: var(--accent-green);
        box-shadow: 0 0 30px var(--accent-green);
        color: var(--accent-green);
        background: rgba(0, 255, 156, 0.1);
    }
    28% {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 20deg)) translateX(calc(var(--gather-radius) + 20px)) rotate(calc(var(--orbit-counter-angle) - 20deg)) scale(1.1);
        opacity: 1;
        filter: blur(0px) brightness(1.5);
        border-color: var(--accent-green);
        box-shadow: 0 0 25px var(--accent-green);
        color: var(--accent-green);
        background: rgba(0, 255, 156, 0.15);
    }
    32% {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 30deg)) translateX(var(--gather-radius)) rotate(calc(var(--orbit-counter-angle) - 30deg)) scale(1);
        filter: blur(0px) brightness(1.2);
        border-color: var(--accent-green);
        box-shadow: 0 0 15px var(--accent-green);
        color: var(--accent-green);
        background: rgba(0, 255, 156, 0.08);
    }
    85% {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 330deg)) translateX(var(--gather-radius)) rotate(calc(var(--orbit-counter-angle) - 330deg)) scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1.2);
        border-color: var(--accent-green);
        box-shadow: 0 0 15px var(--accent-green);
        color: var(--accent-green);
        background: rgba(0, 255, 156, 0.08);
    }
    92% {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 360deg)) translateX(calc(var(--gather-radius) + 40px)) rotate(calc(var(--orbit-counter-angle) - 360deg)) scale(1.1);
        opacity: 0;
        filter: blur(4px) brightness(0.5);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0px var(--sq-color);
        color: var(--sq-color);
        background: rgba(13, 17, 23, 0.9);
    }
    100% {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 380deg)) translateX(calc(var(--gather-radius) + 120px)) rotate(calc(var(--orbit-counter-angle) - 380deg)) scale(0.8);
        opacity: 0;
    }
}

@keyframes logo-soft-awaken {
    0%, 18% { opacity: 0.4; filter: grayscale(1) brightness(0.6); transform: translate(-50%, -50%) scale(0.95); }
    23% { opacity: 1; filter: grayscale(0) brightness(2) drop-shadow(0 0 20px var(--accent-green)); transform: translate(-50%, -50%) scale(0.85); }
    28% { opacity: 1; filter: grayscale(0) brightness(1.2) drop-shadow(0 0 10px var(--accent-green)); transform: translate(-50%, -50%) scale(1.05); }
    35%, 85% { opacity: 1; filter: grayscale(0) brightness(1); transform: translate(-50%, -50%) scale(1); }
    90%, 100% { opacity: 0.4; filter: grayscale(1) brightness(0.6); transform: translate(-50%, -50%) scale(0.95); }
}

@keyframes logo-soft-glow {
    0%, 20% { opacity: 0; transform: translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y)) scale(0.5); }
    24% { opacity: 0.6; transform: translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y)) scale(1.5); }
    30%, 85% { opacity: 0.18; transform: translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y)) scale(1); }
    90%, 100% { opacity: 0; transform: translate(var(--logo-visual-offset-x), var(--logo-visual-offset-y)) scale(0.8); }
}

@keyframes pull-line-reach {
    0%, 15% { opacity: 0; }
    20% { opacity: 0.8; stroke-width: 4; }
    25%, 100% { opacity: 0; stroke-width: 1; }
}

@keyframes pull-center-pulse {
    0%, 15% { opacity: 0; transform: scale(0); }
    20% { opacity: 1; transform: scale(2); }
    25%, 100% { opacity: 0; transform: scale(0); }
}

@keyframes inner-logo-impulse {
    0%, 44% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.72);
    }
    56% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }
    64% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(0.58);
    }
    74%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.28);
    }
}

@keyframes logo-intake-pulse {
    0%, 26% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    34% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    44% { opacity: 0.18; transform: translate(-50%, -50%) scale(0.35); }
    52% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.75); }
    64%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}

@keyframes managed-process-ring {
    0%, 50% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
    62% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.05); }
    72%, 100% { opacity: 0.22; transform: translate(-50%, -50%) scale(1); }
}

@keyframes logo-process-core {
    0%, 38% { opacity: 0; transform: scale(0.5); }
    48% { opacity: 0.65; transform: scale(1.12); }
    58% { opacity: 1; transform: scale(1.35); }
    72%, 100% { opacity: 0.18; transform: scale(1); }
}

@keyframes ring-activate {
    0%, 35% { stroke-dashoffset: 1200; opacity: 0; }
    40% { stroke-dashoffset: 0; opacity: 1; stroke-width: 5; }
    45%, 100% { stroke-dashoffset: 0; opacity: 0.3; stroke-width: 3; }
}

@media (min-width: 769px) and (max-width: 1280px) {
    .chaos-global-container {
        --gather-center-x: 50%;
    }
}

.hero-visual {
    background-image: radial-gradient(circle at center, rgba(0, 255, 156, 0.05) 0%, transparent 70%);
}

.circuit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.line-path {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 1.5;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    opacity: 0.6;
}

.hero-visual-item.active .line-path {
    animation: drawPath 1.5s ease-out forwards;
}

.line-dot {
    fill: var(--accent-green);
    opacity: 0;
    filter: blur(1px);
}

.hero-visual-item.active .line-dot {
    animation: fadeIn 0.5s ease-out 1.2s forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.radar-ring, .scan-line, .inner-logo, .radar-data {
    opacity: 0;
    transition: opacity 1s ease-out 1.5s; /* Delay radar until lines are drawn */
}

.hero-visual-item.active .radar-ring,
.hero-visual-item.active .scan-line,
.hero-visual-item.active .inner-logo,
.hero-visual-item.active .radar-data {
    opacity: 1;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 156, 0.1);
    border-radius: 50%;
}

.node-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-green);
}

.node.n1 { top: 20%; left: 20%; }
.node.n2 { top: 10%; left: 80%; }
.node.n3 { top: 50%; left: 50%; }
.node.n4 { top: 80%; left: 10%; }
.node.n5 { top: 90%; left: 60%; }
.node.n6 { top: 40%; left: 90%; }

.node-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: var(--accent-green);
    stroke-width: 1;
    fill: none;
    opacity: 0.3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s infinite alternate;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.server-rack {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 60px;
    height: 100px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rack-light {
    width: 100%;
    height: 4px;
    background: #30363d;
    position: relative;
}

.rack-light::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 0;
    width: 4px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-green);
    animation: blink-dot 0.5s infinite alternate;
}

/* Auto Visual Styles */
.auto-visual {
    width: 400px;
    height: 400px;
}

.gear {
    position: absolute;
    border: 4px solid var(--accent-green);
    border-radius: 50%;
    opacity: 0.4;
}

.gear-lg {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 20%;
    border-style: dashed;
    animation: rotate 15s linear infinite;
}

.gear-sm {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 55%;
    border-style: dotted;
    animation: rotate 10s linear infinite reverse;
}

.automation-flow {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    top: 70%;
    left: 10%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: flow-move 2s infinite linear;
}

/* Total Visual Styles */
.global-circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Stay behind everything */
    pointer-events: none;
    overflow: visible;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.line-path {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 1.5;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    opacity: 0.3; /* More subtle */
    filter: drop-shadow(0 0 5px var(--accent-green-glow));
}

.hero-content {
    position: relative;
    z-index: 2; /* Text and panel on top */
}

.hero-sub-panel {
    z-index: 10;
}

.circuit-label, .node-label {
    fill: var(--accent-green);
    font-size: 10px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    opacity: 0;
}

.node-outer {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 1;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.shield-symbol {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2;
    opacity: 0;
}

/* Animation Sequence */
.hero-content.show-circuits .lp-m1,
.hero-content.show-circuits .lp-m2,
.hero-content.show-circuits .lp-m3,
.hero-content.show-circuits .lp-m4 {
    animation: drawPath 1.2s ease-out forwards;
}

.hero-content.show-circuits .circuit-label {
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.hero-content.show-circuits .node-outer {
    animation: drawPath 1s ease-out 1s forwards, nodePulse 2s infinite 2s;
}

.hero-content.show-circuits .shield-symbol,
.hero-content.show-circuits .node-label {
    animation: fadeIn 0.5s ease-out 1.5s forwards;
}

.hero-content.show-circuits .lp-single {
    animation: drawPath 1.5s ease-out 1.8s forwards;
    stroke-width: 4; /* Thicker for single-tasking core */
    opacity: 0.9;
    filter: drop-shadow(0 0 10px var(--accent-green));
}

@keyframes nodePulse {
    0% { filter: drop-shadow(0 0 5px var(--accent-green)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 15px var(--accent-green)); transform: scale(1.05); }
    100% { filter: drop-shadow(0 0 5px var(--accent-green)); transform: scale(1); }
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

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

.total-core {
    z-index: 10;
    filter: drop-shadow(0 0 30px var(--accent-green-glow));
    animation: floating 3s ease-in-out infinite;
}

.total-core img {
    width: 280px;
    height: auto;
}

.orbit-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #0b0f14;
    border: 1px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-green);
    font-size: 24px;
    box-shadow: 0 0 20px var(--accent-green-glow);
    z-index: 11;
}

.orbit-item.i1 { transform: translateY(-160px); }
.orbit-item.i2 { transform: translate(140px, 80px); }
.orbit-item.i3 { transform: translate(-140px, 80px); }

.orbit-svg {
    position: absolute;
    width: 400px;
    height: 400px;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}




.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 255, 156, 0.05);
    border: 1px solid var(--accent-green-glow);
    border-radius: 50px;
    color: var(--accent-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 40px;
    backdrop-filter: var(--glass);
    text-transform: uppercase;
    box-shadow: inset 0 0 10px var(--accent-green-glow);
}



.hero-btns {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
}


/* Partners Marquee */
.partners-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0a0d1a);
    position: relative;
    overflow: hidden;
}

.partners-marquee {
    position: relative;
    width: 100%;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    overflow: hidden;
}

/* Edge Fading Masks */
.partners-marquee::before,
.partners-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, #0a0d1a 0%, transparent 100%);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, #0a0d1a 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    gap: 120px;
    animation: scrollLogos 40s linear infinite;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 60px;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0) opacity(1) drop-shadow(0 0 15px var(--accent-green-glow));
    transform: scale(1.15) translateY(-5px);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 120px)); }
}


.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}






/* Simulator Block */
.simulator-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1117 100%);
    position: relative;
}

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

.section-header h2 {
    font-size: 42px;
    color: var(--text-bright);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.simulator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.simulator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sim-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass);
}

.sim-card-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-green-glow) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.sim-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.sim-card.active {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px var(--accent-green-glow);
}

.sim-card.active .sim-card-bg {
    opacity: 0.1;
}

.sim-card.active i {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
}

.sim-card i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.sim-card h3 {
    font-size: 18px;
    color: var(--text-bright);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    margin: 15px auto 0;
    border-radius: 2px;
    transition: var(--transition);
}

.sim-card.active .status-indicator {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.sim-card.conflict {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.sim-card.conflict .status-indicator {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.sim-card.conflict i {
    color: var(--accent-red);
}

.simulator-display {
    background: #05070a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.display-header {
    background: var(--bg-elevated);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #30363d;
}

.display-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.display-body {
    padding: 30px;
    min-height: 120px;
    display: flex;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
}

.message-text {
    font-size: 16px;
    color: var(--accent-green);
    line-height: 1.5;
}

.message-text.error {
    color: var(--accent-red);
}


/* Services Grid */
.header-prefix {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--accent-green);
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--accent-green-glow);
    box-shadow: 0 10px 40px rgba(0, 255, 156, 0.1);
}

/* Service Card Enhancements */
.service-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.card-header i {
    font-size: 32px;
    margin: 0;
}

.card-stats {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.terminal-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: var(--accent-green);
    opacity: 0.7;
}

.arrow-link {
    width: 32px;
    height: 32px;
    background: var(--accent-green);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.arrow-link:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px var(--accent-green);
}

/* About Brief Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    align-items: center;
}

.code-terminal {
    background: #05070a;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-elevated);
    padding: 12px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.terminal-body {
    padding: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-body p {
    margin-bottom: 8px;
    color: #8b949e;
}

.terminal-body p.cursor {
    color: var(--accent-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Support Section */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.support-features {
    margin: 30px 0;
    list-style: none;
}

.support-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.chat-mockup {
    padding: 0;
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
}

.chat-header {
    background: var(--bg-elevated);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.chat-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 250px;
}

.msg {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 85%;
}

.msg.bot {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    align-self: flex-start;
}

.msg.user {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    align-self: flex-end;
    border: 1px solid var(--accent-green-glow);
}

.chat-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}


/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-bright);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
    background: var(--bg-card);
}

/* Footer */
/* ═══════════════════════════════════════════
   FOOTER — PREMIUM REDESIGN
═══════════════════════════════════════════ */

.main-footer {
    padding: 0 0 0;
    background: linear-gradient(180deg, #080c10 0%, #060a0d 100%);
    position: relative;
    overflow: hidden;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,255,156,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Top accent gradient bar */
.footer-top-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff9c 30%, #00c8ff 60%, transparent);
    opacity: 0.6;
    margin-bottom: 0;
}

/* Main grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding: 72px 0 56px;
    margin-bottom: 0;
}
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 40px; }
}

/* ── Brand column ── */
.footer-logo-link { display: inline-block; margin-bottom: 16px; }

.footer-desc {
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    font-size: 14px;
    max-width: 280px;
    margin-bottom: 28px;
}
@media (max-width: 600px) { .footer-desc { max-width: 100%; } }

/* Social icon row */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.fsoc-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    text-decoration: none;
    transition: transform .22s, border-color .22s, color .22s, box-shadow .22s, background .22s;
    position: relative;
    overflow: hidden;
}
.fsoc-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--fc, #00ff9c);
    opacity: 0;
    transition: opacity .22s;
}
.fsoc-btn:hover {
    transform: translateY(-3px);
    border-color: var(--fc, #00ff9c);
    color: var(--fc, #00ff9c);
    box-shadow: 0 6px 20px -6px var(--fg, rgba(0,255,156,.5));
}
.fsoc-btn:hover::before { opacity: 0.08; }
.fsoc-btn i { position: relative; z-index: 1; }

/* ── Links columns ── */
.footer-links h4 {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, #00ff9c, #00c8ff);
    border-radius: 2px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    transition: color .2s, padding-left .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a::before {
    content: '›';
    color: #00ff9c;
    opacity: 0;
    font-size: 14px;
    transition: opacity .2s;
}
.footer-links a:hover {
    color: rgba(255,255,255,0.9);
    padding-left: 6px;
}
.footer-links a:hover::before { opacity: 1; }

/* ── Contacts column ── */
.footer-contacts h4 {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-contacts h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, #00ff9c, #00c8ff);
    border-radius: 2px;
}
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}
a.footer-contact-row:hover { color: rgba(255,255,255,0.9); }
a.footer-contact-row:hover .fci { background: rgba(0,255,156,0.15); }
.fci {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(0,255,156,0.08);
    color: #00ff9c;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s;
}

/* CTA button inside footer */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 20px;
    border-radius: 10px;
    background: rgba(0,255,156,0.1);
    border: 1px solid rgba(0,255,156,0.25);
    color: #00ff9c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .2s;
}
.footer-cta-btn:hover {
    background: rgba(0,255,156,0.18);
    box-shadow: 0 6px 20px rgba(0,255,156,0.2);
    transform: translateY(-2px);
}

/* ── Footer bottom bar ── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 24px 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }
.fb-sep { color: rgba(255,255,255,0.2); }
@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Legacy .social-icons kept for compat */
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.social-icons a:hover {
    background: rgba(0,200,255,0.15);
    border-color: rgba(0,200,255,0.4);
    color: #00c8ff;
    transform: translateY(-3px);
}

/* Legacy .academy-footer-link kept for compat */
.academy-footer-link a {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    transition: color .2s;
}
.academy-footer-link a:hover { color: var(--accent-green); }

/* Academy Promo Section */
.academy-promo {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1117 100%);
}

.academy-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(88, 166, 255, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.academy-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

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

.academy-content {
    position: relative;
    z-index: 1;
}

.academy-content h2 {
    font-size: 36px;
    color: var(--text-bright);
    margin-bottom: 16px;
    font-weight: 700;
}

.academy-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Card Content */
.service-card i {
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 22px;
    color: var(--text-bright);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

.service-card a {
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card a:hover {
    gap: 12px;
}

/* Simulator Card Content */
.sim-card i {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.sim-card h3 {
    font-size: 24px;
    color: var(--text-bright);
    font-weight: 600;
}

/* Spacing Utilities */
.padding-100 {
    padding: 100px 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-bright);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.academy-link {
    color: var(--accent-purple) !important;
    font-weight: 600 !important;
}

.academy-link:hover {
    color: var(--accent-blue) !important;
}

.mobile-lang-panel {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    .request-page {
        padding-top: 30px !important;
        padding-bottom: 50px !important;
    }

    .main-logo {
        height: 48px;
    }

    .chaos-global-container {
        --gather-center-x: 50%;
        --gather-center-y: 50%;
        --impulse-x: var(--gather-center-x);
        --impulse-y: var(--gather-center-y);
        --gather-radius: min(28vw, 115px);
    }
    .process-flow-layer {
        opacity: 0.55;
    }
    .impulse-node {
        width: 50px;
        height: 50px;
    }
    .sq-item {
        width: clamp(32px, 9vw, 40px);
        height: clamp(32px, 9vw, 40px);
        border-radius: 10px;
        font-size: clamp(13px, 4vw, 16px);
        box-shadow: 0 0 12px var(--sq-color);
    }
    .assembly-core-wrap {
        width: min(72vw, 320px);
        height: min(72vw, 320px);
        min-width: 0;
        min-height: 0;
    }
    @supports (height: 100svh) {
        .assembly-core-wrap {
            width: min(72vw, 320px);
            height: min(72vw, 320px);
        }
    }
    .core-bg-circle {
        width: min(56vw, 240px);
        height: min(56vw, 240px);
    }
    .core-logo-box {
        width: min(45vw, 180px);
    }
    .core-logo-box img {
        width: 100%;
    }
    .hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 24px; }
    .simulator-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .main-nav { 
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 12, 16, 0.96);
        backdrop-filter: blur(20px) saturate(180%);
        padding: 30px 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-15px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        overflow-y: auto;
    }
    .main-nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .desktop-lang-dropdown {
        display: none !important;
    }
    .mobile-lang-panel {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mobile-lang-title {
        font-size: 11px;
        font-weight: 800;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        text-align: left;
    }
    .mobile-lang-options {
        display: flex;
        gap: 12px;
    }
    .mobile-lang-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 600;
        transition: var(--transition);
        text-decoration: none;
        flex: 1;
        justify-content: center;
    }
    .mobile-lang-item:hover,
    .mobile-lang-item.active {
        background: rgba(0, 255, 156, 0.06);
        border-color: var(--accent-green);
        color: var(--text-bright);
        box-shadow: 0 0 15px rgba(0, 255, 156, 0.1);
    }
    .mobile-lang-item .fi {
        width: 18px;
        height: 14px;
        border-radius: 2px;
        object-fit: cover;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        counter-reset: menu-counter;
        align-items: flex-start;
    }
    .main-nav a {
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 700;
        color: var(--text-muted);
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: var(--transition);
        padding-left: 0;
    }
    .main-nav a::before {
        counter-increment: menu-counter;
        content: "// 0" counter(menu-counter);
        font-family: 'Courier New', monospace;
        color: var(--accent-green);
        margin-right: 15px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0;
        transition: var(--transition);
    }
    .main-nav a::after {
        display: none; /* Disable desktop horizontal line style on mobile */
    }
    .main-nav a:hover,
    .main-nav a.active {
        color: var(--text-bright);
        padding-left: 8px;
    }
    .main-nav a:hover::before,
    .main-nav a.active::before {
        color: var(--accent-blue);
    }

    .mobile-menu-toggle {
        display: flex;
    }
    .hero { min-height: auto; padding: 30px 0; }
    @supports (height: 100svh) {
        .hero { min-height: auto; }
    }
    .hero .container { text-align: center; }
    .hero,
    .hero-grid-centered,
    .hero-visual-col,
    .assembly-core-wrap,
    .chaos-global-container {
        max-width: 100%;
        overflow: hidden;
    }
    @supports (overflow: clip) {
        .hero,
        .hero-grid-centered,
        .hero-visual-col,
        .assembly-core-wrap,
        .chaos-global-container {
            overflow: clip;
        }
    }
    .hero-grid-centered {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
        margin-top: 0;
    }
    @supports (height: 100svh) {
        .hero-grid-centered { min-height: auto; }
    }
    .hero-visual-col {
        min-height: min(72vw, 320px);
        height: min(72vw, 320px);
        transform: none;
        margin-top: 10px;
    }
    @supports (height: 100svh) {
        .hero-visual-col {
            min-height: min(72vw, 320px);
            height: min(72vw, 320px);
        }
    }
    .hero-visual-col.is-business-online .assembly-core-wrap,
    .hero-visual-col.is-business-slowed .assembly-core-wrap {
        transform: scale(0.82);
    }
    .hero-title-main {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 12px;
    }
    .hero-description {
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.4;
    }
    .hero-actions-row {
        justify-content: center;
    }
    .hero-animated-title { align-items: center; text-align: center; }
    .dynamic-container { align-items: center; }
    .hero-sub-panel { margin: 0 auto 24px; padding: 15px; }
    .hero-visual { width: 100%; max-width: 320px; margin: 0 auto; height: 320px; }
    .total-visual { width: 280px; height: 280px; }
    .total-core img { width: 150px; }
    .orbit-item { width: 32px; height: 32px; font-size: 14px; }
    @keyframes orbit1 {
        from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
    }
    @keyframes orbit2 {
        from { transform: rotate(120deg) translateX(90px) rotate(-120deg); }
        to { transform: rotate(480deg) translateX(90px) rotate(-480deg); }
    }
    @keyframes orbit3 {
        from { transform: rotate(240deg) translateX(90px) rotate(-240deg); }
        to { transform: rotate(600deg) translateX(90px) rotate(-600deg); }
    }
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .hero-btns .btn { padding: 12px 20px; font-size: 13px; }
    .btn { width: 100%; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .about-wrapper { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
    .support-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
}
/* Beautiful Service Cards v2 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ═══════════════════════════════════════════
   SERVICE CARD v2 — PREMIUM REDESIGN
═══════════════════════════════════════════ */

.service-card-v2 {
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    cursor: pointer;
}

/* Shimmer sweep on hover */
.service-card-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 30%,
        rgba(0,255,156,0.04) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}
.service-card-v2:hover::after {
    transform: translateX(100%);
}

/* Top green border accent that slides in */
.service-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff9c 40%, #00c8ff 70%, transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
    border-radius: 20px 20px 0 0;
}
.service-card-v2:hover::before { opacity: 1; }

.service-card-v2:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 24px 48px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,255,156,0.25),
        0 0 40px rgba(0,255,156,0.1);
    border-color: rgba(0,255,156,0.25);
}

/* ── Card content ── */
.service-card-v2 .card-content {
    padding: 36px 36px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* ── Number badge (auto via CSS counter) ── */
.services-grid {
    counter-reset: card-counter;
}
.service-card-v2 .card-content::before {
    counter-increment: card-counter;
    content: '0' counter(card-counter);
    position: absolute;
    top: 28px; right: 28px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(0,255,156,0.25);
    font-family: 'Courier New', monospace;
    transition: color 0.3s;
}
.service-card-v2:hover .card-content::before {
    color: rgba(0,255,156,0.6);
}

/* ── Icon box ── */
.card-icon-box {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0,255,156,0.07);
    border: 1px solid rgba(0,255,156,0.12);
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.service-card-v2:hover .card-icon-box {
    background: rgba(0,255,156,0.13);
    border-color: rgba(0,255,156,0.35);
    box-shadow: 0 0 20px rgba(0,255,156,0.2), inset 0 0 12px rgba(0,255,156,0.05);
}

.card-icon-box i {
    font-size: 28px;
    color: #00ff9c;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(0,255,156,0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}
.service-card-v2:hover .card-icon-box i {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 14px rgba(0,255,156,0.8));
}

/* Keep icon-glow element but shrink its role */
.icon-glow {
    display: none;
}

/* ── Text ── */
.service-card-v2 .card-body h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.92);
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.35;
    transition: color 0.3s ease;
}
.service-card-v2:hover .card-body h3 {
    color: #fff;
}

.service-card-v2 .card-body p {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* ── CTA button ── */
.btn-card-more {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: background 0.28s, color 0.28s, border-color 0.28s, box-shadow 0.28s;
    position: relative;
    overflow: hidden;
}
.btn-card-more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #00ff9c, #00c8ff);
    opacity: 0;
    transition: opacity 0.28s;
    z-index: 0;
}
.btn-card-more span, .btn-card-more i {
    position: relative;
    z-index: 1;
}
.btn-card-more i {
    font-size: 12px;
    transition: transform 0.28s ease;
}
.btn-card-more:hover {
    border-color: transparent;
    color: #000;
    box-shadow: 0 4px 20px rgba(0,255,156,0.35);
}
.btn-card-more:hover::after { opacity: 1; }
.btn-card-more:hover i { transform: translateX(5px); }

/* ── Corner decorators ── */
.card-corners span {
    position: absolute;
    width: 10px; height: 10px;
    border: 1.5px solid #00ff9c;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 6px rgba(0,255,156,0.6);
}
.card-corners span:nth-child(1) { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.card-corners span:nth-child(2) { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.card-corners span:nth-child(3) { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.card-corners span:nth-child(4) { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

.service-card-v2:hover .card-corners span:nth-child(1) { top: 12px; left: 12px; opacity: 1; }
.service-card-v2:hover .card-corners span:nth-child(2) { top: 12px; right: 12px; opacity: 1; }
.service-card-v2:hover .card-corners span:nth-child(3) { bottom: 12px; left: 12px; opacity: 1; }
.service-card-v2:hover .card-corners span:nth-child(4) { bottom: 12px; right: 12px; opacity: 1; }

/* ══════════════════════════
   MOBILE — cards stack vertically
══════════════════════════ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-card-v2 .card-content {
        padding: 22px 20px 18px;
        display: grid;
        grid-template-columns: 54px 1fr;
        grid-template-rows: auto auto;
        gap: 10px 18px;
    }
    .service-card-v2 .card-content::before {
        top: 16px; right: 16px;
        font-size: 10px;
    }
    .card-icon-box {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-bottom: 0;
        width: 54px; height: 54px;
        align-self: center;
        border-radius: 14px;
    }
    .card-icon-box i { font-size: 24px; }
    .service-card-v2 .card-body {
        grid-column: 2;
        grid-row: 1;
    }
    .service-card-v2 .card-body h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .service-card-v2 .card-body p {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 0;
    }
    .btn-card-more {
        grid-column: 2;
        grid-row: 2;
        margin-top: 4px;
        padding: 9px 14px;
        font-size: 11px;
        letter-spacing: 1px;
        border-radius: 9px;
        width: fit-content;
        justify-content: flex-start;
        gap: 8px;
    }
    .card-corners span { display: none; }
    .service-card-v2:hover {
        transform: translateY(-4px) scale(1);
    }
}
@media (max-width: 480px) {
    .service-card-v2 .card-content {
        grid-template-columns: 1fr;
        padding: 20px 18px 16px;
    }
    .card-icon-box {
        grid-column: 1; grid-row: 1;
        margin-bottom: 16px;
        align-self: flex-start;
    }
    .service-card-v2 .card-body { grid-column: 1; grid-row: 2; }
    .btn-card-more { grid-column: 1; grid-row: 3; width: 100%; justify-content: space-between; }
}


/* =========================================================================
   Audit Simulation Overlay
   ========================================================================= */
.sim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInSim 0.3s forwards;
}

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

.sim-modal {
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid rgba(0, 255, 156, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    max-height: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 255, 156, 0.05);
    overflow: hidden;
}

.btn-close-sim {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.btn-close-sim:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.sim-stages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 17, 23, 0.6);
}

.stage-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.stage-item.active {
    color: var(--accent-green);
    background: rgba(0, 255, 156, 0.1);
    border-color: rgba(0, 255, 156, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.15);
}

.stage-item.done {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.stage-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 15px;
    position: relative;
    border-radius: 2px;
}

.sim-view {
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 0;
    min-height: 0;
}


.sim-view.active {
    display: flex;
    animation: slideUpFade 0.4s ease-out forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 50px 20px;
}

.sim-title-box h2 {
    font-size: 28px;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.sim-title-box p {
    color: var(--accent-green);
    font-size: 15px;
    margin: 0;
    opacity: 0.8;
}

.sim-stats-box {
    text-align: right;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bright);
    font-variant-numeric: tabular-nums;
}

.sim-progress-wrap {
    padding: 0 50px 30px;
}

.sim-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sim-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), #00d2ff);
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.5);
    transition: width 0.3s ease-out;
}

.sim-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.sim-progress-text {
    color: var(--accent-green);
    font-weight: 700;
}

.sim-status-text {
    color: var(--text-muted);
    font-family: monospace;
}

.sim-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 0;
}


.sim-canvas {
    flex: 1;
    background: radial-gradient(circle at center, rgba(0, 255, 156, 0.03) 0%, transparent 70%);
    position: relative;
}

#sceneSvg {
    width: 100%;
    height: 100%;
}

.sim-sidebar {
    width: 380px;
    background: rgba(13, 17, 23, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.findings-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.findings-header h3 {
    font-size: 16px;
    color: var(--text-bright);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.findings-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.finding-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.finding-card.err {
    border-left-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
}
.finding-card.warn {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}
.finding-card.ok {
    border-left-color: var(--accent-green);
    background: rgba(0, 255, 156, 0.05);
}

.finding-card .title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.finding-card .desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.sim-report-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.report-icon {
    font-size: 70px;
    color: var(--accent-green);
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(0, 255, 156, 0.4);
}

.sim-report-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.sim-report-content p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.report-actions {
    display: flex;
    gap: 20px;
}

/* SVG Elements Styling */
.node {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.node.scanning {
    stroke: var(--accent-green);
    fill: rgba(0, 255, 156, 0.05);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(0, 255, 156, 0.3));
}

.node.ok { stroke: var(--accent-green); }
.node.warn { stroke: #ff9800; }
.node.err { stroke: #ff4d4d; }

.link {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.link.active {
    stroke: var(--accent-green);
    stroke-dasharray: 8;
    animation: dashMove 0.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 255, 156, 0.5));
}

.link.done {
    stroke: rgba(255, 255, 255, 0.2);
}

@keyframes dashMove {
    to { stroke-dashoffset: -16; }
}

.badge {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.badge.show {
    opacity: 1;
    transform: scale(1);
}

.badge.ok { background: var(--accent-green); color: #000; box-shadow: 0 0 10px var(--accent-green); }
.badge.warn { background: #ff9800; box-shadow: 0 0 10px #ff9800; }
.badge.err { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }

/* SVG-based Badges */
.badge-svg {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.badge-svg circle {
    stroke-width: 1.5;
    stroke: rgba(255, 255, 255, 0.2);
}
.badge-svg.ok circle {
    fill: var(--accent-green);
    stroke: var(--accent-green);
}
.badge-svg.ok text {
    fill: #000;
}
.badge-svg.warn circle {
    fill: #ff9800;
    stroke: #ff9800;
}
.badge-svg.warn text {
    fill: #fff;
}
.badge-svg.err circle {
    fill: #ff4d4d;
    stroke: #ff4d4d;
}
.badge-svg.err text {
    fill: #fff;
}

@media (max-width: 1024px) {
    .sim-overlay {
        padding: 10px;
    }
    .sim-modal {
        height: 95vh;
        border-radius: 16px;
    }
    .btn-close-sim {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    .sim-stages {
        padding: 12px 50px 12px 12px; /* Right padding preserves room for the close button */
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
    .stage-line {
        display: none;
    }
    .stage-item {
        font-size: 11px;
        padding: 6px 10px;
        flex: 1 1 calc(33.333% - 8px);
        min-width: 90px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sim-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .sim-title-box h2 {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .sim-title-box p {
        font-size: 13px;
    }
    .sim-stats-box {
        text-align: left;
    }
    .stat-value {
        font-size: 18px;
    }
    .sim-progress-wrap {
        padding: 0 20px 20px;
    }
    .sim-body {
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sim-canvas {
        aspect-ratio: 1.5;
        width: 100%;
        height: auto;
        min-height: unset;
        flex: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .sim-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .findings-list {
        padding: 15px;
        overflow: visible;
    }
    .sim-report-content {
        padding: 20px;
    }
    .sim-report-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .sim-report-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .report-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .report-actions .btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================================
   Service Detail Page Styles
   ========================================================================= */
.service-detail {
    background: radial-gradient(circle at top, rgba(0, 255, 156, 0.03) 0%, transparent 60%);
    position: relative;
    padding: 100px 0;
}

.service-header {
    margin-bottom: 40px;
    text-align: left;
}

.service-header i {
    color: var(--accent-green);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px var(--accent-green-glow));
    animation: pulseGlow 3s ease-in-out infinite;
    display: inline-block;
}

.service-header h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-bright);
    margin-bottom: 0;
    line-height: 1.25;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 15px var(--accent-green-glow)); }
    50% { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(0, 255, 156, 0.5)); }
}

.service-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-main .description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 40px;
}

.benefits-box {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.benefits-box h3 {
    font-size: 22px;
    color: var(--text-bright);
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits-box h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--accent-green);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-green);
}

.benefits-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.benefits-box li {
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 18px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefits-box li:hover {
    background: rgba(0, 255, 156, 0.04);
    border-color: rgba(0, 255, 156, 0.2);
    transform: translateX(5px);
}

.benefits-box li i {
    color: var(--accent-green);
    font-size: 16px;
    background: rgba(0, 255, 156, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.1);
}

.service-sidebar {
    position: sticky;
    top: 40px;
}

.request-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(11, 15, 20, 0.9) 100%);
    border: 1px solid rgba(0, 255, 156, 0.2);
    backdrop-filter: var(--glass);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 156, 0.05);
    position: relative;
    overflow: hidden;
}

.request-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 156, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.request-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.request-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.request-card .btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .benefits-box ul {
        grid-template-columns: 1fr;
    }
    
    .service-main {
        padding: 30px;
    }
    
    .service-header h1 {
        font-size: 32px;
    }
}

/* =========================================================================
   About Us Page Styles
   ========================================================================= */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro .lead-text {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-bright);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.stats-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), transparent);
    opacity: 0.5;
}

.stat-icon {
    font-size: 24px;
    color: var(--accent-green);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--accent-green-glow));
}

.stat-card .val {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.stat-card .lbl {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-card:hover {
    border-color: rgba(0, 255, 156, 0.3);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.05);
    transform: translateY(-5px);
}

/* Mission Layout */
.about-mission-section {
    background: radial-gradient(circle at bottom, rgba(0, 255, 156, 0.02) 0%, transparent 60%);
}

.mission-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.mission-accent-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 156, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.mission-left {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(0, 255, 156, 0.1);
    border: 1px solid var(--accent-green-glow);
    color: var(--accent-green);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.mission-left h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.mission-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-main);
}

.mission-right {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid var(--border-color);
    padding-left: 50px;
}

.value-item h4 {
    font-size: 18px;
    color: var(--text-bright);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-item h4 i {
    color: var(--accent-green);
}

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

/* Director Section */
.director-card-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: center;
}

.director-visual {
    display: flex;
    justify-content: center;
}

.director-frame {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 15px;
    background: rgba(22, 27, 34, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.director-frame img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    object-position: top center;
    filter: grayscale(5%) contrast(105%) brightness(1.02);
    transition: all 0.4s ease;
}

.director-frame:hover {
    border-color: rgba(0, 255, 156, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 156, 0.15);
}

.director-frame:hover img {
    filter: grayscale(0%) contrast(100%);
}

.director-frame .corner-glow {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent-green);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.director-frame .corner-glow.c-top-left { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.director-frame .corner-glow.c-top-right { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.director-frame .corner-glow.c-bottom-left { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.director-frame .corner-glow.c-bottom-right { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.director-frame:hover .corner-glow {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-green);
}

.director-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.director-meta .director-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
}

.director-meta h3 {
    font-size: 32px;
    color: var(--text-bright);
    margin-bottom: 15px;
    font-weight: 700;
}

.director-meta .director-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

.director-quote-box {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-green);
    padding: 30px 40px;
    border-radius: 0 16px 16px 0;
    box-shadow: inset 5px 0 15px rgba(0, 255, 156, 0.02);
}

.director-quote-box .quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 40px;
    color: rgba(0, 255, 156, 0.05);
    pointer-events: none;
}

.director-quote {
    font-size: 17px;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-bright);
    z-index: 1;
    position: relative;
}

@media (max-width: 992px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .mission-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }
    
    .director-card-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .director-visual {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Sub Directors Section */
.sub-directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.margin-top-60 {
    margin-top: 60px;
}

.sub-director-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.sub-director-card:hover {
    border-color: rgba(0, 255, 156, 0.3);
    box-shadow: 0 15px 35px rgba(0, 255, 156, 0.08);
    transform: translateY(-5px);
}

.sub-director-visual-box {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.sub-director-frame {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    background: rgba(22, 27, 34, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    width: 100%;
    max-width: 220px;
}

.sub-director-frame img {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    filter: grayscale(15%) contrast(105%);
    transition: all 0.4s ease;
}

.sub-director-card:hover .sub-director-frame {
    border-color: rgba(0, 255, 156, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 156, 0.1);
}

.sub-director-card:hover .sub-director-frame img {
    filter: grayscale(0%) contrast(100%);
}

.sub-director-frame .corner-glow {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent-green);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.sub-director-frame .corner-glow.c-top-left { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.sub-director-frame .corner-glow.c-top-right { top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.sub-director-frame .corner-glow.c-bottom-left { bottom: 5px; left: 5px; border-right: 0; border-top: 0; }
.sub-director-frame .corner-glow.c-bottom-right { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

.sub-director-card:hover .corner-glow {
    opacity: 1;
    box-shadow: 0 0 6px var(--accent-green);
}

.sub-director-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-director-card .sub-director-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sub-director-card h4 {
    font-size: 19px;
    color: var(--text-bright);
    font-weight: 700;
}

.sub-director-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, rgba(13, 17, 23, 0.4) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.partners-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.partners-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.partners-slider-wrapper.is-dragging {
    cursor: grabbing;
}

.partners-slider-wrapper::before,
.partners-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-slider-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #0b0f14 0%, transparent 100%);
}

.partners-slider-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, #0b0f14 0%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: 40px;
    width: max-content;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 28px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
    will-change: transform, opacity;
    filter: none; /* Reset global grayscale filter */
    transition: none; /* Disable transition to prevent conflicts with JS animations */
}

.partner-logo i,
.partner-logo svg {
    /* Transitions removed to allow smooth frame-by-frame JS rendering */
}

.partner-logo svg {
    width: 62%;
    height: 62%;
    max-width: 90%;
    max-height: 90%;
    pointer-events: none;
    display: block;
}

@media (max-width: 1024px) {
    .partners-section {
        padding: 30px 0;
    }
    .partners-slider-wrapper {
        padding: 20px 0;
    }
    .partners-track {
        gap: 24px;
    }
    .partner-logo {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        font-size: 22px;
    }
    .partners-slider-wrapper::before,
    .partners-slider-wrapper::after {
        width: 60px;
    }
}

/* Page Transitions */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: pageFadeIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.page-fade-out {
    opacity: 0 !important;
    transition: opacity 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Premium Back Button Style */
.btn-back {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    margin-top: 10px;
}

.btn-back i {
    font-size: 12px;
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.btn-back:hover {
    color: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green-glow);
    transform: translateX(-4px);
}

.btn-back:hover i {
    transform: translateX(-2px);
}

@media (min-width: 1400px) {
    .btn-back {
        left: 0;
        top: 0;
    }
}
@media (max-width: 1200px) {
    .btn-back {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 25px;
    }
}

/* Admin Back Button Style */
.btn-back-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: #8b949e;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-back-admin:hover {
    color: #00ff9c;
    border-color: #00ff9c;
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.2);
    transform: translateX(-2px);
}

/* Light Theme Partners Slider Mask Fixes */
body.light-theme .partners-slider-wrapper::before {
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}
body.light-theme .partners-slider-wrapper::after {
    background: linear-gradient(-90deg, var(--bg-dark) 0%, transparent 100%);
}

/* Shopping Cart Drawer Styles */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 18px;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.btn-close-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-cart:hover {
    color: var(--accent-red);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-item-info {
    flex: 1;
    padding-right: 15px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.cart-item-brand {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-green);
    letter-spacing: 0.5px;
    font-weight: 800;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.cart-qty-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.cart-item-qty {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    min-width: 15px;
    text-align: center;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    padding: 5px;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-bright);
    margin-bottom: 20px;
}

/* Header Cart Toggle Button */
.btn-cart-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

.btn-cart-toggle:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 255, 156, 0.05);
}

body.light-theme .btn-cart-toggle:hover {
    background: rgba(0, 135, 90, 0.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-green);
    color: #0b0f14;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--accent-green-glow);
}

body.light-theme .cart-badge {
    color: #ffffff;
}

.cart-empty-msg {
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

/* Pricing Display Styles */
.product-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--accent-green);
    font-weight: 700;
    margin-top: 4px;
}

.cart-total-val {
    font-size: 18px;
    color: var(--accent-green);
    font-weight: 800;
}

/* Mobile Landscape Adaptation */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 15px 0;
        min-height: auto;
    }
    .hero-grid-centered {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        gap: 20px;
        min-height: auto;
        margin-top: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .hero-content {
        text-align: left;
    }
    .hero-title-main {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .hero-description {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.35;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-actions-row {
        justify-content: flex-start;
        display: flex;
        flex-direction: row;
        gap: 12px;
        flex-wrap: nowrap;
    }
    .hero-actions-row .btn {
        width: auto;
        flex: 1;
        white-space: nowrap;
        font-size: 12px;
        padding: 10px 16px;
    }
    .hero-visual-col {
        min-height: 250px;
        height: 250px;
        margin-top: 0;
    }
    .assembly-core-wrap {
        width: 240px;
        height: 240px;
    }
    .chaos-global-container {
        --gather-radius: 75px;
    }
}

/* Global Page Header Left-Alignment and Layout Consistency */
.page-header {
    text-align: left;
    padding: 60px 0 40px;
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.8) 0%, rgba(11, 15, 20, 0) 100%);
}

.page-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-bright);
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(0, 255, 156, 0.15);
    line-height: 1.25;
}

.page-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
}

/* Form Container Layout Symmetry */
.form-container {
    max-width: 650px;
    margin: 0;
    text-align: left;
}

.form-container h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Catalog Controls: Tabs + Search Alignment */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tabs {
    margin-bottom: 0 !important;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    color: var(--text-muted);
}

.category-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.15);
    color: #0b0f14;
}

.catalog-search {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.catalog-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-bright);
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: var(--glass);
}

.catalog-search input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green-glow);
}

.catalog-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Cart Button Active States */
.btn-in-cart {
    background: rgba(0, 255, 156, 0.1) !important;
    border-color: var(--accent-green) !important;
    color: var(--accent-green) !important;
    box-shadow: none !important;
}

.btn-in-cart:hover {
    background: var(--accent-green) !important;
    color: #0b0f14 !important;
}

/* Responsiveness overrides for Catalog Controls */
@media (max-width: 768px) {
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-search {
        width: 100%;
    }
}

/* Expected Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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



