:root {
    /* Light theme variables */
    --brand-blue: #2563eb;
    --light-blue: #60a5fa;
    --light-blue-bg: #f0f7ff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-700: #334155;
    --success-500: #22c55e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);

    /* Dark theme variables */
    --dark-bg: #1a1a1a;
    --dark-card-bg: #2d2d2d;
    --darker-bg: #242424;
    --dark-text: #f3f4f6;
    --dark-muted: #d1d5db;
    --dark-border: #404040;
    --dark-input-bg: #333333;
    --dark-hover: #404040;
    --dark-shadow: rgba(0, 0, 0, 0.3);
    --dark-disabled-bg: #383838;
    
    /* Theme variables - Light mode defaults */
    --text-color: var(--neutral-700);
    --text-muted: #6b7280;
    --card-bg: white;
    --input-bg: white;
    --border-color: var(--neutral-100);
    --hover-bg: var(--light-blue-bg);
    --disabled-bg: var(--neutral-100);
    --primary-color: var(--brand-blue);
    --primary-dark: #1d4ed8;
    --primary-light: var(--light-blue);
}

[data-theme="dark"] {
    --text-color: var(--dark-text);
    --text-muted: var(--dark-muted);
    --card-bg: var(--dark-card-bg);
    --input-bg: var(--dark-input-bg);
    --border-color: var(--dark-border);
    --hover-bg: var(--dark-hover);
    --disabled-bg: var(--dark-disabled-bg);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--dark-text);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    line-height: 1.6;
    padding-top: 70px;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar {
    background-color: rgba(29, 29, 29, 0.95);
    border-color: var(--dark-border);
}

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(147, 197, 253, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(29, 78, 216, 0.2) 100%);
}

.hero-shape {
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 50%;
    height: 70%;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-15deg);
    z-index: 0;
}

[data-theme="dark"] .hero-shape {
    background: var(--brand-blue);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

[data-theme="dark"] .hero h1 {
    background: linear-gradient(to right, var(--light-blue), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

[data-theme="dark"] .btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--dark-text);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--dark-bg);
}

.btn-outline {
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-outline {
    color: var(--light-blue);
    border-color: var(--light-blue);
}

[data-theme="dark"] .btn-outline:hover {
    background-color: var(--light-blue);
    color: var(--dark-bg);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

[data-theme="dark"] .section-title {
    color: var(--brand-blue);
}

.section-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
}

[data-theme="dark"] .section-subtitle {
    color: var(--light-blue);
}

.card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: var(--card-bg);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .card {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
    box-shadow: 0 4px 6px var(--dark-shadow);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 12px var(--dark-shadow);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

[data-theme="dark"] .card-icon {
    color: var(--light-blue);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--light-blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .feature-icon {
    background-color: rgba(96, 165, 250, 0.1);
    color: var(--light-blue);
}

.testimonial {
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    opacity: 0.1;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--primary-color);
}

[data-theme="dark"] .testimonial {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
    box-shadow: 0 4px 6px var(--dark-shadow);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    padding-left: 1rem;
}

.testimonial-author {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--text-color);
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

[data-theme="dark"] .testimonial-author {
    color: var(--dark-text);
}

[data-theme="dark"] .testimonial-role {
    color: var(--dark-muted);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
    box-shadow: 0 2px 4px var(--dark-shadow);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--dark-hover);
}

.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cta {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1e40af 100%);
}

.cta-shape {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 30%;
    height: 70%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-15deg);
    z-index: 0;
}

[data-theme="dark"] .cta-shape {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero illustration styles */
.hero-illustration {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

[data-theme="dark"] .hero-illustration {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1e40af 100%);
}

.hero-illustration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(-15deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

[data-theme="dark"] .hero-illustration::before {
    background: rgba(255, 255, 255, 0.05);
}

.hero-illustration img {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0.9;
}

[data-theme="dark"] .hero-illustration img {
    opacity: 0.9;
}

.hero-illustration:hover img {
    transform: scale(1.1);
}

/* Promo video styling */
.promo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.play-button {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hero-illustration:hover .play-button {
    opacity: 1;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-active .promo-video {
    opacity: 1;
    z-index: 3;
}

.video-active img {
    opacity: 0;
}

.video-active .play-button {
    opacity: 0;
    z-index: 4;
}

.video-active:hover .play-button {
    opacity: 1;
}

[data-theme="dark"] .play-button {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .play-button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.maximize-button {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hero-illustration:hover .maximize-button {
    opacity: 1;
}

.maximize-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

[data-theme="dark"] .maximize-button {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .maximize-button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-active .maximize-button {
    opacity: 1;
    z-index: 4;
}

.step-illustration {
    display: none;
}

/* Process flow styles */
.process-flow {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-step {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.process-step::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2rem;
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transform: translateX(-50%);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--card-bg);
    z-index: 1;
}

.process-content {
    margin-left: 2rem;
}

.process-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

[data-theme="dark"] .process-step {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
}

[data-theme="dark"] .process-step:hover {
    box-shadow: 0 8px 12px var(--dark-shadow);
}

[data-theme="dark"] .step-number {
    background: linear-gradient(135deg, var(--brand-blue), var(--light-blue));
    border-color: var(--dark-card-bg);
}

[data-theme="dark"] .process-content h3 {
    color: var(--light-blue);
}

[data-theme="dark"] .process-content p {
    color: var(--dark-muted);
}

[data-theme="dark"] .testimonial {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
    box-shadow: 0 4px 6px var(--dark-shadow);
}

[data-theme="dark"] .testimonial::before {
    color: var(--brand-blue);
    opacity: 0.15;
}

[data-theme="dark"] .testimonial-content p {
    color: var(--dark-muted);
}

[data-theme="dark"] .testimonial-author {
    color: var(--dark-text);
}

[data-theme="dark"] .testimonial-role {
    color: var(--dark-muted);
}

[data-theme="dark"] .card {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
    box-shadow: 0 4px 6px var(--dark-shadow);
}

[data-theme="dark"] .card-text,
[data-theme="dark"] .testimonial-content p {
    color: var(--dark-muted);
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .section-subtitle {
    color: var(--light-blue);
}

[data-theme="dark"] .section-title {
    color: var(--brand-blue);
}

[data-theme="dark"] .section.bg-light {
    background-color: var(--darker-bg) !important;
}

[data-theme="dark"] h4 {
    color: var(--light-blue);
}

[data-theme="dark"] p {
    color: var(--dark-muted);
}

/* Responsive video styling */
@media (max-width: 768px) {
    .hero-illustration {
        height: 250px;
    }
    
    .play-button {
        width: 48px;
        height: 48px;
    }
    
    .play-button svg {
        width: 32px;
        height: 32px;
    }
    
    .maximize-button {
        width: 32px;
        height: 32px;
    }
    
    .maximize-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .hero-illustration {
        height: 220px;
    }
    
    .play-button, .maximize-button {
        opacity: 0.9;
    }
    
    .hero-illustration img {
        width: 150px;
        height: 150px;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Top Navigation Bar Styles */
.top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 60px;
}

.nav-section {
    display: flex;
    align-items: center;
}

.nav-left {
    /* Specific styles for left section if needed */
}

.nav-right {
    /* Specific styles for right section if needed */
}

.nav-right > * {
    margin-left: 0.75rem;
}

.nav-right .btn {
    padding: 0.375rem 0.75rem;
}

.language-switcher-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.top-nav-bar .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    padding: 0.25rem;
    line-height: 1;
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.user-menu {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-color);
}

.user-menu-button:hover {
    background-color: var(--secondary-background-color);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.875rem;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1031;
    padding: 0.5rem 0;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.user-menu-item svg {
    margin-right: 0.75rem;
    opacity: 0.8;
}

.user-menu-item:hover {
    background-color: var(--secondary-background-color);
    color: var(--primary-color);
}

.user-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.auth-buttons .btn {
    font-size: 0.875rem;
}

/* Ensure debug toggle is visible if class 'debug-mode-active' is on html/body */
/* Actual display:none is on the button itself, debug-toggle.js handles visibility */ 