/*
  Dispare Online - Landing Page Styles (Inspired by Figma Reference)
  Date: 2025-05-12
*/

/* === RESET & GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Preto Principal */
    color: #F5F5F5; /* Cinza Claro para texto */
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF; /* Branco para títulos por padrão */
    font-weight: 700; /* Bold */
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* 60.8px */
    font-weight: 800; /* ExtraBold */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem); /* 48px */
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem); /* 28px */
    margin-bottom: 0.75rem;
    color: #FFFFFF; /* Roxo Claro para subtítulos de cards */
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

a {
    color: #9E7BFF; /* Roxo Claro */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7B4DFF; /* Roxo Principal */
}

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

.highlight-purple {
    color: #7B4DFF; /* Roxo Principal */
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #E2D9FF; /* Roxo Muito Claro */
    max-width: 700px;
    margin: -2.5rem auto 3rem auto;
}

/* === BACKGROUND DECORATIVE ELEMENTS === */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.circle-bg {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(100px);
}

.circle-bg.c1 {
    width: 500px;
    height: 500px;
    background-color: #7B4DFF; /* Roxo Principal */
    top: -150px;
    left: -150px;
}

.circle-bg.c2 {
    width: 400px;
    height: 400px;
    background-color: #5A35C8; /* Roxo Escuro */
    bottom: -100px;
    right: -100px;
}

.circle-bg.c3 {
    width: 300px;
    height: 300px;
    background-color: #9E7BFF; /* Roxo Claro */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

/* === HEADER === */
#main-header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(10, 0, 20, 0.8); /* Fundo escuro com transparência e tom roxo */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 40px;
    transition: transform 0.3s ease;
}
#logo:hover {
    transform: scale(1.05);
}

#main-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

#main-header nav ul li {
    margin-left: 2.5rem;
}

#main-header nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 1rem;
    color: #E2D9FF; /* Roxo Muito Claro */
    position: relative;
    padding-bottom: 5px;
}

#main-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #7B4DFF;
    transition: width 0.3s ease;
}

#main-header nav ul li a:hover::after, #main-header nav ul li a.active::after {
    width: 100%;
}

#main-header nav ul li a:hover {
    color: #FFFFFF;
}

/* === CTA BUTTONS === */
.cta-button {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 1rem;
    color: #FFFFFF;
    background: linear-gradient(90deg, #7B4DFF, #5A35C8);
    padding: 14px 30px;
    border-radius: 50px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(123, 77, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(123, 77, 255, 0.5);
}

.cta-button .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.header-cta {
    font-size: 0.9rem;
    padding: 12px 25px;
}

/* === HERO SECTION === */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 60px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text .subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #E2D9FF; /* Roxo Muito Claro */
    margin: 1.5rem 0 2.5rem 0;
}

.active-users {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.active-users img {
    height: 40px; /* Placeholder for stacked avatars */
    margin-right: 0.75rem;
}

.active-users p {
    font-size: 0.9rem;
    color: #9E7BFF;
    margin-bottom: 0;
}

.active-users p span {
    font-weight: 700;
    color: #FFFFFF;
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure main image is on top for mobile stacking */
    justify-content: center;
    align-items: center;
}

.hero-image-main {
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    margin-bottom: 1rem; /* Add some space for mobile if elements stack */
}

.floating-ui {
    position: absolute;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #FFFFFF;
}

.glass-effect-light {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-ui img {
    height: 24px;
    margin-right: 0.75rem;
}

.floating-ui.element1 {
    bottom: 15%;
    left: -10%;
}

.floating-ui.element2 {
    top: 15%;
    right: -10%;
}

/* === SECTIONS GENERAL === */
section {
    padding: 6rem 0;
}

/* === FEATURES SECTION === */
#features {
    background-color: rgba(28, 0, 60, 0.3); /* Subtle dark purple bg */
}

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

.feature-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-effect {
    background: rgba(90, 53, 200, 0.15); /* Roxo Escuro com transparência */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(158, 123, 255, 0.25); /* Borda Roxo Claro sutil */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(90, 53, 200, 0.3);
}

.feature-card img {
    height: 60px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.feature-card p {
    font-size: 0.95rem;
    color: #E2D9FF;
}

/* === HOW IT WORKS SECTION === */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: rgba(255,255,255,0.03);
    position: relative;
}

.step-number-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7B4DFF, #5A35C8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -3.5rem auto 1.5rem auto; /* Pulls it up */
    box-shadow: 0 4px 10px rgba(123, 77, 255, 0.3);
    border: 3px solid #000000;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.step-card img {
    height: 50px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.step-card p {
    font-size: 0.9rem;
    color: #C0B0FF;
}

.step-connector {
    flex-grow: 0;
    flex-shrink: 0;
    width: 100px; /* Adjust as needed */
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #7B4DFF,
        #7B4DFF 5px,
        transparent 5px,
        transparent 10px
    );
    margin-top: 2.5rem; /* Align with middle of cards */
    align-self: center;
    position: relative;
    top: -30px; /* Adjust to align with number circle */
}

/* === PRICING SECTION === */
#pricing {
    background-color: rgba(28, 0, 60, 0.3);
}

.pricing-card-main {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
}

.pricing-header .price-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4rem); /* 64px */
    font-weight: 800;
    color: #7B4DFF;
    margin: 1rem 0 0.5rem 0;
}

.pricing-header .per-month {
    font-size: 1rem;
    font-weight: 500;
    color: #9E7BFF;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.features-list li {
    font-size: 1rem;
    color: #E2D9FF;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to left for readability */
    text-align: left;
}

.features-list .check-icon {
    color: #25D366; /* Verde WhatsApp */
    margin-right: 0.75rem;
    font-size: 1.3rem;
}

.pricing-cta {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
}

.trial-info {
    font-size: 0.85rem;
    color: #9E7BFF;
    margin-top: 1rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 15px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 3px solid #7B4DFF;
}

.testimonial-card .quote {
    font-size: 1rem;
    font-style: italic;
    color: #E2D9FF;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.testimonial-card .quote::before {
    content: '“';
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    color: #7B4DFF;
    position: absolute;
    left: -5px;
    top: -10px;
}

.testimonial-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 1rem;
    text-align: center;
}

/* === FAQ SECTION === */
#faq {
    background-color: rgba(28, 0, 60, 0.3);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: rgba(90, 53, 200, 0.1);
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(158, 123, 255, 0.2);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(123, 77, 255, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

.faq-answer p {
    font-size: 0.95rem;
    color: #E2D9FF;
}

/* === FINAL CTA BANNER === */
#final-cta-banner {
    background: linear-gradient(135deg, #5A35C8, #7B4DFF);
    padding: 5rem 0;
    text-align: center;
}

.cta-banner-content h2 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-banner-content p {
    color: #E2D9FF;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.banner-cta {
    background: #FFFFFF;
    color: #5A35C8; /* Roxo Escuro */
    box-shadow: 0 5px 15px rgba(0,0,0, 0.2);
}

.banner-cta:hover {
    background: #E2D9FF;
    color: #5A35C8;
    box-shadow: 0 8px 25px rgba(0,0,0, 0.3);
}

/* === FOOTER === */
footer {
    background-color: #0A0014; /* Quase preto com tom roxo */
    padding: 4rem 0 2rem 0;
    color: #9E7BFF;
}

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

.footer-logo-area img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo-area p {
    font-size: 0.9rem;
    color: #C0B0FF;
}

footer h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a, footer .footer-contact p {
    font-size: 0.9rem;
    color: #C0B0FF;
}

footer ul li a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(158, 123, 255, 0.2);
    font-size: 0.85rem;
    color: #9E7BFF;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 3rem; /* Increased space for stacked elements */
    }
    .hero-image-main {
        max-width: 380px;
        margin-bottom: 2rem; /* Space before floating UIs stack */
    }
    /* Adjust floating UI for stacking below hero image on medium screens */
    .floating-ui {
        position: relative; /* Change from absolute to allow stacking */
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 0.75rem auto; /* Center and add space between stacked items */
        width: fit-content; /* Adjust width to content */
        max-width: 250px; /* Max width for better layout */
    }
    .floating-ui.element1 {
       order: 2; /* Control stacking order if needed */
    }
    .floating-ui.element2 {
       order: 3;
    }
    .hero-image-main {
        order: 1; /* Ensure image is first in the column flow */
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        width: 2px;
        height: 50px;
        margin: 1rem 0;
        background: repeating-linear-gradient(
            0deg,
            #7B4DFF,
            #7B4DFF 5px,
            transparent 5px,
            transparent 10px
        );
        top: 0;
    }
    .step-card {
        width: 100%;
        max-width: 400px;
    }
    .step-number-container {
        margin-top: -2.5rem; /* Adjust for vertical layout */
    }
}

@media (max-width: 768px) {
    #main-header .container {
        flex-direction: column;
    }
    #main-header nav {
        margin-top: 1rem;
    }
    #main-header nav ul li {
        margin: 0 0.75rem;
    }
    .header-cta {
        display: none; /* Can be moved to a mobile menu later */
    }

    h1 { font-size: clamp(2rem, 6vw, 3rem); }
    h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); margin-bottom:2rem; }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-area img, footer ul {
        margin-left: auto;
        margin-right: auto;
    }
    .features-list li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #main-header nav ul li {
        margin: 0 0.5rem;
    }
    #main-header nav ul li a {
        font-size: 0.9rem;
    }
    .hero-text .subtitle {
        font-size: 0.95rem;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    /* Further refinement for floating UI on very small screens if needed */
    .floating-ui {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .floating-ui img {
        height: 20px;
    }
}

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; /* controlado por JS */
  align-items: center; justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 520px;
  background: rgba(28, 0, 60, 0.92);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(158,123,255,0.25);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.modal h3 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-subtitle {
  color: #C0B0FF;
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #E2D9FF;
}

.modal input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(158,123,255,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  margin-bottom: 1rem;
  outline: none;
}

.modal input:focus {
  border-color: #7B4DFF;
  box-shadow: 0 0 0 3px rgba(123,77,255,0.25);
}

.modal-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: #9E7BFF;
  text-align: center;
  margin-top: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: none;
  color: #E2D9FF;
  font-size: 1.6rem;
  cursor: pointer;
}

.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.2em;
}
