/* ------------------- */
/* --- CORPORATE THEME & BASE --- */
/* ------------------- */
:root {
    --bg-color: #f8f9fc;
    --bg-dark-section: #ffffff;
    --text-color: #4a5568;
    --heading-color: #1a202c;
    --primary-accent: #007bff; /* Confident Blue */
    --secondary-accent: #00d09c; /* Tech Green */
    --border-color: #e2e8f0;
    --shadow-md: 0 4px 10px -2px rgba(26, 32, 44, 0.05), 0 2px 4px -2px rgba(26, 32, 44, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(26, 32, 44, 0.1), 0 10px 10px -5px rgba(26, 32, 44, 0.04);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------- */
/* --- LAYOUT & TYPOGRAPHY --- */
/* ------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 120px 20px; }
h1, h2, h3, h4 { font-weight: 700; color: var(--heading-color); line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin-bottom: 80px; }
p { font-size: 1.1rem; max-width: 600px; }

.btn {
    display: inline-block;
    padding: 16px 38px;
    background-color: var(--primary-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--primary-accent);
    filter: brightness(1.1);
}

/* Reveal Animation on Scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ------------------- */
/* --- HEADER --- */
/* ------------------- */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; position: absolute; width: 100%; top: 0; left: 0; z-index: 100; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--heading-color); text-decoration: none; }
.logo span { color: var(--primary-accent); }

/* ------------------- */
/* --- HERO SECTION --- */
/* ------------------- */
#hero { padding-top: 180px; text-align: center; }
#hero h1 { max-width: 800px; margin: 0 auto; }
#hero p { margin: 20px auto 40px; }

.hero-visual-abstract {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hub {
    width: 120px; height: 120px;
    background: var(--bg-dark-section);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.node {
    width: 50px; height: 50px;
    background: var(--bg-dark-section);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 50%;
    position: absolute;
}
.line {
    position: absolute;
    height: 1px;
    background: var(--border-color);
    transform-origin: left center;
}

/* ------------------- */
/* --- PROBLEMS VS SOLUTION BLOCK --- */
/* ------------------- */
#problems-solution { background: var(--bg-dark-section); }
.problem-solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-visual { height: 60px; margin-bottom: 20px; }

/* Animated Visuals */
.costs-visual { display: flex; gap: 5px; align-items: flex-end; height: 100%; }
.costs-visual .bar { width: 15px; background: #fecaca; border-radius: 4px; animation: shrink 2s infinite ease-in-out alternate; }
@keyframes shrink { from { transform: scaleY(1); } to { transform: scaleY(0.4); } }

.control-visual { position: relative; }
.control-visual .line { position: absolute; height: 2px; background: #a5b4fc; border-radius: 1px; animation: chaos 3s infinite ease-in-out alternate; }
@keyframes chaos { from { transform: rotate(-10deg) scaleX(0.8); } to { transform: rotate(10deg) scaleX(1); } }

.analytics-visual { display: flex; gap: 5px; align-items: flex-end; height: 100%;}
/* --- FIX START --- */
.analytics-visual .bar {
    flex: 1; /* This replaces "width: 100%" to allow bars to share space */
    background: #c7d2fe;
    border-radius: 4px 4px 0 0;
    animation: dance 2s infinite ease-in-out;
}
/* --- FIX END --- */
@keyframes dance { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }

/* ------------------- */
/* --- HOW IT WORKS BLOCK --- */
/* ------------------- */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.step-card { text-align: center; }
.step-visual { height: 120px; background: var(--bg-dark-section); border: 1px solid var(--border-color); border-radius: 12px; margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: center; }
.step-card h3 { font-size: 1.5rem; }
.step-number { font-size: 1.1rem; font-weight: 600; color: var(--primary-accent); margin-bottom: 10px; }

/* ------------------- */
/* --- BENEFITS (ROI) BLOCK --- */
/* ------------------- */
#benefits { background: var(--bg-dark-section); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.benefit-card { padding: 30px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; text-align: center; }
.benefit-card h3 { font-size: 1.5rem; }
.benefit-icon { font-size: 3rem; margin-bottom: 15px; display: inline-block; }

/* ------------------- */
/* --- FINAL CTA --- */
/* ------------------- */
#final-cta .cta-box {
    text-align: center;
    padding: 80px 40px;
    background-image: linear-gradient(45deg, var(--heading-color), #2d3748);
    border-radius: 20px;
}
#final-cta h2 { color: #fff; }
#final-cta p { color: #a0aec0; margin: 20px auto 40px auto; }

/* ------------------- */
/* --- FOOTER --- */
/* ------------------- */
footer { text-align: center; padding: 50px 20px; font-size: 0.9rem; }

/* ------------------- */
/* --- RESPONSIVENESS --- */
/* ------------------- */
@media (max-width: 992px) {
    .hero-visual-abstract { display: none; }
}
@media (max-width: 768px) {
    .container { padding: 80px 20px; }
    h2 { margin-bottom: 60px; }
    .problem-solution-grid, .process-steps, .benefits-grid { grid-template-columns: 1fr; gap: 50px; }
}
