/* ============================================
   NEOSYNAPSE — Design System & Styles
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #050816;
    --bg-secondary: #0a0e27;
    --bg-card: rgba(15, 20, 50, 0.6);
    --bg-glass: rgba(15, 20, 50, 0.45);

    --cyan: #00d4ff;
    --teal: #00b8a9;
    --purple: #7b61ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --teal-dim: rgba(0, 184, 169, 0.1);

    --text-primary: #e8eaf6;
    --text-secondary: #9ba3c7;
    --text-muted: #5a6180;

    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #00b8a9 50%, #7b61ff 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0,212,255,0.12) 0%, rgba(0,184,169,0.08) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0,212,255,0.15) 0%, transparent 70%);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --container-max: 1200px;
    --section-padding: 120px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Gradient Text === */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 25px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.45);
}
.btn-primary:active {
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 44px;
    font-size: 1.15rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
}
.navbar.scrolled {
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}
.logo-icon {
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}
.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.nav-cta {
    background: var(--gradient-main) !important;
    color: #fff !important;
    border-radius: var(--radius-xl) !important;
    padding: 10px 24px !important;
}
.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.neural-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(123, 97, 255, 0.04) 0%, transparent 50%),
                linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-subtitle strong {
    color: var(--text-primary);
}

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

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   O PROBLEMA
   ============================================ */
.section-problem {
    background: var(--bg-secondary);
}
.section-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.15), transparent);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}
.problem-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.problem-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}
.problem-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ff4757;
    font-size: 0.75rem;
    font-weight: 700;
}

.problem-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}
.problem-vs span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

/* ============================================
   A SOLUÇÃO
   ============================================ */
.solution-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    max-width: 250px;
}

.flow-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--cyan);
    transition: all var(--transition-smooth);
}
.flow-icon-ai {
    border-color: rgba(123, 97, 255, 0.3);
    color: var(--purple);
}
.flow-icon-human {
    border-color: rgba(0, 184, 169, 0.3);
    color: var(--teal);
}
.flow-icon-result {
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
}

.flow-step:hover .flow-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.flow-step h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.flow-connector {
    display: flex;
    align-items: center;
    padding-top: 56px;
}
.connector-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 212, 255, 0.3), rgba(123, 97, 255, 0.3));
    position: relative;
}
.connector-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(0, 212, 255, 0.4);
    border-top: 2px solid rgba(0, 212, 255, 0.4);
    transform: rotate(45deg);
}

/* ============================================
   DIFERENCIAIS
   ============================================ */
.section-features {
    background: var(--bg-secondary);
}
.section-features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.15), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
    overflow: hidden;
}
.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--cyan-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   COMO FUNCIONA
   ============================================ */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}
.step-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    min-width: 72px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   PARA QUEM
   ============================================ */
.section-audience {
    background: var(--bg-secondary);
}
.section-audience::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.15), transparent);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.audience-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    text-align: center;
    transition: all var(--transition-smooth);
}
.audience-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.audience-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.audience-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.audience-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA FINAL
   ============================================ */
.section-cta {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 64px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}
.footer-brand .logo {
    margin-bottom: 16px;
}
.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.footer-col a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}
.whatsapp-fab.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(-100%) translateX(-12px) translateY(-50%);
}

.fab-tooltip {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(-100%) translateX(-12px) translateY(-50%);
    background: #fff;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all var(--transition-fast);
    pointer-events: none;
}
.fab-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #fff;
}

/* Pulse ring behind FAB */
.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0;
    z-index: -1;
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid,
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .solution-flow {
        flex-wrap: wrap;
    }
    .flow-connector {
        display: none;
    }
    .flow-step {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        border-left: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links a {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }
    .nav-cta {
        margin-top: 16px;
        text-align: center;
    }
    .hamburger {
        display: flex;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }
    .problem-vs {
        order: 0;
    }

    .features-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .solution-flow {
        flex-direction: column;
        align-items: center;
    }
    .flow-step {
        flex: none;
        max-width: 100%;
    }

    .step-card {
        flex-direction: column;
        gap: 16px;
        padding: 32px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
