:root {
    --bg-dark: #050816;
    --bg-light: #0B1120;
    --primary: #3B82F6;
    --secondary: #06B6D4;
    --highlight: #8B5CF6;
    --text-main: #FFFFFF;
    --text-muted: #CBD5E1;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    position: relative;
}

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

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.5;
    padding: 0.2em 0;
}

/* Global Progress Line */
.progress-container {
    position: absolute;
    top: 100px; /* Start below the fixed navbar */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0; /* Keep it behind text */
    pointer-events: none;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh; /* Start with some length so it's immediately visible */
    background: linear-gradient(to bottom, #FBBF24, #F59E0B, #EA580C);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6), 0 0 30px rgba(234, 88, 12, 0.4);
    z-index: 1;
}

.progress-line::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Adjust for taller arrow */
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent; /* Wider */
    border-right: 10px solid transparent;
    border-top: 18px solid #EA580C; /* Taller */
    filter: drop-shadow(0 0 10px #EA580C);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3); /* Orange border */
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.logo img {
    display: block;
}
.logo img:last-child {
    margin-top: 0.25rem;
}
.logo-velo { color: #2563EB; }
.logo-xen { color: #7C3AED; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    padding: 0;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.nav-cta {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #F59E0B;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #F59E0B !important;
}

.nav-cta:hover {
    background: #F59E0B;
    color: var(--text-main) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

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

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

/* Stage Sections (Common) */
.stage-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 5%;
    z-index: 10;
    gap: 4rem; /* Prevents schemas from touching the center line */
}

.stage-section:nth-child(even) {
    flex-direction: row-reverse;
}

.content-wrapper {
    flex: 1;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

#hero .content-wrapper, #growth .content-wrapper {
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 3rem;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
    margin: 0 auto;
}

.visual-container {
    flex: 1;
    max-width: 500px; /* Enforce symmetry with content-wrapper */
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-label {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.2rem 0.8rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.05);
}

.service-list {
    margin-top: 2rem;
}

.service-item {
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Hero Section */
#hero {
    flex-direction: column;
    text-align: center;
    padding-top: 150px;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Complementary color theory: Warm Amber to contrast the cool blue theme */
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.25) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    overflow: hidden;
}

.background-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 40%);
    animation: gridLight 20s linear infinite;
    z-index: -1;
}

@keyframes gridLight {
    0% { transform: translate(10%, 10%); }
    25% { transform: translate(30%, 20%); }
    50% { transform: translate(10%, 40%); }
    75% { transform: translate(-10%, 20%); }
    100% { transform: translate(10%, 10%); }
}

.wireframe-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-svg {
    width: 80%;
    max-width: 800px;
}

/* --- Hero Layout --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 20px;
    position: relative;
    z-index: 10;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 920px;
    gap: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.hero-left {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
}

.hero-label {
    display: inline-block;
    color: #06B6D4;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title-new {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.text-blue {
    color: #3B82F6;
}

.hero-ctas-new {
    display: flex;
    gap: 5rem;
}

.cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cta-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.primary-circle {
    background: linear-gradient(135deg, #3B82F6, #7C3AED);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.secondary-circle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.secondary-circle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-icon {
    width: 32px;
    height: 32px;
    stroke: #FFFFFF;
    fill: none;
    stroke-width: 1.5;
}

.cta-text {
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.isometric-stack {
    width: 100%;
    max-width: 280px; /* Reduced from 320px so it fits vertically without scrolling */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
/* ------------------------ */

/* Development Section (Dashboard) */
.mockup-wrapper {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: rgba(11, 17, 32, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    padding: 15px;
    gap: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.m-sidebar {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-item {
    height: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.m-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.m-top-panel {
    height: 120px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.m-bar {
    height: 8px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.m-bar.half { width: 60%; }

.m-bottom-panel {
    display: flex;
    gap: 15px;
    flex: 1;
}

.m-card {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Intelligence Section (Application with AI) */
.active-app {
    background: rgba(11, 17, 32, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(59, 130, 246, 0.2);
}
.active-app .m-item.highlight {
    background: rgba(59, 130, 246, 0.2);
    border-left: 3px solid var(--primary);
}
.active-app .m-top-panel {
    background: rgba(59, 130, 246, 0.05);
}
.data-network {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.ui-card-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Growth Section */
.growth-visual-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.growth-charts {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 250px;
    width: 100%;
    margin-bottom: 2rem;
}

.chart-bar {
    width: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px 6px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.chart-bar.highlight {
    background: linear-gradient(to top, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.metrics-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric span {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.metric p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.8rem;
}

/* Premium Sections (Services, About, Contact) */
.premium-section {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
}

.alternate-bg {
    background: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: rgba(11, 17, 32, 0.7);
    -webkit-text-fill-color: var(--text-main); /* Fixes the missing text issue! */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 4rem;
    border-radius: 100px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(11, 17, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

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

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--text-main);
}

/* Contact Section */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 3rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(5, 8, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    background: rgba(5, 8, 22, 0.8);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 1 !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .stage-section, .stage-section:nth-child(even) {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }
    
    .content-wrapper {
        text-align: center;
    }
    
    .text-right {
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links a {
        margin: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
    
    .progress-container {
        display: none;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 5%;
        left: 5%;
        background: rgba(5, 8, 22, 0.96);
        flex-direction: column;
        align-items: flex-end;
        padding: 1.2rem 1.5rem;
        border-radius: 14px;
        gap: 1rem;
        z-index: 200;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        width: 100%;
        text-align: right;
    }

    #strategyVisual,
    #developmentVisual,
    #intelligenceVisual {
        display: none !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links a {
        margin: 0 1rem;
    }
    
    .metrics-grid {
        gap: 2rem;
    }
    
    .metric span {
        font-size: 2.5rem;
    }
}
