:root {
    --primary-color: #D6001C;
    /* Reverted to red */
    --text-white: #FFFFFF;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}



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

body {
    font-family: var(--font-main);
    background-color: var(--text-white);
    /* Changed to white to fix footer band */
    color: var(--text-white);
    /* Text color remains white for inheritance, but might need adjustment on white backgrounds? No, wrapper is red. */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    background-color: var(--primary-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    /* Align logo left, login right */
    padding: 2rem 5%;
    /* Changed to percentage for better responsiveness */
    align-items: center;
    max-width: 1440px;
    /* Max width constraint */
    margin: 0 auto;
    width: 100%;
    flex-wrap: nowrap;
    /* Prevent stacking on desktop */
}

.logo-container,
.header-actions {
    flex-shrink: 0;
    /* Prevent shrinking */
}

.login-btn {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: default;
    /* No pointer to indicate no action */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.login-btn:hover {
    opacity: 1;
}

/* Main Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* align-items: center; Removed to allow left alignment */
    text-align: left;
    /* Ensure text aligns left */
    padding: 1rem 5%;
    /* Matches header padding */
    /* Match header horizontal padding (3rem) */
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    /* No margin auto, so it sits left */
}

/* Header Logo Text - REPLACED BY IMAGE */
.header-logo {
    height: 38px;
    /* Reduced by ~20% from 48px */
    width: auto;
    display: block;
    margin-top: 8px;
    /* Push down to align 'Vexto' with nav text */
}

/* Hero Title (Restored) */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: left;
    line-height: 1;
}

.hero-subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    text-align: left;
    line-height: 1.5;
}

/* Visual / Machine */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    perspective: 1000px;
    /* Enable 3D perspective for tilt */
    align-self: center;
    /* Keep the visual centered on page */
}

.machine-container {
    position: relative;
    width: 280px;
    /* Reduced from 300px to better fit text */
    height: auto;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.machine-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    /* Increased depth */
}

/* Decorative Glow behind machine */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(214, 0, 28, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Footer */
.footer {
    padding: 0.75rem 2rem;
    /* Reduced padding */
    background-color: var(--text-white);
    color: #333;
    margin-top: auto;
    font-size: 0.75rem;
    /* Smaller text */
    /* border-top removed */
}

/* Language Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    /* Medium weight */
    font-size: 1rem;
    color: var(--text-white);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-weight: 500;
    /* Medium weight */
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    color: var(--text-white);
    font-weight: 700;
    /* Bold for active state */
}

.divider {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 1rem;
}

.footer-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-origin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    font-weight: 700;
    text-transform: uppercase;
}

.venture {
    font-weight: 400;
    opacity: 0.7;
}

.contact-link {
    color: #333;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.made-in {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Responsive */
@media (min-width: 1024px) {
    .login-btn {
        position: static;
    }

    .hero {
        flex-direction: row;
        /* Side by side on desktop */
        align-items: center;
        /* Vertically center items */
        justify-content: space-between;
        /* Push items to edges of container */
        /* Center the whole block horizontally */
        padding-top: 0;
        /* Remove top padding to let align-items work */
        min-height: 70vh;
        /* Ensure enough height for vertical centering */
        gap: 4rem;
        /* Space between text and image */
        max-width: 1440px;
        margin: 0 auto;
        text-align: left;
    }

    .hero-content {
        max-width: 600px;
        flex: 1;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-visual {
        flex: 1;
        margin-top: 0;
        display: flex;
        /* Ensure flexbox for centering */
        justify-content: flex-end;
        /* Align image to the right */
        align-items: center;
        /* Center vertically in its container */
        /* Image to the right of center */
        padding-left: 2rem;
        height: 100%;
        /* Take full height */
    }

    .machine-container {
        width: 400px;
        /* Larger image on desktop */
        max-width: 100%;
        margin: 0;
        display: block;
        /* Ensure it's a block */
        /* Reset margins */
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 5%;
        /* Ensure side padding */
    }

    .header-logo {
        height: 32px;
        /* Smaller logo for mobile */
    }

    .hero {
        padding: 2rem 5%;
        /* Ensure side padding */
    }

    .hero-title {
        font-size: 2.25rem;
        /* Slightly smaller */
    }

    .hero-subtitle {
        font-size: 2rem;
        /* Readable but compact */
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .machine-container {
        width: 220px;
        /* Smaller image for mobile */
    }

    .glow-effect {
        width: 120%;
        /* Slightly contained glow */
        height: 120%;
    }

    .footer {
        padding: 1.5rem 5%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}