:root {
    --primary-color: #009ef7; /* A bright, tech blue */
    --secondary-color: #f1416c; /* Accent color from Metronic/Bootstrap often used */
    --dark-color: #181c32;
    --light-color: #ffffff;
    --gray-100: #f5f8fa;
    --gray-200: #eff2f5;
    --gray-500: #a1a5b7;
    --gray-800: #3f4254;
    
    --font-family: 'Inter', sans-serif;
    
    --shadow-sm: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem 1rem rgba(0, 0, 0, 0.1);
    
    --border-radius: 0.75rem;
}

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

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; letter-spacing: -1px; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.highlight {
    background: linear-gradient(
        to right, 
        var(--primary-color) 0%, 
        #00c6ff 25%, 
        #ffffff 50%, 
        #00c6ff 75%, 
        var(--primary-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Removed the ::after underline style for cleaner look */

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 158, 247, 0.3);
    animation: pulse-glow 3s infinite;
}

.btn-primary:hover {
    background-color: #0086d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 158, 247, 0.4);
    animation: none;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 158, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 158, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 158, 247, 0); }
}

.btn-secondary {
    background-color: var(--gray-100);
    color: var(--dark-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--gray-200);
    color: var(--primary-color);
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo-img {
    height: 50px; /* Increased logo size */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-800);
}

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

.login-link {
    margin-right: 5px;
    font-weight: 600 !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px; /* Adjusted padding */
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px; /* Ensure vertical height */
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Adds depth for 3D transforms if needed */
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.08), 
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 400px;
    display: flex;
    overflow: visible; /* Allow floating cards to pop out */
    z-index: 1;
}

.glow-effect {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 158, 247, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Mock UI */
.mock-sidebar {
    width: 70px;
    background: white;
    border-right: 1px solid rgba(0,0,0,0.03);
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.mock-brand {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.mock-item {
    width: 20px;
    height: 20px;
    background: var(--gray-200);
    border-radius: 6px;
    transition: all 0.3s;
}

.mock-item.active { background: var(--primary-color); opacity: 0.5; }

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fbfcfe; /* Very subtle blue-white */
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.mock-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.mock-title { font-weight: 700; font-size: 1.1rem; color: var(--dark-color); }
.mock-profile-group { display: flex; gap: 15px; }
.mock-search-bar { width: 100px; height: 10px; background: var(--gray-200); border-radius: 5px; }
.mock-avatar { width: 30px; height: 30px; background: var(--gray-200); border-radius: 50%; }

.mock-body {
    padding: 0 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Charts */
.chart-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    flex: 2;
    display: flex;
    flex-direction: column;
}

.section-title { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 15px; font-weight: 600; }

.mock-chart-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.mock-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.chart-bar {
    width: 12%;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0,158,247,0.4) 100%);
    border-radius: 6px;
    height: 0; /* Start at 0 for animation */
    animation: growUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0.8;
}

.chart-bar.highlight {
    background: linear-gradient(180deg, var(--secondary-color) 0%, rgba(241,65,108,0.4) 100%);
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes growUp {
    to { height: var(--h); }
}

.infographic-row {
    display: flex;
    gap: 20px;
    flex: 1;
}

.info-box {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-title { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 10px; }
.mini-bar { height: 6px; width: 100%; background: var(--gray-200); border-radius: 3px; position: relative; }
.mini-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 60%; background: #50cd89; border-radius: 3px; }
.mini-bar.width-70::after { width: 70%; background: #ffc700; }


/* Enhanced Stat Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: absolute;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
}

.card-1 {
    top: 40px;
    right: -40px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    padding: 25px;
    min-width: 240px;
}

.card-2 {
    bottom: 50px;
    left: -30px;
    z-index: 2;
    animation: float 6s ease-in-out infinite 2.5s;
    min-width: 220px;
}

/* Card 1 Specifics */
.revenue-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 158, 247, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 2px 0 5px;
    line-height: 1;
}

.trend-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card .trend.positive {
    color: #50cd89;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(80, 205, 137, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Card 2 Specifics */
.circular-progress {
    position: relative;
    width: 60px;
    height: 60px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 1.5s ease-out forwards;
    transform-origin: center;
    transform: rotate(-90deg); /* Start from top */
}

@keyframes progress {
    0% { stroke-dasharray: 0, 100; }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-color);
}

.sub-text {
    font-size: 0.8rem;
    color: #50cd89;
    font-weight: 500;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.background-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,158,247,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

/* General Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Problems Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

/* Solutions */
.solutions {
    background-color: var(--gray-100);
}

.solution-models {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.model-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    flex: 1;
    min-width: 350px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.highlight-card {
    border: 2px solid var(--primary-color);
}

.model-card .badge {
    background: var(--gray-200);
    color: var(--gray-800);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.highlight-card .badge {
    background: var(--primary-color);
    color: white;
}

.model-card .usp {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--gray-800);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #50cd89;
    font-weight: bold;
}

.platform-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Features Split */
.features .row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.features .col-text {
    flex: 1;
}

.features .col-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-item {
    margin-top: 30px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-graphic {
    width: 400px;
    height: 400px;
    position: relative;
}

.feature-graphic .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.c1 { 
    width: 300px; height: 300px; background: #e1f0ff; top: 0; right: 0; 
    animation: float-medium 8s ease-in-out infinite;
}
.c2 { 
    width: 200px; height: 200px; background: #cce5ff; bottom: 0; left: 20px; 
    animation: float-slow 10s ease-in-out infinite reverse;
}
.c3 { 
    width: 100px; height: 100px; background: #009ef7; top: 40%; right: 40%; opacity: 0.2; 
    animation: float-medium 6s ease-in-out infinite 1s;
}

.floating-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: float-slow 7s ease-in-out infinite;
}

.floating-ui span {
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    transition: transform 0.3s;
}

.floating-ui span:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

@keyframes float-slow {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-cta {
    text-align: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-cta h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 2.8rem;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-cta .btn-large {
    margin-top: 10px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--gray-500);
    margin-top: 10px;
}

.links a {
    color: var(--gray-500);
    margin-left: 20px;
}

.links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Demo Request Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: white;
    margin: auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--gray-100);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--secondary-color);
    background-color: #fff5f8;
}

.form-group input.is-valid,
.form-group textarea.is-valid {
    border-color: #50cd89;
    background-color: #f1faff;
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Alert Styles */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #e8fff3;
    border: 1px solid #50cd89;
    display: flex;
    align-items: flex-start;
}

.alert-error {
    background-color: #fff5f8;
    border: 1px solid var(--secondary-color);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #50cd89;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.alert-content p {
    color: var(--gray-800);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.alert-separator {
    height: 1px;
    background-color: #50cd89;
    opacity: 0.3;
    margin: 15px 0;
}

.countdown-text {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-badge {
    background-color: #50cd89;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.alert-text {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.form-actions .btn-large {
    width: 100%;
    padding: 14px 30px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text p { margin: 0 auto 2.5rem; }
    .hero-image { width: 100%; display: flex; justify-content: center; }
    .dashboard-preview { width: 90%; }
    
    .features .row { flex-direction: column-reverse; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--dark-color);
        transition: all 0.3s ease;
    }
    
    h1 { font-size: 2.2rem; }
    .hero { padding-top: 120px; }
}