/* Home Landing Page Styles */

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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #00008B;
    letter-spacing: -0.02em;
}

.nav-cta {
    background: #00008B;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #00006B;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Mobile version */
@media (max-width: 768px) {
    .nav-cta {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 6px;
    }
    /* Refined mobile navbar layout: align logo left, buttons right, all on one row */
    .header-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
    }
    .logo {
        font-size: 20px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        height: 40px;
    }
    .header-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-left: auto;
        margin-right: 0;
        padding-right: 0;
        align-items: center;
        justify-content: flex-end;
    }
    .language-toggle,
    .nav-signin {
        padding-right: 6px !important;
        padding-left: 6px !important;
        width: auto !important;
        min-width: unset !important;
        display: inline-flex;
        align-items: center;
    }
    .header-actions > * {
        flex: 0 0 auto;
}
    nav {
        width: 100%;
        overflow-x: auto;
    }
    /* CTA Button improvements */
    .nav-cta {
        font-size: 12px;
        padding: 7px 14px;
        min-width: 90px;
        margin: 4px 0;
    }
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
    }
    .container {
        padding: 0 8px;
    }
    /* Hero Section improvements */
    .hero h1 {
        font-size: 2em;
        line-height: 1.2;
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 1em;
        padding: 0 4px;
        line-height: 1.5;
    }
    .hero-cta {
        font-size: 14px;
        padding: 12px 20px;
        min-width: 120px;
        margin-top: 12px;
    }
    /* General Mobile Improvements */
    button, .cta-button, .survey-start-btn, .survey-next-btn, .survey-cta-btn {
        font-size: 14px;
        padding: 12px 20px;
        min-width: 100px;
    }
    .option-text, .section-title, .results-title, .cta-title {
        font-size: 1em;
        word-break: break-word;
    }
    .problem-card, .benefit-card, .pricing-item {
        padding: 12px;
    }
    .footer-content {
        gap: 1.2rem;
    }
    .site-footer {
        padding: 1.5rem 0 1rem;
    }
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
/* Blog button width fix for mobile */
@media (max-width: 768px) {
    a.nav-cta[href="/en/blog"] {
        padding-left: 12px;
        padding-right: 12px;
        min-width: unset;
    }
    /* Language dropdown menu fix for mobile */
    .language-dropdown-menu {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
        min-width: 120px;
        max-width: 90vw;
    }
    /* Ensure #languageMenu stays fully visible on mobile */
    #languageMenu {
        min-width: 120px !important;
        max-width: calc(100vw - 16px) !important;
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }
}
/* Language dropdown fully visible on all screen sizes */
#languageMenu {
    overflow: visible !important;
    left: auto !important;
    right: 0 !important;
    min-width: 120px;
    max-width: calc(100vw - 16px);
    transform: none !important;
    z-index: 9999;
}

/* Prevent links from wrapping inside dropdown */
#languageMenu a {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
    

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25em;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #00008B;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 139, 0.3);
}

.hero-cta:hover {
    background: #00006B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 139, 0.4);
    color: white;
    text-decoration: none;
}

/* Demo Video Section */
.demo-video-section {
    padding: 80px 0 100px;
    background: #0f172a;
}

.demo-video-section .container {
    text-align: center;
    max-width: 1100px;
}

.demo-video-section img,
.demo-video-section video,
.demo-video-section .demo-video {
    width: 100%;
    display: block;
    height: auto;
    transition: all 0.3s ease;
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1em;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 139, 0.06);
    border: 1px solid rgba(0, 0, 139, 0.14);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00008B;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.problem-card {
    background: white;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-top-color: #00008B;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.problem-icon {
    width: 52px;
    height: 52px;
    background: #fef2f2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.problem-card:nth-child(1) .problem-icon { background: #fef2f2; }
.problem-card:nth-child(2) .problem-icon { background: #fff7ed; }
.problem-card:nth-child(3) .problem-icon { background: #fefce8; }

.problem-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.problem-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1em;
}

/* Survey Section */
.survey-section {
    padding: 80px 0;
    background: #f8fafc;
}

.survey-container {
    max-width: 800px;
    margin: 0 auto;
}

.survey-intro {
    text-align: center;
    padding: 40px 20px;
}

.survey-start-btn {
    background: #00008B;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.survey-start-btn:hover {
    background: #00006B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.survey-questions {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.survey-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00008B, #00006B);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.question-container {
    min-height: 400px;
}

.question-content {
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

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

.question-text {
    font-size: 1.5em;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 32px;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-card:hover {
    border-color: #00008B;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 13, 0.1);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card input[type="radio"]:checked + .option-text {
    color: #00008B;
    font-weight: 600;
}

.option-card input[type="radio"]:checked ~ .option-card {
    border-color: #00008B;
    background: #f0f4ff;
}

.checkmark-icon {
    width: 20px;
    height: 20px;
    color: #00008B;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.option-card.selected .checkmark-icon,
.option-card:has(input[type="radio"]:checked) .checkmark-icon {
    opacity: 1;
}

.option-card.selected,
.option-card:has(input[type="radio"]:checked) {
    border-color: #00008B;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
}

.option-text {
    font-size: 16px;
    color: #1a1a1a;
    display: block;
    line-height: 1.5;
    flex: 1;
    margin-right: 16px;
}

.survey-next-btn {
    background: #00008B;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin-left: auto;
}

.survey-next-btn:hover:not(:disabled) {
    background: #00006B;
    transform: translateY(-1px);
}

.survey-next-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.survey-results {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    text-align: center;
}

.results-content {
    max-width: 600px;
    margin: 0 auto;
}

.results-score {
    margin-bottom: 32px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00008B, #00006B);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.score-number {
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-label {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.results-title {
    font-size: 2em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.results-interpretation {
    font-size: 1.1em;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.results-message {
    font-size: 1em;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #00008B;
}

.results-cta {
    margin-top: 32px;
}

.survey-cta-btn {
    background: #00008B;
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.survey-cta-btn:hover {
    background: #00006B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .survey-questions,
    .survey-results {
        padding: 24px 20px;
    }

    .question-text {
        font-size: 1.2em;
    }

    .options-grid {
        gap: 12px;
    }

    .option-card {
        padding: 16px 20px;
    }

    .results-title {
        font-size: 1.5em;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 2em;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 0;
}

.benefit-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background: #00008B;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.benefit-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.benefit-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1em;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: #0f172a;
    color: white;
}

.pricing-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-section .section-title {
    color: white;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pricing-section .section-subtitle {
    color: #94a3b8;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-highlight {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    backdrop-filter: blur(8px);
}

.pricing-highlight h3 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 16px;
}

.pricing-example {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.pricing-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-item p {
    color: #cbd5e1;
    margin: 0;
    font-size: 1em;
}

.price-number {
    font-size: 2em;
    font-weight: 700;
    color: #00008B;
    margin-bottom: 6px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: white;
    color: #1a1a1a;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #00008B;
}

.cta-subtitle {
    font-size: 1.1em;
    margin-bottom: 32px;
    opacity: 0.9;
    color: #64748b;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #00008B;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: white;
    background: #00006B;
    text-decoration: none;
}

.cta-section p {
    color: #64748b;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid #1e293b;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1.5rem;
}

/* Brand Section */
.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    display: block;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

/* Footer Sections */
.footer-section {
    min-width: 0; /* Prevents grid overflow */
}

.footer-heading {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

/* Footer Links */
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-link-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.footer-link-email:hover .footer-email-icon {
    transform: translateY(-2px);
}

.footer-help-text {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
}

.footer-copyright {
    margin: 0;
    color: #64748b;
    font-size: 0.8125rem;
}

.footer-link-small {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link-small:hover {
    color: #ffffff;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }

    .footer-heading {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        gap: 0.625rem;
    }

    .footer-link {
        font-size: 0.8125rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .cta-title {
        font-size: 2em;
    }
    
    .demo-video-section h2 {
        font-size: 2em;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .problem-section,
    .solution-section,
    .benefits-section,
    .pricing-section,
    .cta-section,
    .demo-video-section {
        padding: 60px 0;
    }
    
    .demo-video-section img,
    .demo-video-section video,
    .demo-video-section .demo-video {
        width: 95%;
    }
    
    /* Repasser en 1 colonne sur mobile pour les grilles */
    .solution-flow,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 

@media (max-width: 768px) {
  #languageToggle {
    padding: 6px 8px !important;
    gap: 4px !important;
    width: auto !important;
  }

  #languageToggle svg:first-child {
    width: 16px !important;
    height: 16px !important;
  }

  #languageToggle svg:last-child {
    width: 10px !important;
    height: 10px !important;
  }

  .language-dropdown {
    margin-right: 0 !important;
  }
}

@media (max-width:768px){

.header-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

/* force buttons to shrink to content */
.language-toggle,
.nav-signin{
    width: fit-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    padding:6px 8px !important;
}

/* prevent internal spacing */
.language-toggle *{
    margin:0 !important;
}

}

/* Final mobile fix for language + signin button spacing */
@media (max-width:768px){

.language-toggle,
.nav-signin{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    padding:6px 8px !important;
    margin:0 !important;
    white-space:nowrap !important;
}

.language-toggle svg,
.language-toggle span{
    margin:0 !important;
    flex:0 0 auto !important;
}

}

@media (max-width:768px){

.language-dropdown{
    margin-right:0 !important;
}

}

@media (max-width:768px){

  .header-actions{
    display:flex;
    align-items:center;
    gap:8px;
  }

  .language-dropdown{
    margin-right:0 !important;
  }

  #languageToggle{
    width:auto !important;
    padding:6px 8px !important;
    gap:4px !important;
    flex:0 0 auto !important;
  }

  .nav-cta{
    width:auto !important;
    min-width:unset !important;
    flex:0 0 auto !important;
  }

  #languageToggle svg{
    flex:0 0 auto;
  }

}

@media (max-width:768px){

  /* Force the toggle to shrink exactly to content with no extra reservation */
  #languageToggle{
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important; /* prevent space-between gaps */
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;

    /* Precisely control spacing */
    padding-inline: 4px !important;     /* overrides any inline padding-right */
    padding-block: 4px !important;
    gap: 2px !important;

    /* Normalize text metrics to avoid hidden width inflation */
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  /* Make sure children don’t expand or introduce margins */
  #languageToggle > *{
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  /* SVGs as block-level to remove inline whitespace, and fix sizes */
  #languageToggle svg{
    display: block !important;
    flex: 0 0 auto !important;
  }

  /* Icon sizing: first icon (e.g., globe) slightly larger, caret smaller */
  #languageToggle svg:first-child{
    width: 14px !important;
    height: 14px !important;
  }

  #languageToggle svg:last-child{
    width: 9px !important;
    height: 9px !important;
  }

  /* If a caret is injected via CSS, remove it to prevent phantom width */
  #languageToggle::after{
    content: none !important;
  }

  /* Keep the dropdown wrapper from adding right-side spacing */
  .language-dropdown{
    margin-right: 0 !important;
  }
}

/* =============================================================
   MOBILE RESPONSIVE — Home Landing Page Improvements
   ============================================================= */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Hero section: reduce decorative radial blobs on mobile */
  .hero-unified {
    padding: 40px 0 !important;
    min-height: auto !important;
  }

  /* Hero heading override for inline styles */
  .hero-unified h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    word-break: break-word !important;
  }

  /* Hero CTA button */
  .hero-cta-primary {
    padding: 14px 28px !important;
    font-size: 1rem !important;
    width: auto !important;
  }

  /* General hero container */
  .container {
    padding: 0 16px !important;
  }

  /* Footer responsive */
  .site-footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Problem / benefit cards */
  .problem-card,
  .benefit-card,
  .pricing-item {
    padding: 1rem !important;
  }

  /* Survey / assessment container */
  #surveyContainer {
    padding: 40px 16px !important;
  }
}

@media (max-width: 480px) {
  .hero-unified h1 {
    font-size: 1.75rem !important;
  }

  .hero-cta-primary {
    padding: 12px 24px !important;
    font-size: 0.9375rem !important;
  }
}
