/* ==========================================
   SmartPI - Stylesheet Principal
   ========================================== */

:root {
    --primary: #0a2540;
    --primary-light: #154a75;
    --secondary: #00d4aa;
    --secondary-dark: #00b894;
    --accent: #635bff;
    --white: #ffffff;
    --gray-50: #f6f9fc;
    --gray-100: #e3e8ee;
    --gray-200: #c1c9d2;
    --gray-600: #4f566b;
    --gray-800: #1a1a2e;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-nav {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.brand-smart {
    color: var(--primary);
}

.brand-pi {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--secondary);
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 540px;
}

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

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero-dot.red { background: #ff5f57; }
.hero-dot.yellow { background: #ffbd2e; }
.hero-dot.green { background: #28c840; }

.hero-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
}

.hero-bar {
    flex: 1;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
    opacity: 0.9;
}

/* Section Spacing */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08);
    border-color: var(--secondary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background: var(--gray-50);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number span {
    color: var(--secondary);
}

.stat-label {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
}

/* Diferenciais */
.dif-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(10, 37, 64, 0.06);
    height: 100%;
    transition: all 0.3s ease;
}

.dif-card:hover {
    box-shadow: 0 20px 60px rgba(10, 37, 64, 0.1);
}

.dif-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.dif-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.dif-text {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Form */
.form-control, .form-select {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.social-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--secondary);
}

footer img.footer-logo {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    max-width: 54px !important;
    object-fit: contain;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* RPI iframe */
.rpi-iframe-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 37, 64, 0.12);
    border: 1px solid var(--gray-100);
    background: var(--white);
}

.rpi-iframe-wrapper iframe {
    width: 100%;
    height: 750px;
    border: 0;
    display: block;
}

@media (max-width: 991px) {
    .rpi-iframe-wrapper iframe {
        height: 600px;
    }
}

@media (max-width: 575px) {
    .rpi-iframe-wrapper iframe {
        height: 500px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding: 3rem 0 4rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-lead {
        font-size: 1.1rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.875rem;
    }
    .hero-btns {
        flex-direction: column;
    }
    .hero-btns .btn {
        width: 100%;
    }
}
