/* =====================================================================
   index-page.css
   Consolidated styles for the public landing page (index.php).
   Extracted from inline <style> blocks to improve text-to-HTML ratio,
   reduce HTML payload size, and enable browser caching.
   ===================================================================== */

/* ---------- Hero / nav / general utilities ---------- */
.hero-section { min-height: 100vh; contain: layout style; }
.hero-content { min-height: 400px; contain: layout; }
.nav-logo-img { width: 245px; height: 52px; object-fit: contain; }
.footer-logo-img { width: 200px; height: 43px; object-fit: contain; }
.floating-elements { opacity: 0; animation: fadeInFloats 0.5s ease-out 1s forwards; }
@keyframes fadeInFloats { to { opacity: 1; } }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* Utility classes (extracted from former inline styles for SEO/CSP compliance) */
.hero-badge-pill { background:#047857; color:#fff; padding:2px 8px; border-radius:4px; margin-left:8px; font-size:.8em; font-weight:600; }
.cx-icon-whatsapp, .cx-link-whatsapp { color:#25D366; }
.cx-relative { position:relative; z-index:1; }
.cx-cta-img { width:500px; height:auto; max-width:100%; }
.cx-footer-link { color:#c7d2fe; text-decoration:underline; }
.cta-bg-image { position:absolute; right:-10%; top:50%; transform:translateY(-50%); opacity:.08; pointer-events:none; z-index:0; }

/* Geometric shape positions */
.geo-pos-1  { top:8%;  left:5%;   }
.geo-pos-2  { top:55%; right:8%;  }
.geo-pos-3  { top:20%; right:12%; }
.geo-pos-4  { top:75%; left:10%;  }
.geo-pos-5  { top:35%; left:15%;  }
.geo-pos-6  { top:85%; right:20%; }
.geo-pos-7  { top:45%; right:5%;  }
.geo-pos-8  { top:15%; left:40%;  }
.geo-pos-9  { top:60%; left:3%;   }
.geo-pos-10 { top:30%; right:3%;  }
.geo-pos-11 { top:90%; left:50%;  }
.geo-pos-12 { top:5%;  right:30%; }

/* ---------- Horizontal scroll animations ---------- */
.scroll-section { overflow: hidden; }

.scroll-slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-right.scroll-visible,
.scroll-slide-left.scroll-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-stagger > * {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-stagger.from-left > * { transform: translateX(-60px); }

.scroll-stagger.scroll-visible > * {
    opacity: 1;
    transform: translateX(0);
}

.scroll-stagger.scroll-visible > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-stagger.scroll-visible > *:nth-child(2) { transition-delay: 0.1s; }
.scroll-stagger.scroll-visible > *:nth-child(3) { transition-delay: 0.15s; }
.scroll-stagger.scroll-visible > *:nth-child(4) { transition-delay: 0.2s; }
.scroll-stagger.scroll-visible > *:nth-child(5) { transition-delay: 0.25s; }
.scroll-stagger.scroll-visible > *:nth-child(6) { transition-delay: 0.3s; }
.scroll-stagger.scroll-visible > *:nth-child(7) { transition-delay: 0.35s; }
.scroll-stagger.scroll-visible > *:nth-child(8) { transition-delay: 0.4s; }

.section-header.scroll-slide-right,
.section-header.scroll-slide-left { transition-duration: 0.7s; }

.features-grid.scroll-stagger > *:nth-child(odd)  { transform: translateX(60px); }
.features-grid.scroll-stagger > *:nth-child(even) { transform: translateX(-60px); }
.features-grid.scroll-stagger.scroll-visible > *:nth-child(odd),
.features-grid.scroll-stagger.scroll-visible > *:nth-child(even) { transform: translateX(0); }

.steps-grid.scroll-stagger > * { transform: translateX(80px); }
.steps-grid.scroll-stagger.scroll-visible > * { transform: translateX(0); }

.about-content .about-text {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-content .about-image {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}
.about-content.scroll-visible .about-text,
.about-content.scroll-visible .about-image {
    opacity: 1;
    transform: translateX(0);
}

.contact-wrapper .contact-info {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact-wrapper .contact-form-wrapper {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}
.contact-wrapper.scroll-visible .contact-info,
.contact-wrapper.scroll-visible .contact-form-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.cta-content {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.cta-content.scroll-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feedback-card.scroll-slide-right { transition-duration: 0.9s; }

@media (prefers-reduced-motion: reduce) {
    .scroll-slide-right,
    .scroll-slide-left,
    .scroll-stagger > *,
    .about-content .about-text,
    .about-content .about-image,
    .contact-wrapper .contact-info,
    .contact-wrapper .contact-form-wrapper,
    .cta-content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---------- 3D scrolling animation system ---------- */
.perspective-wrapper {
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

.geo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.07;
    will-change: transform;
    transition: none;
}

.geo-shape.cube {
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
}

.geo-shape.cube .face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #6366f1;
    border-radius: 8px;
}

.geo-shape.cube .face.front  { transform: translateZ(30px); }
.geo-shape.cube .face.back   { transform: rotateY(180deg) translateZ(30px); }
.geo-shape.cube .face.left   { transform: rotateY(-90deg) translateZ(30px); }
.geo-shape.cube .face.right  { transform: rotateY(90deg) translateZ(30px); }
.geo-shape.cube .face.top    { transform: rotateX(90deg) translateZ(30px); }
.geo-shape.cube .face.bottom { transform: rotateX(-90deg) translateZ(30px); }

.geo-shape.ring {
    width: 80px;
    height: 80px;
    border: 3px solid #8b5cf6;
    border-radius: 50%;
}

.geo-shape.diamond {
    width: 40px;
    height: 40px;
    border: 2px solid #a855f7;
    transform: rotate(45deg);
    border-radius: 4px;
}

.geo-shape.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(99, 102, 241, 0.15);
}

.geo-shape.helix {
    width: 50px;
    height: 50px;
    border: 3px solid #6366f1;
    border-radius: 50% 0 50% 0;
}

.geo-shape.cross {
    width: 50px;
    height: 50px;
    position: absolute;
}
.geo-shape.cross::before,
.geo-shape.cross::after {
    content: '';
    position: absolute;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 4px;
}
.geo-shape.cross::before {
    width: 100%;
    height: 30%;
    top: 35%;
}
.geo-shape.cross::after {
    width: 30%;
    height: 100%;
    left: 35%;
}

.feature-card,
.step-card,
.about-card,
.feedback-item {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
                box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: perspective(800px) rotateY(var(--rotateY, 0deg)) rotateX(var(--rotateX, 0deg)) translateZ(20px) !important;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15), 0 0 30px rgba(99, 102, 241, 0.05);
}

.feature-card .feature-icon { transition: transform 0.4s ease; }
.feature-card:hover .feature-icon { transform: translateZ(40px) scale(1.1); }

.scroll-3d-flip {
    opacity: 0;
    transform: perspective(800px) rotateX(25deg) translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-3d-flip.scroll-visible {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
}

.scroll-3d-rotate-left {
    opacity: 0;
    transform: perspective(1000px) rotateY(15deg) translateX(-80px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-3d-rotate-left.scroll-visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateX(0);
}

.scroll-3d-rotate-right {
    opacity: 0;
    transform: perspective(1000px) rotateY(-15deg) translateX(80px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-3d-rotate-right.scroll-visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateX(0);
}

.scroll-3d-zoom {
    opacity: 0;
    transform: perspective(600px) translateZ(-150px) scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-3d-zoom.scroll-visible {
    opacity: 1;
    transform: perspective(600px) translateZ(0) scale(1);
}

.scroll-3d-stagger > * {
    opacity: 0;
    transform: perspective(800px) rotateX(20deg) rotateY(-5deg) translateY(50px) translateZ(-30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-3d-stagger.scroll-visible > * {
    opacity: 1;
    transform: perspective(800px) rotateX(0) rotateY(0) translateY(0) translateZ(0);
}
.scroll-3d-stagger.scroll-visible > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(2) { transition-delay: 0.12s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(3) { transition-delay: 0.19s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(4) { transition-delay: 0.26s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(5) { transition-delay: 0.33s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(6) { transition-delay: 0.40s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(7) { transition-delay: 0.47s; }
.scroll-3d-stagger.scroll-visible > *:nth-child(8) { transition-delay: 0.54s; }

.parallax-depth { will-change: transform; }

.hero-content { animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-10px) rotateX(1deg); }
}

.dashboard-preview {
    animation: dashboardFloat 7s ease-in-out infinite;
    transform-style: preserve-3d;
}
@keyframes dashboardFloat {
    0%, 100% { transform: perspective(800px) rotateY(-5deg) rotateX(3deg) translateY(0); }
    50% { transform: perspective(800px) rotateY(-2deg) rotateX(1deg) translateY(-15px); }
}

.section-3d-divider {
    height: 80px;
    position: relative;
    overflow: hidden;
    margin-top: -40px;
    z-index: 2;
}
.section-3d-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.08;
    pointer-events: none;
    will-change: transform;
}
.glow-orb-1 { width: 400px; height: 400px; background: #6366f1; top: 10%; left: -5%; }
.glow-orb-2 { width: 300px; height: 300px; background: #8b5cf6; top: 40%; right: -3%; }
.glow-orb-3 { width: 350px; height: 350px; background: #a855f7; top: 70%; left: 20%; }

.landing-page-html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .glow-orb,
    .hero-content,
    .dashboard-preview,
    .scroll-3d-flip,
    .scroll-3d-rotate-left,
    .scroll-3d-rotate-right,
    .scroll-3d-zoom,
    .scroll-3d-stagger > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .geo-canvas { display: none; }
}

/* ---------- Stethoscope page loader ---------- */
.stethoscope-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 46, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s;
    overflow: hidden;
}

.stethoscope-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
}

.loader-particle:nth-child(1)  { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 5s; }
.loader-particle:nth-child(2)  { top: 25%; left: 85%; animation-delay: 0.5s; animation-duration: 4.5s; width: 3px; height: 3px; }
.loader-particle:nth-child(3)  { top: 55%; left: 5%; animation-delay: 1s; animation-duration: 6s; width: 5px; height: 5px; }
.loader-particle:nth-child(4)  { top: 70%; left: 90%; animation-delay: 1.5s; animation-duration: 4s; }
.loader-particle:nth-child(5)  { top: 40%; left: 50%; animation-delay: 0.8s; animation-duration: 5.5s; width: 3px; height: 3px; }
.loader-particle:nth-child(6)  { top: 80%; left: 30%; animation-delay: 2s; animation-duration: 4s; width: 6px; height: 6px; background: rgba(139, 92, 246, 0.2); }
.loader-particle:nth-child(7)  { top: 10%; left: 65%; animation-delay: 0.3s; animation-duration: 5s; }
.loader-particle:nth-child(8)  { top: 90%; left: 70%; animation-delay: 1.8s; animation-duration: 4.5s; width: 3px; height: 3px; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.7; }
}

.stethoscope-svg-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.stethoscope-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.15);
    animation: pulseRingExpand 2s ease-out infinite;
}

.stethoscope-pulse-ring:nth-child(2) { animation-delay: 0.6s; }
.stethoscope-pulse-ring:nth-child(3) { animation-delay: 1.2s; }

@keyframes pulseRingExpand {
    0% { width: 100px; height: 100px; opacity: 0.6; border-color: rgba(99, 102, 241, 0.4); }
    100% { width: 220px; height: 220px; opacity: 0; border-color: rgba(139, 92, 246, 0); }
}

.stethoscope-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

.stethoscope-icon .stetho-tube {
    fill: none;
    stroke: url(#stethGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawTube 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.stethoscope-icon .stetho-earpiece-l,
.stethoscope-icon .stetho-earpiece-r {
    fill: none;
    stroke: url(#stethGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawEarpiece 0.5s cubic-bezier(0.65, 0, 0.35, 1) 1.4s forwards;
}

.stethoscope-icon .stetho-earpiece-r { animation-delay: 1.55s; }

.stethoscope-icon .stetho-chest {
    fill: none;
    stroke: url(#stethGrad);
    stroke-width: 4;
    opacity: 0;
    animation: chestAppear 0.6s ease 0.8s forwards;
}

.stethoscope-icon .stetho-chest-fill {
    fill: rgba(99, 102, 241, 0.15);
    opacity: 0;
    animation: chestAppear 0.6s ease 0.9s forwards;
}

.stethoscope-icon .stetho-heartbeat {
    fill: none;
    stroke: #f43f5e;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    opacity: 0;
    animation: drawHeartbeat 0.8s ease 1.8s forwards;
}

@keyframes drawTube { to { stroke-dashoffset: 0; } }
@keyframes drawEarpiece { to { stroke-dashoffset: 0; } }
@keyframes chestAppear {
    0% { opacity: 0; transform: scale(0.5); }
    60% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes drawHeartbeat {
    0% { stroke-dashoffset: 60; opacity: 0; }
    20% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.stetho-glow {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 1.5s ease-in-out infinite 1s;
    opacity: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.3); }
}

.loader-text { text-align: center; }

.loader-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: textFadeIn 0.6s ease 0.5s forwards;
}

.loader-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    opacity: 0;
    animation: textFadeIn 0.6s ease 0.8s forwards;
}

@keyframes textFadeIn { to { opacity: 1; } }

.loader-progress {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
    opacity: 0;
    animation: textFadeIn 0.5s ease 1s forwards;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progressFill 2s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards,
               progressShimmer 1.5s linear infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    80% { width: 90%; }
    100% { width: 100%; }
}
@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader-heartbeat-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 40px;
    opacity: 0.15;
}

.loader-heartbeat-line svg { width: 100%; height: 100%; }

.loader-heartbeat-line .hb-line {
    fill: none;
    stroke: #6366f1;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawHeartbeatLine 3s linear infinite;
}

@keyframes drawHeartbeatLine { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .stethoscope-loader { transition: opacity 0.2s; }
    .stethoscope-icon .stetho-tube,
    .stethoscope-icon .stetho-earpiece-l,
    .stethoscope-icon .stetho-earpiece-r,
    .stethoscope-icon .stetho-heartbeat,
    .loader-progress-bar {
        animation: none !important;
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    .stethoscope-icon .stetho-chest,
    .stethoscope-icon .stetho-chest-fill,
    .loader-text h3,
    .loader-subtext,
    .loader-progress,
    .stetho-glow {
        animation: none !important;
        opacity: 1 !important;
    }
    .stethoscope-pulse-ring,
    .loader-particle,
    .loader-heartbeat-line { display: none; }
}

@media (max-width: 768px) {
    .stethoscope-loader { transition: opacity 0.15s; }
    .loader-particles,
    .stethoscope-pulse-ring,
    .loader-heartbeat-line { display: none !important; }
    .stethoscope-loader .stetho-tube,
    .stethoscope-loader .stetho-earpiece-l,
    .stethoscope-loader .stetho-earpiece-r,
    .stethoscope-loader .stetho-heartbeat { animation-duration: 0.5s !important; }
}

/* ---------- Brand identity section ---------- */
/* The xrunbg image URL is injected via CSS custom properties (--xrun-bg-png,
   --xrun-bg-webp) declared inline in the page so the cacheable CSS file does
   not need to know the absolute APP_URL. */
.brand-identity-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.brand-identity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--xrun-bg-png);
    background-image: -webkit-image-set(var(--xrun-bg-webp) type('image/webp'), var(--xrun-bg-png) type('image/png'));
    background-image: image-set(var(--xrun-bg-webp) type('image/webp'), var(--xrun-bg-png) type('image/png'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

.brand-identity-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.brand-identity-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.xrun-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.15);
    transition: transform 0.5s ease;
}

.brand-identity-image:hover .xrun-image {
    transform: scale(1.02) rotate(1deg);
}

.brand-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

.brand-identity-content { color: #1e293b; }

.brand-identity-content .section-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.brand-identity-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 20px 0;
    line-height: 1.2;
    color: #1e293b;
}

.brand-tagline {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 35px;
}

.brand-tagline strong { color: #6366f1; }

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.brand-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.brand-feature:hover {
    background: #ffffff;
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.brand-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-feature-icon i { font-size: 22px; color: #fff; }

.brand-feature-text h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.brand-feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.brand-quote {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 16px;
    border-left: 4px solid #8b5cf6;
}

.brand-quote i {
    font-size: 24px;
    color: #8b5cf6;
    opacity: 0.8;
}

.brand-quote p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #475569;
}

@media (max-width: 992px) {
    .brand-identity-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .brand-identity-image { order: -1; }
    .xrun-image { max-width: 80%; }
    .brand-identity-content h2 { font-size: 2.2rem; }
}

@media (max-width: 576px) {
    .brand-identity-section { padding: 60px 0; }
    .brand-identity-content h2 { font-size: 1.8rem; }
    .xrun-image { max-width: 100%; }
    .brand-feature { padding: 15px; }
    .brand-feature-icon { width: 44px; height: 44px; }
    .brand-feature-icon i { font-size: 18px; }
}

/* ---------- SEO content section ---------- */
.seo-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
    color: #1f2937;
    position: relative;
}
.seo-content-section .section-header { margin: 0 auto 3rem; }
.seo-content-section .section-header h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 .75rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.seo-content-section .section-header p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 28px;
    align-items: stretch;
}
.seo-content-grid:last-child { margin-bottom: 0; }

.seo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.seo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, .06), 0 24px 40px -16px rgba(99, 102, 241, .25);
    border-color: #c7d2fe;
}
.seo-card-accent {
    background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%);
    border-color: #ddd6fe;
}
.seo-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 16px -8px rgba(99, 102, 241, .6);
}
.seo-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.3;
    margin: 0 0 14px;
    color: #0f172a;
    font-weight: 600;
}
.seo-card p {
    font-size: .98rem;
    line-height: 1.75;
    margin: 0 0 14px;
    color: #475569;
}
.seo-card p:last-child { margin-bottom: 0; }

.seo-feature-list {
    padding-left: 1.2rem;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: .98rem;
}
.seo-feature-list li { margin-bottom: 10px; }
.seo-feature-list li:last-child { margin-bottom: 0; }
.seo-feature-list li strong { color: #0f172a; font-weight: 600; }
.seo-feature-list a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.seo-feature-list a:hover { color: #4f46e5; }

.seo-steps { counter-reset: seo-step; list-style: none; padding-left: 0; }
.seo-steps li {
    position: relative;
    padding-left: 2.25rem;
    counter-increment: seo-step;
}
.seo-steps li::before {
    content: counter(seo-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.seo-cta-line {
    margin-top: 18px !important;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    font-size: .95rem !important;
}

@media (max-width: 900px) {
    .seo-content-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
    .seo-content-section { padding: 60px 0; }
    .seo-card { padding: 26px; }
}
@media (max-width: 480px) {
    .seo-content-section { padding: 44px 0; }
    .seo-card { padding: 22px; border-radius: 16px; }
    .seo-card-icon { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 14px; }
}

/* ---------- Feedback section ---------- */
.feedback-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #fef3c7 100%);
}

.feedback-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.feedback-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feedback-icon i { font-size: 36px; color: white; }

.feedback-card h2 { font-size: 2.5rem; margin: 0 0 10px; }

.feedback-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.feedback-item {
    padding: 25px 20px;
    background: #f9fafb;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feedback-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feedback-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feedback-item-icon.bug     { background: linear-gradient(135deg, #dc2626, #ef4444); }
.feedback-item-icon.feature { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.feedback-item-icon.improve { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.feedback-item-icon i { color: white; font-size: 22px; }

.feedback-item h3 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 1.1rem;
}

.feedback-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gratitude-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.gratitude-star {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gratitude-star i { color: white; font-size: 28px; }

.gratitude-text h4 {
    margin: 0 0 8px;
    color: #92400e;
    font-size: 1.15rem;
}

.gratitude-text h4 i { margin-right: 8px; }

.gratitude-text p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feedback-card { padding: 30px 20px; }
    .feedback-card h2 { font-size: 1.8rem; }
    .gratitude-banner { flex-direction: column; text-align: center; }
}

/* ---------- Gratitude modal ---------- */
.gratitude-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gratitude-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.gratitude-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.gratitude-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.3), 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.gratitude-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gratitude-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gratitude-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

.gratitude-photo {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.photo-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border: 4px solid #fff;
}

.photo-frame i { font-size: 50px; color: white; }

.gratitude-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    animation: pulse 2s infinite;
}

.gratitude-badge i { color: white; font-size: 16px; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.gratitude-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.gratitude-content h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px;
}

.gratitude-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px;
}

.gratitude-content h3 .degree {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.clinic-name {
    color: #6b7280;
    font-size: 15px;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clinic-name i { color: #8b5cf6; }

.gratitude-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    margin: 20px auto;
    border-radius: 2px;
}

.gratitude-message {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.gratitude-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

.gratitude-footer i { color: #d1d5db; font-size: 10px; }

.gratitude-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.gratitude-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

@media (max-width: 480px) {
    .gratitude-card { padding: 30px 20px; margin: 10px; }
    .photo-frame { width: 100px; height: 100px; }
    .photo-frame i { font-size: 40px; }
    .gratitude-content h2 { font-size: 26px; }
    .gratitude-content h3 { font-size: 18px; }
    .gratitude-message { font-size: 13px; }
}

/* ---------- Chatbot widget ---------- */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.chatbot-toggle-icon,
.chatbot-toggle-close {
    color: white;
    font-size: 24px;
    position: absolute;
    transition: all 0.3s;
}

.chatbot-toggle-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.chatbot-widget.open .chatbot-toggle-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.chatbot-widget.open .chatbot-toggle-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chatbot-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.chatbot-widget.open .chatbot-notification-badge { display: none; }

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 550px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-widget.open .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatbot-avatar i { font-size: 20px; }

.chatbot-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #6366f1;
}

.chatbot-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-status { font-size: 12px; opacity: 0.9; }

.chatbot-header-actions { display: flex; gap: 8px; }

.chatbot-header-actions button {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbot-header-actions button:hover { background: rgba(255, 255, 255, 0.25); }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f9fafb;
}

.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.chatbot-welcome {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border-radius: 16px;
    margin-bottom: 10px;
}

.chatbot-welcome-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.chatbot-welcome-icon i { font-size: 24px; color: white; }

.chatbot-welcome h3 { margin: 0 0 8px; font-size: 16px; color: #1f2937; }
.chatbot-welcome p  { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.5; }

.chatbot-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chatbot-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chatbot-message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-message-avatar i { font-size: 14px; color: white; }

.chatbot-message.user .chatbot-message-avatar { background: linear-gradient(135deg, #10b981, #059669); }
.chatbot-message.user .chatbot-message-avatar i::before { content: "\f007"; }

.chatbot-message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chatbot-message.user .chatbot-message-content {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.chatbot-message-content p { margin: 0; font-size: 14px; line-height: 1.5; }

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 0;
}

.chatbot-suggestion {
    padding: 8px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    color: #6366f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.chatbot-suggestion:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.chatbot-suggestion i { font-size: 11px; }

.chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: #6b7280;
    font-size: 12px;
}

.chatbot-typing span:not(.typing-text) {
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.chatbot-typing span:nth-child(1) { animation-delay: 0s; }
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%           { transform: scale(1);   opacity: 1; }
}

.typing-text { margin-left: 6px; }

.chatbot-form { display: flex; gap: 10px; }

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chatbot-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-send:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.chatbot-send:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.chatbot-powered {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
}

.chatbot-powered i { color: #f59e0b; }

@media (max-width: 768px) {
    .chatbot-widget { bottom: 15px; right: 15px; }
    .chatbot-window { width: 340px; height: 500px; bottom: 70px; right: 0; }
    .chatbot-toggle { width: 56px; height: 56px; }
    .chatbot-header { padding: 14px 16px; }
    .chatbot-avatar { width: 38px; height: 38px; }
    .chatbot-messages { padding: 16px; }
    .chatbot-welcome { padding: 12px; }
    .chatbot-welcome h3 { font-size: 15px; }
    .chatbot-welcome p { font-size: 12px; }
}

@media (max-width: 480px) {
    .chatbot-widget { bottom: 0; right: 0; left: 0; z-index: 99999; }
    .chatbot-widget.open { position: fixed; top: 0; bottom: 0; left: 0; right: 0; }
    .chatbot-toggle { position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; z-index: 99998; }
    .chatbot-widget.open .chatbot-toggle { display: none; }
    .chatbot-window {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100%; max-height: 100%;
        border-radius: 0; z-index: 99999;
    }
    .chatbot-header { padding: 12px 16px; border-radius: 0; }
    .chatbot-header-info { gap: 10px; }
    .chatbot-avatar { width: 36px; height: 36px; }
    .chatbot-avatar i { font-size: 18px; }
    .chatbot-header-text h4 { font-size: 15px; }
    .chatbot-status { font-size: 11px; }
    .chatbot-messages { padding: 12px; gap: 12px; }
    .chatbot-welcome { padding: 12px; margin-bottom: 8px; }
    .chatbot-welcome-icon { width: 44px; height: 44px; }
    .chatbot-welcome-icon i { font-size: 20px; }
    .chatbot-welcome h3 { font-size: 14px; margin-bottom: 6px; }
    .chatbot-welcome p { font-size: 12px; line-height: 1.4; }
    .chatbot-message { max-width: 85%; }
    .chatbot-message-avatar { width: 28px; height: 28px; }
    .chatbot-message-avatar i { font-size: 12px; }
    .chatbot-message-content { padding: 10px 14px; border-radius: 14px; }
    .chatbot-message-content p { font-size: 13px; }
    .chatbot-message.bot .chatbot-message-content { border-top-left-radius: 4px; }
    .chatbot-message.user .chatbot-message-content { border-top-right-radius: 4px; }
    .chatbot-suggestions { gap: 6px; padding: 4px 0; }
    .chatbot-suggestion { padding: 6px 12px; font-size: 11px; border-radius: 16px; }
    .chatbot-suggestion i { font-size: 10px; }
    .chatbot-input-area { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .chatbot-typing { padding: 6px 0; font-size: 11px; }
    .chatbot-typing span:not(.typing-text) { width: 5px; height: 5px; }
    .chatbot-form { gap: 8px; }
    .chatbot-input { padding: 10px 14px; font-size: 16px; border-radius: 22px; }
    .chatbot-send { width: 42px; height: 42px; }
    .chatbot-send i { font-size: 16px; }
    .chatbot-powered { font-size: 10px; margin-top: 6px; }
    .chatbot-notification-badge { width: 20px; height: 20px; font-size: 11px; top: -4px; right: -4px; }
    .chatbot-toggle-icon i,
    .chatbot-toggle-close i { font-size: 22px; }
}

@media (max-width: 360px) {
    .chatbot-welcome h3 { font-size: 13px; }
    .chatbot-welcome p { font-size: 11px; }
    .chatbot-suggestion { padding: 5px 10px; font-size: 10px; }
    .chatbot-message-content p { font-size: 12px; }
    .chatbot-header-text h4 { font-size: 14px; }
}

@media (max-height: 500px) and (max-width: 900px) {
    .chatbot-window { height: 100vh; max-height: 100vh; }
    .chatbot-messages { max-height: calc(100vh - 140px); }
    .chatbot-welcome { padding: 8px; }
    .chatbot-welcome-icon { width: 36px; height: 36px; }
    .chatbot-welcome h3 { font-size: 13px; margin-bottom: 4px; }
    .chatbot-welcome p { font-size: 11px; }
}

/* =========================================================================
   MOBILE FIT-TO-SCREEN OVERRIDES
   Prevents horizontal overflow and ensures all landing-page content
   adapts cleanly to small viewports.
   ========================================================================= */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    position: relative;
}

*, *::before, *::after { box-sizing: border-box; }

img, video, iframe, svg, picture {
    max-width: 100%;
    height: auto;
}

/* Prevent any decorative/absolute element from spilling outside viewport */
.geo-canvas,
.brand-identity-section::before,
.brand-identity-section::after {
    max-width: 100vw;
    overflow: clip;
}

.cta-bg-image {
    max-width: 100%;
    overflow: clip;
}

@media (max-width: 768px) {
    /* Generic section padding so nothing touches the screen edge */
    section,
    .hero-section,
    .brand-identity-section,
    .seo-content-section,
    .feedback-section,
    .features-section,
    .about-section,
    .contact-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Containers / grids should never exceed the viewport */
    .nav-container,
    .container,
    .row,
    [class*="-container"],
    [class*="-grid"],
    [class*="-wrapper"] {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-nav,
    .mobile-menu,
    .hero-section,
    .brand-identity-section,
    .seo-content-section,
    .feedback-section {
        overflow-x: clip;
    }

    .cta-bg-image {
        right: 0;
        max-width: 45vw;
    }

    /* Fluid typography clamp so headings never push width */
    h1 { font-size: clamp(1.6rem, 6vw, 2.25rem) !important; line-height: 1.2; word-wrap: break-word; }
    h2 { font-size: clamp(1.4rem, 5vw, 1.875rem) !important; line-height: 1.25; word-wrap: break-word; }
    h3 { font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important; word-wrap: break-word; }
    p, li, a, span, label, button, input, textarea, select { word-wrap: break-word; overflow-wrap: anywhere; }

    /* Buttons and form controls fill width on mobile */
    .btn,
    .hero-buttons .btn,
    button[type="submit"],
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        max-width: 100%;
    }

    /* Tables scroll instead of breaking layout */
    table { display: block; max-width: 100%; overflow-x: auto; }

    /* Pre / code blocks scroll */
    pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

    /* Hide any large decorative pseudo-image that may overflow */
    .brand-identity-section::before { background-size: cover !important; background-position: center !important; }
}

@media (max-width: 480px) {
    section,
    .hero-section,
    .brand-identity-section,
    .seo-content-section,
    .feedback-section,
    .features-section,
    .about-section,
    .contact-section {
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    /* Reduce nav padding & shrink logo so the bar fits */
    .nav-container { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .nav-logo-img  { max-width: 160px; height: auto; }

    /* Stack hero buttons full width */
    .hero-buttons { flex-direction: column; gap: 0.75rem; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    .cta-bg-image {
        display: none;
    }

    /* Cards & feature tiles full width */
    [class*="-card"],
    [class*="-tile"] { max-width: 100%; }
}

@media (max-width: 360px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    .nav-logo-img { max-width: 140px; }
}