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

:root {
    /* VitalEngine Brand Colors */
    --ve-blue-dark: #0D47A1;
    --ve-blue-medium: #1976D2;
    --ve-blue-light: #42A5F5;
    --ve-teal: #00ACC1;
    --ve-green-light: #8BC34A;
    --ve-green-medium: #4CAF50;
    --ve-yellow: #CDDC39;
    
    /* Neutral Colors */
    --text-primary: #0a0a0a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #fafbfc;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--ve-blue-medium) 0%, var(--ve-teal) 100%);
    --gradient-accent: linear-gradient(135deg, var(--ve-green-medium) 0%, var(--ve-green-light) 100%);
}

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

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

/* Header Styles (Lovable-inspired) */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 32px;
    margin: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.login-separator {
    color: var(--border-medium);
    font-size: 12px;
    font-weight: 300;
}

.legacy-login-link {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    white-space: nowrap;
}

.legacy-login-link:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

.legacy-login-link-mobile {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
    padding-top: 12px;
    text-align: center;
    display: block;
    font-weight: 400;
}

.legacy-login-link-mobile:hover {
    color: var(--text-secondary);
}

.mobile-login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mobile-login-separator {
    color: var(--border-medium);
    font-size: 14px;
    font-weight: 300;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--ve-blue-medium);
    border: 1px solid var(--ve-blue-medium);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    height: 36px;
    line-height: 1;
}

.btn-secondary:hover {
    background: var(--ve-blue-medium);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--ve-blue-medium);
    border: 1px solid var(--border-medium);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--ve-blue-medium);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Section (Lovable-inspired) */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -10;
    pointer-events: none;
}

.hero-gradient {
    max-width: 1200px;
    height: 480px;
    margin: 0 auto;
    border-radius: 48px;
    background: linear-gradient(to bottom, rgba(25, 118, 210, 0.1), transparent);
    filter: blur(48px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px 96px;
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        padding: 96px 20px;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #000000;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 64px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 72px;
    }
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 20px;
    }
}

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

/* Showcase Carousel */
.hero-showcase {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.showcase-container {
    position: relative;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    height: 400px;
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Evidence Strip (Lovable-inspired) */
.evidence-strip {
    border-top: 1px solid var(--border-light);
    background: #f3f4f6;
}

.evidence-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.evidence-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.evidence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
}

.evidence-icon {
    color: var(--ve-blue-medium);
    flex-shrink: 0;
}

.soc2-icon {
    color: var(--ve-green-medium);
}

/* What We Do Section (keeping your existing styles) */
.what-we-do {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.audience-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.hospital-card .card-header {
    color: var(--ve-blue-medium);
}

.physician-card .card-header {
    color: var(--ve-teal);
}

.patient-card .card-header {
    color: var(--ve-green-medium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.card-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-headline {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: currentColor;
    opacity: 0.5;
}

/* Why We Do It Section */
.why-we-do-it {
    padding: 100px 0;
    background: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-block {
    text-align: center;
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.why-block h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* How We Do It Section */
.how-we-do-it {
    padding: 100px 0;
    background: var(--bg-white);
}

.interactive-diagram {
    display: grid;
    gap: 60px;
    align-items: center;
}

@media (min-width: 768px) {
    .interactive-diagram {
        grid-template-columns: 1fr 1fr;
    }
}

.diagram-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
}

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(25, 118, 210, 0.2);
    z-index: 10;
}

.hospital-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.hospital-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.center-node span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Network and System Rings */
.connection-ring, .system-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    transition: all 0.5s ease;
}

.system-ring {
    width: 300px;
    height: 300px;
}

/* Network Nodes */
.network-node, .system-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.network-node.active, .system-node.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(25, 118, 210, 0.3);
}

.network-node:hover, .system-node:hover {
    transform: scale(1.05);
    opacity: 1;
}

.network-node svg, .system-node svg {
    width: 24px;
    height: 24px;
    fill: var(--ve-blue-medium);
}

.node-label, .system-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Node Positioning */
.node-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 10px; transform: translateY(-50%); }
.node-3 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.node-4 { top: 50%; left: 10px; transform: translateY(-50%); }

/* Hospital System Positioning (closer to center) */
.emr-node { top: 20px; left: 50%; transform: translateX(-50%); }
.pacs-node { bottom: 30px; right: 80px; }
.scheduling-node { bottom: 30px; left: 80px; }

/* Connection Lines */
/* System connections (green dotted) */
.system-connection-line {
    position: absolute;
    width: 80px;
    height: 2px;
    background-image: linear-gradient(to right, var(--ve-green-medium) 50%, transparent 50%);
    background-size: 8px 2px;
    top: 50%;
    left: -80px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.system-node.active .system-connection-line {
    opacity: 1;
    animation: pulseConnection 2s infinite;
}

/* Network connections (blue solid) */
.network-connection-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: var(--ve-blue-medium);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.network-node.active .network-connection-line {
    opacity: 0.8;
    animation: pulseConnection 2s infinite;
}

@keyframes pulseConnection {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Flow Arrows SVG */
.flow-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flow-paths {
    transition: opacity 0.5s ease;
}

.flow-paths.active {
    opacity: 1;
}

.flow-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: none;
}

.flow-paths.active .flow-path {
    animation: drawPath 1.5s ease-in-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Data Dots */
.data-dots {
    transition: opacity 0.5s ease;
}

.data-dots.active {
    opacity: 1;
}

/* Procedure Counter */
.procedure-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.5s ease;
}

.procedure-counter.active {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.counter-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--ve-green-medium);
}

.counter-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.diagram-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-card.active {
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.15);
    transform: translateX(8px);
}

.step-card.active {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.15) 0%, rgba(0, 172, 193, 0.15) 100%);
    border: 2px solid rgba(25, 118, 210, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-cta {
    background: white;
    color: var(--ve-blue-medium);
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 38px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.footer-phone,
.footer-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-phone a,
.footer-email a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone a:hover,
.footer-email a:hover {
    color: var(--ve-blue-medium);
}

.footer-links {
    display: flex;
    gap: 24px;
    min-width: 150px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-tagline {
    opacity: 0.7;
    margin: 0;
    font-size: 14px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-size: 14px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: white;
    padding: 20px;
    animation: slideIn 0.3s ease;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 60px 0 0;
}

.mobile-nav li {
    margin-bottom: 24px;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
}

.btn-secondary-mobile {
    width: 100%;
    background: transparent;
    color: var(--ve-blue-medium);
    border: 1px solid var(--ve-blue-medium);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-secondary-mobile:hover {
    background: var(--ve-blue-medium);
    color: white;
}

.btn-primary-mobile {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .audience-cards {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .diagram-container {
        width: 350px;
        height: 350px;
    }
    
    .connection-ring {
        width: 280px;
        height: 280px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}