/**
 * Byoosi.com Complete Website Stylesheet
 * Combined theme, layout, and component styles
 * Version: 1.0.0
 */

/* ======= Google Fonts ======= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ======= CSS Variables ======= */
:root {
    /* Primary Brand Colors */
    --primary-purple: #6A2B82;
    --primary-purple-rgb: 106, 43, 130;
    --primary-purple-dark: #3d1452;
    --primary-purple-dark-rgb: 61, 20, 82;
    --light-purple: #F0E6F5;
    --text-purple: #4A1A5A;

    /* Secondary Colors */
    --light-grey: #F5F7FA;
    --soft-grey: #E9ECF0;
    --dark-grey: #1c1c24;
    --dark-grey-rgb: 28, 28, 36;

    /* Modern Light Theme Colors */
    --modern-light: #ffffff;
    --modern-light-2: #f5f7ff;
    --modern-light-3: #edf0ff;
    --modern-text: #333366;
    --modern-accent: #6c38ff;
    --modern-accent-2: #38caff;
    --modern-accent-rgb: 108, 56, 255;
    --modern-accent-2-rgb: 56, 202, 255;

    /* Byoosi Brand Colors */
    --byoosi-green: #006937;
    --byoosi-green-rgb: 0, 105, 55;
    --byoosi-red: #E31E24;
    --byoosi-red-rgb: 227, 30, 36;
    --byoosi-yellow: #FCD116;
    --byoosi-yellow-rgb: 252, 209, 22;
    --byoosi-blue: #3A75C4;
    --byoosi-blue-rgb: 58, 117, 196;
    --byoosi-blue-dark: #25548f;
    --byoosi-blue-dark-rgb: 37, 84, 143;
    --byoosi-orange: #F7941D;
    --byoosi-orange-rgb: 247, 148, 29;

    /* Neon Accent Colors */
    --neon-blue: #00f7ff;
    --neon-blue-rgb: 0, 247, 255;
    --neon-purple: #d400ff;
    --neon-purple-rgb: 212, 0, 255;
    --neon-green: #00ff8a;
    --neon-green-rgb: 0, 255, 138;
    --neon-pink: #ff0099;
    --neon-pink-rgb: 255, 0, 153;

    /* Semantic Colors */
    --primary-color: var(--primary-purple);
    --secondary-color: var(--byoosi-blue);
    --success-color: var(--byoosi-green);
    --warning-color: var(--byoosi-orange);
    --danger-color: var(--byoosi-red);

    /* Background Colors */
    --light-bg: var(--light-grey);
    --dark-bg: var(--dark-grey);
    --text-light: #ffffff;
    --text-dark: var(--text-purple);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--byoosi-blue), var(--primary-purple));
    --gradient-secondary: linear-gradient(135deg, var(--byoosi-blue-dark), var(--primary-purple-dark));
    --gradient-hero: linear-gradient(135deg, var(--byoosi-blue), var(--primary-purple), var(--byoosi-green));
    --gradient-modern: linear-gradient(90deg, var(--modern-accent), var(--modern-accent-2));
    --gradient-light: linear-gradient(135deg, var(--modern-light-2), var(--modern-light-3));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25);
    --shadow-modern: 0 8px 32px rgba(var(--modern-accent-rgb), 0.07);
    --shadow-soft: 0 10px 30px rgba(var(--modern-accent-rgb), 0.08);
    --glow-effect: 0 0 15px rgba(var(--modern-accent-rgb), 0.2);

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

/* ======= Reset & Base Styles ======= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix horizontal scrollbar on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container, .container-fluid {
    max-width: 100%;
}

/* Ensure header containers don't clip dropdowns */
.byoosi-header .container {
    overflow: visible !important;
}

/* Only hide overflow on main content areas, not header */
main .container, section .container, footer .container {
    overflow-x: hidden;
}

/* Ensure rows don't cause overflow */
.row {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 768px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .col, [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Fix hero sections on mobile */
    .hero-section, .page-hero, .ai-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix cards and boxes on mobile */
    .feature-box, .pricing-card, .module-card, .benefit-card {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    /* Fix text overflow */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix images */
    img {
        max-width: 100%;
        height: auto;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-purple-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ======= Typography ======= */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(26, 26, 26, 0.8);
    margin-bottom: 3rem;
}

.modern-title {
    font-weight: 800;
    color: var(--modern-text);
}

.modern-gradient-text {
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.modern-divider {
    width: 150px;
    height: 3px;
    background: var(--gradient-modern);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* ======= Header Styles ======= */
.byoosi-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.byoosi-header .navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.byoosi-header .navbar-brand {
    margin-right: 20px;
}

.byoosi-header .navbar-collapse {
    flex-grow: 0;
}

.byoosi-header .navbar-nav {
    align-items: center;
}

.byoosi-header .navbar-nav .nav-item:last-child {
    margin-left: 10px;
}

@media (max-width: 991px) {
    .byoosi-header .navbar .container {
        justify-content: space-between;
    }
    .byoosi-header .navbar-brand {
        margin-right: 0;
    }
}

.byoosi-header.sticky,
.byoosi-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.98);
}

.byoosi-logo {
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--primary-color);
}

/* ======= Buttons ======= */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-purple-rgb), 0.3);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    border-color: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-purple-rgb), 0.5);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-purple-rgb), 0.3);
}

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

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-modern {
    background-color: var(--modern-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius-xl);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-effect);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(var(--modern-accent-rgb), 0.4);
    color: white;
}

.btn-modern-gradient {
    background: var(--gradient-modern);
    color: white;
    border: none;
    border-radius: var(--border-radius-xl);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-effect);
}

.btn-modern-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(var(--modern-accent-2-rgb), 0.4);
    color: white;
}

/* ======= Cards ======= */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.feature-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modern-card {
    background-color: var(--modern-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-modern);
    padding: 1.5rem;
    border: 1px solid var(--modern-light-3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

/* ======= Hero Section ======= */
.hero-section {
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
    color: var(--text-light);
}

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow: hidden;
    z-index: 0;
}

.animated-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6c38ff 0%, #38caff 100%);
    top: -250px;
    right: -100px;
    filter: blur(80px);
    animation: float-slow 15s ease-in-out infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #38caff 0%, #6c38ff 100%);
    bottom: -150px;
    left: -100px;
    filter: blur(60px);
    animation: float-slow 18s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #6A2B82 0%, #3A75C4 100%);
    top: 40%;
    left: 15%;
    filter: blur(50px);
    opacity: 0.3;
    animation: float-slow 12s ease-in-out infinite alternate;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(5deg); }
}

.hero-container {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    padding-right: 60px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(108, 56, 255, 0.08);
    color: #6c38ff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(108, 56, 255, 0.1);
    animation: badge-pulse 2s infinite alternate;
}

.hero-badge i {
    margin-right: 8px;
}

@keyframes badge-pulse {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(108, 56, 255, 0.1); }
    100% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(108, 56, 255, 0.2); }
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.hero-headline .regular-text {
    color: #1f1f5c;
}

.hero-headline .gradient-text {
    background: linear-gradient(to right, #6c38ff, #38caff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: calc(50% - 10px);
}

.hero-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #6c38ff;
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c38ff, #38caff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature-icon i {
    color: white;
    font-size: 18px;
}

.hero-feature-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333366;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.btn-primary-action {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6c38ff, #38caff);
    color: white;
    border: none;
    border-radius: 100px;
    box-shadow: 0 10px 25px rgba(108, 56, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 56, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-action {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: #6c38ff;
    border: 1px solid rgba(108, 56, 255, 0.2);
    border-radius: 100px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(108, 56, 255, 0.05);
    color: #6c38ff;
    text-decoration: none;
}

/* ======= Module Showcase ======= */
.module-showcase {
    position: relative;
    width: 100%;
    z-index: 100;
    height: 150px;
    margin-bottom: 30px;
}

.module-slide {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(108, 56, 255, 0.3);
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.module-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: pulse-module 3s infinite alternate;
}

@keyframes pulse-module {
    0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); transform: translateY(0) scale(1); }
    100% { box-shadow: 0 25px 50px rgba(108, 56, 255, 0.3); transform: translateY(-5px) scale(1.02); }
}

.module-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c38ff, #38caff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 10px 25px rgba(108, 56, 255, 0.3);
}

.module-icon i {
    color: white;
    font-size: 1.5rem;
}

.module-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #6c38ff;
}

.module-content p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #444;
    line-height: 1.4;
}

/* ======= Pricing Section ======= */
.pricing-section {
    padding: 5rem 0;
    background: var(--light-grey);
    position: relative;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-purple-rgb), 0.1);
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--primary-purple-rgb), 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--byoosi-yellow);
    box-shadow: 0 15px 40px rgba(var(--byoosi-orange-rgb), 0.15);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 1.5rem;
    right: -4rem;
    background: linear-gradient(135deg, var(--byoosi-orange), var(--byoosi-yellow));
    color: var(--text-purple);
    padding: 0.5rem 4rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.pricing-card h3 {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price small {
    font-size: 1.2rem;
    opacity: 0.7;
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-purple);
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--byoosi-green);
}

/* ======= CTA Section ======= */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======= Modern Section ======= */
.modern-section {
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
    color: var(--modern-text);
    padding: 4rem 0;
    box-shadow: var(--shadow-soft);
}

.modern-bg-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.modern-bg-sphere-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--modern-accent-rgb), 0.1) 0%, transparent 70%);
    top: -150px;
    right: -150px;
}

.modern-bg-sphere-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--modern-accent-2-rgb), 0.07) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
}

.modern-bg-sphere-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-purple-rgb), 0.05) 0%, transparent 70%);
    top: 40%;
    left: 30%;
}

/* ======= Footer ======= */
.byoosi-footer {
    background-color: #1c1c24;
    color: #ffffff;
    padding: 50px 0 20px;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--modern-accent-2);
}

.footer-heading {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--modern-accent-2);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--modern-accent-2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--modern-accent-2);
}

/* ======= Return to Top Button ======= */
.return-to-top {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

.return-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.return-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ======= Form Styles ======= */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-purple-rgb), 0.25);
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ======= Testimonial Cards ======= */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.3s ease;
}

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

.testimonial-quote {
    font-style: italic;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--byoosi-blue);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* ======= Stats Section ======= */
.stats-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ======= Animations ======= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(var(--primary-purple-rgb), 0.5); }
    50% { box-shadow: 0 0 20px rgba(var(--primary-purple-rgb), 0.8); }
    100% { box-shadow: 0 0 5px rgba(var(--primary-purple-rgb), 0.5); }
}

/* ======= Utility Classes ======= */
.bg-light { background-color: var(--light-bg) !important; }
.bg-dark { background-color: var(--dark-bg) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

.badge-highlight {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: inline-block;
}

.modern-badge {
    display: inline-block;
    background: var(--gradient-modern);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: white;
    box-shadow: var(--glow-effect);
}

.rainbow-divider {
    height: 3px;
    background: linear-gradient(to right,
        var(--byoosi-green),
        var(--byoosi-red),
        var(--byoosi-yellow),
        var(--byoosi-blue),
        var(--primary-purple),
        var(--byoosi-orange));
    margin: 2rem 0;
    border-radius: 3px;
}

/* ======= Responsive Styles ======= */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        order: 1;
    }

    .hero-visual {
        order: 0;
        min-height: 400px;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

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

    .hero-section {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-feature {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .module-showcase {
        display: none;
    }

    .device-mockup {
        display: none;
    }

    .byoosi-logo {
        max-height: 40px;
    }

    .price {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 1.7rem;
    }
}

/* ======= Scrollbar Styling ======= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple-dark);
}

/* ======= Byoosi Colorful Logo ======= */
.byoosi-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.byoosi-logo span {
    display: inline;
}

.byoosi-logo-footer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.byoosi-logo-footer span {
    display: inline;
}

/* Tagline styling */
.byoosi-tagline {
    font-size: 0.7rem;
    color: var(--byoosi-blue);
    display: block;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: -5px;
}

/* ======= Inner Page Hero Sections ======= */
.page-hero {
    background: linear-gradient(135deg, #6A2B82 0%, #3d1452 50%, #1c1c24 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.page-hero .hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-hero .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.page-hero .shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #38caff, #6c38ff);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.page-hero .shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6c38ff, #38caff);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.page-hero .shape-3 {
    width: 200px;
    height: 200px;
    background: #ffffff;
    top: 50%;
    left: 50%;
    animation: pulse 6s ease-in-out infinite;
}

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

.page-hero .hero-content {
    color: white;
}

.page-hero .hero-content.text-center {
    text-align: center;
}

.page-hero .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.page-hero .hero-badge i {
    margin-right: 8px;
    color: #38caff;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.page-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-hero .stat-item {
    text-align: center;
}

.page-hero .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #38caff;
}

.page-hero .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-hero .hero-buttons {
    margin-top: 30px;
}

.page-hero .hero-buttons .btn {
    margin: 5px 10px;
    padding: 12px 30px;
}

/* Hero Stats Grid for Two-Column Layout */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mini-stat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.mini-stat:hover {
    transform: translateY(-5px);
}

.mini-stat i {
    font-size: 1.5rem;
    color: #38caff;
    margin-bottom: 10px;
    display: block;
}

.mini-stat .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.mini-stat .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Module-specific hero colors */
.procurement-hero { background: linear-gradient(135deg, #006937 0%, #004225 50%, #1c1c24 100%); }
.inventory-hero { background: linear-gradient(135deg, #F7941D 0%, #c67616 50%, #1c1c24 100%); }
.finance-hero { background: linear-gradient(135deg, #3A75C4 0%, #25548f 50%, #1c1c24 100%); }
.support-hero { background: linear-gradient(135deg, #E31E24 0%, #b0181d 50%, #1c1c24 100%); }
.analytics-hero { background: linear-gradient(135deg, #6c38ff 0%, #4a25b3 50%, #1c1c24 100%); }
.automation-hero { background: linear-gradient(135deg, #38caff 0%, #2899c9 50%, #1c1c24 100%); }
.integration-hero { background: linear-gradient(135deg, #6A2B82 0%, #3d1452 50%, #1c1c24 100%); }
.implementation-hero { background: linear-gradient(135deg, #006937 0%, #004225 50%, #1c1c24 100%); }
.efris-hero { background: linear-gradient(135deg, #E31E24 0%, #b0181d 50%, #1c1c24 100%); }
.development-hero { background: linear-gradient(135deg, #3A75C4 0%, #25548f 50%, #1c1c24 100%); }
.legal-hero { background: linear-gradient(135deg, #1c1c24 0%, #2d2d3a 100%); padding: 100px 0 60px; min-height: 250px; }

/* ======= Section Styles ======= */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background: var(--light-grey);
}

.section.bg-gradient {
    background: linear-gradient(135deg, #6A2B82, #3d1452);
    color: white;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    color: var(--primary-purple);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-badge.light {
    background: rgba(255,255,255,0.2);
    color: white;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 15px;
}

.section.bg-gradient .section-header h2 {
    color: white;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ======= Feature Cards and Grids ======= */
.ai-grid, .features-grid, .modules-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ai-feature-card, .feature-box, .module-card, .service-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-feature-card:hover, .feature-box:hover, .module-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106, 43, 130, 0.15);
}

.feature-icon, .feature-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i, .feature-icon-wrap i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-feature-card h3, .feature-box h3, .service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--modern-text);
}

.ai-feature-card p, .feature-box p, .service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list, .feature-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.feature-list li, .feature-points li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.feature-list li i, .feature-points li::before {
    color: #006937;
    margin-right: 10px;
    font-size: 0.9rem;
}

.feature-points li::before {
    content: "✓";
    color: var(--byoosi-green);
    font-weight: bold;
}

.card-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--byoosi-blue);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Module Cards */
.module-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.module-icon.procurement { background: linear-gradient(135deg, #006937, #00a854); }
.module-icon.inventory { background: linear-gradient(135deg, #F7941D, #ffb347); }
.module-icon.finance { background: linear-gradient(135deg, #3A75C4, #5a9bd4); }
.module-icon.support { background: linear-gradient(135deg, #E31E24, #ff5252); }

.module-icon i {
    font-size: 1.5rem;
    color: white;
}

.module-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.module-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.module-card:hover .module-arrow {
    background: var(--primary-purple);
    color: white;
}

/* ======= Process Steps ======= */
.steps-container, .process-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step-card, .process-step {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

.step-card h3, .process-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-connector, .flow-arrow {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

/* Vertical Timeline */
.process-timeline.vertical {
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.process-timeline.vertical .timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ======= Benefits Section ======= */
.benefits-list, .benefit-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item, .benefit-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.3rem;
    color: #38caff;
}

.benefit-content h4, .benefit-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.section.bg-gradient .benefit-content h4 {
    color: white;
}

.benefit-content p, .benefit-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Stats Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.big-stat {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #38caff;
}

.stat-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* ======= CTA Section ======= */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1c1c24, #2d2d3a);
}

.cta-box {
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-weight: 600;
}

/* ======= Info Cards ======= */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.info-card.dark {
    background: linear-gradient(135deg, #1c1c24, #2d2d3a);
    color: white;
}

.info-card.gradient {
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    color: white;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.check-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.check-list li i {
    color: #38caff;
    margin-right: 12px;
}

/* ======= Use Cases ======= */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.use-case-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
}

.use-case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.use-case-icon i {
    font-size: 1.8rem;
    color: var(--primary-purple);
}

.use-case-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ======= Legal Pages ======= */
.legal-content {
    padding: 60px 0;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

.legal-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.legal-toc h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-purple);
}

.legal-toc ul {
    list-style: none;
    padding: 0;
}

.legal-toc li {
    margin-bottom: 10px;
}

.legal-toc a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.legal-toc a:hover {
    color: var(--primary-purple);
}

.legal-body section {
    margin-bottom: 40px;
}

.legal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
}

.legal-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px;
}

.legal-body p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.legal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.contact-info-box {
    background: var(--light-grey);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

/* Cookie table */
.cookie-table {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
}

.cookie-table th, .cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cookie-table th {
    background: var(--light-grey);
    font-weight: 600;
}

/* ======= Responsive ======= */
@media (max-width: 992px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-toc {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero .hero-stats {
        gap: 20px;
    }
    
    .page-hero .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-box {
        padding: 40px 25px;
    }
    
    .cta-box h2 {
        font-size: 1.6rem;
    }
    
    .steps-container, .process-timeline {
        flex-direction: column;
    }
    
    .step-connector, .flow-arrow {
        transform: rotate(90deg);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

/* ======= COMPREHENSIVE LAYOUT FIXES ======= */

/* Section Base Styles - Centered Content */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c24;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    color: #6A2B82;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* ======= Integration Grid - Centered 3 Column ======= */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.integration-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.integration-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106, 43, 130, 0.15);
}

.integration-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
}

.integration-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c1c24;
    margin-bottom: 15px;
}

.integration-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.integration-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.integration-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.9rem;
    position: relative;
    padding-left: 25px;
}

.integration-list li:last-child {
    border-bottom: none;
}

.integration-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #006937;
    font-weight: bold;
}

/* ======= Popular Grid - Centered 3 Column ======= */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.popular-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-left: 4px solid #6A2B82;
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(106, 43, 130, 0.12);
}

.popular-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6A2B82;
    margin-bottom: 15px;
}

.popular-card h4 i {
    margin-right: 10px;
}

.popular-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.popular-card a {
    color: #6A2B82;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.popular-card a::after {
    content: " →";
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.popular-card a:hover {
    color: #3A75C4;
}

.popular-card a:hover::after {
    transform: translateX(5px);
}

/* ======= Process Timeline - Horizontal Centered ======= */
.process-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6A2B82, #3A75C4);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 30px rgba(106, 43, 130, 0.3);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c1c24;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ======= API Section ======= */
.api-section {
    background: linear-gradient(135deg, #f5f7ff, #e6f0fa);
}

.api-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.api-features li {
    padding: 12px 0;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-features li i {
    color: #006937;
    font-size: 1.2rem;
}

.code-preview {
    background: #1c1c24;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.code-header {
    background: #2d2d3a;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .dot.red { background: #ff5f57; }
.code-header .dot.yellow { background: #febc2e; }
.code-header .dot.green { background: #28c840; }

.code-header .code-title {
    margin-left: auto;
    color: #888;
    font-size: 0.85rem;
}

.code-preview pre {
    margin: 0;
    padding: 25px;
    overflow-x: auto;
}

.code-preview code {
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ======= CTA Box - Centered ======= */
.cta-section {
    background: linear-gradient(135deg, #6A2B82 0%, #3d1452 50%, #1c1c24 100%);
    padding: 80px 0;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ======= Feature Grid - Modern Centered ======= */
.feature-grid, .benefits-grid, .modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card, .benefit-card, .module-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover, .benefit-card:hover, .module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(106, 43, 130, 0.12);
}

/* ======= Stats Row - Centered ======= */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #6A2B82;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* ======= Responsive Grid Adjustments ======= */
@media (max-width: 992px) {
    .integration-grid, .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .integration-grid, .popular-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-row {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .cta-box h2 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ======= Compact Modules Grid ======= */
.modules-grid.compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.module-item {
    background: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 43, 130, 0.15);
    border-color: rgba(106, 43, 130, 0.2);
}

.module-item i {
    font-size: 2rem;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: block;
}

.module-item span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: block;
}

@media (max-width: 992px) {
    .modules-grid.compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-grid.compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .modules-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-item {
        padding: 20px 10px;
    }

    .module-item i {
        font-size: 1.5rem;
    }
}

/* ======= Solution Grid (EFRIS page) ======= */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106, 43, 130, 0.15);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.solution-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1c1c24;
}

.solution-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ======= Flow Diagram ======= */
.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-box {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6A2B82, #3A75C4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.flow-icon i {
    font-size: 1.5rem;
    color: white;
}

.flow-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1c1c24;
}

.flow-box p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.flow-arrow {
    color: #6A2B82;
    font-size: 1.5rem;
}

/* ======= Features Table ======= */
.features-table {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row:hover {
    background: rgba(106, 43, 130, 0.05);
}

.feature-check {
    margin-right: 15px;
}

.feature-check i {
    font-size: 1.2rem;
    color: #006937;
}

.feature-name {
    font-weight: 500;
    color: #333;
}

/* ======= EFRIS Specific Styles ======= */
.efris-requirements {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.efris-requirements li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    color: #555;
}

.efris-requirements li i {
    color: #006937;
    margin-right: 12px;
    margin-top: 3px;
}

.who-needs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.who-needs li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.who-needs li:last-child {
    border-bottom: none;
}

.who-needs li i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(106, 43, 130, 0.1), rgba(58, 117, 196, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #6A2B82;
}

.warning-box {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    color: #c0392b;
    margin-top: 20px;
}

.warning-box i {
    margin-right: 10px;
}

/* ======= Responsive Adjustments ======= */
@media (max-width: 992px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-diagram {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-box {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .features-table {
        padding: 10px;
    }

    .feature-row {
        padding: 12px 15px;
    }
}
