:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --secondary: #ec4899;
    --accent: #06b6d4;
    --bg-dark: #020617;
    /* Slate 950 - Deeper dark */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.02);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Typography Scale - Fluid */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
    --fs-h3: clamp(1.25rem, 2vw + 1rem, 1.75rem);
    --fs-body: clamp(1rem, 0.5vw + 0.8rem, 1.125rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: var(--fs-body);
}

/* --- Animated Mesh Gradient Background --- */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-mesh::before,
.background-mesh::after {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vh;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    animation: meshFlow 20s infinite alternate ease-in-out;
}

.background-mesh::before {
    background: radial-gradient(circle, var(--primary), transparent);
    top: -20%;
    left: -20%;
    animation-delay: -5s;
}

.background-mesh::after {
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -20%;
    right: -20%;
    animation-delay: 0s;
}

@keyframes meshFlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 5%) scale(0.9);
    }

    100% {
        transform: translate(5%, -10%) scale(1.05);
    }
}

/* Grid Overlay */
/* Grid Overlay - REMOVED */


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.logo-main {
    max-width: 180px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: filter 0.3s ease;
}

.logo-main:hover {
    filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.5));
}

.headline {
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.headline span {
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 500px;
    line-height: 1.8;
}

/* Tech Cards (Hero) */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.hero-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.2);
}

.hero-card-icon {
    margin-bottom: 1rem;
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.hero-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Advanced Button with Glow */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2), inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.4), inset 0 0 30px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-light);
}

.btn-primary:hover::before {
    opacity: 0.4;
}

/* --- WhatsApp Simulator (3D & Glass) --- */
.hero-visual {
    perspective: 1500px;
}

.whatsapp-mockup {
    position: relative;
    width: 320px;
    height: 620px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: rotateY(-12deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.whatsapp-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #111;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.mockup-name {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.mockup-status {
    font-size: 0.75rem;
    color: #4ade80;
    /* Online green */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.mockup-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: calc(100% - 85px);
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.message {
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message.received {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 8px 20px -5px rgba(124, 58, 237, 0.4);
}

.message.highlight-message {
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    box-shadow: 0 8px 20px -5px rgba(6, 182, 212, 0.4);
}

/* --- Solutions Section --- */
.solutions {
    padding: 10rem 0;
    position: relative;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 5rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.solution-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

/* pseudo-element for spotlight border effect */
.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 2px;
    /* border width */
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.5s;
}

.solution-card:hover::before {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 1;
}

.solution-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.solution-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
    font-weight: 700;
}

.solution-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    transition: background 0.3s;
}

.solution-features li:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- CTA Section --- */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    padding: 4rem 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-cards {
        max-width: 600px;
        margin: 0 auto 3rem;
    }

    .hero-tagline {
        margin: 0 auto 3rem;
    }

    .whatsapp-mockup {
        transform: rotateY(0) rotateX(0);
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-cards {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        width: 100%;
    }

}

/* WhatsApp Floating Button - Discreet Version */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #22c35e;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .whatsapp-float svg {
        width: 20px;
        height: 20px;
    }
}

/* --- Sales Page Overhaul Styles --- */

/* Hero Adjustments for Sales Pages */
.sales-hero {
    padding: 6rem 0 8rem;
    text-align: center;
}

.sales-hero .headline {
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Problem Section */
.problem-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
    border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: scale(1.02);
    border-color: rgba(239, 68, 68, 0.4);
}

.problem-card h3 {
    color: #fca5a5;
    margin-bottom: 1rem;
}

/* Pillars Section */
.pillars-section {
    padding: 8rem 0;
    position: relative;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.pillar-card {
    text-align: center;
    padding: 3rem;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-light);
}

/* Arsenal / Feature Stacking */
.arsenal-section {
    padding: 10rem 0;
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.arsenal-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.arsenal-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.arsenal-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.arsenal-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Guarantee Box */
.guarantee-box {
    max-width: 850px;
    margin: 6rem auto;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 2px solid var(--accent);
    border-radius: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guarantee-badge {
    height: 100px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--accent));
}

/* FAQ Section */
.faq-section {
    max-width: 850px;
    margin: 8rem auto;
}

.faq-grid {
    margin-top: 4rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.75rem 2.5rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
}

.faq-item.active .faq-answer {
    padding: 0 2.5rem 2rem;
    max-height: 500px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* CTA Final with Pulse */
.pulse-cta {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(6, 182, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* --- Interactive Calculator --- */
.calculator-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    padding: 4rem;
    margin: 6rem auto;
    max-width: 1000px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.input-group {
    margin-bottom: 2.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label span {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.calc-result {
    text-align: center;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.result-amount {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.result-note {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .calculator-box {
        padding: 2.5rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}