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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

:root {
    /* Colors - Soft Blue Theme */
    --primary: #4461F2;
    --primary-dark: #3651D9;
    --secondary: #7B94F5;
    --accent: #A8C5FF;
    --dark: #1E293B;
    --gray-50: #EFF1F5;
    /* Updated Soft Gray Background */
    --gray-100: #E2E8F0;
    --gray-200: #CBD5E1;
    --gray-300: #94A3B8;
    --gray-600: #64748B;
    --gray-700: #475569;
    --gray-900: #0F172A;

    /* Gradients - Soft Blue Theme */
    --gradient-primary: linear-gradient(135deg, #4461F2 0%, #7B94F5 100%);
    --gradient-secondary: linear-gradient(135deg, #7B94F5 0%, #A8C5FF 100%);
    --gradient-accent: linear-gradient(135deg, #4461F2 0%, #A8C5FF 100%);

    /* Shadows with soft blue tint */
    --shadow-sm: 0 1px 2px 0 rgba(68, 97, 242, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(68, 97, 242, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(68, 97, 242, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(68, 97, 242, 0.2);

    /* Typography - SF Pro (Apple System Font) */
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Smooth Scrolling for Anchor Navigation */
html {
    scroll-behavior: smooth;
}

/* Scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 90px;
    /* Account for fixed navbar height */
}


body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--gray-50);
    /* Applied Soft Gray Background */
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    background: rgba(239, 241, 245, 0.8);
    /* Matches new background with blur */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    /* Lighter border for contrast */
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    position: relative;
    /* Anchor for mega menu */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Active Section Highlighting */
.nav-links a.active {
    color: var(--primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}


.nav-actions {
    display: none;
    gap: 12px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(68, 97, 242, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(68, 97, 242, 0.5);
}

.btn-secondary {
    background: white;
    /* Changed to white for card effect */
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 60px 0 60px;
    background: transparent;
    /* Removed gradient to show body background */
    overflow: hidden;
}

.hero-content {
    display: grid;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
    letter-spacing: -0.022em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-note {
    color: var(--gray-600);
    font-size: 14px;
}

/* Dashboard Preview */
.hero-image {
    position: relative;
}

.dashboard-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.dashboard-header {
    background: var(--gray-50);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.dashboard-content {
    padding: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--gray-50);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.neutral {
    color: var(--gray-600);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
}

.activity-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.activity-icon.blue {
    background: #3B82F6;
}

.activity-icon.green {
    background: #10B981;
}

.activity-icon.purple {
    background: #8B5CF6;
}

.activity-text {
    font-size: 14px;
    color: var(--gray-700);
}

/* Features Section */
.features {
    padding: 80px 0;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
    letter-spacing: -0.011em;
}

.features-grid {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 20px 20px 40px;
    /* Bottom padding for shadow/hover space */
    margin: 0 -20px;
    /* Negative margin to allow full-width scroll on mobile */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.features-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.feature-card {
    min-width: 350px;
    max-width: 350px;
    padding: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

.feature-card:active {
    cursor: grabbing;
}



.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-icon.purple {
    background: linear-gradient(135deg, #4461F2 0%, #7B94F5 100%);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

.feature-icon.green {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.feature-icon.pink {
    background: linear-gradient(135deg, #EC4899 0%, #F9A8D4 100%);
}

.feature-icon.cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
    letter-spacing: -0.015em;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    letter-spacing: -0.011em;
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.solutions-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    margin-top: 48px;
}

/* Category Buttons (Left Column) */
.solutions-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solution-category-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: left;
}

.solution-category-btn svg {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: color 0.2s;
}

.solution-category-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.solution-category-btn.active {
    background: linear-gradient(135deg, #4461F2 0%, #5A74F8 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(68, 97, 242, 0.35);
}

.solution-category-btn.active svg {
    color: white;
}

/* Feature Cards Grid (Right Column) */
.solutions-features {
    position: relative;
}

.solution-feature-group {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

.solution-feature-group.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.solution-feature-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.solution-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.solution-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(68, 97, 242, 0.1) 0%, rgba(123, 148, 245, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.solution-feature-content h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    letter-spacing: -0.015em;
}

.solution-feature-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.011em;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #4461F2 0%, #5A74F8 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    letter-spacing: -0.011em;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #242838;
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white !important;
    text-decoration: none;
}

.footer-logo .logo-image {
    width: 64px;
    height: 64px;
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-actions {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Solutions Section Mobile */
    .solutions-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .solutions-categories {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .solutions-categories::-webkit-scrollbar {
        display: none;
    }

    .solution-category-btn {
        min-width: 140px;
        flex-shrink: 0;
    }

    .solution-feature-group {
        grid-template-columns: 1fr;
    }

}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 20, 30, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 480px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

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

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.required {
    color: #EF4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(68, 97, 242, 0.1);
}

.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-input-group select {
    width: 110px;
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
    border-radius: 8px !important;
}

.form-helper {
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 12px;
}

/* Form Validation Errors */
.form-error {
    display: none;
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #EF4444;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success State */
.modal-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-success h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-submessage {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

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

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

/* Modal Responsive */
@media (max-width: 640px) {
    .modal-container {
        width: 95%;
        padding: 24px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-input-group select {
        width: 100%;
    }
}

/* Dropdown Styles */
.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.chevron {
    transition: transform 0.2s ease;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 260px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    list-style: none;
    /* Ensure no bullets */
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(4px);
}

/* Mega Dropdown Styles */
.mega-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #F8FAFF;
    min-width: 680px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* CSS Hover Disabled: State is controlled entirely by JS */
/* .mega-dropdown:hover .mega-dropdown-panel rule is intentionally omitted */

.mega-dropdown-panel.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.mega-dropdown-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
}

/* Category Selector (Left Column) */
.mega-dropdown-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: left;
    width: 100%;
}

.mega-category-item svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.mega-category-item:hover {
    background: rgba(68, 97, 242, 0.06);
    color: var(--primary);
}

.mega-category-item:hover svg {
    color: var(--primary);
}

.mega-category-item.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(68, 97, 242, 0.15);
}

.mega-category-item.active svg {
    color: var(--primary);
}

/* Feature List (Right Column) */
.mega-dropdown-features {
    position: relative;
    min-height: 300px;
}

.mega-feature-group {
    display: grid;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

.mega-dropdown-panel.active .mega-feature-group.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
}

.mega-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.mega-feature-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mega-feature-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 97, 242, 0.08);
    border-radius: 8px;
    color: var(--primary);
}

.mega-feature-icon svg {
    width: 20px;
    height: 20px;
}

.mega-feature-content {
    flex: 1;
}

.mega-feature-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.mega-feature-content p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Integrations Section Styles */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* Tablet: 3 cards per row */
@media (max-width: 1199px) {
    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 cards per row */
@media (max-width: 767px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.integration-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    top: 0;
}

.integration-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(68, 97, 242, 0.1);
    border-color: var(--primary);
    z-index: 1;
}

.integration-logo-wrapper {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


.integration-logo-wrapper img,
.integration-logo-wrapper svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.integration-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 8px 0;
}

.integration-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.integration-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.integration-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.integration-card:hover .integration-link svg {
    transform: translateX(3px);
}

/* Integration Detail Layout */
.integration-detail-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 40px;
}

.integration-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

.detail-section p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.benefit-list,
.step-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 16px;
}

.benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.benefit-item svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 4px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--dark);
}

@media (max-width: 900px) {
    .integration-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}