@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');
/* Tech Font */

:root {
    --primary-blue: #00d2ff;
    /* Cyan Neon */
    --accent-purple: #7000ff;
    --bg-body: #0F1115;
    /* Deep Black/Blue */
    --surface-dark: #0f111a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-glow: rgba(0, 210, 255, 0.3);
}

html {
    background-color: #0F1115;
    /* Fallback if video fails/loads late */
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Roboto', sans-serif;
    background-color: transparent;
    /* Show video */
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ... existing styles ... */

.hero-bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Base Layer (was -1) */
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Content Layer */
}

/* Header */
/* Header */
header {
    width: 100%;
    max-width: 100%;
    padding: 15px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    /* Fixed to provide sticky behavior overlaid on video */
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none;
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Optimization: Glassmorphism on Scroll */
header.scrolled-nav {
    background: rgba(15, 17, 26, 0.7) !important;
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    /* Blur effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separation */
    padding: 10px 40px;
    /* Slight shrink for sleekness */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.flags-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.flag-icon {
    width: 32px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.flag-icon:hover {
    transform: translateY(-2px);
}

/* Navigation Menu */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #e2e8f0;
    /* Light Text */
    font-weight: 600;
    /* Bolder text */
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    /* Larger text */
    transition: all 0.2s ease;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover {
    color: #00d2ff;
    /* Cyan Hover */
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* Contact Link - Secondary Button Style */
.nav-contact {
    color: #0046ad !important;
    font-weight: 700;
    border: 2px solid #0046ad;
    /* Outline style to be eye-catching */
    padding: 8px 20px !important;
    /* Force padding */
    border-radius: 8px;
    margin-left: 40px;
    /* Push group to the right */
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-contact:hover {
    background-color: #0046ad;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 70, 173, 0.2);
}

/* Regular Link Hover Underline */
.main-nav a:not(.nav-contact):not(.nav-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    /* Thicker underline */
    bottom: 0;
    left: 0;
    background-color: #0046ad;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:not(.nav-contact):not(.nav-btn):hover::after {
    width: 100%;
}

/* Nav Button (Agenda Demo) */
/* Nav Button (Agenda Demo & Contact) */
.main-nav .nav-btn,
.nav-btn {
    background: #00d2ff;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    line-height: normal;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 210, 255, 0.4);
}

@media (max-width: 1100px) {
    .integrations-section {
        padding: 40px 0;
    }

    .main-nav {
        display: none !important;
        /* Restore: Hide nav on mobile/tablet */
    }

    .marquee-row,
    .marquee-row-reverse {
        height: 60px;
        /* Smaller rows */
    }

    .marquee-track img {
        height: 35px;
        /* Smaller logos */
        margin: 0 15px;
        /* Tighter spacing */
    }
}

/* =========================================
   TECH HERO SECTION STYLES
   ========================================= */

.tech-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Ocupar toda la pantalla */
    min-height: 800px;
    /* Altura mínima segura */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
    /* Transparent to show global video */
}

/* A. FONDO (Background Layer) - GLOBAL FIXED */
.hero-bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* FIXED: 100% instead of 100vw */
    height: 100%;
    z-index: -1;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.8;
    /* CRÍTICO: Legibilidad */
    z-index: 1;
}

/* B. COLUMNA IZQUIERDA & GRID (Contenido) */
.hero-grid {
    position: relative;
    z-index: 10;
    /* Encima del video */
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    /* 2 Columnas - Visual domina */
    max-width: 1400px;
    width: 100%;
    padding: 120px 40px 0 40px;
    /* Added Top Padding for Header Compensataion */
    gap: 40px;
    align-items: center;
    /* Centrado vertical */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.hero-content h1 {
    color: #FFFFFF;
    /* Blanco puro */
    font-family: 'Roboto', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: #E0E0E0;
    /* Gris claro */
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

/* CTA (Botón) */
.hero-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00D4FF 0%, #007AFF 100%);
    /* Cian a Azul */
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    /* Glow inicial */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta-btn:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
    /* Glow intenso hover */
    transform: scale(1.05);
    /* Leve escalado */
    background: linear-gradient(90deg, #007AFF 0%, #00D4FF 100%);
    /* Invertir gradiente sutilmente */
}

/* C. COLUMNA DERECHA (Visual Composition - "The Data Connection") */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Asegurar que la columna ocupa espacio para el iMac gigante */
    min-height: 600px;
}

.visual-container {
    position: relative;
    width: 100%;
    /* Usar todo el ancho de la columna */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Elemento Principal: iMac */
.hero-mac-img {
    position: relative;
    width: 100%;
    max-width: 1000px;
    /* GIGANTE - Aumentado de 500px */
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    margin-right: 0;
    /* Ya no necesitamos margen forzado */
}

/* Elemento Satélite: Tarjeta Flotante */
.floating-card-tech {
    position: absolute;
    top: 60%;
    /* Ajuste vertical */
    right: -20px;
    /* Pegado a la derecha, saliendo un poco */
    width: 380px;
    /* Aumentado de 180px */
    transform: translateY(-50%);
    /* Solo centrado vertical relativo */
    z-index: 12;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Sombra base y glow */
    box-shadow: 0px 0px 20px rgba(0, 212, 255, 0.3);
    overflow: hidden;
    /* Nueva Animación */
    animation: tech-pulse 4s ease-in-out infinite;
}

.floating-card-tech img {
    width: 100%;
    height: auto;
    display: block;
}

/* NUEVA ANIMACIÓN: Tech Pulse (Glow sin movimiento) */
@keyframes tech-pulse {

    0%,
    100% {
        box-shadow: 0px 0px 20px rgba(0, 212, 255, 0.3);
        /* Brillo suave */
        filter: brightness(1);
    }

    50% {
        box-shadow: 0px 0px 50px rgba(0, 212, 255, 0.6), 0 0 20px #00D4FF inset;
        /* Brillo intenso neón */
        filter: brightness(1.15);
        /* Más brillante */
    }
}

/* Efecto "Conexión" (Tech Feature) */
.connection-line-svg {
    position: absolute;
    top: 55%;
    right: 320px;
    /* Ajuste para conectar con la tarjeta más grande */
    width: 300px;
    /* Más larga */
    height: 20px;
    z-index: 11;
    transform: translateY(-50%);
    overflow: visible;
    pointer-events: none;
}

.connection-path {
    fill: none;
    stroke: #00D4FF;
    /* Cian Neón */
    stroke-width: 2;
    stroke-dasharray: 8;
    animation: dash-flow 1.5s linear infinite;
    /* Más rápido */
    opacity: 1;
    /* Más visible */
}

.connection-dot {
    fill: #00D4FF;
    filter: drop-shadow(0 0 8px #00D4FF);
    r: 6;
    /* Punto más grande */
}

@keyframes dash-flow {
    from {
        stroke-dashoffset: 16;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* RESPONSIVIDAD (Mobile First Approach - pero aquí sobrescribimos Desktop para Mobile) */
@media (max-width: 900px) {
    .tech-hero {
        min-height: auto;
        padding-top: 100px;
        /* Espacio para el header sticky */
        padding-bottom: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        /* 1 Columna */
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }

    .hero-content {
        align-items: center;
        /* Centrar todo */
        order: 1;
        /* Texto arriba */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        order: 2;
        /* Imagen abajo */
        height: auto;
    }

    .visual-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        flex-direction: column;
    }

    .hero-mac-img {
        margin-right: 0;
        max-width: 100%;
    }

    .floating-card-tech {
        /* Reubicación Mobile: Debajo/Superpuesta */
        position: relative;
        top: auto;
        right: auto;
        transform: translateY(-30px);
        /* Subir un poco para solapar */
        margin: 0 auto;
        animation: none;
        /* Desactivar animación compleja en mobile si distrae */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .connection-line-svg {
        display: none;
        /* Ocultar línea en mobile por complejidad de posición */
    }
}




/* Responsive */
@media (max-width: 1024px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 40px;
        background-size: cover;
    }

    .hero-right {
        margin-top: 50px;
    }

    .card-history {
        left: 0;
    }
}

/* =========================================
   INTEGRATIONS SECTION (Infinite Marquee)
   ========================================= */

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 3.5rem;
    /* Larger font */
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #FFFFFF 0%, #A0A0A0 100%);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.section-header p {
    color: #9CA3AF;
    font-size: 1.2rem;
    /* Slightly larger text */
    line-height: 1.6;
    margin-top: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Stream Container with Gradient Masks */
.tech-stream-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Safety cap */
    overflow: hidden;
    padding: 60px 0;
    /* Edge Fading Mask */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* More space between rows */
}

/* Common Marquee Styles */
.marquee-row,
.marquee-row-reverse {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 100px;
    /* Much bigger spacing for large logos */
    width: max-content;
    align-items: center;
    /* Duplicate sets of logos are here */
}

/* Logo Styles */
.marquee-track img {
    height: 80px;
    /* Much bigger logos */
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: default;
}

/* Hover Interaction: Light up all logos slightly on section hover? Or individual?
   Request says "Hover Opcional: Al pasar el mouse sobre la sección, subir opacity: 0.8" */
.tech-stream-wrapper:hover .marquee-track img {
    opacity: 0.8;
}

.marquee-track img:hover {
    filter: grayscale(0%) opacity(1);
    /* Full color on direct item hover */
    opacity: 1 !important;
    transform: scale(1.1);
    /* Slight Zoom */
}

/* Animations */
.marquee-row .marquee-track {
    animation: scrollLeft 60s linear infinite;
    /* Slower for elegance */
}

.marquee-row-reverse .marquee-track {
    animation: scrollRight 60s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
        /* Move half the track length (since we have 2 sets) */
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-track {
        gap: 50px;
        /* Tighter gap on mobile */
    }

    .marquee-track img {
        height: 60px;
        /* Still large on mobile but readable */
    }

    .tech-stream-wrapper {
        padding: 40px 0;
        gap: 40px;
    }

    .section-header h2 {
        font-size: 2.2rem;
        /* Readable on mobile */
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* =========================================
   MOBILE INTEGRATIONS GRID
   ========================================= */

/* Default State (Desktop) */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

/* Mobile State (< 768px) */
@media (max-width: 768px) {

    /* CRITICAL FIX: Hide Desktop content */
    .desktop-only {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-only {
        display: grid !important;
    }

    /* Prevent Horizontal Scroll globally on mobile */
    body,
    html {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .integrations-section {
        overflow: hidden !important;
        /* Contain the section */
        width: 100% !important;
        max-width: 100vw !important;
    }

    .integrations-mobile-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 Columns */
        gap: 15px;
        padding: 40px 20px;
        width: 100%;
        max-width: 400px;
        /* Limit width */
        margin: 0 auto;
        /* Center grid */
        box-sizing: border-box;
    }

    .mobile-grid-item {
        background: rgba(255, 255, 255, 0.05);
        /* Slightly lighter glass */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        aspect-ratio: 1/1;
        /* Square cards */
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .mobile-grid-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 210, 255, 0.5);
        /* Cyan hint */
        transform: translateY(-2px);
    }

    .mobile-grid-item img {
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
        /* Make logos WHITE to contrast with dark background */
        filter: brightness(0) invert(1) opacity(0.9);
        transition: all 0.3s ease;
    }

    .mobile-grid-item:hover img {
        filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
}

@media (max-width: 900px) {
    .bento-grid {
        flex-direction: column;
        align-items: center;
    }

    .bento-col {
        width: 100%;
    }
}

/* Patient Journey Section */
/* Patient Journey Section */
.patient-journey-section {
    width: 100%;
    padding: 80px 0;
    /* Updated padding */
    box-sizing: border-box;
    background: transparent !important;
    /* Removed image/color */
    overflow: hidden;
    position: relative;
    border-radius: 0;
    /* Reset */
    box-shadow: none;
    /* Reset */
    margin: 40px auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 50px;
}

.journey-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    /* Tech Glow */
}

/* Glass Wrapper */
.journey-container-wrapper {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    margin: 0 auto;
}

.journey-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.journey-scroll-container::-webkit-scrollbar {
    display: none;
}

.journey-slide {
    width: 100%;
    /* Strict width */
    min-width: 100%;
    background: transparent;
    border: none;
    padding: 0 20px;
    box-sizing: border-box;
    scroll-snap-align: center;
    display: flex;
    flex-direction: row;
    /* Explicit row */
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}

.slide-content {
    flex: 0 0 45%;
    /* Fixed width */
    max-width: 45%;
    text-align: left;
}

.slide-visual {
    flex: 0 0 50%;
    /* Fixed width */
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-visual img {
    width: 100%;
    max-height: 400px;
    /* Limit height */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Tech Nav Buttons */
.journey-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    /* Higher z-index */
    transition: all 0.3s ease;
    user-select: none;
}

.journey-nav-btn:hover {
    background: #00D4FF;
    border-color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.journey-nav-btn.prev {
    left: 10px;
    /* Safe inside */
}

.journey-nav-btn.next {
    right: 10px;
    /* Safe inside */
}

/* Responsive Layout */
@media (max-width: 900px) {
    .journey-slide {
        flex-direction: column-reverse;
        /* Stack vertical */
        text-align: center;
        padding: 0;
        gap: 20px;
        /* Constrain width forcefully */
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        /* Reset rigid desktop min-width */
        flex: 0 0 100% !important;
        /* Ensure it takes full viewport width but no more */
        white-space: normal !important;
        /* Force wrap */
    }

    .slide-content,
    .slide-visual {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .slide-content {
        text-align: center;
        padding: 0 20px;
        /* Safe gutters */
        box-sizing: border-box;
    }

    .slide-content h3 {
        font-size: 1.8rem !important;
        /* Slightly smaller for mobile */
        word-wrap: break-word;
    }

    /* Resize image for mobile */
    .slide-visual img {
        max-height: 200px !important;
        /* Reduced from 400px */
        width: auto !important;
        max-width: 80% !important;
        /* Don't fill edge to edge */
        margin: 0 auto;
    }
}

/* Progress Bar & Icons */
.journey-progress-container {
    margin-top: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.journey-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    /* Keep bar inside */
}

#journeyTimerBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #007AFF);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.patient-marker-icon {
    position: absolute;
    top: -12px;
    left: 0%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #0F1115;
    border: 2px solid #00D4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transition: left 0.3s ease;
    z-index: 2;
}

.journey-progress-bar.complete::after {
    /* Retain original dot functionality or hide it if replaced by icon */
    transform: translateY(-50%) scale(1.5);
    background: #00ff88;
    box-shadow: 0 0 25px #00ff88, 0 0 50px white;
    opacity: 0;
    /* Hide default dot in favor of walker */
}

/* Patient Walker Icon */
.patient-marker-icon {
    position: absolute;
    right: -30px;
    /* Center partially overlap end */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    /* Larger size */
    height: 60px;
    /* Larger size */
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0046ad;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: walk-bounce 0.6s infinite alternate ease-in-out;
}

.patient-marker-icon svg {
    width: 32px;
    /* Icons bigger */
    height: 32px;
}

@keyframes walk-bounce {
    0% {
        transform: translateY(-50%) rotate(-5deg);
    }

    100% {
        transform: translateY(-60%) rotate(5deg);
    }
}

@media (max-width: 900px) {
    .journey-slide {
        flex-direction: column;
        min-width: 90%;
    }

    .slide-visual img {
        max-width: 100%;
    }

    .journey-container-wrapper {
        padding: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: hidden !important;
        /* Contain everything */
    }

    .journey-nav-btn {
        display: none;
    }

    /* Force Progress Bar Visibility on Mobile */
    .journey-progress-track {
        width: 90% !important;
        margin: 20px auto 10px auto !important;
        order: 10;
        /* Ensure it's at the bottom if flex */
    }

    .journey-timer-container {
        width: 90% !important;
        height: 6px !important;
        margin: 0 auto 30px auto !important;
        background: rgba(255, 255, 255, 0.2) !important;
        display: block !important;
        order: 11;
        /* Ensure it's at the bottom */
    }
}

/* Tech Pillars Section */
.tech-pillars-section {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.tech-header {
    text-align: center;
    margin-bottom: 60px;
}

.tech-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    /* White for dark mode */
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    width: 100%;
}

.pillar-card {
    background: rgba(20, 20, 30, 0.6) !important;
    /* Glassmorphism Dark */
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    animation: float-bento 6s ease-in-out infinite;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(20, 20, 30, 0.8) !important;
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    /* Pure White */
    margin: 20px 0 15px 0;
}

.pillar-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #CCCCCC !important;
    /* Light Gray */
    margin: 0;
}

.pillar-large {
    grid-column: 1 / 3;
    grid-row: 1;
    /* Removed specific background, uses default glass */
    animation-delay: 0s;
}

.pillar-vertical {
    grid-column: 3;
    grid-row: 1 / 3;
    /* Removed specific background, uses default glass */
    animation-delay: 1.5s;
}

.pillar-small-1 {
    grid-column: 1;
    grid-row: 2;
    animation-delay: 0.5s;
}

.pillar-small-2 {
    grid-column: 2;
    grid-row: 2;
    animation-delay: 2s;
}

.pillar-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 5px 15px rgba(0, 70, 173, 0.4));
    /* Force White Icons */
}

.pillar-large .pillar-icon {
    height: 80px;
}

.pillar-vertical .pillar-icon {
    width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 30px;
    object-fit: contain;
}

.iso-seal {
    filter: none !important;
    /* Maintain original colors */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    /* Natural shadow */
}

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pillar-large {
        grid-column: 1 / 3;
    }

    .pillar-vertical {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .pillar-small-1 {
        grid-column: 1;
        grid-row: auto;
    }

    .pillar-small-2 {
        grid-column: 2;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }



    .pillar-large,
    .pillar-vertical,
    .pillar-small-1,
    .pillar-small-2 {
        grid-column: 1;
        grid-row: auto;
    }

    /* Mobile Optimization: Tech Pillars */
    .pillar-card {
        padding: 25px !important;
        /* Reduced padding */
        min-height: auto;
        /* Allow flexible height */
    }

    .pillar-card h3 {
        font-size: 1.3rem !important;
        margin: 15px 0 10px 0;
    }

    .pillar-card p {
        font-size: 0.95rem !important;
    }

    .pillar-icon {
        height: 50px;
        /* Smaller icons */
    }
}

/* ROI Calculator Section */
.roi-section {
    width: 100%;
    background: url('../hero-bg.png') no-repeat center center;
    /* Adjusted path */
    background-size: cover;
    color: #333333;
    padding: 100px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.roi-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.roi-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.roi-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.roi-header p {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    backdrop-filter: blur(10px);
}

.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.input-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00e5ff;
}

/* Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #00e5ff;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Numeric Input Styling */
.ticket-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.ticket-input:focus {
    outline: none;
    border-color: #00e5ff;
}

/* Results Styling */
.roi-results {
    background: rgba(0, 51, 102, 0.85);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #ffffff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.roi-results h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.big-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00c853;
    margin-bottom: 30px;
    line-height: 1;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #003366;
    /* Keep Dark Blue on White Card */
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: 700;
}

.micro-copy {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-style: italic;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.roi-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 150px;
    height: auto;
    z-index: 2;
    opacity: 0.9;
}

/* ROI Explanation Section */
.roi-explanation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.explanation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.explanation-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.explanation-card h4 {
    color: #00e5ff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.explanation-card .icon {
    font-size: 1.6rem;
}

.explanation-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.explanation-card p:last-child {
    margin-bottom: 0;
}

.explanation-card strong {
    color: white;
    font-weight: 700;
}

@media (max-width: 900px) {
    .explanation-grid {
        grid-template-columns: 1fr;
    }
}

.result-item strong {
    color: #00c853;
    font-weight: 800;
}

@media (max-width: 900px) {
    .roi-logo {
        width: 120px;
        top: 20px;
        left: 20px;
    }

    .roi-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .roi-header h2 {
        font-size: 2rem;
    }

    .big-number {
        font-size: 2.5rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background-color: transparent;
    /* Transparent to show body grid */
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    /* White */
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Dark border */
}

.faq-question {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    /* Light text */
    margin: 0;
    transition: color 0.3s;
}

.faq-question:hover h3,
.faq-item.active .faq-question h3 {
    color: #00d2ff;
    /* Cyan hover */
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.faq-icon {
    font-size: 1.5rem;
    color: #00d2ff;
    /* Cyan icon */
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #94a3b8;
    /* Muted light text */
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
}

/* Contact Section */
.contact-section {
    padding: 100px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    /* Very subtle fill */
    text-align: center;
    border-radius: 50px;
    margin-top: 50px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header h2 {
    color: #ffffff;
    /* White */
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.contact-header p {
    color: #94a3b8;
    /* Light gray */
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hubspot-form-container {
    background: white;
    /* Keep white for Hubspot visibility or use dark if form supports it. Creating a container that handles the white form cleanly */
    /* Wait, usually embed forms are white. If I make this dark transparent, the form labels might be black on dark. */
    /* Safest play: Keep form container WHITE inside the dark section, or lightly gray. */
    /* Actually, to fit the theme, a white card floating in dark space is okay, OR I can invert the form. */
    /* Let's stick to a white clean card for the form to ensure contrast/conversion, but style the container */
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.2);
    border: 1px solid #e2e8f0;
}

/* Footer Section */
.site-footer {
    width: 100%;
    background-color: #1a202c;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 60px 40px 30px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.footer-logos-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-oftamed {
    height: 40px;
    width: auto;
}

.footer-seals {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items: center;
}

.footer-seals img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-seals img:hover {
    opacity: 1;
}

.footer-copyright {
    margin-top: 20px;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Why Choose Oftamed Section Styles */
.why-choose-section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 40px auto;
    text-align: center;
}

.why-choose-header h2 {
    font-size: 3rem;
    color: #ffffff;
    /* White for dark theme */
    margin-bottom: 60px;
    font-weight: 900 !important;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    /* Glowing Text */
}

.why-choose-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 0 20px;
}

.why-choose-card {
    background: rgba(15, 17, 26, 0.6);
    /* Dark Glass */
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1 1 220px;
    /* Responsive Flex Basis */
    max-width: 280px;
    /* Max width constraint */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    /* Tech Border */
    border: 1px solid rgba(0, 210, 255, 0.15);
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
    /* Cyan Glow */
    border-color: #00d2ff;
    background: rgba(15, 17, 26, 0.9);
}

.card-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d2ff 0%, #0046ad 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 70, 173, 0.3);
    margin-bottom: 10px;
}

.why-icon {
    width: 40px;
    height: 40px;
    stroke: white;
}

.why-choose-card h3 {
    font-size: 1.4rem;
    color: #000000;
    /* Pure Black */
    font-weight: 800;
    /* Bold */
    margin: 0;
    line-height: 1.2;
}

.why-choose-card p {
    color: #000000;
    /* Pure Black */
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 700;
    /* Bold as requested */
}

@media (max-width: 900px) {
    .why-choose-card {
        flex: 1 1 100%;
        /* Full width on mobile */
        max-width: 400px;
    }
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    text-align: right;
}

.footer-logo-medinet {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-right {
        align-items: center;
        text-align: center;
    }

    .footer-logos-top,
    .footer-seals {
        justify-content: center;
    }
}

/* ROI Explanation Icons */
.explanation-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    vertical-align: middle;
    object-fit: contain;
}



/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    flex: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 1010;
    line-height: 1;
}

.close-modal:hover {
    color: red;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* =========================================
   CERTIFICATIONS SECTION (Glassmorphism)
   ========================================= */

.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 40px 0;
    width: 100%;
}

.cert-card {
    width: 300px;
    /* Much larger width */
    height: 160px;
    /* Much larger height */
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.03);
    /* Ultra transparent */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* Slightly more rounded */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    /* Cyan Glow Border */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cert-card img {
    max-width: 90%;
    /* Utilize more space */
    max-height: 85%;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    /* Slight pop */
}

/* Responsive Grid for Certs */
@media (max-width: 768px) {
    .cert-card {
        width: 45%;
        /* 2x2 Grid */
        height: 100px;
        /* Slightly smaller height on mobile */
    }
}

/* --- Responsive Optimization (Mobile & Tablet) --- */

@media (max-width: 1024px) {

    /* Hero Adjustments */
    .hero-wrapper {
        padding: 0 10px;
        margin-top: 10px;
    }

    .hero-card {
        padding: 40px 20px;
        /* Reduced padding */
        min-height: auto;
        /* Remove fixed height */
        grid-template-columns: 1fr;
        /* Stack column */
    }

    .hero-left {
        align-items: center;
        /* Center align text */
        text-align: center;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 1.8rem !important;
        /* Force smaller size */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-right {
        margin-top: 30px;
        /* Bring visuals closer */
    }

    .connectors {
        display: none;
        /* Hide complex SVG on simpler screens */
    }

    .floating-card {
        transform: scale(0.8);
        /* Shrink floating cards slightly */
    }

    .card-history {
        left: -20px;
    }

    .logo-icon-card {
        right: -10px;
    }

    /* FORCE VISIBILITY for all Mobile/Tablet sizes */
    .tech-pillars-section,
    .patient-journey-section,
    .integrations-section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-height: auto !important;
        overflow: visible !important;
        /* Allow content to flow */
    }

    .pillars-grid,
    .journey-container-wrapper,
    .tech-stream-wrapper {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2.2rem;
    }

    h2,
    .integrations-header h2,
    .tech-header h2,
    .journey-header h2,
    .roi-header h2,
    .contact-header h2,
    .faq-header h2 {
        font-size: 2rem;
    }

    /* Header */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .logo {
        height: 40px;
    }

    /* Hero Mobile */
    .hero-card {
        padding: 30px 15px;
        border-radius: 20px;
    }

    /* Hide floating cards on very small screens to focus on main visuals */
    .floating-card {
        display: none;
    }

    .hero-right {
        margin-top: 10px;
    }

    /* Sections Padding */
    .integrations-section,
    .tech-pillars-section,
    .roi-section,
    .faq-section,
    .contact-section {
        padding: 40px 15px;
        margin: 30px auto;
    }

    .roi-section,
    .contact-section {
        border-radius: 30px;
    }

    /* Bento/Grid Stacking */
    .bento-grid,
    .pillars-grid,
    .footer-container {
        display: flex;
        flex-direction: column;
    }

    .bento-col {
        min-width: 100%;
    }

    .pillar-card {
        width: 100%;
        box-sizing: border-box;
    }

    /* ROI Mobile */
    .roi-header p {
        font-size: 1rem;
    }

    .roi-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .big-number {
        font-size: 2.5rem;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        height: 90vh;
        /* More height on mobile */
        padding: 15px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
    }

    /* FAQ Mobile */
    .faq-question h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    /* Small Mobile */
    h1 {
        font-size: 1.8rem;
    }

    .cta-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 20px;
    }

    .flags-container img {
        width: 25px;
    }
}

/* --- Refined Responsive (Journey & ROI) --- */

@media (max-width: 900px) {

    /* Journey: Stack content on smaller tablets/large phones */
    .journey-slide {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }

    .slide-content {
        text-align: center;
        margin-bottom: 20px;
    }

    .slide-visual {
        width: 100%;
        margin-top: 20px;
    }

    .slide-visual img {
        max-width: 80%;
        /* Don't be too huge */
    }

    /* ROI: Ensure stacking happens before mobile if cramped */
    .roi-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 30px;
    }

    .roi-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {

    /* Journey Mobile Fine-tuning */
    .journey-slide {
        min-width: 85%;
        /* let previous/next visual peek */
        padding: 20px;
    }

    .journey-header {
        margin-bottom: 30px;
    }



    /* Mobile Optimization: Patient Journey */
    .patient-journey-section {
        padding: 40px 0;
        /* Less vertical padding */
    }

    .journey-slide {
        min-width: 85vw;
        /* Width relative to viewport width */
        margin-right: 15px;
        /* Spacing between slides */
        padding: 20px;
        flex-direction: column;
    }

    .slide-visual img {
        max-width: 100%;
        height: auto;
    }

    .journey-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    /* ROI Mobile Fine-tuning */
    .roi-inputs {
        gap: 20px;
    }

    .input-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .input-value {
        align-self: flex-end;
    }

    .roi-results {
        padding: 20px;
    }

    .big-number {
        font-size: 2rem;
    }
}

/* Integrations Footer CTA */
.integrations-cta {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 20px;
}

.integrations-cta p {
    color: #FFFFFF;
    /* White text explicitly */
    font-size: 1.5rem;
    /* Larger as requested */
    margin-bottom: 30px;
    font-weight: 500;
}

/* Why Choose Oftamed Section */
.why-choose-header h2 {
    color: #ffffff !important;
}

.why-choose-card h3 {
    color: #ffffff !important;
}

.why-choose-card p {
    color: #ffffff !important;
}

/* =========================================
   SPECTRA AI SECTION STYLES
   ========================================= */

.ai-section {
    padding: 100px 0;
    width: 100%;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Badge */
.ai-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.1);
    /* Soft Cyan */
    border: 1px solid #00D4FF;
    /* Neon Border */
    color: #00D4FF;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Typography */
.ai-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0 0 24px 0;
}

.text-gradient {
    background: linear-gradient(90deg, #00D4FF 0%, #007AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.ai-content p {
    color: #B0B0B0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Features List */
.ai-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #E0E0E0;
    font-size: 1.05rem;
}

.ai-features li svg {
    color: #00D4FF;
    /* Cyan Icons */
    flex-shrink: 0;
}

/* Video Container */
.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.1);
    /* Subtle outer glow */
    background: #000;
}

/* Glow Effect helper */
.video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2);
    pointer-events: none;
    z-index: 2;
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    /* Optional: helps blend black bg if video has it */
}

/* Responsive */
@media (max-width: 900px) {
    .ai-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .ai-content {
        order: 1;
    }

    .video-frame {
        order: 2;
    }

    .ai-features li {
        justify-content: center;
        text-align: left;
    }

    .ai-content h2 {
        font-size: 2.5rem;
    }
}
