/* Reset e Base - Estilo Mordomize */
:root {
    /* Paleta de cores do sistema Controlizei */
    --primary-color: #FF6B35;
    --primary-hover: #E55A2B;
    --primary-light: #FF8C61;
    --secondary-color: #F8F9FA;
    --accent-color: #25d366; /* WhatsApp green */
    --accent-light: #FFF3E0;
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #9aa0a6;
    --background-primary: #ffffff;
    --background-secondary: #F8F9FA;
    --background-accent: #FFF3E0;
    --border-color: #E9ECEF;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--background-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-brand i {
    margin-right: 8px;
    font-size: var(--font-size-2xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--background-accent);
}

.btn-login {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.btn-login:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-hover) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section - Estilo Moderno */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 32px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-accent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
}

.stat span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(32, 33, 36, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: var(--background-secondary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-nav {
    display: flex;
    gap: 6px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
}

.nav-dot:first-child { background: #ff5f57; }
.nav-dot:nth-child(2) { background: #ffbd2e; }
.nav-dot:nth-child(3) { background: #28ca42; }

.mockup-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.mockup-content {
    padding: 24px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.balance-card h3 {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 8px;
}

.balance-change {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.balance-change.positive {
    color: #4caf50;
}

.chart-container {
    margin-bottom: 24px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.color-dot.receitas { background: var(--accent-color); }
.color-dot.despesas { background: var(--primary-color); }

.chart-visual {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 100px;
}

.chart-bar {
    width: 40px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.chart-bar.receitas { background: var(--accent-color); }
.chart-bar.despesas { background: var(--primary-color); }

.quick-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: var(--background-accent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* WhatsApp Demo Section */
.whatsapp-demo {
    padding: 80px 0;
    background: var(--background-secondary);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-text h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.whatsapp-color {
    color: var(--accent-color);
}

.demo-text p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.demo-feature i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
    width: 24px;
}

/* WhatsApp Mockup */
.phone-frame {
    max-width: 320px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin: 0 auto;
}

.phone-header {
    background: var(--accent-color);
    color: white;
    padding: 16px 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-details strong {
    display: block;
    font-size: var(--font-size-base);
}

.contact-details span {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

.chat-messages {
    padding: 20px;
    min-height: 300px;
    background: linear-gradient(to bottom, #e5ddd5, #d1c4e9);
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.sent {
    align-items: flex-end;
}

.message.received {
    align-items: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.message.sent .message-bubble {
    background: #dcf8c6;
    color: var(--text-primary);
}

.message.received .message-bubble {
    background: white;
    color: var(--text-primary);
}

.message-time {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-top: 4px;
}

.typing-indicator {
    padding: 0 20px 20px;
    background: linear-gradient(to bottom, #d1c4e9, #c7b8ea);
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    width: fit-content;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* Funcionalidades - Novo Layout */
.funcionalidades {
    padding: 80px 0;
    background: white;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    background: var(--background-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-benefits li {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.features-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card-clean {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.feature-card-clean:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-icon-clean {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.feature-card-clean h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card-clean p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sobre Section */
.sobre {
    padding: 80px 0;
    background: var(--background-secondary);
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.sobre-text p {
    font-size: var(--font-size-lg);
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.sobre-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-item h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Benefícios Section */
.beneficios {
    padding: 80px 0;
    background: var(--text-primary);
    color: white;
}

.beneficios .section-header h2,
.beneficios .section-header p {
    color: white;
}

.beneficios-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.beneficio-item {
    text-align: center;
}

.beneficio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.beneficio-icon i {
    font-size: 1.8rem;
    color: white;
}

.beneficio-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 16px;
}

.beneficio-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contato Section */
.contato {
    padding: 80px 0;
    background: var(--background-secondary);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contato-info h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contato-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contato-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.contato-form {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ea4335;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    color: #ea4335;
    font-size: var(--font-size-sm);
    margin-top: 8px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 32px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content,
    .demo-content,
    .sobre-content,
    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid-clean {
        grid-template-columns: 1fr;
    }
    
    .beneficios-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .demo-text h2 {
        font-size: var(--font-size-3xl);
    }
    
    .phone-frame {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-text h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
        padding: 12px 24px;
    }
    
    .feature-main {
        padding: 2rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .demo-text h2 {
        font-size: var(--font-size-2xl);
    }
}

/* Animações melhoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content,
.section-header,
.feature-card-clean,
.beneficio-item {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 320px;
}

.notification-success {
    background: var(--secondary-color);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}