/* ============================================
   Echopad AI Platform - Futuristic Design
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-blue: #2563EB;
    --primary-dark: #1E40AF;
    --accent-teal: #14B8A6;
    --accent-teal-dark: #0F766E;
    --purple-accent: #8B5CF6;
    --bg-light: #F8FAFC;
    --bg-gradient-start: #EFF6FF;
    --bg-gradient-end: #E0F2FE;
    --text-dark: #1E293B;
    --text-medium: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --success-green: #10B981;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    max-width: 100vw;
    position: relative;
}

/* Hero and major headings use Poppins */
#hero h1,
#hero .hero-badge,
h2,
.section-subtitle {
    font-family: 'Poppins', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ============================================
   Typography
   ============================================ */
h1 {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

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

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    p {
        font-size: 1rem;
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.navbar-brand-custom {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.navbar-brand-custom:hover {
    transform: translateY(-2px);
}

.logo-icon-ai {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
}

.logo-icon-ai::before {
    content: '⚡';
    position: absolute;
    font-size: 1.5rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
}

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

.nav-links-custom {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-link-custom {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    border: none;
    color: white;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    color: white;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 50%, #DBEAFE 100%);
    padding: 180px 0 100px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 600;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    margin-bottom: 2rem;
}

.hero-badge i {
    font-size: 1rem;
}

#hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.hero-feature-item i {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.hero-feature-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.hero-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: var(--primary-blue);
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--primary-blue);
}

.hero-trust-badges {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-medium);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--success-green);
}

/* Floating Background Elements */
.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
}

.element-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.element-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-teal);
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite 5s;
}

.element-3 {
    width: 250px;
    height: 250px;
    background: var(--purple-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 25s ease-in-out infinite 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(30px, 50px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, 30px) rotate(270deg);
    }
}

/* ============================================
   Trust Bar
   ============================================ */
#trust-bar {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-badges-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.trust-badge-item i {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 100px 0;
}

.section-header,
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 900px;
    margin: 1rem auto 0;
}

/* Value Proposition Badges */
.value-prop-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.value-prop-badge:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
    transform: translateY(-4px);
}

.value-prop-badge i {
    font-size: 2rem;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.value-prop-badge div {
    flex: 1;
}

.value-prop-badge strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.value-prop-badge span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ============================================
   Agent Categories
   ============================================ */
.agent-category {
    margin-bottom: 4rem;
}

.agent-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.75rem;
    color: white;
}

.category-header h3 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-dark);
}

.category-header p {
    margin: 0.25rem 0 0 0;
    color: var(--text-medium);
    font-size: 1rem;
}

/* ============================================
   Product Overview Cards
   ============================================ */
#products {
    background: var(--white);
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-card-featured {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid var(--primary-blue);
}

.product-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.product-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 12px;
    color: var(--accent-teal);
}

/* ============================================
   Product Detail Sections (Problem/Solution)
   ============================================ */
.product-detail-section {
    padding: 100px 0;
}

.product-detail-section.collapsible-section {
    padding: 0;
    margin: 0 auto 1rem;
    max-width: 1200px;
}

.product-detail-section.alt-bg {
    background: var(--bg-light);
}

/* Override alt-bg for collapsible sections */
.product-detail-section.collapsible-section.alt-bg {
    background: var(--white) !important;
}

/* Business Challenge Box */
.business-challenge-box {
    background: white;
    border: 2px solid #FEE2E2;
    border-left: 6px solid #EF4444;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.challenge-label {
    color: #DC2626;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.business-challenge-box h3 {
    color: #991B1B;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.business-challenge-box p {
    color: var(--text-medium);
}

.challenge-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.challenge-metric {
    display: flex;
    flex-direction: column;
}

.challenge-metric strong {
    font-size: 2rem;
    font-weight: 900;
    color: #DC2626;
    margin-bottom: 0.25rem;
}

.challenge-metric span {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Keep old problem-box for backward compatibility */
.problem-box {
    background: white;
    border: 2px solid #FEE2E2;
    border-left: 6px solid #EF4444;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.problem-label {
    color: #DC2626;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.problem-box h3 {
    color: #991B1B;
    margin-bottom: 1rem;
}

.problem-box p {
    color: var(--text-medium);
}

.solution-box {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid #A7F3D0;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.solution-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.solution-box h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.solution-tagline {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-content {
    text-align: center;
}

.step-content strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.step-content span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-medium);
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--accent-teal);
    font-weight: 700;
}

/* Enhanced Workflow Visualization */
.workflow-visual {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.workflow-step-enhanced {
    flex: 1;
    min-width: 200px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.workflow-step-enhanced:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
    transform: translateY(-4px);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.step-number-badge {
    display: inline-block;
    background: var(--accent-teal);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.workflow-step-enhanced h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.workflow-step-enhanced p {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.workflow-arrow-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 2rem;
    flex-shrink: 0;
}

/* Visual Examples */
.visual-example {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Audio Wave Animation */
.audio-wave-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
}

.audio-wave-visual span {
    width: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

.audio-wave-visual span:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.audio-wave-visual span:nth-child(2) {
    height: 35px;
    animation-delay: 0.1s;
}

.audio-wave-visual span:nth-child(3) {
    height: 40px;
    animation-delay: 0.2s;
}

.audio-wave-visual span:nth-child(4) {
    height: 30px;
    animation-delay: 0.3s;
}

.audio-wave-visual span:nth-child(5) {
    height: 25px;
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.5);
    }
}

/* Text Lines Animation */
.text-example {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 1.25rem;
}

.text-line {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    border-radius: 2px;
    animation: textAppear 1.5s ease-in-out infinite;
}

.text-line:nth-child(1) {
    width: 100%;
    animation-delay: 0s;
}

.text-line:nth-child(2) {
    width: 90%;
    animation-delay: 0.3s;
}

.text-line.short {
    width: 60%;
    animation-delay: 0.6s;
}

@keyframes textAppear {
    0% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
}

/* Document Example */
.document-example {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 1rem;
}

.doc-header {
    height: 12px;
    width: 80%;
    background: linear-gradient(90deg, var(--accent-teal), var(--success-green));
    border-radius: 3px;
    margin-bottom: 8px;
}

.doc-line {
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    width: 100%;
}

.doc-line.short {
    width: 70%;
}

/* Product Detail Content (Left Side) */
.product-detail-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-detail-intro {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.detail-section p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.process-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.process-text strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.process-text p {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.impact-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-list-compact li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.impact-list-compact li i {
    color: var(--success-green);
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Visualization Panel (Right Side) */
.visualization-panel {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}

.viz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.viz-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.viz-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.viz-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.viz-step.step-visible {
    opacity: 1;
    transform: translateY(0);
}

.viz-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-badge {
    background: var(--accent-teal);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.step-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.viz-arrow {
    text-align: center;
    color: var(--accent-teal);
    font-size: 2rem;
    margin: 1rem 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.viz-arrow.step-visible {
    opacity: 1;
    transform: scale(1);
}

/* Audio Wave Container */
.audio-wave-container {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.audio-wave-visual-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 50px;
    margin-bottom: 1rem;
}

.audio-wave-visual-large span {
    width: 5px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

.audio-wave-visual-large span:nth-child(1) { height: 25px; animation-delay: 0s; }
.audio-wave-visual-large span:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.audio-wave-visual-large span:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.audio-wave-visual-large span:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.audio-wave-visual-large span:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.audio-wave-visual-large span:nth-child(6) { height: 45px; animation-delay: 0.5s; }
.audio-wave-visual-large span:nth-child(7) { height: 40px; animation-delay: 0.6s; }
.audio-wave-visual-large span:nth-child(8) { height: 28px; animation-delay: 0.7s; }
.audio-wave-visual-large span:nth-child(9) { height: 35px; animation-delay: 0.8s; }
.audio-wave-visual-large span:nth-child(10) { height: 25px; animation-delay: 0.9s; }

.sample-speech {
    font-style: italic;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.5rem;
    border-left: 3px solid var(--accent-teal);
    background: rgba(20, 184, 166, 0.05);
}

/* Transcription Panel */
.transcription-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.typing-text {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.typed {
    color: var(--text-dark);
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    font-weight: 700;
    color: var(--accent-teal);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Clinical Note Preview */
.clinical-note-preview {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.note-section {
    margin-bottom: 1rem;
}

.note-section:last-child {
    margin-bottom: 0;
}

.note-section strong {
    display: block;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.note-section p {
    color: var(--text-dark);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* Corrected Text Panel */
.corrected-text-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.correction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.correction-badge i {
    font-size: 1rem;
}

.corrected-output {
    background: white;
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.corrected-output p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}

.medical-terms-highlight {
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid var(--purple-accent);
    border-radius: 8px;
    padding: 1rem;
}

.term-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple-accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.term-badge i {
    font-size: 1.1rem;
}

.terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.term {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-accent), #7C3AED);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Raw Transcript Panel */
.raw-transcript-panel {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.raw-transcript-panel p {
    margin: 0;
    font-size: 0.85rem;
}

/* Template Selector */
.template-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 8px;
}

.template-option {
    flex: 1;
    min-width: 120px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.template-option:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.template-option.selected {
    background: linear-gradient(135deg, var(--accent-teal), #059669);
    border-color: var(--accent-teal);
    color: white;
}

.template-option.selected i {
    font-size: 1rem;
}

.template-option:not(.selected) i {
    display: none;
}

/* Formatted Document Panel */
.formatted-document-panel {
    background: white;
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 1.5rem;
}

.doc-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.doc-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.doc-section strong {
    display: block;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.doc-section p {
    color: var(--text-dark);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* Session Recording Panel */
.session-recording-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid #EF4444;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.recording-indicator span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.duration {
    margin-left: auto;
    color: #EF4444;
    font-family: 'Courier New', monospace;
}

.conversation-snippet {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.speaker-line {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.speaker-line:last-child {
    margin-bottom: 0;
}

.speaker-line.provider {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-left: 3px solid var(--primary-blue);
}

.speaker-line.patient {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border-left: 3px solid var(--success-green);
}

.speaker-line strong {
    color: var(--text-dark);
    margin-right: 0.5rem;
}

/* Extraction Panel */
.extraction-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.extraction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.extraction-item:last-child {
    margin-bottom: 0;
}

.extraction-item.complete {
    border: 2px solid var(--success-green);
}

.extraction-item.complete i {
    color: var(--success-green);
    font-size: 1.25rem;
}

.extraction-item.processing {
    border: 2px solid var(--accent-teal);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* EHR Fields Panel */
.ehr-fields-panel {
    background: white;
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 1.5rem;
}

.ehr-field {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ehr-field:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.field-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.field-value {
    color: var(--text-dark);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* AI Patient Prep Components */
.prep-header-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.prep-procedure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prep-procedure-badge i {
    font-size: 1.5rem;
}

.prep-date {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
}

.prep-checklist-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.prep-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.prep-item:last-child {
    margin-bottom: 0;
}

.prep-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.prep-item.completed {
    border-color: var(--success-green);
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
}

.prep-item.completed i {
    color: var(--success-green);
}

.prep-item.active {
    border-color: var(--accent-teal);
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.prep-item.active i {
    color: var(--accent-teal);
}

.prep-item.pending {
    border-color: var(--border-color);
    opacity: 0.7;
}

.prep-item.pending i {
    color: var(--text-light);
}

.prep-item-content {
    flex: 1;
}

.prep-item-content strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.prep-item-content span {
    display: block;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.prep-timestamp {
    color: var(--success-green);
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.prep-reminder {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.prep-status-panel {
    background: white;
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.status-badge.success {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
}

.status-badge i {
    font-size: 1.5rem;
}

.status-details {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-metric {
    text-align: center;
}

.status-metric strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.status-metric span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.provider-notification {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-left: 3px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.provider-notification i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

/* AI Receptionist Components */
.call-incoming-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.call-indicator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-blue);
}

.phone-ringing {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ring 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

.phone-ringing i {
    font-size: 1.75rem;
    color: white;
}

.call-info {
    flex: 1;
}

.caller-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.call-time {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.patient-speech {
    background: white;
    border-left: 4px solid var(--accent-teal);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.patient-speech i {
    font-size: 1.5rem;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.patient-speech p {
    margin: 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.intent-recognition-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.intent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.intent-item:last-of-type {
    margin-bottom: 1.5rem;
}

.intent-item.recognized {
    border: 2px solid var(--success-green);
}

.intent-item.recognized i {
    color: var(--success-green);
    font-size: 1.25rem;
}

.ai-response-preview {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ai-response-preview i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.ai-response-preview p {
    margin: 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.appointment-confirmation-panel {
    background: white;
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 1.5rem;
}

.confirmation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.confirmation-badge i {
    font-size: 1.5rem;
}

.appointment-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row strong {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.detail-row span {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.staff-notification-badge {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-left: 3px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-notification-badge i {
    color: var(--primary-blue);
    font-size: 1.125rem;
}

/* AI Admin Assistant Components */
.email-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.email-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-blue);
}

.email-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.email-meta {
    flex: 1;
}

.email-meta strong {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.email-subject {
    margin-top: 0.5rem;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.email-body {
    background: white;
    border-left: 4px solid var(--accent-teal);
    border-radius: 8px;
    padding: 1.25rem;
}

.email-body p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

.extraction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.extract-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    border: 2px solid var(--success-green);
}

.extract-item i {
    font-size: 1.5rem;
    color: var(--success-green);
    flex-shrink: 0;
}

.extract-item div {
    flex: 1;
}

.extract-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.extract-item span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.task-completion-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.completed-task {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.125rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 2px solid var(--success-green);
}

.completed-task:last-of-type {
    margin-bottom: 1.5rem;
}

.completed-task i {
    color: var(--success-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.completed-task span {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.staff-alert {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-left: 3px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

.staff-alert i {
    color: var(--primary-blue);
    font-size: 1.125rem;
}

/* AI Patient Reminders Components */
.appointment-card-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.appointment-info {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
}

.appointment-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.appointment-type i {
    font-size: 1.25rem;
}

.appointment-patient {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.appointment-patient strong {
    margin-right: 0.5rem;
}

.appointment-details-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--accent-teal);
    font-size: 1.125rem;
}

.reminder-generation-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.reminder-channel {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.reminder-channel:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.reminder-channel:last-child {
    margin-bottom: 0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.channel-header i {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.channel-header strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.timing-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--accent-teal), #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.message-preview {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-teal);
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

.confirmation-tracking-panel {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.confirmation-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.confirmation-status.success {
    border: 2px solid var(--success-green);
    color: var(--success-green);
}

.confirmation-status i {
    font-size: 1.5rem;
}

.confirmation-timeline {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-item.confirmed i {
    color: var(--success-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-item div {
    flex: 1;
}

.timeline-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-item span {
    display: block;
    color: var(--text-medium);
    font-size: 0.8rem;
}

/* Clinical Impact */
.clinical-impact {
    margin: 2rem 0;
}

.clinical-impact h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.impact-list li i {
    color: var(--success-green);
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ROI Highlight */
.roi-highlight {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #92400E;
}

.roi-highlight strong {
    color: #78350F;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 1rem;
}

.feature-list li i {
    color: var(--success-green);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-solution {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-solution:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ============================================
   Platform Section
   ============================================ */
#platform {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
}

#platform .section-subtitle {
    color: var(--accent-teal);
}

#platform h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.platform-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.platform-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.platform-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.platform-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-teal), var(--success-green));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.platform-icon i {
    font-size: 2rem;
    color: white;
}

.platform-feature h4 {
    color: white;
    margin-bottom: 1rem;
}

.platform-feature p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Platform feature on light backgrounds */
.alt-bg .platform-feature {
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alt-bg .platform-feature:hover {
    background: white;
    border-color: var(--accent-teal);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
}

.alt-bg .platform-feature h4 {
    color: var(--text-dark);
}

.alt-bg .platform-feature p {
    color: var(--text-medium);
}

/* ============================================
   ROI Section
   ============================================ */
#roi {
    background: var(--bg-light);
}

.roi-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.roi-metric-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.roi-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.roi-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.roi-icon i {
    font-size: 2rem;
    color: white;
}

.roi-metric-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.roi-metric-card p {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.95rem;
}

/* Implementation Timeline */
.implementation-timeline {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
}

.implementation-timeline h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-step {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.timeline-number {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.timeline-step p {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.875rem;
}

.timeline-connector {
    font-size: 1.5rem;
    color: var(--accent-teal);
    font-weight: 700;
}

/* ============================================
   Contact/Lead Capture Section
   ============================================ */
#contact {
    background: var(--bg-light);
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.demo-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.demo-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.demo-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.divider {
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--text-medium);
    font-weight: 600;
}

.btn-teams {
    background: white;
    color: #464EB8;
    border: 2px solid #464EB8;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-teams:hover {
    background: #464EB8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(70, 78, 184, 0.3);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--text-dark), #0F172A);
    color: white;
    padding: 80px 0 30px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-footer {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon-footer::before {
    content: '⚡';
    position: absolute;
    font-size: 1.25rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    transform: translateY(-3px);
    color: white;
}

.social-link i {
    font-size: 1.25rem;
}

footer h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-teal);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================
   Agent Card Modal - REMOVED
   Cards now link directly to detail pages
   ============================================ */
.agent-modal-DISABLED {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.agent-modal.active {
    opacity: 1;
    visibility: visible;
}

.agent-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.agent-modal.active .agent-modal-content {
    transform: scale(1) translateY(0);
}

.agent-modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    padding: 2.5rem;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.agent-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.agent-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.agent-modal-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.agent-modal-icon i {
    font-size: 3rem;
    color: white;
}

.agent-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.agent-modal-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.agent-modal-body {
    padding: 2.5rem;
}

.agent-modal-section {
    margin-bottom: 2rem;
}

.agent-modal-section:last-child {
    margin-bottom: 0;
}

.agent-modal-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-modal-section h4 i {
    color: var(--accent-teal);
    font-size: 1.5rem;
}

.agent-modal-section p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.agent-modal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-modal-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.agent-modal-features li:last-child {
    border-bottom: none;
}

.agent-modal-features li i {
    color: var(--success-green);
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.agent-modal-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.agent-modal-highlight-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.agent-modal-highlight-card .highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.agent-modal-highlight-card .highlight-icon i {
    color: white;
    font-size: 1.5rem;
}

.agent-modal-highlight-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.agent-modal-highlight-card span {
    display: block;
    color: var(--text-medium);
    font-size: 0.85rem;
}

.agent-modal-footer {
    padding: 0;
    background: var(--bg-light);
    border-radius: 0 0 24px 24px;
}

.agent-modal-actions {
    padding: 2rem 2.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.agent-modal-disclaimer {
    padding: 1.5rem 2.5rem;
    background: #FEF3C7;
    border-top: 1px solid #F59E0B;
    border-radius: 0 0 24px 24px;
}

.agent-modal-disclaimer p {
    margin: 0;
    font-size: 0.75rem;
    color: #92400E;
    line-height: 1.6;
    text-align: center;
}

.agent-modal-disclaimer strong {
    color: #78350F;
    font-weight: 600;
}

.btn-modal-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-modal-secondary {
    background: white;
    color: var(--primary-blue);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-modal-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

/* Product cards are now normal - not clickable containers */
.product-card {
    cursor: default;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links-custom {
        position: fixed;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 2rem 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
    }
    
    .nav-links-custom.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .nav-link-custom {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.125rem;
    }
    
    .nav-link-custom:hover::after {
        display: none;
    }
    
    .nav-links-custom .btn-primary-custom {
        margin: 1rem 2rem 0;
        width: calc(100% - 4rem);
        text-align: center;
        justify-content: center;
    }
    
    #hero {
        padding: 140px 0 80px;
        margin-top: 75px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-metrics {
        gap: 2rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .problem-box,
    .solution-box,
    .business-challenge-box {
        margin-bottom: 2rem;
    }
    
    .workflow-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .timeline-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .timeline-connector {
        transform: rotate(90deg);
    }
    
    .trust-badges-row {
        gap: 1.5rem;
    }
    
    .roi-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    /* Ensure no horizontal overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h2 {
        font-size: 1.75rem;
        word-wrap: break-word;
    }
    
    h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    h4 {
        font-size: 1.125rem;
        word-wrap: break-word;
    }
    
    /* Hero Section */
    #hero {
        padding: 120px 0 60px;
        margin-top: 70px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-feature-item {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .hero-trust-badges {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header,
    .section-title {
        padding: 0 1rem;
        margin-bottom: 40px;
    }
    
    .section-description {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-custom {
        padding: 0.75rem 0;
    }
    
    .navbar-brand-custom {
        font-size: 1.25rem;
    }
    
    .logo-icon-ai {
        width: 36px;
        height: 36px;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    /* Trust Bar */
    #trust-bar {
        padding: 1.5rem 0;
    }
    
    .trust-badges-row {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .trust-badge-item {
        justify-content: center;
        font-size: 0.875rem;
    }
    
    /* Value Prop Badges */
    .value-prop-badge {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .value-prop-badge i {
        font-size: 1.75rem;
    }
    
    /* Category Header */
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Product Cards */
    .product-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i {
        font-size: 1.5rem;
    }
    
    /* Problem/Solution Boxes */
    .problem-box,
    .solution-box,
    .business-challenge-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .business-challenge-box h3,
    .problem-box h3,
    .solution-box h3 {
        font-size: 1.25rem;
    }
    
    .challenge-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .challenge-metric strong {
        font-size: 1.5rem;
    }
    
    /* Workflow Steps */
    .workflow-steps {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .workflow-step {
        max-width: 100%;
        min-width: auto;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .workflow-visual {
        flex-direction: column;
    }
    
    .workflow-step-enhanced {
        min-width: auto;
        width: 100%;
    }
    
    /* Product Detail Sections */
    .product-detail-section {
        padding: 60px 0;
    }
    
    .product-detail-content {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .visualization-panel {
        padding: 1.5rem;
    }
    
    /* Platform Section */
    .platform-feature {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
    }
    
    /* ROI Section */
    .roi-card {
        padding: 1.5rem;
    }
    
    .roi-metric-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .roi-icon {
        width: 60px;
        height: 60px;
    }
    
    .roi-metric-card h3 {
        font-size: 2rem;
    }
    
    .implementation-timeline {
        padding: 1.5rem;
    }
    
    .timeline-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .timeline-connector {
        transform: rotate(90deg);
    }
    
    /* Contact Section */
    .contact-card {
        padding: 1.5rem;
    }
    
    .demo-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    footer {
        padding: 60px 0 30px;
    }
    
    .footer-brand {
        font-size: 1.25rem;
    }
    
    /* All Visualization Panels */
    .visualization-panel,
    .audio-wave-container,
    .transcription-panel,
    .clinical-note-preview,
    .corrected-text-panel,
    .raw-transcript-panel,
    .formatted-document-panel,
    .session-recording-panel,
    .extraction-panel,
    .ehr-fields-panel,
    .prep-header-panel,
    .prep-checklist-panel,
    .prep-status-panel,
    .call-incoming-panel,
    .intent-recognition-panel,
    .appointment-confirmation-panel,
    .email-panel,
    .task-completion-panel,
    .appointment-card-panel,
    .reminder-generation-panel,
    .confirmation-tracking-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Call Indicator */
    .call-indicator {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .phone-ringing {
        width: 50px;
        height: 50px;
    }
    
    /* Patient Speech */
    .patient-speech {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Email Header */
    .email-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Extraction Grid */
    .extraction-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Appointment Details */
    .appointment-details-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Detail Rows */
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Status Details */
    .status-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn-primary-custom,
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    /* Images and Media */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure inline images are responsive */
    img[style*="width"],
    img[style*="height"] {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Videos and iframes */
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }
    
    /* Responsive video container */
    .video-container,
    .embed-responsive {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        max-width: 100%;
    }
    
    .video-container iframe,
    .embed-responsive iframe,
    .video-container video,
    .embed-responsive video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Text Wrapping */
    p, span, a, li, td, th {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Tables - only scroll table content, not sections */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* Sections should not scroll individually */
    section {
        overflow: visible !important;
        max-height: none !important;
    }
    
    /* All Panels with Flex */
    [class*="panel"],
    [class*="box"],
    [class*="card"] {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Bootstrap row/col fixes */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Ensure no element exceeds viewport */
    * {
        max-width: 100vw;
    }
    
    /* Long words/text handling */
    .long-text,
    .break-word {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Prevent horizontal scroll from any source */
    .row {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure sections and containers don't scroll individually */
    section,
    .container,
    .container-fluid,
    [class*="section"] {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
    }
    
    /* Only allow table scrolling, not sections */
    table {
        overflow-x: auto;
    }
    
    /* Allow scrolling only for modals and overlays, not sections */
    .modal,
    .agent-modal-content {
        overflow-y: auto;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-text h4 i {
    color: var(--accent-teal);
    font-size: 1.25rem;
}

.cookie-consent-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-text p a {
    color: var(--accent-teal);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text p a:hover {
    color: var(--success-green);
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-cookie-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-cookie-settings:hover {
    color: white;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .btn-cookie-accept,
    .btn-cookie-decline {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    #hero {
        padding: 100px 0 50px;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.25rem;
    }
    
    .hero-feature-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .hero-badge {
        font-size: 0.6875rem;
        padding: 6px 12px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .product-card,
    .contact-card,
    .roi-card,
    .problem-box,
    .solution-box,
    .business-challenge-box {
        padding: 1.25rem;
    }
    
    .product-detail-content,
    .visualization-panel {
        padding: 1rem;
    }
    
    .navbar-brand-custom {
        font-size: 1.125rem;
    }
    
    .logo-icon-ai {
        width: 32px;
        height: 32px;
    }
    
    .brand-text {
        font-size: 1.125rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section-header,
    .section-title {
        padding: 0 0.5rem;
    }
    
    .section-description {
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .product-icon,
    .platform-icon,
    .roi-icon {
        width: 50px;
        height: 50px;
    }
    
    .product-icon i,
    .platform-icon i,
    .roi-icon i {
        font-size: 1.25rem;
    }
    
    .roi-metric-card h3 {
        font-size: 1.75rem;
    }
    
    .implementation-timeline {
        padding: 1rem;
    }
    
    .visualization-panel,
    .audio-wave-container,
    .transcription-panel,
    .clinical-note-preview,
    .corrected-text-panel,
    .raw-transcript-panel,
    .formatted-document-panel,
    .session-recording-panel,
    .extraction-panel,
    .ehr-fields-panel,
    .prep-header-panel,
    .prep-checklist-panel,
    .prep-status-panel,
    .call-incoming-panel,
    .intent-recognition-panel,
    .appointment-confirmation-panel,
    .email-panel,
    .task-completion-panel,
    .appointment-card-panel,
    .reminder-generation-panel,
    .confirmation-tracking-panel {
        padding: 0.875rem;
    }
    
    .phone-ringing {
        width: 45px;
        height: 45px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
}

/* ============================================
   Animations
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Collapsible Sections
   ============================================ */
.collapsible-sections-container {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.collapsible-section {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--white) !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.collapsible-section:hover {
    box-shadow: var(--shadow-md);
}

.collapsible-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background: var(--bg-light);
}

.collapsible-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.collapsible-icon {
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.collapsible-section.expanded .collapsible-icon {
    transform: rotate(90deg);
}

.collapsible-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 2rem;
    background: var(--white) !important;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 10000px;
    padding: 2rem;
    background: var(--white) !important;
}

/* Ensure content inside collapsible sections has consistent background */
.collapsible-section .product-detail-content {
    background: transparent;
}

.collapsible-section.alt-bg .product-detail-content {
    background: transparent !important;
}

.collapsible-section.expanded .collapsible-content .row {
    animation: fadeIn 0.4s ease-out;
}

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

/* Override alt-bg for collapsible sections - ensure all look identical */
.collapsible-section.alt-bg {
    background: var(--white) !important;
}

.collapsible-section.alt-bg .collapsible-header {
    background: var(--white) !important;
}

.collapsible-section.alt-bg .collapsible-header:hover {
    background: var(--bg-light) !important;
}

/* Ensure all collapsible sections have consistent hover styling */
.collapsible-section .collapsible-header:hover {
    background: var(--bg-light) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .collapsible-sections-container {
        padding: 40px 20px;
    }
    
    .collapsible-section {
        margin-bottom: 0.75rem;
        padding: 0;
    }
    
    .collapsible-header {
        padding: 1.25rem 1.5rem;
    }
    
    .collapsible-header h2 {
        font-size: 1.25rem;
    }
    
    .collapsible-content {
        padding: 0 1.5rem;
    }
    
    .collapsible-section.expanded .collapsible-content {
        padding: 1.5rem;
    }
}
