* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

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

body {
    min-height: 100vh;
    background: #ebe8e3;
    color: #707070;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    padding: 20px 40px 10px 40px; /* Adicionado padding no topo e em baixo para dar respiro */
    background: #ebe8e3;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* Nav central */

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 5px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    color: #707070;
    padding: 6px 12px;
    border-radius: 0;
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 157, 195, 0.13);
    border-radius: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-sep {
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.nav-link:hover {
    color: #1d9dc3;
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link.active {
    color: #1d9dc3;
    font-weight: 600;
    background: rgba(29, 157, 195, 0.1);
}

.nav-link.active::before {
    transform: scaleX(0);
}

/* Botões à direita */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-divider {
    width: 1px;
    height: 60%;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 8px;
}

.btn-login {
    text-decoration: none;
    font-size: 14px;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: #1d9dc3;
    transition: background 0.2s;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.btn-login:hover {
    background: #1783a3;
    border-color: #1783a3;
    color: white;
}


/* =========================
   CONTEÚDO DA PÁGINA
========================= */

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Hero Section */

.hero-section {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.hero-content {
    flex: 1;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ebe8e3;
    border: 1px solid #d6d3ce;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b5b0a9;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ebe8e3;
    border: 1px solid #d6d3ce;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b5b0a9;
    margin-bottom: 28px;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    color: #707070;
    margin-bottom: 24px;
}

.hero-title .text-blue {
    color: #1d9dc3;
    display: inline-block;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    background-color: #1d9dc3;
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-title .highlight {
    color: #707070;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #707070;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-hero-primary {
    padding: 14px 32px;
    background: #1d9dc3;
    color: white;
    border: 1px solid #1d9dc3;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-hero-primary:hover {
    background: #1783a3;
    border-color: #1783a3;
}


/* Hero Image Area */

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}




/* Footer */

.site-footer {
    width: 100%;
    padding: 60px 40px;
    background: #ebe8e3;
    border-top: 1px solid #d6d3ce;
    margin-top: 100px;
}

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

.footer-logo-img {
    height: 24px;
    opacity: 0.8;
}

.footer-inner p {
    font-size: 16px;
    color: #707070;
}

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

.footer-links a {
    text-decoration: none;
    font-size: 16px;
    color: #707070;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #1d9dc3;
}


/* Features Section */

.features-section {
    padding-top: 100px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 48px;
    color: #707070;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid #d6d3ce;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}


.feature-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: rgba(29, 157, 195, 0.1);
    color: #1d9dc3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.feature-icon--whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 400;
    color: #1d9dc3;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #707070;
    flex: 1;
}

.feature-card .doc-link {
    margin-top: 28px;
    display: inline-block;
}

/* Integrations Section */
.integrations-section {
    padding: 100px 40px;
    background-color: #ebe8e3;
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-subtitle {
    font-size: 18px;
    color: #707070;
    margin-top: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

.integrations-image-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.integrations-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(29, 157, 195, 0.1));
}

.integrations-img:hover {
    transform: scale(1.02);
}



.doc-link {
    color: #1d9dc3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.doc-link:hover {
    gap: 12px;
}

/* About Section */
.about-section {
    padding: 120px 40px;
    background-color: rgba(29, 157, 195, 0.05);
    text-align: center;
}

.about-section h2 {
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 40px;
    color: #707070;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 19px;
    line-height: 1.8;
    color: #707070;
    margin-bottom: 60px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.value-item {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid rgba(29, 157, 195, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: scale(1.05);
}

.value-item h4 {
    color: #1d9dc3;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.value-item p {
    font-size: 16px;
    color: #707070;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .about-values {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MODAL DE AUTENTICAÇÃO
========================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ebe8e3;
    padding: 45px;
    width: 440px;
    min-height: 600px; /* Estabiliza a altura para todas as abas */
    border-radius: 0;
    border: 1px solid #d6d3ce;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #b5b1ab;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #707070;
}

/* Modal Tabs */
.tabs-container {
    margin-bottom: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #d6d3ce;
    gap: 10px;
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 0;
    font-size: 16px;
    font-weight: normal;
    color: #b5b1ab;
    cursor: pointer;
    margin-bottom: -2px; /* overlap border */
    transition: color 0.2s, border-color 0.2s;
}

.modal-tab.active {
    color: #1d9dc3;
    border-bottom-color: #1d9dc3;
}

.modal-tab:hover:not(.active) {
    color: #707070;
}

/* Modal Forms */
.form-title {
    font-size: 24px;
    font-weight: 400;
    color: #1d9dc3;
    text-align: center;
    margin-bottom: 25px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    margin-top: -10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #707070;
    margin-bottom: 0;
}

.remember-me input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #d6d3ce;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.remember-me input:checked + .custom-checkbox {
    background: #1d9dc3;
    border-color: #1d9dc3;
}

.remember-me input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    font-size: 14px;
    color: #1d9dc3;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #1783a3;
    text-decoration: underline;
}

.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #707070;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 13px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #d6d3ce;
    border-radius: 0;
    color: #707070;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    animation: desenharBorda 2s cubic-bezier(.65, .05, .36, 1) forwards;
}

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 0;
    background: #1d9dc3;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: normal;
    transition: background 0.2s, opacity 0.2s;
}

.modal-submit-btn:hover {
    background: #1783a3;
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-error-msg {
    font-size: 14px;
    color: #e05555;
    background: rgba(224, 85, 85, 0.08);
    border-radius: 0;
    padding: 10px 12px;
    margin-bottom: 15px;
    margin-top: -5px;
    text-align: left;
}

/* Social Login */
.social-login-divider {
    position: relative;
    text-align: center;
    margin: 25px 0 20px;
}

.social-login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d6d3ce;
    z-index: 1;
}

.social-login-divider span {
    position: relative;
    z-index: 2;
    background: #ebe8e3;
    padding: 0 15px;
    font-size: 14px;
    color: #b5b1ab;
    font-weight: normal;
}

.social-btn-group {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 0;
    font-size: 15px;
    font-weight: normal;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid #d6d3ce;
    background: rgba(255, 255, 255, 0.7);
    color: #707070;
}

.btn-linkedin svg {
    color: #0A66C2;
}

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

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.form-group input.error {
    border-color: #e05555 !important;
    background: rgba(224, 85, 85, 0.05);
}

.error-label {
    display: block;
    color: #e05555;
    font-size: 12px;
    margin-top: 4px;
    font-weight: normal;
}
@keyframes desenharBorda {
    0% { border-color: transparent; }
    25% { border-top-color: #707070; }
    50% { border-top-color: #707070; border-right-color: #707070; }
    75% { border-top-color: #707070; border-right-color: #707070; border-bottom-color: #707070; }
    100% { border-color: #707070; }
}
/* Menu de usuário logado (navbar) */
.nav-user-menu { position: relative; }
.nav-user-photo {
    width: 36px; height: 36px; border-radius: 50%;
    background: #1d9dc3; color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; user-select: none;
    transition: background 0.2s;
}
.nav-user-photo:hover { background: #1783a3; }
.nav-user-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 10px);
    background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10); min-width: 160px; z-index: 1000; overflow: hidden;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }
.nav-user-dropdown-inner { display: contents; }
.nav-user-dropdown a {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px;
    font-size: 14px; color: #444; text-decoration: none; transition: background 0.15s;
}
.nav-user-dropdown a:hover { background: rgba(29,157,195,0.1); color: #1d9dc3; }
.nav-user-dropdown a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-user-dropdown .dropdown-divider { height: 1px; background: #e5e5e5; margin: 4px 0; }
.nav-user-dropdown a.danger { color: #e05555; }
.nav-user-dropdown a.danger:hover { background: rgba(224,85,85,0.12); color: #e05555; }
