/* ==============================
   WELCOME PAGE STYLES
   ============================== */

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Applied globally */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #EEFDF9;
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- Typography --- */
.hero-title,
.faq-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #EEFDF9;
    margin: 0;
    line-height: 1.2;
    padding: 0 1.75rem;
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #EEFDF9;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}


.compare-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #EEFDF9;
    margin: 0;
    line-height: 1.2;
}

.feature-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #EEFDF9;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.hero-subtitle,
.about-subtitle,
.compare-subtitle,
.feature-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #EEFDF9;
    margin: 0;
    line-height: 1.5;
}

/* --- Header --- */
.welcome-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    /* Safe area support - extend background into notch area */
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
    /* Fill the safe area at the top with background */
    min-height: calc(80px + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    /* Changed from space-between to flex-start */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Remove container divs from flex flow (burger and language are fixed positioned) */
.header-content>div[data-include-html],
.header-content>.language-selector-wrapper {
    position: absolute;
    /* Take out of flex flow since children are position: fixed anyway */
}

/* Logo - LEFT side */
.logo-container {
    display: flex;
    align-items: center;
    /* Now the only flex child, naturally stays on left */
}

.logo {
    width: 120px;
    height: 50px;
    object-fit: contain;
}

/* Language Selector with Icon - RIGHT side (before burger menu) */
.language-selector-wrapper {
    /* Just a container - no positioning */
    position: relative;
    z-index: 1001;
}

.language-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    width: 36px;
    height: 36px;
    /* Make button itself fixed positioned - same strategy as burger menu */
    position: fixed;
    top: max(15px, calc(env(safe-area-inset-top, 0px) + 10px));
    right: 60px;
    /* Before burger menu */
}

.language-icon-btn:hover {
    opacity: 0.8;
}

.language-icon {
    width: 24px;
    height: 24px;
    /* SVG color filter to match theme - converts #bcbcbc to theme color */
    filter: brightness(0) saturate(100%) invert(98%) sepia(4%) saturate(558%) hue-rotate(103deg) brightness(100%) contrast(97%);
}

/* Language Dropdown */
.language-dropdown {
    position: fixed;
    top: max(15px, calc(env(safe-area-inset-top, 0px) + 10px));
    right: 60px;
    display: none;
    z-index: 1100;
}

.language-dropdown.open {
    display: block;
}

.language-dropdown .language-options {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.language-dropdown .language-option {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #f7fafc;
    background: transparent;
    border: none;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-dropdown .language-option:hover,
.language-dropdown .language-option:focus {
    background: rgba(66, 194, 201, 0.2);
    outline: none;
}

.language-dropdown .language-option.active {
    background: rgba(3, 163, 177, 0.35);
    color: #ffffff;
}

/* Login Button - REMOVED (now using auth section in hero) */

/* --- Main Content --- */
.welcome-main {
    padding-top: 80px;
    /* Account for fixed header */
}

/* --- Hero Section --- */
.hero-section {
    padding: 30px 20px;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 400px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 20px;
    text-align: center;
}

.hero-subtitle {
    margin-bottom: 48px;
    text-align: center;
    padding: 0 1.75rem;
}

/* Download App Button (PWA Install) - Matching register.html button style */
.download-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(238, 253, 249, 0.063);
    color: #EEFDF9;
    border: none;
    border-radius: 1000px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    justify-content: center;
    margin-bottom: 32px;
}

.download-app-btn:hover {
    background-color: rgba(238, 253, 249, 0.314);
    transform: translateY(-1px);
}

.download-app-btn:active {
    transform: translateY(0);
}

.download-app-btn svg {
    flex-shrink: 0;
}

.mockup-container {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
}

.mockup-placeholder {
    width: 320px;
    height: 320px;
    background-color: rgba(238, 253, 249, 0.1);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(238, 253, 249, 0.3);
}

.mockup-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(238, 253, 249, 0.7);
}

.learn-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #EEFDF9;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0 auto;
}

/* Hero CTA section - visible on both mobile and desktop */
.hero-cta {
    padding-top: 40px;
    text-align: center;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
}

.arrow-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* --- Auth Section (Mobile) --- */
.auth-section {
    padding: 1.75rem;
    background-color: transparent;
    border: 1px solid rgba(238, 253, 249, 0.08);
    /* Subtle, almost invisible border */
    border-radius: 28px;
    margin-top: 48px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Ensure proper stacking context */
}

.auth-section form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    /* Positioning context for error message */
}

.auth-section .form-group {
    margin-bottom: 0;
}

.auth-section .form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(238, 253, 249, 0.063);
    /* Match legacy auth page styling */
    border: none;
    border-radius: 1000px;
    color: #EEFDF9;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.auth-section .form-group input::placeholder {
    color: rgba(238, 253, 249, 0.5);
}

.auth-section .form-group input:hover,
.auth-section .form-group input:focus {
    background-color: rgba(238, 253, 249, 0.314);
    outline: none;
}

.auth-section button[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    background-color: rgba(238, 253, 249, 0.063);
    color: #EEFDF9;
    border: none;
    border-radius: 1000px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-section button[type="submit"]:hover {
    background-color: rgba(238, 253, 249, 0.314);
    transform: translateY(-1px);
}

.auth-section button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Message - Floating Modal Style */
.auth-section .error-message {
    /* Remove from document flow - takes ZERO space when empty */
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    /* Position below the Login button */

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Styling */
    padding: 0;
    margin: 0;
    min-height: 0;
    /* No minimum height - takes no space */

    /* Smooth animation */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    /* Slide up animation */

    /* Z-index for modal effect */
    z-index: 100;
    /* Above form content */
}

/* When error exists - show as floating modal */
.auth-section .error-message:not(:empty) {
    /* Make visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    /* Slide down into view */

    /* Modal container styling */
    background-color: #1a1a1a;
    /* Dark background as requested */
    color: #ee2e24;
    /* Red error text */
    border: 1px solid rgba(239, 68, 68, 0.5);
    /* Red border */
    border-radius: 12px;
    padding: 12px 16px;

    /* Add shadow for depth */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(239, 68, 68, 0.2);
    /* Outer glow */

    /* Text styling */
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.auth-section .form-links {
    margin-top: 24px;
    text-align: center;
}

.auth-section .form-links p {
    margin-bottom: 12px;
    color: rgba(238, 253, 249, 0.7);
    font-size: 14px;
    margin-top: 0;
}

.auth-section .btn-create-account {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background-color: rgba(238, 253, 249, 0.063);
    color: #EEFDF9;
    border: none;
    border-radius: 1000px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.auth-section .btn-create-account:hover {
    background-color: rgba(238, 253, 249, 0.314);
    transform: translateY(-1px);
}

.auth-section .reset-password-link {
    color: #c3e9ff;
    text-decoration: underline;
    font-weight: 500;
}

.auth-section .reset-password-link:hover {
    color: #ffffff;
}

.auth-section .legal-links {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(238, 253, 249, 0.6);
}

.auth-section .legal-links p {
    margin: 0;
}

.auth-section .legal-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-section .legal-links a:hover {
    text-decoration: underline;
    color: #04bfce;
}

/* --- About Section --- */
.about-section {
    padding: 60px 20px;
    text-align: center;
}

.about-content {
    max-width: 400px;
    margin: 0 auto;
}

.about-title {
    margin-bottom: 20px;
}

.about-subtitle {
    text-align: center;
}

/* --- Features Section --- */
.features-section {
    padding: 0 20px 60px;
}

.features-content {
    max-width: 400px;
    margin: 0 auto;
}

/* --- Feature Items (Expandable Accordion) --- */
.feature-item {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(238, 253, 249, 0.1);
    padding-bottom: 0;
}

.feature-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* Feature Trigger - Clickable Header */
.feature-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.feature-trigger:hover {
    color: rgba(238, 253, 249, 0.8);
}

/* Feature Arrow Icon */
.feature-arrow {
    color: #EEFDF9;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item.open .feature-arrow {
    transform: rotate(90deg);
}

/* Feature Content - Collapsible Area */
.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.feature-item.open .feature-content {
    max-height: 1000px;
    padding-bottom: 20px;
}

/* Feature Text - Subtitle */
.feature-text {
    margin-bottom: 0;
}

.feature-item.open .feature-text {
    margin-bottom: 48px;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-placeholder {
    width: 320px;
    height: 320px;
    background-color: rgba(238, 253, 249, 0.1);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(238, 253, 249, 0.3);
}

.placeholder-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(238, 253, 249, 0.7);
}

/* Feature Images */
.feature-img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    border-radius: 28px;
}

/* Feature Animation (iframe) */
.feature-animation {
    width: 420px;
    height: 420px;
    border: none;
    border-radius: 28px;
    background: transparent;
    display: block;
}

/* Mobile: Ensure consistent text-first, image-second order for all features */
.feature-item {
    display: flex;
    flex-direction: column;
}

.feature-item .feature-text {
    order: 1;
}

.feature-item .feature-image {
    order: 2;
}

/* --- Compare Section --- */
.compare-section {
    padding: 60px 20px;
    text-align: center;
}

.compare-content {
    max-width: 100%;
    margin: 0 auto;
}

.compare-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.compare-title {
    margin-bottom: 12px;
    text-align: left;
}

.compare-subtitle {
    margin-bottom: 0;
    text-align: left;
}

/* Comparison Table Wrapper - Horizontal Scroll */
.comparison-table-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
}

/* Scroll indicator shadows */
.comparison-table-wrapper::before,
.comparison-table-wrapper::after {
    content: '';
    position: sticky;
    top: 0;
    width: 20px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.comparison-table-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison-table-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(26, 26, 26, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(238, 253, 249, 0.2);
    border-radius: 3px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 253, 249, 0.4);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    border: 1px solid rgba(238, 253, 249, 0.08);
    background-color: #1a1a1a;
}

/* Table Header */
.comparison-table thead {
    background-color: rgba(238, 253, 249, 0.03);
}

.comparison-table th {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #EEFDF9;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(238, 253, 249, 0.08);
}

/* Feature Column */
.feature-column {
    background-color: #1a1a1a;
    text-align: left;
    padding-left: 16px;
}

/* SkillTrees Column Highlight */
.skilltrees-column {
    background-color: #222222;
}

/* Table Cells */
.comparison-table td {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #EEFDF9;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(238, 253, 249, 0.08);
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comparison-table td:hover {
    background-color: rgba(238, 253, 249, 0.05);
}

/* Feature Name Column */
.feature-name {
    background-color: #1a1a1a;
    text-align: left;
    padding-left: 16px;
    font-weight: 500;
}

/* SkillTrees Cell */
.skilltrees-cell {
    background-color: #222222;
}

.skilltrees-cell:hover {
    background-color: rgba(238, 253, 249, 0.05);
}

/* Icons in cells */
.comparison-table img {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* --- Tooltip Bubble --- */
.comparison-tooltip {
    position: fixed;
    background-color: #1a1a1a;
    border: 1px solid rgba(238, 253, 249, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 280px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.comparison-tooltip.fade-out {
    animation: tooltipFadeOut 0.15s ease forwards;
}

@keyframes tooltipFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.tooltip-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(238, 253, 249, 0.9);
    line-height: 1.5;
    margin: 0;
    padding-right: 24px;
}

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(238, 253, 249, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.tooltip-close:hover {
    color: rgba(238, 253, 249, 0.8);
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1a1a1a;
}

.tooltip-arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(238, 253, 249, 0.2);
    left: -8px;
    top: -9px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 20px;
}

.faq-content {
    max-width: 400px;
    margin: 0 auto;
}

.faq-title {
    margin-bottom: 40px;
    text-align: left;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(238, 253, 249, 0.1);
}

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-trigger:hover {
    color: rgba(238, 253, 249, 0.8);
}

.faq-question {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #EEFDF9;
    line-height: 1.5;
}

.faq-arrow {
    color: #EEFDF9;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-content-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.faq-item.open .faq-content-text {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-content-text p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(238, 253, 249, 0.8);
    line-height: 1.6;
    margin: 0;
    padding-right: 40px;
}

/* --- Responsive Display Classes --- */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* --- Small Mobile Fixes (iPhone 13 and similar) --- */
@media (max-width: 390px) {

    /* Reduce header padding to save space */
    .welcome-header {
        padding-left: calc(12px + env(safe-area-inset-left, 0px));
        padding-right: calc(12px + env(safe-area-inset-right, 0px));
    }

    /* Make logo smaller */
    .logo {
        width: 100px;
        height: auto;
    }

    /* Language selector adjustments for small screens */
    .language-icon-btn {
        /* Adjust positioning for small screens */
        right: 56px;
        /* Slightly closer to burger on small screens */
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .language-icon {
        width: 20px;
        height: 20px;
    }

    /* Position dropdown at same location as button on mobile */
    .language-dropdown {
        right: 56px;
    }
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {

    /* CSS Custom Properties for Consistency */
    :root {
        --desktop-section-gap: 80px;
        --desktop-content-gap: 60px;
        --desktop-padding: 80px 40px;
        --desktop-max-width: 1200px;
        --desktop-container-width: 1200px;
        --desktop-container-height: 450px;
        --image-container-size: 400px;
        --text-container-width: 540px;
        /* Half of container minus gap */
    }

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    /* Header adjustments */
    .welcome-header {
        padding: 20px 40px;
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
        padding-left: calc(40px + env(safe-area-inset-left, 0px));
        padding-right: calc(40px + env(safe-area-inset-right, 0px));
        min-height: calc(90px + env(safe-area-inset-top, 0px));
    }

    .welcome-main {
        padding-top: 90px;
    }

    /* Hero Section - Desktop */
    .hero-section {
        padding: 40px 40px 20px 40px;
        min-height: calc(100vh - 90px);
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        width: var(--desktop-container-width);
        max-width: var(--desktop-max-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--desktop-content-gap);
        align-items: center;
        margin-bottom: 40px;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-right: 20px;
        /* Consistent text padding */
    }

    .hero-title,
    .hero-subtitle {
        text-align: left;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: var(--image-container-size);
    }

    /* Auth Section - Desktop */
    .auth-section {
        margin-top: 0;
        /* Remove top margin on desktop */
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 450px;
    }

    .hero-visual-placeholder {
        width: 400px;
        height: 400px;
        background-color: rgba(238, 253, 249, 0.1);
        border-radius: 28px;
        border: 2px dashed rgba(238, 253, 249, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .placeholder-text {
        color: rgba(238, 253, 249, 0.7);
        font-size: 16px;
        font-family: 'Inter', sans-serif;
    }

    .hero-cta {
        max-width: var(--desktop-max-width);
        margin: 0 auto;
        text-align: center;
        display: block;
    }

    .hero-cta .learn-more-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: none;
        color: #EEFDF9;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
        margin: 0 auto;
    }

    /* About Section - Desktop */
    .about-section {
        padding: var(--desktop-padding);
    }

    .about-content {
        width: 100%;
        max-width: 768px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    .about-subtitle {
        text-align: center;
    }

    .about-visual {
        display: none;
    }

    /* Features Section - Desktop */
    .features-section {
        padding: 0 40px var(--desktop-section-gap);
    }

    .features-content {
        width: var(--desktop-container-width);
        max-width: var(--desktop-max-width);
        margin: 0 auto;
    }

    .feature-item {
        width: var(--desktop-container-width);
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
        box-sizing: border-box;
    }

    /* Desktop: Feature trigger styling */
    .feature-trigger {
        width: 100%;
        padding: 20px 0;
    }

    /* Desktop: Collapsed state - trigger only */
    .feature-item:not(.open) .feature-content {
        display: none;
    }

    /* Desktop: Expanded feature item - show as 2-column grid with trigger spanning top */
    .feature-item.open {
        display: grid;
        grid-template-columns: var(--text-container-width) var(--text-container-width);
        grid-template-rows: auto 1fr;
        gap: var(--desktop-content-gap);
        align-items: start;
    }

    .feature-item.open .feature-trigger {
        grid-column: 1 / -1;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .feature-item.open .feature-content {
        display: contents;
    }

    /* Desktop: Feature text styling (only visible when expanded) */
    .feature-item.open .feature-text {
        width: var(--text-container-width);
        padding-right: 20px;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Desktop: Feature image styling (only visible when expanded) */
    .feature-item.open .feature-image {
        width: var(--text-container-width);
        display: flex;
        justify-content: center;
        align-items: center;
        height: var(--image-container-size);
        box-sizing: border-box;
    }

    /* Standardized image sizing */
    .feature-img {
        max-width: var(--image-container-size);
        max-height: var(--image-container-size);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 16px;
    }

    /* Feature Animation (iframe) - Desktop */
    .feature-animation {
        width: 400px;
        height: 420px;
        border: none;
        border-radius: 16px;
        background: transparent;
        display: block;
    }

    .feature-title {
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .feature-subtitle {
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.6;
    }

    /* Compare Section - Desktop */
    .compare-section {
        padding: var(--desktop-padding);
    }

    .compare-content {
        width: var(--desktop-container-width);
        max-width: var(--desktop-max-width);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .compare-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 48px;
        max-width: 600px;
        text-align: center;
    }

    .compare-title,
    .compare-subtitle {
        text-align: center;
    }

    .comparison-table-wrapper {
        margin: 0;
        padding: 0;
        overflow-x: visible !important;
        width: 100%;
        max-width: 1000px;
    }

    .comparison-table {
        min-width: auto;
        width: 100%;
    }

    /* FAQ Section - Desktop */
    .faq-section {
        padding: var(--desktop-padding);
    }

    .faq-content {
        width: var(--desktop-container-width);
        max-width: var(--desktop-max-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: var(--text-container-width) var(--text-container-width);
        gap: var(--desktop-content-gap);
        align-items: start;
    }

    .faq-title {
        text-align: left;
        margin-bottom: 0;
        padding-right: 20px;
    }

    .faq-items {
        /* Second column in consistent 1fr 1fr grid */
    }
}

/* Old Language Selector Styles - REMOVED (now using language-selector-wrapper and language-dropdown) */
/* All legacy .language-selector styles commented out to avoid conflicts */
/* Now using language-dropdown and language-selector-wrapper for new implementation */

/* --- Large Desktop Styles --- */
@media (min-width: 1024px) {

    /* Update custom properties for large screens */
    :root {
        --desktop-section-gap: 100px;
        --desktop-content-gap: 80px;
        --desktop-padding: 100px 60px;
        --desktop-max-width: 1200px;
        --desktop-container-width: 1200px;
        --desktop-container-height: 450px;
        --image-container-size: 450px;
        --text-container-width: 560px;
        /* Updated for large screens */
    }

    .hero-content,
    .features-content,
    .compare-content,
    .faq-content {
        width: var(--desktop-container-width);
        max-width: var(--desktop-max-width);
        gap: var(--desktop-content-gap);
    }

    .hero-content,
    .faq-content {
        grid-template-columns: var(--text-container-width) var(--text-container-width);
    }

    .feature-item.open {
        grid-template-columns: var(--text-container-width) var(--text-container-width);
    }

    .feature-item.open .feature-text,
    .feature-item.open .feature-image {
        width: var(--text-container-width);
    }

    .hero-section {
        padding: 50px 60px 20px 60px;
    }

    .about-section,
    .compare-section,
    .faq-section {
        padding: var(--desktop-padding);
    }

    .features-section {
        padding: 0 60px var(--desktop-section-gap);
    }

    .feature-item {
        margin-bottom: 0;
    }
}
