/* =====================================
   NeuronexAI - Modern SPA Stylesheet
   Color Theme from Logo
   ===================================== */

:root {
    /* Primary Color (Deep Navy) - from "NEURON" text and darker nodes */
    /* Use for: Main Headings (H1, H2), Footer background, primary text */
    --primary-navy: #1A2544;
    --primary-dark: #1A2544;

    /* Secondary Color (Slate Blue / Periwinkle) - from "EXAI" */
    /* Use for: Sub-headlines, secondary buttons, icon accents */
    --secondary-slate: #5B7BAE;
    --secondary-blue: #5B7BAE;

    /* Accent Color (Muted Violet/Purple) - from nodes on left */
    /* Use for: Gradients, AI visualization effects, CTA button hovers */
    --accent-violet: #8B7DB5;
    --accent-lavender: #9A8FC4;
    --highlight-periwinkle: #B8C5E2;

    /* Backgrounds - Clean white/light grey for crisp corporate look */
    --bg-white: #FFFFFF;
    --bg-light: #FAFBFC;
    --bg-section: #F8F9FB;

    /* Text colors */
    --text-dark: #1A2544;
    --text-light: #FFFFFF;
    --text-muted: #5A6A85;
    --text-body: #3D4A5C;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(26, 37, 68, 0.08);
    --glass-bg-light: rgba(255, 255, 255, 0.92);
    --glass-border-light: rgba(26, 37, 68, 0.06);

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(26, 37, 68, 0.06);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

/* Primary CTA - Slate Blue to Violet Gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(139, 125, 181, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-violet), var(--secondary-slate));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 125, 181, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--secondary-slate);
}

.btn-ghost:hover {
    background: var(--secondary-slate);
    color: var(--text-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Neural Mesh Background - Node/Network style from logo */
.neural-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.mesh-svg {
    width: 100%;
    height: 100%;
}

.node {
    fill: var(--accent-violet);
    animation: pulse 3s ease-in-out infinite;
}

.node:nth-child(odd) {
    animation-delay: 0.5s;
    fill: var(--secondary-slate);
}

.node:nth-child(3n) {
    animation-delay: 1s;
    fill: var(--accent-lavender);
}

.connection {
    stroke: var(--accent-lavender);
    stroke-width: 1;
    opacity: 0.4;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 16px 0;
}

.header.header-hidden {
    transform: translateY(-100%);
}

/* Pill-shaped header container */
.header-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 12px 16px 12px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 900px;
    margin: 0 auto;
    transition: var(--transition);
}

.header-pill:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--secondary-blue);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-violet);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* CTA Button with arrow - Slate Blue/Violet gradient */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(139, 125, 181, 0.3);
}

.btn-cta i {
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--accent-violet), var(--secondary-slate));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 125, 181, 0.45);
}

.btn-cta:hover i {
    transform: translate(2px, -2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Interactive Canvas */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-fullwidth {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-content-centered {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hero-content-centered .hero-subtitle,
.hero-content-centered .hero-intro {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-centered .hero-actions {
    justify-content: center;
}

.hero-content-centered .hero-stats {
    justify-content: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(91, 123, 174, 0.12), rgba(139, 125, 181, 0.12));
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-slate);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-navy);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-violet);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(91, 123, 174, 0.12), rgba(139, 125, 181, 0.12));
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-violet);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--highlight-periwinkle);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.section-title.light {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features {
    background: transparent;
}

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

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 37, 68, 0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    border-radius: 16px;
    font-size: 1.75rem;
    color: var(--text-light);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Hero Intro */
.hero-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.7;
}

/* Services Section */
.services {
    background: transparent;
}

.service-block {
    margin-bottom: 80px;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.service-content.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.service-content.reverse .service-visual {
    order: -1;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    border-radius: 20px;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(139, 125, 181, 0.3);
}

.service-icon-wrapper.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.service-headline {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(91, 123, 174, 0.08), rgba(139, 125, 181, 0.08));
    border-radius: 12px;
    border-left: 4px solid var(--accent-violet);
}

.service-benefit i {
    color: var(--accent-violet);
    font-size: 1.25rem;
}

.service-benefit span {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* =========================================
   Interactive CTA & Modal Demo
   ========================================= */
.service-cta-container {
    text-align: center;
    position: relative;
}

.pulse-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

/* Modal Overlay Layer */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(13, 21, 37, 0);
    /* Start transparent */
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.fullscreen-modal.active {
    pointer-events: auto;
    background: rgba(13, 21, 37, 0.75);
    backdrop-filter: blur(20px);
}

.modal-content {
    width: 98vw;
    max-width: 1600px;
    height: 96vh;
    background: var(--bg-white);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    /* iOS App Spring Animation Start State */
    opacity: 0;
    transform: scale(0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.fullscreen-modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fc;
    border-bottom: 1px solid var(--glass-border-light);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin: 0;
}

.modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Full View Widget Layout */
.invoice-demo-widget.full-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

@media (min-width: 992px) {
    .invoice-demo-widget.full-view {
        flex-direction: row;
        height: auto;
    }
}

/* Left Pane */
.demo-left-pane {
    flex: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid var(--glass-border-light);
}

.demo-thumbnails {
    display: flex;
    gap: 16px;
    flex: 1;
    align-items: flex-start;
}

.demo-thumbnail {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    -webkit-user-select: none;
    user-select: none;
}

.demo-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
    opacity: 0.7;
    background-color: #f8f9fa;
    -webkit-user-drag: none;
    /* Make sure white backgrounds on invoices blend nicely */
}

.demo-thumbnail:hover img {
    opacity: 0.9;
}

.demo-thumbnail.active {
    border-color: var(--accent-violet);
    box-shadow: 0 8px 25px rgba(139, 125, 181, 0.3);
}

.demo-thumbnail.active img {
    opacity: 1;
}

/* Scanning Animation */
.scanning-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-violet);
    box-shadow: 0 0 15px 5px rgba(139, 125, 181, 0.6);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.demo-thumbnail.scanning .scanning-laser {
    animation: laserScan 1.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 1;
    }
}

.demo-thumbnail.extracting {
    animation: extractPulse 1s ease-in-out infinite;
}

@keyframes extractPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(91, 123, 174, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(91, 123, 174, 0);
    }
}

#extract-btn {
    transition: all 0.3s ease;
}

/* Right Pane - Code Block */
.demo-right-pane {
    flex: 1.2;
    background: #1E1E2E;
    /* Deep dark background for code */
    display: flex;
    flex-direction: column;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #181825;
    border-bottom: 1px solid #313244;
}

.demo-badge {
    font-size: 0.8rem;
    color: #A6ADC8;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.demo-status {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.demo-status.status-scanning {
    background: rgba(139, 125, 181, 0.2);
    color: #CBA6F7;
    /* Violet */
}

.demo-status.status-extracting {
    background: rgba(91, 123, 174, 0.2);
    color: #89B4FA;
    /* Blue */
}

.demo-status.status-success {
    background: rgba(37, 211, 102, 0.2);
    color: #A6E3A1;
    /* Green */
}

.demo-code-block {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.demo-code-block pre {
    margin: 0;
}

.demo-code-block code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #CDD6F4;
    white-space: pre-wrap;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #89B4FA;
    font-weight: 600;
}

.json-string {
    color: #A6E3A1;
}

.json-number {
    color: #FAB387;
}

.json-boolean {
    color: #F38BA8;
    font-style: italic;
}

.json-null {
    color: #F38BA8;
    opacity: 0.8;
}

/* Invoice Flow Visualization */
.service-visual {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(26, 37, 68, 0.04);
}

.process-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.invoice-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.flow-step {
    flex: 1;
    text-align: center;
}

.flow-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--primary-navy));
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.flow-icon.ai-glow {
    background: linear-gradient(135deg, var(--accent-violet), var(--secondary-slate));
    box-shadow: 0 0 30px rgba(139, 125, 181, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 125, 181, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 125, 181, 0.7);
    }
}

.flow-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.flow-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 24px;
    color: var(--accent-violet);
    font-size: 1.25rem;
}

/* Feature List for WhatsApp Service */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
}

.feature-list li div {
    display: flex;
    flex-direction: column;
}

.feature-list li strong {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.feature-list li span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* WhatsApp Chat Mockup */
.chat-mockup {
    background: #ECE5DD;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 380px;
    margin: 0 auto;
}

.chat-header {
    background: #075E54;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #128C7E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

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

.chat-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status i {
    color: #25D366;
    font-size: 0.5rem;
}

.chat-body {
    padding: 16px;
    max-height: 320px;
    overflow-y: auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ddd5cc" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="%23ECE5DD"/><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.incoming {
    background: white;
    border-top-left-radius: 0;
    margin-right: auto;
}

.chat-message.outgoing {
    background: #DCF8C6;
    border-top-right-radius: 0;
    margin-left: auto;
}

.chat-message p {
    font-size: 0.9rem;
    color: #303030;
    line-height: 1.4;
    margin: 0;
}

.chat-message .time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #999;
    margin-top: 4px;
}

.chat-footer {
    background: #F0F0F0;
    padding: 8px 16px;
    text-align: center;
}

.chat-footer span {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.5px;
}

/* Technology Section Cards */
.tech-block {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.tech-card {
    flex: 1;
    padding: 32px;
    border-radius: 16px;
}

.tech-card.glass-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-violet), var(--secondary-slate));
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.tech-card h4 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--highlight-periwinkle);
    line-height: 1.7;
}

/* About Section - Mission */
.about-section {
    background: var(--bg-section);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    background: var(--bg-white);
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-light);
}

.mission-headline {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.mission-statement {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.mission-values {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.value-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 123, 174, 0.1), rgba(139, 125, 181, 0.1));
    border-radius: 12px;
    color: var(--accent-violet);
    font-size: 1.25rem;
}

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

/* Neuron/Technology Section */
.neuron-section {
    background: linear-gradient(135deg, var(--primary-navy), #0D1525);
    position: relative;
    overflow: hidden;
}

.neuron-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/neuronexai-ai-neural-mesh.png') center/cover;
    opacity: 0.3;
}

.neuron-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.neuron-text {
    color: var(--text-light);
}

.neuron-description {
    font-size: 1.1rem;
    color: var(--accent-lavender);
    margin-bottom: 32px;
    line-height: 1.8;
}

.neuron-features {
    list-style: none;
    margin-bottom: 40px;
}

.neuron-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--highlight-periwinkle);
}

.neuron-features li i {
    color: var(--accent-lavender);
}

.neuron-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.pulse-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-lavender);
    border-radius: 50%;
    animation: expand 3s ease-out infinite;
    opacity: 0;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes expand {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
    }

    100% {
        width: 350px;
        height: 350px;
        opacity: 0;
    }
}

.core-orb {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--highlight-periwinkle), var(--accent-violet));
    border-radius: 50%;
    box-shadow: 0 0 60px var(--accent-violet), 0 0 120px rgba(139, 125, 181, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 40px var(--accent-violet), 0 0 80px rgba(139, 125, 181, 0.4);
    }

    100% {
        box-shadow: 0 0 80px var(--secondary-slate), 0 0 150px rgba(91, 123, 174, 0.6);
    }
}

/* About / Process */
.process-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.process-step {
    flex: 1;
    max-width: 320px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

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

.process-connector {
    color: var(--accent-violet);
    font-size: 1.5rem;
}

/* Partners Marquee */
.partners-section {
    padding: 80px 0;
    background: var(--bg-white);
    overflow: hidden;
}

.partners-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 50px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
    white-space: nowrap;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--accent-violet);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--bg-white), var(--bg-section));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    color: var(--text-light);
    border-radius: 10px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-navy);
    color: var(--text-light);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-violet);
    transform: translateY(-3px);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border-light);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 125, 181, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer - Deep Navy background as per brand */
.footer {
    background: var(--primary-navy);
    color: var(--text-light);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-text i {
    font-size: 1.75rem;
    color: var(--accent-violet);
}

.footer-logo-text span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--highlight-periwinkle);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--highlight-periwinkle);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-light);
    transform: translateX(4px);
}

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

.footer-bottom p {
    color: var(--highlight-periwinkle);
    font-size: 0.85rem;
}

/* =====================================
   AI Front Office Assistant (FOA) Section
   ===================================== */

/* FOA Block */
.foa-block {
    padding-bottom: 0;
}

/* FOA Hero */
.foa-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.foa-hero-content .service-icon-wrapper {
    margin-bottom: 24px;
}

.foa-hero-content .service-headline {
    font-size: 2rem;
    margin-bottom: 16px;
}

.foa-hero-content .service-description {
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.foa-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.foa-hero-visual {
    display: flex;
    justify-content: center;
}

/* Enhanced Chat Mockup */
.chat-mockup-enhanced {
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(26, 37, 68, 0.15);
}

.chat-mockup-enhanced .chat-body {
    max-height: 400px;
    overflow-y: auto;
}

/* FOA Section Labels */
.foa-section-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 12px;
}

.foa-section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Capability Cards */
.foa-capabilities {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border-light);
}

.foa-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.foa-card {
    background: var(--bg-white);
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.foa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 37, 68, 0.1);
}

.foa-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    color: white;
}

.foa-card-icon.book {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.foa-card-icon.reschedule {
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    box-shadow: 0 6px 20px rgba(139, 125, 181, 0.3);
}

.foa-card-icon.cancel {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.foa-card-icon.doctor {
    background: linear-gradient(135deg, #3498DB, var(--primary-navy));
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.foa-card h5 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

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

/* How It Works */
.foa-how-it-works {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border-light);
}

.foa-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.foa-step {
    flex: 1;
    max-width: 220px;
    text-align: center;
    position: relative;
}

.foa-step-number {
    position: absolute;
    top: -10px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-violet), var(--secondary-slate));
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.foa-step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--primary-navy));
    border-radius: 50%;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 6px 24px rgba(26, 37, 68, 0.15);
}

.foa-step h5 {
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.foa-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.foa-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    color: var(--accent-violet);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Stats Bar */
.foa-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 80px;
    padding: 40px 32px;
    background: linear-gradient(135deg, var(--primary-navy), #0D1525);
    border-radius: 20px;
    flex-wrap: wrap;
}

.foa-stat {
    text-align: center;
}

.foa-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.foa-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--highlight-periwinkle);
    margin-top: 4px;
}

/* Dashboard Preview Section */
.foa-dashboard-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border-light);
}

.foa-dashboard {
    background: linear-gradient(145deg, #0f1a2e, #162040);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26, 37, 68, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.foa-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foa-dash-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.foa-dash-title i {
    color: var(--accent-violet);
}

.foa-dash-time {
    font-size: 0.8rem;
    color: var(--highlight-periwinkle);
    display: flex;
    align-items: center;
    gap: 6px;
}

.foa-dash-time i {
    color: #25D366;
}

/* Dashboard Metrics */
.foa-dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 28px;
}

.foa-metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.foa-metric-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.foa-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.foa-metric-icon.conversations {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.foa-metric-icon.appointments {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.foa-metric-icon.cancellations {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.foa-metric-icon.patients {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.foa-metric-data {
    display: flex;
    flex-direction: column;
}

.foa-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.foa-metric-label {
    font-size: 0.78rem;
    color: var(--highlight-periwinkle);
    margin-top: 2px;
}

.foa-metric-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.foa-metric-trend.up {
    color: #34D399;
}

.foa-metric-trend.down {
    color: #F87171;
}

/* Dashboard Charts */
.foa-dash-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 28px 28px;
}

.foa-chart-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
}

.foa-chart-card h6 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Bar Chart */
.foa-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.foa-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 32px;
    align-items: center;
    gap: 12px;
}

.foa-bar-label {
    font-size: 0.78rem;
    color: var(--highlight-periwinkle);
    text-align: right;
}

.foa-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.foa-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-violet), var(--secondary-slate));
    border-radius: 4px;
    transition: width 1s ease;
}

.foa-bar-val {
    font-size: 0.78rem;
    color: white;
    font-weight: 600;
}

/* Doctor Utilization */
.foa-doctor-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.foa-doctor-row {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    align-items: center;
    gap: 12px;
}

.foa-doc-name {
    font-size: 0.78rem;
    color: var(--highlight-periwinkle);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.foa-util-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.foa-util-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.foa-util-fill.high {
    background: linear-gradient(90deg, #25D366, #34D399);
}

.foa-util-fill.med {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.foa-util-pct {
    font-size: 0.78rem;
    color: white;
    font-weight: 600;
}

/* Trust Cards */
.foa-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.foa-trust-card {
    background: var(--bg-white);
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.foa-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 37, 68, 0.08);
}

.foa-trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 123, 174, 0.1), rgba(139, 125, 181, 0.15));
    border-radius: 14px;
    font-size: 1.3rem;
    color: var(--accent-violet);
}

.foa-trust-card h5 {
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

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

/* Use Cases */
.foa-use-cases {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border-light);
}

.foa-use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.foa-use-case {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid var(--glass-border-light);
    transition: var(--transition);
}

.foa-use-case:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.foa-use-case i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-slate), var(--accent-violet));
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
}

.foa-use-case strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.foa-use-case span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FOA CTA Block */
.foa-cta-block {
    margin-top: 80px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(91, 123, 174, 0.08), rgba(139, 125, 181, 0.08));
    border-radius: 20px;
    border: 1px solid var(--glass-border-light);
}

.foa-cta-block h4 {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.foa-cta-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

/* Reveal Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 1024px) {

    .hero-grid,
    .neuron-content,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle,
    .hero-intro,
    .hero-actions,
    .hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        flex-direction: column;
    }

    .process-connector {
        transform: rotate(90deg);
    }

    .neuron-visual {
        order: -1;
    }

    .neuron-text {
        text-align: center;
    }

    .neuron-features {
        display: inline-block;
        text-align: left;
    }

    /* Service blocks responsive */
    .service-content,
    .service-content.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-content.reverse .service-visual {
        order: 0;
    }

    .service-icon-wrapper {
        margin: 0 auto 24px;
    }

    .service-info {
        margin-bottom: 40px;
    }

    .service-benefit {
        justify-content: center;
        text-align: left;
    }

    .invoice-flow {
        flex-direction: column;
        gap: 24px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 0;
        justify-content: center;
    }

    .feature-list li {
        text-align: left;
    }

    /* Tech block responsive */
    .tech-block {
        flex-direction: column;
    }

    .tech-card {
        text-align: center;
    }

    .tech-icon {
        margin: 0 auto 20px;
    }

    /* About responsive */
    .about-content {
        padding: 40px 30px;
    }

    .mission-values {
        gap: 24px;
    }

    /* FOA responsive - tablet */
    .foa-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foa-hero-actions {
        justify-content: center;
    }

    .foa-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .foa-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .foa-step-arrow {
        display: none;
    }

    .foa-dash-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .foa-dash-charts {
        grid-template-columns: 1fr;
    }

    .foa-trust {
        grid-template-columns: 1fr;
    }

    .foa-use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .header-pill {
        border-radius: 16px;
        padding: 10px 16px;
    }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

    .nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .header .btn-cta {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Service blocks mobile */
    .service-block {
        margin-bottom: 60px;
    }

    .service-visual {
        padding: 24px;
    }

    .service-headline {
        font-size: 1.5rem;
    }

    .flow-step {
        max-width: 200px;
        margin: 0 auto;
    }

    .flow-icon {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    /* Chat mockup mobile */
    .chat-mockup {
        max-width: 100%;
    }

    .chat-body {
        max-height: 280px;
    }

    /* About mobile */
    .about-content {
        padding: 30px 20px;
    }

    .mission-statement {
        font-size: 1rem;
    }

    .mission-values {
        gap: 16px;
    }

    .value-item i {
        width: 44px;
        height: 44px;
    }

    /* FOA responsive - mobile */
    .foa-hero-content .service-headline {
        font-size: 1.5rem;
    }

    .foa-cards-grid {
        grid-template-columns: 1fr;
    }

    .foa-steps {
        flex-direction: column;
        align-items: center;
    }

    .foa-step {
        max-width: 280px;
    }

    .foa-stats-bar {
        gap: 28px;
        padding: 32px 20px;
    }

    .foa-stat-value {
        font-size: 1.5rem;
    }

    .foa-dash-metrics {
        grid-template-columns: 1fr;
    }

    .foa-dash-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .foa-bar-row {
        grid-template-columns: 70px 1fr 28px;
    }

    .foa-doctor-row {
        grid-template-columns: 90px 1fr 36px;
    }

    .foa-use-cases-grid {
        grid-template-columns: 1fr;
    }

    .foa-section-label {
        font-size: 1.25rem;
    }

    .foa-cta-block {
        padding: 40px 20px;
    }

    .foa-cta-block h4 {
        font-size: 1.4rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

/* HTML CSS Invoice System utilizing Container Queries for crisp scaling */
.invoice-html-wrapper {
    width: 100%;
    height: 100%;
    container-type: inline-size;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.demo-thumbnail:hover .invoice-html-wrapper {
    opacity: 0.9;
}

.demo-thumbnail.active .invoice-html-wrapper {
    opacity: 1;
}

.viewer-content .invoice-html-wrapper {
    height: auto;
    opacity: 1;
}

.invoice-doc {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background: #fff;
    padding: 8cqi;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
}

.inv-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8cqi;
}

.inv-logo {
    display: flex;
    align-items: center;
    gap: 2cqi;
}

.inv-logo-icon {
    width: 8cqi;
    height: 8cqi;
    background: var(--primary-accent);
    border-radius: 2cqi;
}

.inv-logo-text {
    font-size: 3.5cqi;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-navy);
}

.inv-title-area {
    text-align: right;
}

.inv-title-area.left-align {
    text-align: left;
}

.inv-logo.right-align {
    text-align: right;
    justify-content: flex-end;
}

.inv-from.right-align {
    text-align: right;
}

.inv-title {
    font-size: 6cqi;
    font-weight: 900;
    letter-spacing: 0.5cqi;
    color: #cbd5e1;
    margin-bottom: 1cqi;
}

.invoice-style-2 .inv-title {
    color: #3b82f6;
}

.inv-meta {
    font-size: 1.8cqi;
    color: #64748b;
    line-height: 1.5;
}

.inv-addresses {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8cqi;
    font-size: 2cqi;
    line-height: 1.6;
    color: #475569;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6cqi;
}

.inv-table th {
    text-align: left;
    padding: 2.5cqi 1cqi;
    font-size: 2cqi;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 0.4cqi solid #e2e8f0;
}

.inv-table td {
    padding: 2.5cqi 1cqi;
    font-size: 2cqi;
    color: #334155;
    border-bottom: 0.2cqi solid #f1f5f9;
}

.invoice-style-2 .inv-table th {
    background: #f8fafc;
    border-top: 0.4cqi solid #3b82f6;
    border-bottom: 0.4cqi solid #3b82f6;
    color: #0f172a;
}

.inv-totals {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.inv-totals-table {
    width: 45cqi;
    font-size: 2.2cqi;
    border-collapse: collapse;
}

.inv-totals-table td {
    padding: 1.5cqi 1cqi;
    color: #334155;
}

.inv-total-row td {
    border-top: 0.4cqi solid #e2e8f0;
    font-size: 2.6cqi;
    color: #0f172a;
    padding-top: 2cqi;
}

/* =========================================================================
   WhatsApp Guided Demo Modal CSS
   ========================================================================= */

.whatsapp-modal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-modal.active {
    background: rgba(15, 23, 42, 0.85) !important;
    /* Darker backdrop for WA overriding standard fullscreen modal */
}

.wa-modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    max-height: none;
    background: #efeae2;
    /* WhatsApp default background color */
    /* Add WhatsApp doodle background pattern here if desired */
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23dfd8c8" fill-opacity="0.4" fill-rule="evenodd"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z"/%3E%3C/g%3E%3C/svg%3E');
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.wa-header {
    background: #008069;
    /* WA Green */
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.wa-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    /* Override modal-close default */
    width: auto;
    height: auto;
    box-shadow: none;
}

.wa-header .chat-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
}

.wa-header .chat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wa-header .chat-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

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

.wa-header-right {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.wa-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 5% 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hide scrollbar for WA view */
.wa-chat-body::-webkit-scrollbar {
    width: 6px;
}

.wa-chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.wa-date-divider {
    text-align: center;
    margin: 10px 0;
}

.wa-date-divider span {
    background: #f0f2f5;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #54656f;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.wa-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    color: #111b21;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom center;
}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.wa-msg p {
    margin: 0;
    margin-bottom: 2px;
}

.wa-msg-in {
    align-self: flex-start;
    background: #ffffff;
    border-top-left-radius: 0;
}

.wa-msg-in::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #ffffff;
    border-left: 8px solid transparent;
}

.wa-msg-out {
    align-self: flex-end;
    background: #dcf8c6;
    /* WhatsApp outgoing green */
    border-top-right-radius: 0;
}

.wa-msg-out::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #dcf8c6;
    border-right: 8px solid transparent;
}

.wa-msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #667781;
    margin-top: 2px;
}

.wa-msg-meta i {
    color: #53bdeb;
    /* Blue ticks */
    font-size: 0.7rem;
}

/* Typing Indicator */
.wa-typing-indicator {
    align-self: flex-start;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 15px;
    display: flex;
    gap: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.wa-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.wa-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.wa-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.wa-footer {
    background: #f0f2f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-text-input-bar {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #8696a0;
    font-size: 1rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.wa-text-input-bar i {
    font-size: 1.2rem;
    cursor: pointer;
}

.wa-text-input-bar .wa-input-placeholder {
    flex: 1;
    font-size: 0.95rem;
    color: #8696a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a884;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}