
html, body {
    overscroll-behavior-y: none; /* Prevents rubber-banding at the bottom */
    background-color: var(--bg-primary);
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(20, 20, 22, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Background Glow */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}
.top-glow { top: -100px; left: -200px; }
.bottom-glow { bottom: 20%; right: -200px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); }

/* Layout & Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); font-size: 1.125rem; }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    /* backdrop removed for performance */
    -webkit-/* backdrop removed for performance */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}
.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255, 0.2);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Navbar */



.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 100px;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: none;
}




.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    padding: 0.6rem 1.2rem;
    box-sizing: border-box;
}

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; }
.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.05em; }
.logo-acns { color: var(--text-primary); }
.logo-suite { color: var(--text-secondary); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-primary); cursor: pointer; }

/* Hero */
.hero { min-height: auto; padding-bottom: 80px; display: flex; align-items: center; position: relative; padding-top: 140px; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 4rem; }
.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }
.stat-divider { width: 1px; background: var(--border-color); }

/* Dashboard Mockup */
.dashboard-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
}
.mockup-header {
    height: 40px; border-bottom: none;
    display: flex; align-items: center; padding: 0 1rem; gap: 1rem;
    background: rgba(255,255,255,0.02);
}
.dots { display: flex; gap: 0.35rem; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #4b5563; }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }
.mockup-tab { font-size: 0.75rem; color: var(--text-secondary); font-family: var(--font-mono); }
.mockup-body { display: flex; flex: 1; }
.mockup-sidebar { width: 60px; border-right: 1px solid var(--border-color); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.pulse-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); width: 100%; }
.pulse-line.short { width: 60%; }
.mockup-content { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: rgba(0,0,0,0.2); }
.code-window { padding: 1rem; font-family: var(--font-mono); font-size: 0.8rem; overflow-x: auto; }
.code-keyword { color: #c678dd; }
.code-func { color: #61afef; }
.code-string { color: #98c379; }
.code-prop { color: #e06c75; }
.code-comment { color: #5c6370; font-style: italic; }
.mockup-row { display: flex; gap: 1rem; align-items: center; justify-content: center; height: 100%; }
.circle-node { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.75rem; border: 1px solid; }
.circle-node.blue { color: var(--accent-blue); border-color: var(--accent-blue); box-shadow: 0 0 15px rgba(59,130,246,0.3); }
.circle-node.purple { color: var(--accent-purple); border-color: var(--accent-purple); box-shadow: 0 0 15px rgba(139,92,246,0.3); }
.circle-node.cyan { color: var(--accent-cyan); border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(6,182,212,0.3); }
.connection-line { height: 2px; flex: 1; background: var(--border-color); position: relative; overflow: hidden; }

/* Bento Grid Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}
.bento-card {
    padding: 2rem; position: relative; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.card-glow { position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; filter: blur(80px); opacity: 0; transition: opacity 0.3s ease; }
.bento-card:hover .card-glow { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 1.5rem; }
.col-span-2 { grid-column: span 2; }
@media(max-width: 768px) { .col-span-2 { grid-column: span 1; } }

/* Success Cases Carousel */
.cases-carousel { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 4rem; }
.case-card { padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.case-badge { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(59,130,246,0.1); margin-bottom: 0; }
.case-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; border-top: none; }
.case-tags span { font-size: 0.75rem; color: var(--text-secondary); }

/* Process Timeline */
.process-timeline { max-width: 800px; margin: 4rem auto 0; position: relative; }
.process-step { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; position: relative; z-index: 2; }
.step-number { 
    width: 48px; height: 48px; min-width: 48px;
    border-radius: 50%; background: var(--bg-darker);
    border: 1px solid var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.25rem; color: var(--accent-blue);
}
.step-content { padding: 1.5rem; flex: 1; }
.process-line { 
    position: absolute; left: 24px; top: 48px; bottom: -2rem; 
    width: 2px; background: var(--border-color); z-index: 1; 
}
.process-step:last-child + .process-line { display: none; }

/* Tech Grid */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 4rem; max-width: 900px; margin-inline: auto; }
.tech-benefit { padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; border-radius: var(--radius-lg); }
.tech-logo { padding: 1rem 2rem; font-weight: 600; font-family: var(--font-mono); font-size: 0.875rem; border-radius: var(--radius-sm); letter-spacing: 0.05em; }

/* ERP Banner */
.erp-banner { padding: 4rem 2rem; position: relative; overflow: hidden; border: 1px solid rgba(139,92,246,0.3); }
.erp-banner-content { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }

/* Mega Footer */
.mega-footer { border-top: none; padding: 80px 0 40px; margin-top: 80px; background: var(--bg-darker); }
.footer-top { text-align: center; margin-bottom: 60px; padding-bottom: 60px; border-bottom: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-col h3 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); font-size: 0.875rem; }
.footer-col a:hover { color: var(--text-primary); }
.contact-info li { color: var(--text-secondary); font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-bottom { margin-top: 80px; text-align: center; color: var(--text-secondary); font-size: 0.875rem; }

/* Animations & Effects */
.reveal { /* GSAP handled */ }
.reveal.active { opacity: 1; visibility: visible; }

.fade-up { /* GSAP handled */ }
.fade-up.active { transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float.delay-1 { animation-delay: -1s; }
.float.delay-2 { animation-delay: -2s; }

.glow-effect { position: relative; }
.glow-effect::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--gradient-primary); z-index: -1; border-radius: calc(var(--radius-sm) + 2px);
    opacity: 0; transition: opacity 0.3s ease; filter: blur(8px);
}
.glow-effect:hover::before { opacity: 0.7; }

.illuminate { position: relative; overflow: hidden; }
.illuminate::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}
.illuminate.active::after { animation: shine 1s linear infinite; }

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-actions, .hero-stats { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-stats { flex-direction: column; align-items: center; gap: 1rem; }
    .stat-divider { width: 50px; height: 1px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col:first-child { grid-column: span 1; }
    .contact-form { padding: 1.5rem !important; }
}

/* ERP Architecture Diagram (Custom) */
.arch-diagram-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.arch-diagram {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 340px;
    margin: 0 auto;
}

.motor-central {
    width: 320px;
    height: 180px;
    background: var(--bg-darker);
    border: 2px solid var(--accent-cyan);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 230px;
    left: 50%;
    margin-left: -160px;
    margin-top: -90px;
    z-index: 3;
}

.motor-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
}

.text-cyan { color: var(--accent-cyan); }
.text-pink { background: linear-gradient(to right, #ec4899, #8b5cf6); -webkit-background-clip: text; color: transparent; }

.arch-node {
    background: var(--bg-darker);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 280px;
    position: absolute;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.node-top { top: 0; left: 50%; margin-left: -140px; }
.node-left { left: 0; top: 230px; margin-top: -45px; }
.node-right { right: 0; top: 230px; margin-top: -45px; }

.node-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.3);
}

.node-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.conn-line-v {
    position: absolute;
    width: 2px;
    background: var(--accent-cyan);
    opacity: 0.6;
    z-index: 2;
    left: 50%;
    margin-left: -1px;
}

.conn-line-h {
    position: absolute;
    height: 2px;
    background: var(--accent-cyan);
    opacity: 0.6;
    z-index: 2;
    top: 230px;
    margin-top: -1px;
}

.line-top { height: 55px; top: 88px; }
.line-left { width: 44px; left: 278px; }
.line-right { width: 44px; left: 638px; }

@media (max-width: 992px) {
    .arch-diagram-wrapper { padding: 40px 0; }
    .arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 2rem; height: auto; }
    .arch-node, .motor-central { position: relative; top: auto; left: auto; right: auto; margin: 0; transform: none; width: 100%; max-width: 320px; }
    .conn-line-v, .conn-line-h { display: none; }
}

/* --- Blog Section --- */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0; /* Reset padding for image */
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: none;
}
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}
.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}
.read-more {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}
.read-more:hover {
    color: var(--accent-blue);
}

/* Featured Blog Post (Hero) */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 4rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.featured-post:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.featured-img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}
.featured-content {
    padding: 3rem 3rem 3rem 0;
}
@media (max-width: 992px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-content { padding: 2rem; }
    .featured-img { min-height: 250px; }
}

/* Single Blog Post Template */
.post-header {
    padding-top: 150px;
    padding-bottom: 60px;
    text-align: center;
    border-bottom: none;
}
.post-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.post-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    border: 1px solid var(--border-color);
}
.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d4d4d8;
}
.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.post-content p {
    margin-bottom: 1.5rem;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 15, 18, 0.95);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    z-index: 1000;
    /* backdrop removed for performance */
}
.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}
.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
}
.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}


/* --- Ecosystem Tree Diagram --- */
.ecosystem-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    position: relative;
}
.tree-node {
    background: rgba(15, 15, 18, 0.9);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    position: relative;
    z-index: 2;
    /* backdrop removed for performance */
}
.tree-level {
    display: flex;
    gap: 4rem;
    position: relative;
}
.tree-level.single {
    gap: 0;
}
/* Connecting Lines */
.ecosystem-tree::before {
    content: '';
    position: absolute;
    top: 5rem;
    bottom: 5rem;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    z-index: 1;
    transform: translateX(-50%);
}
.level-1::before, .level-2::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}
@media (max-width: 768px) {
    .tree-level { gap: 1rem; flex-direction: column; align-items: center; }
    .level-1::before, .level-2::before { display: none; }
}

/* Architecture Diagram */
.architecture-diagram {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: rgba(10, 10, 15, 0.5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.arch-layer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}
.arch-box {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
}
.arch-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}
.arch-arrow {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin: 1rem 0;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .arch-layer.grid-4 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .arch-layer.flex-around {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================= */
/* MOTION DESIGN SYSTEM - ACNS Suite             */
/* ============================================= */

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #050505;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    width: 80px; height: 80px;
    position: relative;
}
.preloader-logo svg {
    width: 100%; height: 100%;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-bar {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 2rem;
    overflow: hidden;
}
.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    border-radius: 3px;
    animation: preloaderFill 1.8s ease-in-out forwards;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
@keyframes preloaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* --- Particles Canvas --- */
#particles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }

/* --- Mouse Glow (Hero) --- */
.hero-mouse-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}
.hero:hover .hero-mouse-glow { opacity: 1; }

/* --- Tilt 3D Card Effect --- */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}
.tilt-card .tilt-glare {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    transition: opacity 0.3s ease;
    z-index: 10;
}
.tilt-card:hover .tilt-glare { opacity: 1; }

/* --- Magnetic Button --- */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Parallax Floating Elements --- */
.parallax-orbs {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
}
.parallax-orb:nth-child(1) {
    width: 300px; height: 300px;
    background: var(--accent-blue);
    top: 10%; left: 10%;
    animation-delay: 0s;
}
.parallax-orb:nth-child(2) {
    width: 200px; height: 200px;
    background: var(--accent-purple);
    top: 60%; right: 15%;
    animation-delay: -3s;
}
.parallax-orb:nth-child(3) {
    width: 150px; height: 150px;
    background: var(--accent-cyan);
    bottom: 20%; left: 30%;
    animation-delay: -5s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 15px) scale(0.95); }
    75% { transform: translate(15px, 25px) scale(1.02); }
}

/* --- Animated Counters --- */
.stat-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* CSS animations removed in favor of GSAP */
/* CSS animations removed in favor of GSAP */
/* --- Testimonials Section --- */
.testimonials-section {
    background: transparent !important;
}
.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    /* backdrop removed for performance */
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 6rem;
    font-family: Georgia, serif;
    position: absolute;
    top: -10px; left: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
}
.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.testimonial-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}
.testimonial-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.testimonial-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.testimonial-dot.active {
    background: var(--accent-blue);
    transform: scale(1.3);
}
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 5;
}
.testimonial-nav:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-blue);
}
.testimonial-nav.prev { left: -60px; }
.testimonial-nav.next { right: -60px; }

/* --- WhatsApp Floating Button --- */

.whatsapp-float {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25d366 !important;
    color: #FFF !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 0px 10px 30px rgba(37, 211, 102, 0.4) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}
.whatsapp-float svg {
    width: 32px; height: 32px;
    fill: white;
}
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* --- Sticky CTA --- */


.sticky-cta {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta.visible {
    bottom: 0;
}
.sticky-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sticky-cta-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.sticky-cta-text strong {
    color: var(--text-primary);
}

/* --- Responsive adjustments for motion --- */
@media (max-width: 768px) {
    .testimonial-nav { display: none; }
    
.whatsapp-float {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25d366 !important;
    color: #FFF !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 0px 10px 30px rgba(37, 211, 102, 0.4) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

    .whatsapp-float svg { width: 28px; height: 28px; }
    .sticky-cta .container { flex-direction: column; text-align: center; }
    .parallax-orbs { display: none; }
}

@media (max-width: 1024px) {
    .testimonial-nav.prev { left: -10px; }
    .testimonial-nav.next { right: -10px; }
}

/* --- Continuous Dynamic Animations --- */
@keyframes bgPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
.bg-glow {
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes continuousFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.bento-card {
    animation: continuousFloat 6s ease-in-out infinite;
}
.bento-card:nth-child(even) {
    animation-delay: -3s;
}
.bento-card:hover {
    animation-play-state: paused;
}

@keyframes ctaPulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}
.btn-primary {
    animation: ctaPulse 2s infinite;
}

/* Make reveal animations more dramatic */
.fade-up { /* GSAP handled */ }
.fade-up.active { transform: translateY(0) scale(1); opacity: 1; }

.parallax-orb { opacity: 0.3; } /* Make orbs more visible */

/* --- Fluid Footer Animations --- */
.mega-footer {
    position: relative;
    background: transparent !important; /* Let the background show through */
    z-index: 1;
    /* Add a smooth gradient at the top to blend with the previous section */
    /* box-shadow removed to prevent harsh line */
}
.footer-fluid-bg { display: none !important; opacity: 0 !important;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    /* The key: fade out the top edge so it blends perfectly with the section above */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black);
    background: var(--bg-dark);
}
.fluid-shape {
    position: absolute;
    filter: blur(120px); /* Massive blur for smooth blending */
    border-radius: 50%;
    opacity: 0.3; /* Subtle opacity so it's elegant, not overwhelming */
    animation: fluidMovePremium 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.shape-1 {
    width: 800px; height: 800px;
    background: var(--accent-blue);
    top: -100px; left: -200px;
}
.shape-2 {
    width: 700px; height: 700px;
    background: var(--accent-purple);
    bottom: -200px; right: -100px;
    animation-delay: -7s;
    animation-direction: alternate-reverse;
}
.shape-3 {
    width: 600px; height: 600px;
    background: var(--accent-cyan);
    top: 20%; left: 30%;
    animation-delay: -14s;
}

@keyframes fluidMovePremium {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(100px, -50px) scale(1.1) rotate(45deg); }
    66% { transform: translate(-50px, 100px) scale(0.9) rotate(-45deg); }
    100% { transform: translate(-100px, -50px) scale(1.2) rotate(0deg); }
}

/* Elegant glow on inputs */
.contact-form {
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.6) !important;
    /* backdrop removed for performance */
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-form input, .contact-form textarea {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) !important;
    background: rgba(0,0,0,0.6) !important;
}


/* ========================================= */
/* GLOBAL ANIMATED MESH BACKGROUND           */
/* ========================================= */
body {
    background-color: #050505;
    background-image: none; /* Remove any static gradient */
}

/* We create a fixed container for the global fluid motion */
.global-motion-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -999;
    overflow: hidden;
    pointer-events: none;
    background: #050505;
}

.global-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
    animation: globalOrbit 25s infinite linear;
}

.g-orb-1 {
    width: 80vw; height: 80vw;
    background: var(--accent-blue);
    top: -20vh; left: -20vw;
    animation-duration: 30s;
}
.g-orb-2 {
    width: 60vw; height: 60vw;
    background: var(--accent-purple);
    bottom: -10vh; right: -10vw;
    animation-duration: 40s;
    animation-direction: reverse;
}
.g-orb-3 {
    width: 70vw; height: 70vw;
    background: var(--accent-cyan);
    top: 30vh; left: 40vw;
    animation-duration: 35s;
}

@keyframes globalOrbit {
    0% { transform: rotate(0deg) translate(5vw, 5vh) rotate(0deg) scale(1); }
    33% { transform: rotate(120deg) translate(10vw, -10vh) rotate(-120deg) scale(1.1); }
    66% { transform: rotate(240deg) translate(-10vw, 5vh) rotate(-240deg) scale(0.9); }
    100% { transform: rotate(360deg) translate(5vw, 5vh) rotate(-360deg) scale(1); }
}

/* 2. Make sections transparent so the global background shows through */
section, .hero, .mega-footer, .testimonials-section, .ecosystem-section, .erp-section, .benefits-section {
    background: transparent !important;
}

/* Ensure glass panels pop against the new global background */
.glass-panel {
    background: rgba(20, 20, 20, 0.4) !important;
    /* backdrop removed for performance */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove the old footer fluid bg since we have a global one now */
.footer-fluid-bg { display: none !important; opacity: 0 !important;
    display: none !important;
}


/* FORCE ALL MAJOR WRAPPERS TO BE TRANSPARENT FOR GLOBAL BG */
body, html, main, section, header, footer, 
.hero, .testimonials-section, .ecosystem-section, .erp-section, .benefits-section, .mega-footer {
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
}

/* Fix text colors that might get lost */
body {
    color: var(--text-primary);
}

.mega-footer, .footer-top { border: none !important; background: transparent !important; box-shadow: none !important; }

/* CSS animations removed in favor of GSAP */


/* Fix WhatsApp Floating Button Visibility */

.whatsapp-float {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25d366 !important;
    color: #FFF !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 0px 10px 30px rgba(37, 211, 102, 0.4) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

.whatsapp-float svg, .whatsapp-float i {
    margin: 0 !important;
    padding: 0 !important;
    width: 35px !important;
    height: 35px !important;
}

.sticky-cta { display: none !important; }

.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    text-decoration: none; 
    flex-shrink: 0; /* Prevent logo from squishing */
    min-width: 150px;
}


.navbar .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}


.mega-footer .contact-form {
    margin-bottom: 2.5rem !important; /* Huge gap so it doesn't look squished */
}
.mega-footer {
    padding-top: 2.5rem;
}


/* FORCE ARCHITECTURE DIAGRAM VISIBILITY */
.architecture-diagram,
.architecture-diagram .arch-layer,
.architecture-diagram .arch-box,
.architecture-diagram .arch-arrow {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}


.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
