:root {
    /* Cores Premium (HealthTech Clean - Branco, Verde, Azul) */
    --bg-dark: #f8fafc; /* Fundo principal claro */
    --bg-darker: #ffffff; /* Fundo secundário branco */
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.08);
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    
    --accent-primary: #10b981; /* Verde esmeralda (Saúde/WhatsApp) */
    --accent-primary-hover: #059669;
    --accent-secondary: #3b82f6; /* Azul Tech */
    
    --glow-primary: rgba(16, 185, 129, 0.15);
    --glow-secondary: rgba(59, 130, 246, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 100px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Glassmorphism Classes */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    letter-spacing: -0.5px;
}
.logo-bold { font-weight: 800; color: var(--text-primary); }
.logo-light { font-weight: 300; color: var(--accent-primary); }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--glow-primary);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    padding: 14px;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tag-label {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
    background: linear-gradient(to right, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

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

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-darker);
}

.proof-text {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.proof-text strong {
    color: var(--text-primary);
}

/* General Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Pillars Section */
.pillars {
    padding: 120px 0;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    padding: 32px;
    transition: var(--transition-slow);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Ecosystem Section */
.ecosystem {
    padding: 120px 0;
    position: relative;
    background: var(--bg-darker);
}

.ecosystem-bg-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
}

.feature-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(32, 191, 85, 0.15);
    border-color: rgba(32, 191, 85, 0.4);
}

.feature-item.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-item h3 {
    color: var(--accent-primary);
    font-size: 24px;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Screenshots Section */
.screenshots-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 15, 30, 0) 0%, rgba(10, 15, 30, 0.4) 100%);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.screenshot-item h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--text-color);
}

.screenshot-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.screenshot-img-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-img-wrapper.mobile-mockup {
    aspect-ratio: 9/19;
    max-width: 300px;
    margin: 0 auto;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.03);
}

/* Demos Section */
.demos {
    padding: 120px 0;
}

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

#card-dashboard {
    grid-column: 1 / -1; /* Spans full width of the container */
}

.mobile-video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.phone-frame {
    width: 100%;
    max-width: 300px; /* Constrains the width to look like a phone */
    aspect-ratio: 9/19.5; /* Typical modern smartphone ratio */
    background: #18181b;
    border-radius: 35px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    margin: 0 auto 20px;
}

.phone-frame video {
    border-radius: 25px;
}

.video-card {
    padding: 24px;
    text-align: left;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background-color: rgba(255,255,255,0.5);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
    font-weight: bold;
}

.video-placeholder:hover {
    border-color: var(--accent-primary);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--accent-secondary);
    margin-bottom: 16px;
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.video-placeholder:hover .play-btn {
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}
/* Z-Pattern & Showcase Layouts */
.feature-showcase {
    padding: 100px 0;
    position: relative;
}

.dark-section {
    background: #0a0f1e;
    color: #fff;
}

.dark-section .section-header p {
    color: #9ca3af;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-content h2 {
    font-size: 36px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.showcase-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.dark-section .showcase-content p {
    color: #9ca3af;
}

.showcase-image {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.dark-section .showcase-image {
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.showcase-image img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* Check List */
.check-list {
    list-style: none;
    margin-bottom: 32px;
}

.check-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.dark-section .check-list li {
    color: #d1d5db;
}

/* Updated Solutions Cards */
.solution-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px 40px 0 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.solution-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

.solution-card-img {
    margin-top: auto;
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    display: block;
}

/* CRM Images Overlap Effect */
.crm-images-wrapper {
    margin-top: auto;
    position: relative;
    height: 250px;
    width: 100%;
}

.crm-img-back {
    position: absolute;
    top: 0;
    left: 10%;
    width: 130%;
    border-radius: 8px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.15);
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-img-front {
    position: absolute;
    top: 60px;
    left: -15%;
    width: 130%;
    border-radius: 8px;
    box-shadow: 10px -10px 30px rgba(0,0,0,0.25);
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover .crm-img-back {
    transform: translate(-5px, -5px) scale(1.03);
}

.solution-card:hover .crm-img-front {
    transform: translate(5px, 5px) scale(1.05);
}

/* White Label Section */
.white-label-section {
    padding: 120px 0;
    text-align: center;
}

.white-label-section .showcase-image {
    max-width: 800px;
    margin: 40px auto 80px;
}

.wl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.wl-card {
    background: rgba(16, 185, 129, 0.03);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.wl-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.wl-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.faq-item h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: float-pulse 2s infinite;
    text-decoration: none;
    border: none;
    outline: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

@keyframes float-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer / CTA */
.cta-footer {
    padding: 100px 0 40px;
    background: var(--bg-darker);
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.cta-footer h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-footer p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto 60px;
    padding: 32px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form input:focus {
    border-color: var(--accent-primary);
    background: rgba(255,255,255,1);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: #fff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Hamburger menu future implementation */
    .hero-title { font-size: 36px; }
    .section-header h2 { font-size: 28px; } /* Reduce heading size on mobile */
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .video-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    .phone-frame {
        max-width: 260px; /* Diminui o tamanho do celular no mobile para caber na tela */
        border-radius: 25px;
        padding: 8px;
    }
    
    .phone-frame video {
        border-radius: 18px;
    }

    .hero-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    .showcase-row { flex-direction: column; text-align: center; gap: 40px; }
    .showcase-row.reverse { flex-direction: column; }
    .check-list li { text-align: left; }
    .wl-grid { grid-template-columns: 1fr; }
}

/* Integrations Section (Marquee) */
.integrations-section {
    padding: 60px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
    gap: 60px;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.marquee-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.marquee-item svg {
    width: 28px;
    height: 28px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 30px)); /* Move half the width (original set) minus half gap */
    }
}
