@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Sora:wght@700;800&display=swap');

:root {
    --banestes-blue: #001ec6;
    --banestes-green: #00AB16;
    --banestes-white: #FFFFFF;
    --font-main: 'IBM Plex Sans', sans-serif;
    --font-title: 'Sora', sans-serif;
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--banestes-white);
    color: var(--banestes-blue);
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER ================= */
.portal-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 200;
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(30, 10, 232, 0.1);
    box-shadow: 0 2px 20px rgba(30, 10, 232, 0.06);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img { height: 28px; width: auto; }

.btn-header {
    background: var(--banestes-blue);
    color: var(--banestes-white);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header:hover {
    background: var(--banestes-green);
}

/* ================= HERO PREMIUM (RESTAURADO) ================= */
.hero-wrapper {
    position: relative;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    background: var(--banestes-blue);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Efeito Diagonal */
.hero-diagonal {
    position: absolute;
    bottom: -2px;
    right: -1px;
    width: 55%;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* Textura e Profundidade Radial */
.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0, 171, 22, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    width: 100%;
}

/* Lado Esquerdo do Hero */
.hero-left {
    color: var(--banestes-white);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-left.visible { opacity: 1; transform: translateY(0); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--banestes-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--banestes-green);
    box-shadow: 0 0 0 3px rgba(0, 171, 22, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 171, 22, 0.3); }
    50%      { box-shadow: 0 0 0 6px rgba(0, 171, 22, 0.1); }
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-highlight { color: var(--banestes-green); }

.hero-subtitle {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 440px;
}

.hero-subtitle strong { color: var(--banestes-white); font-weight: 700; }

/* Barra de Confiança */
.trust-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

.trust-item { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.trust-number { font-family: var(--font-title); font-size: 22px; font-weight: 800; color: var(--banestes-white); line-height: 1; }
.trust-label { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; }
.trust-divider { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.2); }

/* Botão Principal */
.btn-main {
    background: var(--banestes-white);
    color: var(--banestes-blue);
    width: 100%;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(30, 10, 232, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-main svg:first-child { color: var(--banestes-green); }
.btn-arrow { margin-left: auto; opacity: 0.5; transition: transform 0.2s, opacity 0.2s; }

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.btn-main:hover .btn-arrow { transform: translateX(4px); opacity: 1; }

.security-text {
    font-size: 12.5px; margin-top: 16px; display: flex; align-items: center;
    justify-content: center; gap: 6px; color: rgba(255, 255, 255, 0.7);
}

/* Lado Direito do Hero (Imagem e Glow) */
.hero-right {
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transform: translateX(24px); transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.hero-right.visible { opacity: 1; transform: translateX(0); }

.card-showcase { position: relative; width: 100%; max-width: 500px; }

.card-glow {
    position: absolute; inset: -30px;
    background: radial-gradient(ellipse, rgba(0, 171, 22, 0.25) 0%, transparent 70%);
    pointer-events: none; animation: glow-breathe 3s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.card-img {
    width: 100%; border-radius: 20px; display: block; position: relative; z-index: 2;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}
.card-showcase:hover .card-img { transform: scale(1.02) translateY(-4px); }

/* Pílulas Flutuantes */
.floating-pill {
    position: absolute; z-index: 10; display: flex; align-items: center; gap: 7px;
    background: var(--banestes-white); color: var(--banestes-blue); font-size: 12px; font-weight: 700;
    padding: 10px 16px; border-radius: 50px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    white-space: nowrap; animation: float 3s ease-in-out infinite;
}
.floating-pill svg { color: var(--banestes-green); }

.pill-top { top: -16px; right: 16px; animation-delay: 0s; }
.pill-bottom { bottom: -16px; left: 16px; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-6px); }
}

/* ================= SEÇÃO DOS 3 PASSOS (FORMATO DO USUÁRIO) ================= */
.steps-section {
    background-color: var(--banestes-white);
    padding: 80px 0;
}

.steps-header {
    text-align: center;
    margin-bottom: 50px;
}

.steps-header h2 {
    font-family: var(--font-title);
    font-size: 32px;
    color: var(--banestes-blue);
    margin-bottom: 16px;
}

.steps-header p {
    font-size: 16px;
    color: var(--banestes-blue);
    opacity: 0.8;
}

/* Ajuste de padding-top para o número flutuante não quebrar o layout no mobile */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 30px; 
}

@media (min-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.step-card {
    background: var(--banestes-white);
    border: 2px solid var(--banestes-blue);
    border-radius: 16px;
    padding: 50px 24px 30px; /* Padding superior extra para acomodar o número */
    text-align: center;
    position: relative;
    transition: transform 0.2s;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 700;
    color: var(--banestes-green);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--banestes-white);
    padding: 0 15px;
    z-index: 10;
    line-height: 1;
}

.step-icon {
    color: var(--banestes-green);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.step-card h3 {
    font-family: var(--font-title);
    font-size: 20px;
    color: var(--banestes-blue);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--banestes-blue);
    line-height: 1.6;
}

/* ================= FOOTER ================= */
.portal-footer {
    background: #001ec6;
    padding: 30px 0;
    color: var(--banestes-white);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.footer-logo {
    height: 25px;
    width: auto;
}

.portal-footer p {
    font-size: 12px;
    opacity: 0.7;
}

/* ================= RESPONSIVO MOBILE ================= */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 60px; text-align: center; }
    .hero-subtitle { max-width: 100%; margin: 0 auto 36px auto; }
    .hero-right { order: -1; }
    .card-showcase { max-width: 360px; margin: 0 auto; }
    .trust-bar { gap: 12px; }
    .trust-number { font-size: 18px; }
    .floating-pill { font-size: 11px; padding: 8px 12px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .steps-header h2 { font-size: 28px; }
}
/* ================= ADIÇÕES NO PORTAL.CSS ================= */

/* Suavidade no clique da âncora */
html { scroll-behavior: smooth; }

/* Proteção visual anti-cópia */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }

/* Botão Secundário do Hero (Como solicitar) */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--banestes-white);
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ================= TELA DE AUTENTICAÇÃO (CPF) ================= */
.bg-white { background-color: var(--banestes-white); color: var(--banestes-blue); }

.header-auth {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid rgba(0, 30, 198, 0.1);
}
.logo-auth { height: 24px; width: auto; filter: none; } /* Logo na cor original azul */
.btn-back { background: transparent; border: none; color: var(--banestes-blue); cursor: pointer; }

.auth-container { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }

.auth-icon {
    width: 64px; height: 64px; background: rgba(0, 171, 22, 0.1); color: var(--banestes-green);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}

.auth-title { font-family: var(--font-title); font-size: 24px; color: var(--banestes-blue); margin-bottom: 12px; }
.auth-subtitle { font-size: 15px; color: var(--banestes-blue); opacity: 0.8; margin-bottom: 40px; line-height: 1.5; }

.auth-form { width: 100%; max-width: 400px; text-align: left; }

.input-group { position: relative; margin-bottom: 24px; }
.banestes-input {
    width: 100%; padding: 24px 16px 12px; font-size: 18px; font-family: var(--font-main);
    font-weight: 600; color: var(--banestes-blue); border: 2px solid rgba(0, 30, 198, 0.2);
    border-radius: 12px; outline: none; transition: all 0.2s; background: transparent;
}
.banestes-input:focus { border-color: var(--banestes-green); }
.banestes-label {
    position: absolute; top: 20px; left: 16px; font-size: 16px; color: var(--banestes-blue);
    opacity: 0.6; transition: 0.2s ease all; pointer-events: none;
}
/* Efeito Float Label */
.banestes-input:focus ~ .banestes-label,
.banestes-input:not(:placeholder-shown) ~ .banestes-label {
    top: 8px; font-size: 12px; opacity: 1; color: var(--banestes-green); font-weight: 700;
}

.auth-form .btn-main { background: var(--banestes-blue); color: var(--banestes-white); }
.auth-form .btn-main:disabled { background: rgba(0, 30, 198, 0.3); cursor: not-allowed; transform: none; box-shadow: none; }

.safe-environment { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--banestes-green); font-weight: 600; }
/* ================= MICRO-MOTION E SPINNER (INDEX) ================= */
.spinner-premium {
    width: 22px; height: 22px;
    animation: rotate 2s linear infinite;
}
.spinner-premium .path {
    stroke: var(--banestes-green);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* ================= TELA DE IDENTIFICAÇÃO (PREMIUM BANKING) ================= */
.bg-white { background-color: var(--banestes-white); }
.mobile-app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.luxury-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px;
}
.icon-btn {
    background: transparent; border: none; color: var(--banestes-blue);
    cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center;
}
.step-indicator {
    font-size: 13px; font-weight: 700; color: var(--banestes-blue);
    opacity: 0.5; letter-spacing: 0.5px; text-transform: uppercase;
}

.luxury-main {
    flex: 1; padding: 10px 24px;
    display: flex; flex-direction: column;
}

.security-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0, 171, 22, 0.08); color: var(--banestes-green);
    padding: 6px 12px; border-radius: 50px; font-size: 12px;
    font-weight: 700; width: max-content; margin-bottom: 24px;
}

.luxury-title {
    font-family: var(--font-title); font-size: 32px;
    color: var(--banestes-blue); line-height: 1.1; margin-bottom: 12px;
}

.luxury-subtitle {
    font-size: 16px; color: var(--banestes-blue); opacity: 0.7;
    line-height: 1.5; margin-bottom: 40px;
}

/* Input Premium com Floating Label */
.premium-input-wrapper { position: relative; margin-bottom: 30px; }

.premium-input {
    width: 100%; border: none; border-bottom: 2px solid rgba(0, 30, 198, 0.1);
    background: transparent; padding: 24px 0 8px 0; font-size: 24px;
    font-family: var(--font-title); font-weight: 700; color: var(--banestes-blue);
    outline: none; transition: 0.3s ease; border-radius: 0;
}

.premium-label {
    position: absolute; top: 20px; left: 0; font-size: 18px;
    color: var(--banestes-blue); opacity: 0.5; font-weight: 500;
    pointer-events: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-focus-line {
    position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--banestes-green); transition: 0.4s ease;
}

.premium-input:focus ~ .input-focus-line { width: 100%; }

.premium-input:focus ~ .premium-label,
.premium-input:not(:placeholder-shown) ~ .premium-label {
    top: 0; font-size: 12px; font-weight: 700;
    color: var(--banestes-green); opacity: 1; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Botão Fixo na Base (Native App Feel) */
.fixed-bottom-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    padding: 24px; background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0) 100%);
}

.btn-luxury {
    width: 100%; max-width: 500px; margin: 0 auto;
    background: var(--banestes-blue); color: var(--banestes-white);
    padding: 20px; border-radius: 16px; font-size: 17px; font-weight: 700;
    border: none; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: 0.3s ease; box-shadow: 0 10px 30px rgba(0, 30, 198, 0.2);
}

.btn-luxury:disabled {
    background: #E2E8F0; color: #A0AEC0; box-shadow: none; cursor: not-allowed;
}

.btn-luxury.active {
    background: var(--banestes-green); /* Fica verde quando o CPF está completo */
    box-shadow: 0 10px 30px rgba(0, 171, 22, 0.3);
}

/* Efeito de Entrada Suave */
.fade-in-up {
    opacity: 0; transform: translateY(15px); transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }