/* Variables */
:root {
    --bg-color: #FAFAFA;
    --bg-light: #ffffff;
    --text-primary: #1D242B;
    --text-secondary: #475569;
    --accent-1: #0077C0; /* Primary */
    --accent-2: #C7EEFF; /* Highlight */
    --accent-hover: #005c99;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); }
p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.z-blue-text { color: var(--accent-1); }

/* Buttons */

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
    .text-right { text-align: left; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.z-blue { color: var(--accent-1); }
.d-dark { color: var(--text-primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) { 
    font-weight: 500; 
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--accent-1); }

/* Language Toggle Button */
.lang-toggle {
    background: transparent;
    border: none;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-toggle:hover {
    background: var(--bg-light);
    color: var(--accent-1);
}

/* Theme Customizer Panel */
.theme-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.theme-toggle {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}
.theme-toggle:hover {
    transform: rotate(90deg);
}

.theme-content {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    margin-bottom: 1rem;
    width: 250px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border-color);
}
.theme-panel.open .theme-content {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.theme-content h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.color-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.color-control label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.color-control input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}
.color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-control input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.font-select {
    width: 60%;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    background-color: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
}
.reset-btn { width: 100%; margin-top: 1rem; }

/* Mobile Hamburger Menu icon (hidden on desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        text-align: center;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    /* Move Theme picker relative on mobile */
    .theme-picker {
        margin: 0 auto;
    }
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Softer, premium SaaS look */
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem; /* Standard padding fallback */
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 6px; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

.btn-primary {
    background: var(--accent-1);
    color: white;
    border-color: var(--accent-1);
    box-shadow: 0 4px 14px 0 rgba(0, 71, 171, 0.25);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--text-secondary);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-2);
    border: 1px solid var(--accent-2);
    border-radius: 999px;
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Social Proof Stats */
.social-proof {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
}
.proof-stats h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}
.proof-stats p {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Sections */
section { padding: 5rem 0; }

@media (min-width: 768px) {
    section { padding: 7rem 0; }
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 4rem;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

@media (max-width: 600px) {
    .hero-actions { flex-direction: column; }
}

/* Abstract Minimal Dashboard Graphic in Hero */
.hero-graphic {
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.dashboard-mockup {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotateX(5deg) translateY(20px);
    opacity: 0.95;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dashboard-mockup:hover {
    transform: rotateX(0deg) translateY(0);
}

.mockup-header {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.grid-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: #fdfdfd;
}

@media (max-width: 600px) {
    .grid-dashboard {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
}

.chart-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.chart-header { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 500; }
.chart-value { font-size: 2rem; font-weight: 800; color: var(--accent-1); margin-bottom: 1rem; }
.chart-line { height: 4px; background: linear-gradient(90deg, var(--accent-1), rgba(0, 71, 171, 0.2)); border-radius: 2px; width: 80%; }
.progress-bar { height: 8px; background: var(--bg-light); border-radius: 4px; overflow: hidden; border: 1px solid var(--border-color); }
.progress-fill { height: 100%; background: var(--accent-2); width: 65%; border-radius: 4px; }

/* How It Works & Workflow Diagram */
.how-it-works {
    padding: 6rem 0;
}
.workflow-diagram {
    position: relative;
    padding-top: 3rem;
}
.workflow-step {
    padding: 2rem;
    position: relative;
    z-index: 2;
}
.workflow-diagram::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 119, 192, 0.1), var(--accent-1), rgba(0, 119, 192, 0.1));
    z-index: 1;
}
@media (max-width: 768px) {
    .workflow-diagram::before {
        display: none;
    }
}
.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 119, 192, 0.2);
}

/* Services / Solutions */
.section-header {
    max-width: 600px;
    margin-bottom: 4rem;
}

.clean-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.clean-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(0, 71, 171, 0.3);
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}
.card-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0%; height: 2px;
    background: var(--accent-1); transition: width 0.3s ease;
}
.card-link:hover::after { width: 100%; }

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--accent-2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-wrapper {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 5rem 2rem;
    background-image: radial-gradient(circle at top right, rgba(0, 71, 171, 0.03), transparent 40%);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.cta-wrapper p { max-width: 500px; margin: 0 auto 2.5rem; }

.cta-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

@media (min-width: 600px) {
    .cta-form {
        flex-direction: row;
        gap: 0.5rem;
    }
}

.clean-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.clean-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: white;
}

.footer-info p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links-small a { font-size: 0.875rem; color: var(--text-secondary); margin-left: 1rem; }
.footer-links-small a:hover { color: var(--accent-1); }

/* Animations - Smoother and faster than before */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

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