/* Estilos para o site Obra Fácil */
:root {
    --primary-color: #00a651;
    --background-dark: #111827;
    --text-light: #ffffff;
    --text-gray: #8b8b8b;
    --gradient: linear-gradient(135deg, #00a651 0%, #008741 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes de Animação */
.animate-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-message {
    opacity: 0;
    animation: messageSlideIn 0.5s ease forwards;
}

/* Estilos Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Header e Navegação */
header {
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul {
    position: absolute;
    right: 2rem;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
main {
    padding-top: 80px;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    text-align: center;
}

.announcement {
    display: inline-block;
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.3);
}

/* Chat Preview */
.chat-preview {
    max-width: 400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.chat-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-messages {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: url('imagem de fundo.webp');
    background-size: cover;
    background-position: center;
    min-height: 350px;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    max-width: 85%;
    white-space: pre-line;
    opacity: 0;
}

.message.assistant {
    background: rgba(0, 166, 81, 0.9);
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.message.user {
    background: rgba(255, 255, 255, 0.9);
    margin-left: auto;
    border-bottom-right-radius: 0;
    color: #333;
}

.message:nth-child(1) { animation-delay: 0s; }
.message:nth-child(2) { animation-delay: 2s; }
.message:nth-child(3) { animation-delay: 4s; }
.message:nth-child(4) { animation-delay: 6s; }
.message:nth-child(5) { animation-delay: 8s; }
.message:nth-child(6) { animation-delay: 10s; }
.message:nth-child(7) { animation-delay: 12s; }

/* Como funciona */
.how-it-works {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.steps-container {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-number::before {
    content: "Passo ";
}

.step-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Seção de Comparação */
.comparison-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.comparison-cards {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-content {
    flex: 1;
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.card-content.before {
    background: rgba(255, 255, 255, 0.05);
}

.card-content.before h3 {
    color: #ff4444;
}

.card-content.after {
    background: var(--primary-color);
}

.card-content .label {
    position: absolute;
    top: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-content.before .label {
    left: 1.5rem;
    color: #ff4444;
}

.card-content.after .label {
    right: 1.5rem;
    color: var(--text-light);
}

.card-content h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.card-content.after h3 {
    color: var(--text-light);
}

/* Benefícios */
.benefits-section {
    padding: 4rem 2rem;
    text-align: center;
}

.benefits-grid {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-color);
}

.benefit-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Depoimentos */
.testimonials {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Planos */
.pricing-section {
    padding: 4rem 2rem;
    text-align: center;
}

.pricing-grid {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.15) 0%, rgba(0, 135, 65, 0.25) 100%);
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 166, 81, 0.2);
}

.featured-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1.5rem;
}

.price small {
    font-size: 1rem;
    color: var(--text-gray);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li.disabled {
    color: #ff4444;
    opacity: 0.7;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin: 0.75rem 0;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    /* Geral */
    body {
        font-size: 14px;
    }

    section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Header */
    header {
        padding: 0.75rem;
    }

    nav {
        justify-content: center;
        padding: 0;
    }

    nav ul {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    /* Hero */
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .announcement {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Chat Preview */
    .chat-preview {
        padding: 0;
        margin: 1.5rem auto;
        width: 90%;
    }

    .chat-container {
        transform: none;
        margin: 0 auto;
    }

    .chat-messages {
        min-height: 350px;
        padding: 0.75rem;
    }

    .message {
        font-size: 0.9rem;
        padding: 0.75rem;
        max-width: 90%;
    }

    /* Como funciona */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .step-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    /* Comparação */
    .comparison-cards {
        padding: 0 1rem;
    }

    .comparison-card {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-content h3 {
        text-align: center;
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Benefícios */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-card h3 {
        font-size: 1.1rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    /* Depoimentos */
    .testimonials {
        padding: 2rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .testimonial-card {
        min-width: auto;
        max-width: 100%;
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .testimonial-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .testimonial-author {
        margin-top: 1rem;
    }

    /* Planos */
    .pricing-section {
        padding: 2rem 0;
    }

    .pricing-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card ul {
        margin: 1.5rem 0;
    }

    .pricing-card ul li {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-column {
        padding: 0 1rem;
    }

    .footer-column a {
        justify-content: center;
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-bottom {
        margin-top: 2rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    h1 {
        font-size: 2rem;
    }

    .chat-messages {
        min-height: 250px;
    }

    .message {
        max-width: 95%;
        font-size: 0.9rem;
    }
}
