/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a72ff;
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #4a72ff 0%, #2a4aff 100%);
    --gradient-card: linear-gradient(135deg, rgba(74, 114, 255, 0.1) 0%, rgba(42, 74, 255, 0.05) 100%);
    --shadow-primary: 0 10px 40px rgba(74, 114, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Navbar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 114, 255, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-highlight {
    color: var(--primary-color);
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(74, 114, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    border-radius: 20px;
    background: var(--gradient-card);
    border: 1px solid rgba(74, 114, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    width: 150px;
    height: 150px;
    top: 100px;
    right: 50px;
    animation-delay: 2s;
}

.card-3 {
    width: 180px;
    height: 180px;
    bottom: 50px;
    left: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 0; }
}

/* Serviços Section */
.servicos {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

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

.servico-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(74, 114, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.servico-card[data-aos="fade-up"] {
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servico-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
    background: linear-gradient(135deg, rgba(74, 114, 255, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.servico-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.servico-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.servico-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.servico-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-saiba-mais {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.btn-saiba-mais:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Planos Section */
.planos-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #0a0a0a 0%, var(--bg-dark) 100%);
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.plano-card {
    background: var(--bg-card);
    border: 2px solid rgba(74, 114, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plano-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.plano-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.plano-card:hover::before {
    transform: scaleX(1);
}

.plano-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 0 40px rgba(74, 114, 255, 0.2);
}

.plano-card.featured::before {
    transform: scaleX(1);
}

.plano-badge {
    display: inline-block;
    background: rgba(74, 114, 255, 0.2);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.plano-badge.popular {
    background: var(--gradient-primary);
    color: white;
}

.plano-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 800;
}

.plano-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    margin-top: 20px;
    min-height: 80px;
}

.plano-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.plano-features li {
    padding: 10px 0;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(74, 114, 255, 0.1);
    font-size: 15px;
}

.plano-features li:last-child {
    border-bottom: none;
}

.plano-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-ver-preco {
    font-size: 17px;
    font-weight: 700;
    padding: 16px 32px;
    transition: var(--transition);
}

.btn-ver-preco:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(74, 114, 255, 0.5);
}

.planos-info {
    background: var(--gradient-card);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
}

.planos-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.info-box p strong {
    color: var(--text-primary);
}

/* Chatbot Section */
.chatbot-section {
    padding: 100px 20px;
    background: var(--bg-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: -40px;
    margin-bottom: 60px;
}

.phone-mockup {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.phone-frame {
    background: #0a0a0a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 10px #1a1a1a,
                0 0 0 12px rgba(74, 114, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #0a0a0a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

/* WhatsApp Header */
.whatsapp-header {
    background: #075E54;
    padding: 35px 15px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px 25px 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-arrow svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.contact-info h4 {
    font-size: 16px;
    color: white;
    margin: 0;
    font-weight: 600;
}

.online-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.header-actions svg {
    width: 24px;
    height: 24px;
    stroke: white;
    cursor: pointer;
}

/* Chat Messages */
.chat-messages {
    background: #0d1418;
    background-image: 
        linear-gradient(rgba(74, 114, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 114, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    min-height: 500px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(74, 114, 255, 0.3);
    border-radius: 3px;
}

.message {
    max-width: 75%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: #1f2c33;
    color: white;
    border-radius: 0 8px 8px 8px;
}

.user-message .message-content {
    background: #005c4b;
    color: white;
    border-radius: 8px 0 8px 8px;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-check {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-check.visible {
    opacity: 1;
}

.message-check svg {
    width: 16px;
    height: 16px;
}

.message-check.read {
    color: #4fc3f7;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    animation: messageSlideIn 0.4s ease;
}

.quick-reply {
    background: rgba(74, 114, 255, 0.2);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.quick-reply:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.quick-replies.hidden {
    display: none;
}

/* Chat Input */
.chat-input-area {
    background: #1f2c33;
    padding: 10px;
    border-radius: 0 0 25px 25px;
}

.input-wrapper {
    display: flex;
    gap: 8px;
    background: #2a3942;
    border-radius: 25px;
    padding: 8px 12px;
    align-items: center;
}

#chatInput {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-button {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 114, 255, 0.4);
}

.send-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #1f2c33;
    border-radius: 8px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Contato Section */
.contato {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(74, 114, 255, 0.1);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.info-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    text-decoration: underline;
}

.contato-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(74, 114, 255, 0.1);
}

.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato-form input,
.contato-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 114, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(74, 114, 255, 0.05);
}

.contato-form textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -10px;
    margin-bottom: 10px;
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.limit {
    color: #f44336;
}

/* Footer */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(74, 114, 255, 0.1);
    background: var(--bg-dark);
}

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

footer p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(74, 114, 255, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(74, 114, 255, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

#modal-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

#modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

#modal-body li {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        padding: 40px;
        gap: 20px;
        transition: var(--transition);
        border-top: 1px solid rgba(74, 114, 255, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-visual {
        display: none;
    }

    .cta-buttons {
        justify-content: center;
    }

    .contato-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    .phone-mockup {
        max-width: 100%;
    }

    .chat-messages {
        min-height: 400px;
        max-height: 400px;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .planos-grid {
        grid-template-columns: 1fr;
    }

    .planos-info {
        padding: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

