:root {
    /* Leadvera Brand Palette */
    --bg-color: #fafbfc;
    --surface-color: #ffffff;
    --surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Primary — deep teal, trust & health */
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #ccfbf1;
    --primary-text: #ffffff;

    /* Accent */
    --accent: #f59e0b;
    --accent-light: #fef3c7;

    /* Status */
    --error-color: #ef4444;
    --error-bg: #fef2f2;
    --success-color: #10b981;
    --success-bg: #ecfdf5;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.06);
    --shadow-lg: 0 12px 32px rgba(15,23,42,0.08);
    --shadow-xl: 0 24px 48px rgba(15,23,42,0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --max-width: 1140px;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-accent {
    color: var(--primary);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-text);
    box-shadow: 0 2px 8px rgba(13,148,136,0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-nav {
    background: var(--primary);
    color: var(--primary-text);
    font-size: 0.875rem;
    padding: 0.5rem 1.15rem;
}

.btn-nav:hover {
    background: var(--primary-hover);
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(250,251,252,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.85rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-link:hover { color: var(--text-main); }

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

/* ─── HERO ─── */
.hero {
    padding: 9rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, #f0fdfa 0%, var(--bg-color) 100%);
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: 3.5rem;
}

/* ─── CHAT DEMO ─── */
.chat-demo {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.chat-window {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-header-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--primary);
    color: white;
}

.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.chat-clinic-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-messages {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #f8fafc;
}

.chat-time {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    padding: 0.25rem 0;
}

.chat-bubble {
    max-width: 82%;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
    animation: chatSlide 0.4s ease backwards;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.system-msg {
    background: var(--primary-light);
    color: var(--text-main);
    border: 1px solid #99f6e4;
}

.system-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chat-insight {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.insight-icon {
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.insight-icon i { width: 18px; height: 18px; }

.insight-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.insight-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ─── STATS BAR ─── */
.stats-bar {
    padding: 4rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 240px;
    margin: 0 auto;
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
    padding: 6rem 0;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.step-card {
    padding: 2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ─── FEATURES ─── */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f0fdfa 0%, var(--bg-color) 100%);
    border-top: 1px solid var(--border-color);
}

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

.feature-card {
    padding: 2rem 1.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.feature-icon i { width: 22px; height: 22px; }

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── TRUST ─── */
.trust-section {
    padding: 5rem 0;
}

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

.trust-card {
    padding: 2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.trust-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.trust-icon i { width: 24px; height: 24px; }

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

/* ─── COMPARISON ─── */
.comparison {
    padding: 5rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table {
    max-width: 720px;
    margin: 2rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comp-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comp-row:last-child { border-bottom: none; }

.comp-cell {
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
}

.comp-header .comp-cell {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--surface-alt);
    color: var(--text-muted);
}

.comp-label {
    font-weight: 500;
    color: var(--text-main);
}

.comp-old {
    color: var(--error-color);
    background: rgba(239,68,68,0.03);
}

.comp-new {
    color: var(--primary);
    font-weight: 500;
    background: rgba(13,148,136,0.03);
}

.comp-header .comp-old { color: var(--text-muted); background: var(--surface-alt); }
.comp-header .comp-new { color: var(--primary); background: var(--surface-alt); }

/* ─── CTA ─── */
.cta-section {
    padding: 6rem 0;
    text-align: center;
}

.cta-box {
    max-width: 640px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: var(--radius-xl);
    border: 1px solid #99f6e4;
}

.cta-box p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ─── FOOTER ─── */
footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 56px; height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* ─── ANIMATIONS ─── */
@keyframes chatSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble:nth-child(3) { animation-delay: 0.6s; }
.chat-bubble:nth-child(4) { animation-delay: 1.0s; }
.chat-bubble:nth-child(5) { animation-delay: 1.4s; }
.chat-bubble:nth-child(6) { animation-delay: 1.8s; }
.chat-bubble:nth-child(8) { animation-delay: 2.4s; }

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .features-grid,
    .steps-grid,
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .chat-demo {
        grid-template-columns: 1fr;
    }
    .chat-insight {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero { padding: 7rem 0 3rem; }
    .features-grid,
    .steps-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .chat-insight {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-link { display: none; }
    .comp-cell { padding: 0.65rem 0.75rem; font-size: 0.75rem; }
    h1 { font-size: 1.85rem; }
}


/* ─── LEADVERA DEPLOY POLISH ─── */
.logo {
    text-decoration: none;
}

.btn svg,
.btn i {
    flex-shrink: 0;
}

.hero-container {
    max-width: 860px;
}

.hero-microcopy {
    margin-top: 0.85rem;
    color: var(--text-light);
    font-size: 0.86rem;
}

.stat-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.stat-desc strong {
    color: var(--text-main);
    font-weight: 700;
}

.footer-container .logo {
    display: inline-flex;
}

.whatsapp-float svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-title {
        font-size: 1.45rem;
    }

    .chat-bubble {
        max-width: 90%;
    }

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

    .footer-links span:nth-child(2) {
        display: none;
    }
}
