*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #f0f4ff;
    --primary-100: #e0e9ff;
    --primary-200: #c7d7fe;
    --primary-300: #a5bbfc;
    --primary-400: #8196f8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    color: var(--gray-800);
    background: #fff;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-600);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-600);
}

.btn-primary {
    background: var(--primary-600);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-600);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 100%);
    margin-top: 70px;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 3rem;
    font-style: italic;
}

.hero .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Base */
.section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* AI-RPA Section */
.ai-rpa-section {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.ai-rpa-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.ai-rpa-section .highlight {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-100);
}

.ai-rpa-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.ai-rpa-content h2 {
    text-align: center;
}

.article-link,
.article-link:link,
.article-link:visited,
.article-link:active,
.article-link:hover,
.article-link:focus {
    color: white !important;
    text-decoration: underline !important;
    text-decoration-color: white !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    transition: all 0.3s ease !important;
}

.ai-rpa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ai-rpa-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-rpa-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-100);
}

.ai-rpa-card p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* AI-RPA Animation - Simple Horizontal */
.ai-rpa-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
}

.simple-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: scale(0.8);
}

.simple-icon {
    width: 70px;
    height: 70px;
    color: var(--primary-200);
}

.simple-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-100);
    text-align: center;
}

.arrow-svg {
    width: 200px;
    height: 60px;
}

.arrow-label-simple {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-200);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
}

.ehr-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-200);
}

/* Sequential animations - only trigger when in view */
.ai-rpa-animation.animated .user-item {
    animation: itemAppear 0.5s ease-out 0.3s forwards;
}

.ai-rpa-animation.animated .arrow-item {
    animation: itemAppear 0.5s ease-out 0.9s forwards;
}

.ai-rpa-animation.animated .ehr-item {
    animation: itemAppear 0.5s ease-out 1.5s forwards;
}

@keyframes itemAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Coming Soon Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.modal-content .btn-primary {
    background: white;
    color: var(--primary-600) !important;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
}

.modal-content .btn-primary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

/* Features Section */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 300px;
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-300);
}

/* Alternate layout for even cards */
.feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-card:nth-child(even):hover {
    transform: translateX(-8px);
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-visual {
    flex: 0 0 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-200);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-100);
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: var(--primary-600);
}

.feature-card h3 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.feature-card ul {
    list-style: none;
    margin-top: 1rem;
}

.feature-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.feature-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-600);
    font-weight: bold;
}

.stat-highlight {
    background: var(--primary-50);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-600);
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Visual Animations for Feature Graphics */

/* 1. Documentation - Vertical bar audio wave to note transformation */
.sound-wave {
    position: absolute;
    left: 20px;
    width: 90px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
}

.wave-bar {
    width: 6px;
    background: var(--primary-500);
    border-radius: 3px;
    transform-origin: center;
}

.feature-card.animated[data-slice="1"] .sound-wave {
    animation: fadeInWave 0.5s ease-out forwards;
}

.feature-card.animated[data-slice="1"] .wave-bar:nth-child(1) { animation: oscillate 1.5s ease-in-out infinite; height: 30px; }
.feature-card.animated[data-slice="1"] .wave-bar:nth-child(2) { animation: oscillate 1.5s ease-in-out 0.1s infinite; height: 50px; }
.feature-card.animated[data-slice="1"] .wave-bar:nth-child(3) { animation: oscillate 1.5s ease-in-out 0.2s infinite; height: 70px; }
.feature-card.animated[data-slice="1"] .wave-bar:nth-child(4) { animation: oscillate 1.5s ease-in-out 0.3s infinite; height: 55px; }
.feature-card.animated[data-slice="1"] .wave-bar:nth-child(5) { animation: oscillate 1.5s ease-in-out 0.4s infinite; height: 65px; }
.feature-card.animated[data-slice="1"] .wave-bar:nth-child(6) { animation: oscillate 1.5s ease-in-out 0.5s infinite; height: 45px; }
.feature-card.animated[data-slice="1"] .wave-bar:nth-child(7) { animation: oscillate 1.5s ease-in-out 0.6s infinite; height: 60px; }

.doc-output {
    position: absolute;
    right: 30px;
    width: 90px;
    height: 110px;
    background: white;
    border: 3px solid var(--primary-400);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.5);
}

.doc-output::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--primary-300);
    border-radius: 2px;
    box-shadow: 0 10px 0 var(--primary-300), 0 20px 0 var(--primary-300), 0 30px 0 var(--primary-200), 0 40px 0 var(--primary-200);
}

@keyframes fadeInWave {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes oscillate {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.4);
        opacity: 0.8;
    }
}

.feature-card.animated[data-slice="1"] .doc-output {
    animation: waveToDoc 1s ease-out 1s forwards;
}

@keyframes waveToDoc {
    0% {
        opacity: 0;
        transform: scale(0.5) translateX(-50px);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* 2. Chart Review - Multiple documents merging into one */
.chart-doc {
    position: absolute;
    width: 70px;
    height: 90px;
    background: white;
    border: 3px solid var(--primary-400);
    border-radius: 8px;
    opacity: 0;
}

.chart-doc::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--primary-300);
    border-radius: 2px;
}

.chart-doc::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 8px;
    right: 20px;
    height: 3px;
    background: var(--primary-200);
    border-radius: 2px;
}

.feature-card.animated[data-slice="2"] .chart-doc:nth-child(1) {
    animation: mergeLeft 1.2s ease-out forwards;
}

.feature-card.animated[data-slice="2"] .chart-doc:nth-child(2) {
    animation: mergeRight 1.2s ease-out forwards;
}

.feature-card.animated[data-slice="2"] .chart-doc:nth-child(3) {
    animation: mergeCenter 1.2s ease-out 0.6s forwards;
    width: 90px;
    height: 110px;
    border-color: var(--primary-600);
}

@keyframes mergeLeft {
    0% {
        transform: translate(-120px, 0) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@keyframes mergeRight {
    0% {
        transform: translate(120px, 0) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@keyframes mergeCenter {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 3. Communication - Message bubbles animation */
.message-bubble {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-400);
    border-radius: 18px;
    padding: 12px 16px;
    opacity: 0;
    transform: scale(0);
}

.message-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.message-bubble.left::after {
    bottom: 10px;
    left: -8px;
    border-width: 8px 8px 0 0;
    border-color: var(--primary-400) transparent transparent transparent;
}

.message-bubble.right::after {
    bottom: 10px;
    right: -8px;
    border-width: 0 8px 8px 0;
    border-color: transparent var(--primary-400) transparent transparent;
}

.message-line {
    width: 60px;
    height: 4px;
    background: var(--primary-300);
    border-radius: 2px;
    margin: 4px 0;
}

.feature-card.animated[data-slice="3"] .message-bubble:nth-child(1) {
    animation: popBubble 0.5s ease-out 0.2s forwards;
}

.feature-card.animated[data-slice="3"] .message-bubble:nth-child(2) {
    animation: popBubble 0.5s ease-out 0.6s forwards;
}

.feature-card.animated[data-slice="3"] .message-bubble:nth-child(3) {
    animation: popBubble 0.5s ease-out 1s forwards;
}

@keyframes popBubble {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 4. Orders - Vertical bar audio wave to orders transformation */
.sound-wave-orders {
    position: absolute;
    left: 20px;
    width: 90px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
}

.wave-bar-orders {
    width: 6px;
    background: var(--primary-500);
    border-radius: 3px;
    transform-origin: center;
}

.feature-card.animated[data-slice="4"] .sound-wave-orders {
    animation: fadeInWave 0.5s ease-out forwards;
}

.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(1) { animation: oscillate 1.5s ease-in-out infinite; height: 35px; }
.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(2) { animation: oscillate 1.5s ease-in-out 0.1s infinite; height: 55px; }
.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(3) { animation: oscillate 1.5s ease-in-out 0.2s infinite; height: 65px; }
.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(4) { animation: oscillate 1.5s ease-in-out 0.3s infinite; height: 50px; }
.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(5) { animation: oscillate 1.5s ease-in-out 0.4s infinite; height: 70px; }
.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(6) { animation: oscillate 1.5s ease-in-out 0.5s infinite; height: 40px; }
.feature-card.animated[data-slice="4"] .wave-bar-orders:nth-child(7) { animation: oscillate 1.5s ease-in-out 0.6s infinite; height: 58px; }

.orders-output {
    position: absolute;
    right: 30px;
    width: 100px;
    height: 120px;
    background: white;
    border: 3px solid var(--primary-400);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.5);
    padding: 12px 10px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.order-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-500);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}

.order-checkbox::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid var(--primary-600);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 1px;
    left: 4px;
}

.order-line {
    height: 2px;
    background: var(--primary-300);
    border-radius: 1px;
    flex: 1;
}

.feature-card.animated[data-slice="4"] .orders-output {
    animation: waveToOrders 1s ease-out 1s forwards;
}

@keyframes waveToOrders {
    0% {
        opacity: 0;
        transform: scale(0.5) translateX(-50px);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* 5. Clinical Guidance - Book/knowledge layers */
.knowledge-layer {
    position: absolute;
    width: 120px;
    height: 140px;
    background: white;
    border: 3px solid var(--primary-400);
    border-radius: 8px;
    opacity: 0;
}

.knowledge-layer::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--primary-300);
    border-radius: 2px;
    box-shadow: 0 8px 0 var(--primary-200), 0 16px 0 var(--primary-200);
}

.feature-card.animated[data-slice="5"] .knowledge-layer:nth-child(1) {
    animation: stackLayer 0.6s ease-out forwards;
}

.feature-card.animated[data-slice="5"] .knowledge-layer:nth-child(2) {
    animation: stackLayer 0.6s ease-out 0.2s forwards;
}

.feature-card.animated[data-slice="5"] .knowledge-layer:nth-child(3) {
    animation: stackLayer 0.6s ease-out 0.4s forwards;
    border-color: var(--primary-600);
    border-width: 4px;
}

@keyframes stackLayer {
    0% {
        transform: translateY(40px) rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

/* Vision Section */
.vision-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.vision-section .quote {
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 300;
}

/* Investors Section */
.investors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-200);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-400);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.opportunity-highlight {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    margin-top: 3rem;
    text-align: center;
}

.opportunity-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.opportunity-highlight p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer .footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

footer p {
    margin-bottom: 1rem;
    color: var(--gray-300);
}

footer a {
    color: var(--primary-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-400);
    text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* Responsive - Mobile Optimizations */
/* Updated: Mobile layout fixes for feature animations and AI-RPA arrow */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .investors-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column !important;
        min-height: auto;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    /* Feature content spacing */
    .feature-content .feature-icon {
        margin-bottom: 1rem;
    }
    
    .feature-content h3 {
        margin-bottom: 1.5rem;
    }
    
    /* Visual styling - JavaScript handles positioning */
    .feature-visual {
        flex: 0 0 200px;
        height: 200px;
        width: 100%;
        margin: 1.5rem 0;
    }
    
    /* Spacing for paragraphs after visual */
    .feature-content > p {
        margin-top: 0.75rem;
    }

    .ai-rpa-animation {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
        min-height: auto;
    }

    .simple-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Add spacing below User text */
    .ai-rpa-animation .user-item {
        padding-bottom: 0.5rem;
    }

    /* Change arrow to vertical in mobile */
    /* Outer container keeps column layout for centering on User/EHR */
    .ai-rpa-animation .arrow-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        position: relative;
    }
    
    /* Rotate the arrow SVG and add spacing */
    .ai-rpa-animation .arrow-item .arrow-svg {
        transform: rotate(90deg);
        width: 150px;
        height: 60px;
        margin-left: 0.5rem;
    }
    
    /* Position label to the left of arrow, centered on arrow's length */
    .ai-rpa-animation .arrow-label-simple {
        position: absolute;
        left: -3.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .ehr-text {
        font-size: 1.5rem;
    }

    .simple-item span {
        font-size: 0.8rem;
    }

    .arrow-label-simple {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .ai-rpa-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix communication animation bubble spacing */
    .feature-visual[data-visual="3"] .message-bubble:nth-child(2) {
        top: 70px !important;
    }
    
    .feature-visual[data-visual="3"] .message-bubble:nth-child(3) {
        bottom: 20px !important;
    }
    
    /* Keep documentation animation spacing unchanged in mobile */
    .sound-wave {
        left: 20px;
        width: 90px;
        height: 80px;
    }
    
    .doc-output {
        right: 30px;
        width: 90px;
        height: 110px;
    }
    
    /* Fix orders animation sizing and positioning to match documentation spacing */
    .sound-wave-orders {
        left: 20px;
        width: 90px;
        height: 80px;
    }
    
    .wave-bar-orders {
        width: 6px;
    }
    
    .orders-output {
        right: 30px;
        width: 90px;
        height: 110px;
        padding: 10px 8px;
    }
    
    .order-item {
        margin-bottom: 6px;
        gap: 4px;
    }
    
    .order-checkbox {
        width: 12px;
        height: 12px;
    }
    
    .order-checkbox::after {
        width: 3px;
        height: 6px;
        top: 1px;
        left: 3px;
    }
}
