/* RESET E VARIÁVEIS */
:root {
    --bg-main: #0b0f19;
    --bg-darker: #05070c;
    --card-bg: #141b2d;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --accent: #ff6b00;
    --accent-hover: #e05e00;
    --accent-light: rgba(255, 107, 0, 0.1);
    --border-color: #242b3d;
    --header-h: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TYPOGRAPHY & UTILS */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* LAYOUT CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

/* SECTION PADDING */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 50px;
}

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* 1. HEADER FIXO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo::after {
    content: '.';
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

.btn-header {
    padding: 8px 20px;
    font-size: 0.95rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger {
    top: 11px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* 2. HERO SECTION */
.hero {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

.mockup-img {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* 3. SEÇÃO DE DOR */
.problem-section {
    background-color: var(--bg-darker);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.problem-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.problem-icon {
    font-size: 1.5rem;
}

.problem-result {
    text-align: center;
    background-color: rgba(255, 60, 60, 0.1);
    color: #ff8585;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 60, 60, 0.2);
}

/* 4. SOLUÇÃO / BENEFÍCIOS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.25rem;
}

/* 5. COMO FUNCIONA */
.steps-section {
    background-color: var(--bg-darker);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
}

/* 6. PORTFÓLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    /* Aspect ratio 16:10 */
    overflow: hidden;
}

.portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.portfolio-tags li {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-muted);
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.btn-view-project {
    margin-top: auto;
    width: fit-content;
}

/* MODAL PORTFOLIO */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: var(--bg-main);
    border-radius: 12px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-title {
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 7. DEPOIMENTOS */
.testimonials-section {
    background-color: var(--bg-darker);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card.whatsapp-style {
    background-color: #e5ddd5;
    border-radius: 12px;
    overflow: hidden;
    color: #111b21;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-header {
    background-color: #075e54;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background-color: #128c7e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-weight: 600;
    font-size: 1rem;
}

.wa-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.whatsapp-body {
    padding: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d8cfc5' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.wa-message {
    background-color: #dcf8c6;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #dcf8c6;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #667781;
    margin-top: 5px;
}

.stars {
    font-size: 1.2rem;
    text-align: right;
}

/* 8. PLANOS / PREÇOS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.highlighted {
    border-color: var(--accent);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(20, 27, 45, 1) 0%, rgba(20, 27, 45, 1) 100%);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.15);
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.highlighted .plan-name {
    color: var(--accent);
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-main);
}

.plan-features {
    text-align: left;
    margin-bottom: 40px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* 9. GARANTIA */
.warranty-section {
    background-color: var(--bg-darker);
    padding: 60px 0;
}

.warranty-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px dashed var(--accent);
}

.warranty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.warranty-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

/* 10. FAQ */
.faq-container {
    max-width: 800px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
    /* better mobile experience */
}

.accordion-header * {
    pointer-events: none;
    /* Prevents clicks on inner spans from failing the button click on Safari */
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.accordion-header[aria-expanded="true"]+.accordion-content {
    max-height: 500px;
    /* valor arbitrário alto o suficiente */
    padding: 0 20px 20px 20px;
}

.accordion-content p {
    color: var(--text-muted);
}

/* 11. CTA FINAL */
.cta-final {
    background: linear-gradient(to bottom, var(--bg-main) 0%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
}

/* 12. FOOTER */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* FLOATING WHATSAPP & BACK TO TOP */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-card.highlighted {
        transform: scale(1);
    }

    .pricing-card.highlighted:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background-color: var(--bg-darker);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .btn-header {
        width: 100%;
    }

    .hamburger.active {
        background-color: transparent;
    }

    .hamburger.active::before {
        top: 0;
        transform: rotate(45deg);
    }

    .hamburger.active::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-large {
        width: 100%;
    }

    .fab-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 20px;
        right: 85px;
        width: 40px;
        height: 40px;
    }
}