:root {
    --primary: #5a0909;
    --primary-light: #7c1212;
    --secondary: #c77b16;
    --accent: #f0b12a;
    --bg-cream: #faf7f2;
    --bg-white: #ffffff;
    --text-dark: #221c19;
    --text-muted: #665b55;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(90, 9, 9, 0.05);
    --shadow-md: 0 10px 30px rgba(90, 9, 9, 0.08);
    --shadow-lg: 0 20px 40px rgba(90, 9, 9, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Logo */
.header {
    position: sticky;
    top: 0;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(199, 123, 22, 0.15);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* Language selector */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(199, 123, 22, 0.08);
    padding: 0.25rem;
    border-radius: 50px;
    border: 1px solid rgba(199, 123, 22, 0.12);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(90, 9, 9, 0.2);
}

.flag {
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 8px 24px rgba(90, 9, 9, 0.15);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(90, 9, 9, 0.25);
}

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

.btn-secondary:hover {
    background: rgba(90, 9, 9, 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 4rem 0 6rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(240, 177, 42, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(199, 123, 22, 0.05) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(199, 123, 22, 0.12);
    color: var(--secondary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(199, 123, 22, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    border: 8px solid var(--bg-white);
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.machine-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
}

/* Features */
.features {
    background-color: var(--bg-white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-cream);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(199, 123, 22, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(199, 123, 22, 0.25);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* How It Works */
.how-it-works {
    background-color: var(--bg-white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 6px 15px rgba(90, 9, 9, 0.2);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact / CTA */
.contact {
    background: radial-gradient(circle at top left, rgba(240, 177, 42, 0.05), transparent), var(--bg-cream);
}

.contact-box {
    background: linear-gradient(135deg, #5a0909 0%, #3e0505 100%);
    border-radius: 30px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.ceo-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.avatar {
    font-size: 1.75rem;
}

.ceo-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.ceo-title {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background: #20ba59;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.email-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.email-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    padding: 2rem 2rem;
}

.footer-company {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .machine-img {
        height: 380px;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
        gap: 2rem;
    }

    .ceo-badge {
        align-self: center;
        text-align: left;
    }
}

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        padding: 0.8rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        width: 80px;
    }

    .lang-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;
    }

    .contact-box {
        padding: 2.5rem 1.25rem;
        border-radius: 24px;
    }

    .btn-contact {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        gap: 0.5rem;
        border-radius: 12px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}