﻿/* ============================================================
   1. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

:root {
    --purple: #8a2be2;
    --purple-deep: #4b0082;
    --cyan: #00d4ff;
    --bg: #080808;
    --bg-2: #0d0d0d;
    --bg-3: #111111;
    --text: #ffffff;
    --muted: #888899;
    --border: rgba(255, 255, 255, 0.07);
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 120px 0;
}

ul {
    list-style: none;
}

/* ============================================================
   2. HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 28px 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

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

header.active {
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.logo span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    gap: 38px;
    align-items: center;
}

.nav-mobile-cta {
    display: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
    color: #fff;
    outline: none;
}

.btn-cta-nav {
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.25);
}

.btn-cta-nav:hover,
.btn-cta-nav:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(138, 43, 226, 0.45);
    outline: none;
}

/* ============================================================
   3. HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, #1a0b2e 0%, var(--bg) 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #c084fc;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-badge span {
    width: 6px;
    height: 6px;
    background: #c084fc;
    border-radius: 50%;
    display: inline-block;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 8vw, 5rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.typing-wrapper {
    display: block;
    min-height: 1.05em; /* segura o espaco da linha mesmo com texto vazio */
    white-space: nowrap;
    overflow: hidden;
}

#typing-text {
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    color: var(--cyan);
    animation: blink 0.8s infinite;
    margin-left: 3px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 44px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--purple);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #7b1fa2;
    transform: translateY(-3px);
    outline: none;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--cyan);
    outline: none;
}

/* ============================================================
   4. PORTFOLIO + CARROSSEL
   ============================================================ */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 48px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.portfolio-track {
    display: flex;
    gap: 24px;
    width: max-content;
    /* animation aplicada via JS com valor exato em px */
}

@media (hover: hover) and (pointer: fine) {
    .carousel-container:hover .portfolio-track {
        animation-play-state: paused;
    }
}

/* Mobile: animacao infinita igual ao desktop, sem mask lateral */
@media (max-width: 768px) {
    .carousel-container {
        padding: 20px 0;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .portfolio-card {
        flex: 0 0 260px;
        width: 260px;
    }
}

.portfolio-card {
    flex: 0 0 300px;
    width: 300px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 43, 226, 0.3);
}

.portfolio-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--bg-3);
    overflow: hidden;
    flex-shrink: 0;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.portfolio-info {
    padding: 24px 28px 28px;
    background: var(--bg-2);
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.portfolio-desc {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 8, 8, 0.8);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    border-color: var(--purple);
    transform: translateY(-50%) scale(1.05);
    outline: none;
}

.carousel-control.prev {
    left: 4px;
}

.carousel-control.next {
    right: 4px;
}

.carousel-control {
    display: none !important;
}

/* @keyframes scroll-infinite e gerado dinamicamente pelo JS
   com o valor exato em px para funcionar em qualquer dispositivo */

@media (prefers-reduced-motion: reduce) {
    .portfolio-track {
        animation: none;
    }
}

/* Carousel mobile: regras movidas para @media (hover: none) acima */

/* ============================================================
   5. PREÃ‡OS
   ============================================================ */
.pricing {
    background: var(--bg-2);
}

.pricing-header {
    text-align: center;
    margin-bottom: 56px;
}

.pricing-header .section-label {
    font-size: 0.72rem;
    color: var(--purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: block;
}

.pricing-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.pricing-header p {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 43, 226, 0.3);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.pricing-card p {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.pricing-card ul {
    margin-bottom: 32px;
    text-align: left;
}

.pricing-card ul li {
    padding: 8px 0;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* ============================================================
   6. CONTATO - FORM WHATSAPP
   ============================================================ */
.contact-cta {
    background: var(--bg-2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-grid h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-grid p {
    color: var(--muted);
    font-size: 1.1rem;
}

.contact-cta form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid select {
    grid-column: 1 / -1;
}

.contact-cta input,
.contact-cta select,
.contact-cta textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-cta select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888899' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.contact-cta input:focus,
.contact-cta select:focus,
.contact-cta textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.06);
}

.contact-cta textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-cta select option {
    background: var(--bg-2);
    color: var(--text);
}

.contact-cta input::placeholder,
.contact-cta textarea::placeholder {
    color: var(--muted);
}

.contact-cta button[type="submit"] {
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 36px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.25);
}

.contact-cta button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(138, 43, 226, 0.45);
}

.contact-cta button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================
   7. FOOTER
   ============================================================ */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
    text-align: center;
}

footer p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   8. ANIMAÃ‡Ã•ES & SCROLL REVEAL
   ============================================================ */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease var(--reveal-delay, 0ms),
                transform 0.55s ease var(--reveal-delay, 0ms);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .cursor {
        animation: none;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============================================================
   9. RESPONSIVIDADE
   ============================================================ */

/* ============================================================
   HAMBURGER - Base styles (display: none by default)
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger--open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   9. MEDIA QUERIES
   ============================================================ */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-grid h2 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .btn-cta-nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        padding: 60px 32px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.nav-open {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }

    .nav-mobile-cta {
        margin-top: 16px;
        width: 100%;
    }

    .nav-mobile-cta a {
        display: block;
        text-align: center;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .hero-content h1 {
        letter-spacing: -1px;
    }
    
    .portfolio-card {
        flex: 0 0 260px;
        width: 260px;
    }
    
    .portfolio-info {
        padding: 20px 20px 24px;
    }
    
    .portfolio-title {
        font-size: 1rem;
    }
    
    .portfolio-desc {
        font-size: 0.82rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        letter-spacing: -0.5px;
    }
    
    .portfolio-card {
        flex: 0 0 240px;
        width: 240px;
    }
}
/* ============================================================
   METRICAS
   ============================================================ */
.metrics {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.metrics-cta {
    text-align: center;
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* ============================================================
   COMPARATIVO
   ============================================================ */
.comparativo {
    background: var(--bg-2);
}

.comparativo-header {
    text-align: center;
    margin-bottom: 64px;
}

.comparativo-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 12px 0 16px;
    line-height: 1.1;
}

.comparativo-header p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.comparativo-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.comp-col {
    padding: 40px 36px;
}

.comp-col--com {
    background: rgba(138, 43, 226, 0.06);
    border-left: 1px solid rgba(138, 43, 226, 0.2);
}

.comp-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.comp-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comp-col--sem .comp-icon {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.comp-col--com .comp-icon {
    background: rgba(138, 43, 226, 0.2);
    color: var(--purple);
    border: 1px solid rgba(138, 43, 226, 0.4);
}

.comp-col-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.comp-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.comp-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comp-bar-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

.comp-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
}

.comp-bar {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-bar.animated {
    width: var(--w);
}

.comp-bar--low {
    background: rgba(255, 80, 80, 0.6);
}

.comp-bar--high {
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.comp-bar-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.comp-list li {
    font-size: 0.85rem;
    padding-left: 20px;
    position: relative;
    color: var(--muted);
    line-height: 1.5;
}

.comp-list--neg li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff5050;
    font-size: 0.75rem;
}

.comp-list--pos li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.75rem;
}

.comp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    writing-mode: vertical-rl;
}

.comp-divider span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--muted);
    background: var(--bg-3);
    padding: 8px 4px;
}

.comparativo-cta {
    text-align: center;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .comparativo-grid {
        grid-template-columns: 1fr;
    }

    .comp-divider {
        writing-mode: horizontal-tb;
        padding: 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .comp-divider span {
        padding: 12px 20px;
        letter-spacing: 6px;
    }

    .comp-col--com {
        border-left: none;
        border-top: 1px solid rgba(138, 43, 226, 0.2);
    }

    .comp-col {
        padding: 28px 20px;
    }
}
