/* ========================================
   MONERUM-I - MODERN ASYMMETRIC DESIGN
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00296B;
    --secondary: #003f88;
    --accent: #00509d;
    --gold: #fdc500;
    --yellow: #ffd500;
    --dark: #0a1128;
    --light: #f4f7fc;
    --white: #ffffff;
    --text-dark: #1c2541;
    --text-muted: #475569;
    --radius-lg: 2rem;
    --radius-md: 0.75rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 41, 107, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ========================================
   AJUSTES DA IDENTIDADE VISUAL (LOGO)
   ======================================== */
/* ========================================
   CORREÇÃO DE ALINHAMENTO DA LOGO
   ======================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap; /* Impede a quebra de linha do texto da logo */
}

.logo-text {
    font-family: 'Geist', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0A1128;
    letter-spacing: -0.01em;
    display: flex;       /* Mantém MONERUM e IMOB na mesma linha horizontal */
    gap: 0.35rem;        /* Dá um espaçamento elegante entre as duas palavras */
    align-items: center;
}

.logo-text span {
    color: #D4A017;
    display: inline-block;
}

.logo-icon {
    width: 32px;         /* Ajuste sutil de proporção para alinhar com o texto */
    height: auto;
    display: block;
}

/* Estilo do Avatar Interno do Telefone */
.phone-avatar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav class.btn-nav, .nav .btn-nav {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav .btn-nav:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Hero Section (Asymmetric Template) */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--yellow) 1px, transparent 0);
    background-size: 24px 24px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253, 197, 0, 0.2);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-asymmetric-box {
    position: relative;
    width: 280px;
    height: 340px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transform: rotate(4deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    box-shadow: -20px 20px 40px rgba(0,0,0,0.2);
}

.hero-badge {
    align-self: flex-start;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.hero-pulse-circle {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 50%;
    align-self: center;
    box-shadow: 0 0 30px var(--yellow);
    animation: pulse 2s infinite;
}

.hero-tagline {
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: center;
}

/* Statistics Sticky Scroll Section */
.statistics {
    padding: 120px 0;
    background: var(--light);
}

.stats-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.stats-sticky-text {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.stats-sticky-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.sticky-scroll-container {
    position: relative;
}

.sticky-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 4px solid rgba(0, 41, 107, 0.1);
    transition: all 0.4s ease;
}

.metric-card.active {
    border-left-color: var(--gold);
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 41, 107, 0.06);
}

.metric-value {
    font-family: 'Geist', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.metric-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features Grid */
.features {
    padding: 120px 0;
    background: var(--white);
}

.section-header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header-center h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(0, 41, 107, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

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

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Demo Whatsapp Box */
.demo {
    padding: 100px 0;
    background: var(--light);
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.demo-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Phone Mockup */
.phone-frame {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(0,41,107,0.15);
    overflow: hidden;
    border: 10px solid #0f172a;
    margin: 0 auto;
}

.phone-header {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem 1rem;
}

.phone-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.phone-user-info h4 {
    font-size: 0.9rem;
}

.phone-user-info span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.phone-content {
    height: 400px;
    background: #efeae2;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-message.user {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-message.bot {
    background: #e1ffc7;
    color: var(--text-dark);
    align-self: flex-end;
    border-top-right-radius: 0;
}

/* Advanced Module & Sensory Animations */
.advanced {
    padding: 120px 0;
    background: var(--white);
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.advanced-card {
    background: var(--white);
    border: 1px solid rgba(0,41,107,0.06);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.advanced-card:hover {
    box-shadow: 0 15px 30px rgba(0,41,107,0.05);
    border-color: rgba(0,41,107,0.15);
}

.advanced-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.3; /* Inicialmente sutil */
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ativado via JS quando entra na tela */
.advanced-icon.animated {
    opacity: 1;
    transform: scale(1);
}

.advanced-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.advanced-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* SVG Sensory Internal Animations */
.animated .anim-bar-1 { animation: growBar 1.5s infinite ease-in-out alternative; }
.animated .anim-bar-2 { animation: growBar 1.5s infinite ease-in-out alternative 0.3s; }
.animated .anim-bar-3 { animation: growBar 1.5s infinite ease-in-out alternative 0.6s; }
.animated .anim-smile { animation: gentleWobble 2s infinite ease-in-out; }
.animated .anim-spin { animation: spinWheel 8s infinite linear; transform-origin: 50px 50px; }
.animated .anim-node { animation: blinkNode 2s infinite ease-in-out alternate; }

@keyframes growBar {
    0% { transform: scaleY(0.7); transform-origin: bottom; }
    100% { transform: scaleY(1.2); transform-origin: bottom; }
}
@keyframes gentleWobble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
@keyframes spinWheel {
    100% { transform: rotate(360deg); }
}
@keyframes blinkNode {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.15rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: var(--gold);
    color: var(--primary);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.btn-cta:hover {
    background: var(--yellow);
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 320px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Animations base */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(253, 197, 0, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(253, 197, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(253, 197, 0, 0); }
}

/* Mobile Adaptation (Perfect single column) */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .advanced-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hero-content, .stats-layout, .demo-layout, .features-grid, .advanced-grid, .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero { padding: 120px 0 60px 0; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .hero-visual { justify-content: center; }
    .stats-sticky-text { position: relative; top: 0; }
    .metric-card.active { transform: none; }
    .advanced-icon { opacity: 1; transform: scale(1); }
}

/* Adicione este bloco ao final do seu arquivo styles.css existente */

/* ========================================
   SEO & ACCESSIBILITY ACCELERATION
   ======================================== */

/* Evita Saltos de Layout (CLS) mantendo uma proporção mínima em elementos dinâmicos */
.sticky-scroll-content {
    min-height: 380px;
}

/* Garante o contraste ideal e legibilidade em links focados via teclado (Acessibilidade) */
.nav a:focus, .btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

/* Tratamento de Performance para evitar processamento desnecessário em Hardware Mobile lento */
.hero-background {
    will-change: transform;
    transform: translateZ(0);
}

/* Respeito à preferência de animação reduzida do usuário (Critério WCAG/Google UX) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    .advanced-icon, .hero-pulse-circle, .anim-bar-1, .anim-bar-2, .anim-bar-3, .anim-spin, .anim-smile {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .metric-card {
        transition: none !important;
    }
}