/* --- Reset and Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Boris AI Brand Colors */
    --primary-navy: hsl(210, 40%, 8%);
    --navy-light: hsl(210, 40%, 12%);
    /* Cor exata do fundo da sua imagem de logo */
    --header-bg: hsl(210, 40%, 12%);
    --accent-mint: hsl(160, 100%, 45%);
    --accent-mint-hover: hsl(160, 100%, 55%);
    --primary-white: hsl(0, 0%, 100%);
    --text-primary: hsl(210, 15%, 95%);
    --text-muted: hsl(210, 15%, 70%);

    /* Shadows */
    --shadow-card: 0 8px 30px hsla(0, 0%, 0%, 0.2);
    --shadow-glow: 0 0 25px hsla(160, 100%, 45%, 0.15);

    /* Transitions & Radius */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card: 1rem;
    --radius-button: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-navy);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: radial-gradient(hsla(210, 40%, 12%, 0.5) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
    line-height: 1.2;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.logo-container {
    height: 80px; 
    display: flex;
    align-items: center;
    z-index: 1001; /* Garante que o logo fique acima do menu mobile */
}

.logo {
    height: 140px; 
    width: auto;
    object-fit: cover; 
}

.nav-links {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--accent-mint);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-white);
    z-index: 1001;
}
.mobile-menu-icon {
    width: 30px;
    height: 30px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 2rem 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at top, var(--navy-light), var(--primary-navy));
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-content {
    flex: 1 1 500px;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-white), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

/* --- Buttons --- */
.cta-button {
    border: none;
    border-radius: var(--radius-button);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
}

.cta-button.primary {
    background: var(--accent-mint);
    color: var(--primary-navy);
}

.cta-button.primary:hover {
    background: var(--accent-mint-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px hsla(160, 100%, 45%, 0.2);
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* --- Phone Mockup --- */
.hero-mockups {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 500px;
}
.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 2px 2px #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    background: var(--primary-navy);
    height: 100%;
    width: 100%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 10px 15px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.chat-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 120%;
    height: auto;
    object-fit: contain;
}

.chat-info h3 { font-size: 1rem; font-weight: 600; }
.chat-info p { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.status-indicator { width: 8px; height: 8px; background: var(--accent-mint); border-radius: 50%; }

.chat-messages { padding: 15px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; overflow-y: auto; }
.message { max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 0.875rem; line-height: 1.5; }
.message.received { background: #262D31; align-self: flex-start; border-bottom-left-radius: 4px; }
.message.sent { background: #005C4B; align-self: flex-end; border-bottom-right-radius: 4px; }
.message.typing { padding: 15px; }
.message.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); display: inline-block; margin: 0 1px; animation: bounce 1.4s infinite; }
.message.typing span:nth-child(2) { animation-delay: 0.2s; }
.message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}


/* --- Form Section --- */
.form-section {
    padding: 3.5rem 2rem 1rem;
    background: var(--navy-light);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--primary-navy);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    border: 1px solid hsl(210, 40%, 15%);
}

.form-field {
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(210, 40%, 15%);
    border: 1px solid hsl(210, 40%, 20%);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 2px hsla(160, 100%, 45%, 0.2);
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 3rem 2rem;
}

.steps-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-mint);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-muted);
}

/* --- Features (Vantagens) Section --- */
.features-section {
    padding: 1rem 2rem 1.5rem;
    background: var(--navy-light);
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--primary-navy);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-card);
    border: 1px solid hsl(210, 40%, 15%);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-mint);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    margin-bottom: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(210, 40%, 15%);
    border-radius: 0.75rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-mint);
}

.feature-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 700px; /* trava a largura do container */
  flex-wrap: wrap;
  text-align: center;
}

.trust-logo {
  height: 80px;         /* tamanho ideal para desktop */
  width: auto;          /* mantém proporção original */
  max-width: 160px;     /* garante limite superior */
  flex-shrink: 0;
  display: block;
}

.trust-text {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
}

/* --- Testimonial Section --- */
.testimonial-section {
    padding: 6rem 2rem;
    text-align: center;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: normal;
}

/* --- Prices Section --- */
.prices-section {
    padding: 6rem 2rem;
    background: var(--primary-navy);
    text-align: center;
}

.prices-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.price-card {
    background: var(--navy-light);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-card);
    border: 1px solid hsl(210, 40%, 15%);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    text-align: center;
    width: 100%;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-mint);
    box-shadow: var(--shadow-glow);
}

.price-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
    font-weight: 700;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-mint);
    margin-bottom: 1rem;
}

.price-description {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 2rem;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    max-width: 600px;
}

/* --- Footer --- */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--navy-light);
    border-top: 1px solid hsl(210, 40%, 15%);
}

.footer-logo .logo {
    height: 140px; 
    width: auto;
    object-fit: contain;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
}

.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-mint);
}

/* =============================================== */
/* --- Mobile Responsiveness (768px and below) --- */
/* =============================================== */

@media (max-width: 768px) {
    body {
        background-size: 1.5rem 1.5rem;
    }

    /* --- Header & Mobile Navigation --- */
    .nav {
        padding: 0 1rem;
    }

    .logo {
        height: 120px; /* Logo menor no mobile */
    }

    .mobile-menu-toggle {
        display: block; /* Mostra o botão do menu */
    }

    .nav-links {
        display: none; /* Esconde os links por padrão */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: hsla(210, 40%, 8%, 0.95);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex; /* Mostra o menu quando ativo */
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.5rem; /* Fonte maior para links no menu mobile */
    }

    /* --- Hero Section Mobile --- */
    .hero-section {
        padding: 100px 1rem 3rem;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column; /* Empilha o conteúdo */
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 1; /* Coloca o texto abaixo dos mockups */
    }
    
    .hero-mockups {
        order: 2; /* Coloca os mockups acima do texto */
        flex-direction: column;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
        padding: 12px;
        border-radius: 35px;
    }

    .phone-screen {
        border-radius: 25px;
    }
    
    /* --- General Section & Card Adjustments --- */
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 2.5rem;
    }

    .features-section,
    .how-it-works-section,
    .cta-section,
    .form-section,
    .prices-section,
    .testimonial-section {
        padding: 4rem 1rem;
    }
    
    .form-section {
        padding-bottom: 2rem;
    }

    .features-section {
    padding-top: 2rem; /* O valor original era 4rem */
}
    .features-grid,
    .steps-container,
    .prices-container {
        grid-template-columns: 1fr; /* Coluna única para todos os grids */
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    .trust-badge {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .trust-logo {
    height: 70px; /* ligeiramente maior no mobile */
    max-width: 140px;
  }

  .trust-text {
    font-size: 0.95rem;
  }
    /* --- Footer Mobile --- */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-links-group {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        width: 100%;
    }
    
    .footer-links {
        width: 100%;
    }

    .footer-logo .logo {
        height: 120px;
        margin: 0 auto;
    }
}
/* --- Corrige cor do fundo em campos autocompletados --- */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px hsl(210, 40%, 15%) inset !important;
    box-shadow: 0 0 0px 1000px hsl(210, 40%, 15%) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s; /* evita piscar */
}
