:root {
    --clr-bg: #12121f;
    --clr-text: #e2e8f0;
    --clr-muted: #64748b;
    --clr-primary: #6366f1; /* Royal Blue */
    --clr-secondary: #10b981; /* Emerald */
    --clr-gold: #f0c37b;
    --clr-silver: #d1d5db;
    --clr-violet: #8a2be2;
    --clr-error: #f43f5e;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.theme-light {
    --clr-bg: #f8fafc;
    --clr-text: #1e293b;
    --clr-muted: #475569;
}

/* Pre-loader Style */
.loading { opacity: 0; transition: opacity 0.5s ease-in-out; }
body:not(.loading) { opacity: 1; }

/* Utility Class */
.hidden { display: none !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background-color: var(--clr-bg); color: var(--clr-text); line-height: 1.6; transition: var(--transition); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* --- Header Styles --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 31, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-bottom: none;
}
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  header { background: rgba(18, 18, 31, 0.9); }
}
header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent); opacity: 0.8; }
header.visible { opacity: 1; transform: translateY(0); }
.theme-light header { background: rgba(248, 250, 252, 0.8); }
.theme-light header::after { background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.logo { height: 40px; width: auto; display: flex; }
.logo img { height: 40px; width: auto; }
.theme-dark .logo-light, .theme-light .logo-dark { display: none; }
.logo .logo-dark { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6)); transition: filter 0.3s ease-in-out; }
.logo:hover .logo-dark { filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8)); }
.controls { display: flex; gap: 0.5rem; align-items: center; }
.lang-toggle, .theme-toggle { background: transparent; border: none; color: var(--clr-text); padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer; transition: var(--transition); }
.lang-toggle:hover, .theme-toggle:hover { background-color: rgba(99, 102, 241, 0.1); box-shadow: var(--glow); }
.theme-light .lang-toggle:hover, .theme-light .theme-toggle:hover { background-color: rgba(99, 102, 241, 0.1); }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.vanta-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.theme-dark .hero { background: none; }
.theme-light .vanta-bg { display: none; }
.theme-light .hero { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); position: relative; overflow: hidden; }
.theme-light .hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 50%), radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 50%); z-index: 0; }
.hero-content { max-width: 800px; padding: 2rem; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 0 15px rgba(99, 102, 241, 0.3), 0 0 25px rgba(16, 185, 129, 0.2); }
.hero-gradient { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.coming-soon { display: inline-block; background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary)); color: white; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.9rem; margin: 1rem 0; transition: var(--transition); position: relative; overflow: hidden; cursor: pointer; animation: pulse 2.5s infinite; }
.coming-soon::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s ease; }
.coming-soon:hover::before { left: 100%; }
.coming-soon:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3); animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }

/* Sections & Animations */
section { padding: 5rem 0; position: relative; z-index: 5; background: var(--clr-bg); }
.hero { background: transparent; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.5rem); text-align: center; margin-bottom: 3rem; color: var(--clr-primary); position: relative; padding-bottom: 1rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary)); border-radius: 2px; }
.anim-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.anim-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Product Suite Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.service-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, transparent 25%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.2), rgba(8, 47, 73, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.product-logo-text { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.ebx-logo-3d { font-size: 3.5rem; font-weight: 700; letter-spacing: -2px; }
.ebx-eb { color: var(--clr-text); }
.ebx-x { display: inline-block; background-clip: text; -webkit-background-clip: text; color: transparent; }
.product-name { font-size: 1.5rem; font-weight: 500; background-clip: text; -webkit-background-clip: text; color: transparent; }
.product-tagline { color: var(--clr-text); opacity: 0.9; font-size: 1rem; }
.ebx-x-nexus { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-secondary)); }
.product-name-nexus { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-secondary)); }
.ebx-x-aureon { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-gold)); }
.product-name-aureon { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-gold)); }
.ebx-x-axion { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-silver)); }
.product-name-axion { background-image: linear-gradient(to right, var(--clr-silver), var(--clr-primary)); }
.ebx-x-orion { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-violet)); }
.product-name-orion { background-image: linear-gradient(to right, var(--clr-primary), var(--clr-violet)); }
.service-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.6s ease; }
.service-card:hover::before { left: 100%; }
.service-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 70%); opacity: 0; transition: var(--transition); }
.service-card:hover::after { opacity: 1; }
.service-card .card-border, .feature .card-border {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.5), rgba(16, 185, 129, 0.5), rgba(99, 102, 241, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover .card-border, .feature:hover .card-border {
    opacity: 1;
}
.theme-light .service-card { background: linear-gradient(145deg, rgba(236, 240, 243, 0.8), rgba(224, 230, 236, 0.7)); border: 1px solid rgba(0, 0, 0, 0.05); }
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Why Us Section (Pillars of Trust) --- */
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: center; }
.feature {
    padding: 2.5rem 2rem;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.03) 0%, transparent 30%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.15), rgba(8, 47, 73, 0.1));
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}
.theme-light .feature { background: linear-gradient(145deg, rgba(236, 240, 243, 0.8), rgba(224, 230, 236, 0.7)); border: 1px solid rgba(0, 0, 0, 0.05); }

.pillar-icon-wrapper {
    height: 80px;
    margin-bottom: 1.5rem;
}
.pillar-icon {
    width: 80px;
    height: 80px;
}

/* --- UNIFIED ICON ANIMATION --- */
@keyframes icon-pulse {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}
.pillar-icon .pillar-shape, 
.pillar-icon .pillar-core,
.pillar-icon .humanity-head,
.pillar-icon .humanity-body,
.icon-growth .growth-chevron {
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}
.feature:hover .pillar-icon .pillar-core {
    animation: icon-pulse 0.8s ease-in-out;
}
.feature:hover .pillar-icon .pillar-shape {
    animation: icon-pulse 0.8s ease-in-out 0.1s;
}
.feature:hover .pillar-icon .humanity-head {
    animation: icon-pulse 0.8s ease-in-out;
}
.feature:hover .pillar-icon .humanity-body {
    animation: icon-pulse 0.8s ease-in-out 0.1s;
}
.feature:hover .icon-growth .growth-chevron:nth-child(1) {
    animation: icon-pulse 0.8s ease-in-out;
}
.feature:hover .icon-growth .growth-chevron:nth-child(2) {
    animation-delay: 0.1s;
    animation: icon-pulse 0.8s ease-in-out;
}
.feature:hover .icon-growth .growth-chevron:nth-child(3) {
    animation-delay: 0.2s;
    animation: icon-pulse 0.8s ease-in-out;
}


/* --- Signup Form --- */
.signup-form { max-width: 500px; margin: 0 auto; background: linear-gradient(145deg, rgba(15, 23, 42, 0.1), rgba(8, 47, 73, 0.05)); padding: 3rem; border-radius: 2rem; border: 1px solid rgba(99, 102, 241, 0.2); backdrop-filter: blur(20px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(99, 102, 241, 0.1); position: relative; overflow: hidden; z-index: 1; }
.signup-form::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent, rgba(16, 185, 129, 0.1), transparent); animation: rotate 10s linear infinite; z-index: -1; transition: opacity 0.3s ease; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.signup-form:focus-within::before { animation-play-state: paused; opacity: 0.5; }
.theme-light .signup-form { background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(230,235,240,0.6)); border: 1px solid rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.5rem; position: relative; }
label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--clr-text); opacity: 0.9; font-weight: 500; }
input[type="text"], input[type="email"] { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--clr-muted); border-radius: 0.5rem; background-color: rgba(0,0,0,0.2); color: var(--clr-text); transition: var(--transition); position: relative; z-index: 2; }
.theme-light input[type="text"], .theme-light input[type="email"] { background-color: rgba(255,255,255,0.8); }
.form-group .input-glow { position: absolute; top: 28px; left: -1px; right: -1px; bottom: -1px; border-radius: 0.5rem; background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary)); opacity: 0; transition: opacity 0.3s ease; z-index: 1; }
input[type="text"]:focus + .input-glow, input[type="email"]:focus + .input-glow { opacity: 1; }
input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: transparent; background-color: transparent; }
.checkbox-group { display: flex; align-items: center; gap: 0.75rem; }
.checkbox-group input[type="checkbox"] { opacity: 0; width: 0; height: 0; }
.checkbox-group label { margin: 0; cursor: pointer; display: flex; align-items: center; }
.checkbox-group label::before { content: ''; width: 20px; height: 20px; border: 1px solid var(--clr-muted); border-radius: 4px; background-color: rgba(0,0,0,0.2); margin-right: 0.75rem; transition: var(--transition); }
.checkbox-group input[type="checkbox"]:checked + label::before { background: var(--clr-primary); border-color: var(--clr-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 70%; }
.btn { background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary)); color: white; border: none; padding: 1rem 2.5rem; border-radius: 0.75rem; cursor: pointer; transition: var(--transition); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s ease; }
.btn:hover::before { left: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3); }
.success-message { background: var(--clr-secondary); color: white; padding: 1.5rem; border-radius: 1rem; margin-top: 2rem; text-align: center; font-size: 1.1rem; animation: fadeIn 0.5s ease; }
.error-message { background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(239, 68, 68, 0.1)); border: 1px solid var(--clr-error); color: #fecaca; padding: 1rem 1.5rem; border-radius: 1rem; margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer & Modals */
footer { background: rgba(0, 0, 0, 0.2); padding: 3rem 0; margin-top: 5rem; }
.theme-light footer { background: rgba(0, 0, 0, 0.05); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--clr-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--clr-primary); }
.modal { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--clr-bg); padding: 2rem 3rem; border-radius: 1rem; max-width: 650px; max-height: 80vh; overflow-y: auto; position: relative; border: 1px solid rgba(255,255,255,0.1); }
.modal-content h2, .modal-content h4 { color: var(--clr-primary); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.modal-content p, .modal-content li { margin-bottom: 1rem; line-height: 1.7; color: var(--clr-text); }
.modal-content ul { list-style-position: inside; padding-left: 1rem; }
.modal-content a { color: var(--clr-secondary); }
.close-modal { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--clr-text); font-size: 1.5rem; cursor: pointer; }

/* Cookie Banner & Back to Top */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--clr-bg); border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 2rem; display: none; z-index: 3000; }
.cookie-banner.active { display: flex; justify-content: space-between; align-items: center; }
.cookie-buttons { display: flex; gap: 1rem; }
#backToTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2500;
}
#backToTopBtn.visible { opacity: 1; transform: translateY(0); }
#backToTopBtn:hover { background: var(--clr-secondary); }

/* Responsive */
@media (max-width: 768px) {
    .nav-container { padding: 1rem; }
    .hero-content { padding: 1rem; }
    .services-grid { grid-template-columns: 1fr; max-width: 500px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .cookie-banner.active { flex-direction: column; gap: 1rem; text-align: center; }
    .modal-content { max-width: 90vw; padding: 1.5rem; }
    #backToTopBtn { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}
