/* ============================================
   LANDING PAGE REBRANDING - HEALTHCARE ELEGANTE
   Verde Esmeralda + Azul Marinho + Branco
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Colors */
    --primary-emerald: #2D6A4F;
    --primary-emerald-light: #40916C;
    --primary-emerald-dark: #1B4332;
    
    /* Secondary Colors */
    --secondary-navy: #1B4965;
    --secondary-navy-light: #2E5F7E;
    --secondary-navy-dark: #0F2D47;
    
    /* Accent Colors */
    --accent-teal: #52B788;
    --accent-light-blue: #74C0FC;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 106, 79, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 106, 79, 0.12);
    --shadow-lg: 0 12px 32px rgba(45, 106, 79, 0.15);
    --shadow-xl: 0 20px 48px rgba(45, 106, 79, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ TYPOGRAPHY ============ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-light);
}

* {
    transition: var(--transition);
}

/* ============ HEADER & NAVBAR ============ */

.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--medium-gray);
}

.navbar {
    padding: 1.2rem 0;
}

.navbar-brand img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.08);
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.25rem;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-teal));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.btn-outline-dark {
    border: 2px solid var(--primary-emerald);
    color: var(--primary-emerald);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-outline-dark:hover {
    background: var(--primary-emerald);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 106, 79, 0.25);
    border-color: var(--primary-emerald);
}

/* ============ BANNER SECTION ============ */

.main-banner {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.main-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27, 73, 101, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.main-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.main-banner h6 {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.1s both;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.badge {
    animation: slideInDown 0.8s ease;
    position: relative;
    z-index: 1;
    background: var(--white) !important;
    color: var(--primary-emerald) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.banner-btn {
    animation: slideInUp 0.8s ease 0.2s both;
    position: relative;
    z-index: 1;
}

.dash-preview {
    animation: slideInRight 0.8s ease;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.25));
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
}

.preview-img {
    border-radius: 16px;
    transition: transform 0.3s ease;
    display: block;
}

.preview-img:hover {
    transform: scale(1.02);
}

/* ============ ANIMATIONS ============ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============ SECTIONS ============ */

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-teal));
    border-radius: 2px;
}

section > .container > .row > .col-md-6:first-child h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

section > .container > .row > .col-md-6:first-child p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1rem;
}

/* ============ CARDS ============ */

.card {
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--white);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-emerald);
}

.card-body {
    padding: 2.5rem;
}

.card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============ PRICING CARDS ============ */

.pricing-card {
    border: 2px solid var(--medium-gray);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
}

.pricing-card:hover {
    border-color: var(--primary-emerald);
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-emerald);
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.05) 0%, rgba(82, 183, 136, 0.05) 100%);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

.pricing-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-emerald), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0 1rem;
    font-family: 'Poppins', sans-serif;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.pricing-card li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary-emerald);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 12px;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin-top: 2rem;
    width: 100%;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* ============ BUTTONS ============ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--accent-teal) 100%);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.9rem 2.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.2);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
    background: linear-gradient(135deg, var(--primary-emerald-light) 0%, var(--accent-teal) 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ============ FOOTER ============ */

footer {
    background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--secondary-navy-dark) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

footer a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--white);
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .main-banner h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .pricing-card {
        margin-bottom: 2rem;
        padding: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card:hover {
        transform: translateY(-8px);
    }

    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0;
    }

    .main-banner {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .main-banner h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .main-banner {
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* ============ UTILITY CLASSES ============ */

.fade-in {
    animation: fadeIn 0.6s ease;
}

.scale-in {
    animation: scaleIn 0.6s ease;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-emerald), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ============ ACCESSIBILITY ============ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============ DARK MODE SUPPORT ============ */

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #f0f0f0;
    }

    .card {
        background: #2a2a2a;
        border-color: #3a3a3a;
    }

    .pricing-card {
        background: #2a2a2a;
        border-color: #3a3a3a;
    }

    section h2 {
        color: #f0f0f0;
    }

    .nav-link {
        color: #f0f0f0 !important;
    }
}
