* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #4a4a4a;
    --accent: #2563EB;
    --accent-yellow: #F59E0B;
    --accent-red: #EF4444;
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --border: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --primary: #FFFFFF;
    --secondary: #E5E7EB;
    --accent: #3B82F6;
    --accent-yellow: #FBBF24;
    --accent-red: #F87171;
    --background: #111827;
    --surface: #1F2937;
    --border: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background-color: var(--background);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: flex-end;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    position: relative;
}

.theme-toggle:hover {
    background-color: var(--surface);
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.hero {
    padding: 80px 0 60px;
    text-align: center;
    background-color: var(--background);
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-logo img {
    height: 280px;
    width: auto;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .hero-logo img {
    filter: brightness(0) invert(1);
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.produtos {
    padding: 60px 0 80px;
    background-color: var(--surface);
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.produto-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.produto-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.produto-item:hover::before {
    transform: scaleX(1);
}

.produto-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.produto-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.produto-item:hover .produto-icon {
    transform: scale(1.1);
    color: var(--accent-red);
}

.produto-icon svg {
    width: 100%;
    height: 100%;
}

.produto-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.cta {
    padding: 80px 0;
    background-color: var(--background);
    text-align: center;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-red) 0%, #DC2626 100%);
    color: white;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    font-family: 'Inter', sans-serif;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-cta:active {
    transform: translateY(0);
}

.footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .footer {
    background-color: #0F172A;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .footer-logo img {
    filter: none;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 16px 0;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-logo img {
        height: 180px;
    }

    .hero p {
        font-size: 16px;
    }

    .produtos {
        padding: 40px 0 60px;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .produto-item {
        padding: 32px 16px;
    }

    .produto-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .produto-item h3 {
        font-size: 14px;
    }

    .cta {
        padding: 60px 0;
    }

    .btn-cta {
        padding: 16px 40px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-social a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        height: 150px;
    }

    .produtos-grid {
        grid-template-columns: 1fr;
    }
}
