/* 
   MeloTech Solutions — Folha de Estilos Principal
   Design System: Navy & Cyan Neon
   Responsivo, moderno e de alta conversão
*/

/* Importação das Fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Variáveis do Sistema de Design */
:root {
    /* Cores */
    --bg-dark: #0B0F19;
    --bg-dark-card: #151E32;
    --bg-dark-gradient: radial-gradient(circle at 80% 20%, #1A2845 0%, #0B0F19 100%);
    --bg-light: #F8FAFC;
    --bg-light-card: #FFFFFF;
    --primary: #0EA5E9;
    /* Ciano Neon */
    --primary-hover: #38BDF8;
    --primary-glow: rgba(14, 165, 233, 0.3);
    --secondary: #2563EB;
    /* Azul Royal */

    --text-light: #F1F5F9;
    --text-light-muted: #94A3B8;
    --text-dark: #0F172A;
    --text-dark-muted: #64748B;

    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(15, 23, 42, 0.08);
    --success: #10B981;
    --error: #EF4444;

    /* Fontes */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaçamentos e Efeitos */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --box-shadow-neon: 0 0 20px var(--primary-glow);
    --header-height: 80px;
}

/* Reset e Configurações Globais */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Tipografia Geral */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Componentes Comuns e Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-neon);
}

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

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.05);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Fixo e Menu */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-light);
    gap: 8px;
    flex: 1;
}

.header-cta-spacer {
    flex: 1;
}

/* A logo-img deve ser ocultada/redimensionada se usar imagem.
   Comentário para o cliente: Substituir o placeholder pela imagem real no index.html */
.logo-img-placeholder {
    height: 81px;
    width: auto;
    max-width: 300px;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-dark-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Menu Mobile Hamburguer */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Seções Gerais */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-dark);
    background-image: var(--bg-dark-gradient);
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: inherit;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light-muted);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Mockup de Dashboard Animado (SVG/CSS) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    background: var(--bg-dark-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--box-shadow-neon);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-5px);
}

.dashboard-header {
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.dashboard-dot:nth-child(1) {
    background: #EF4444;
}

.dashboard-dot:nth-child(2) {
    background: #F59E0B;
}

.dashboard-dot:nth-child(3) {
    background: #10B981;
}

.dashboard-title {
    color: var(--text-light-muted);
    font-size: 0.75rem;
    font-family: var(--font-heading);
}

.dashboard-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.db-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.db-card {
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--border-radius-md);
    padding: 16px;
    border: 1px solid var(--border-dark);
}

.db-card-label {
    color: var(--text-light-muted);
    font-size: 0.65rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.db-card-value {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-card-value.green {
    color: var(--success);
}

.db-card-value.blue {
    color: var(--primary);
}

.db-chart-section {
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--border-radius-md);
    padding: 20px;
    border: 1px solid var(--border-dark);
}

.db-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.db-chart-title {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Gráfico SVG Simulado */
.db-svg-chart {
    width: 100%;
    height: 120px;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease forwards infinite;
}

.chart-bars rect {
    transform-origin: bottom;
    animation: growBars 1.5s ease forwards;
}

.chart-glow {
    filter: drop-shadow(0px 4px 10px rgba(14, 165, 233, 0.5));
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes growBars {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* Serviços Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-light-card);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.06);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #FFFFFF;
    transform: rotate(5deg) scale(1.05);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Diferenciais Section */
.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.diff-content .section-subtitle {
    text-align: left;
}

.diff-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.diff-desc {
    color: var(--text-light-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.diff-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.diff-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.diff-check {
    width: 24px;
    height: 24px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.diff-item-text {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Sobre Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-dark-muted);
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-light-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Contato Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    max-width: 450px;
}

.contact-info .section-subtitle {
    text-align: left;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.contact-desc {
    color: var(--text-light-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-card-cta {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.contact-cta-title {
    font-size: 1.15rem;
    color: var(--text-light);
}

.contact-card-phone {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form de Contato */
.contact-form-container {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    resize: none;
}

.form-textarea {
    height: 120px;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-light-muted);
    transition: var(--transition-smooth);
    pointer-events: none;
    font-size: 0.95rem;
}

/* Focus and active styles for floating label */
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.1);
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label,
.form-textarea:focus~.form-label,
.form-textarea:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    background: var(--bg-dark-card);
    padding: 2px 8px;
    color: var(--primary);
}

.form-feedback {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    color: var(--success);
    display: block;
}

.form-feedback.error {
    color: var(--error);
    display: block;
}

/* Footer */
.footer {
    background-color: #060A11;
    border-top: 1px solid var(--border-dark);
    color: var(--text-light-muted);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Classes de Animação ao Rolar (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade (Mobile-First) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        max-width: 100%;
        text-align: center;
    }

    .contact-info .section-subtitle {
        text-align: center;
    }

    .contact-card-cta {
        align-items: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .logo-img-placeholder {
        height: 42px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Menu Hamburguer Ativo */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .header-cta-spacer {
        display: none;
    }

    .logo {
        flex: initial;
    }

    /* Hamburger Animation to 'X' */
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .dashboard-mockup {
        transform: none;
    }

    .dashboard-mockup:hover {
        transform: translateY(-5px);
    }

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

    .diff-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .db-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .db-card {
        padding: 12px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .contact-form-container {
        padding: 24px 20px;
    }
}