/* ==========================================================================
   VLab-4000 — Home A: Dynamic Components (from index4.html reference)
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. Hero — Pulse wave background pattern (tiled SVG)
   Subtle repeating medical-device waveform in the hero background
   ----------------------------------------------------------------------- */
.hero--pulse-bg {
    background-image:
        linear-gradient(160deg, var(--color-bg-alt) 0%, var(--white) 60%),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="200" height="100" viewBox="0 0 200 100"%3E%3Cpath d="M0,50 C10,10, 30,10, 50,50 S90,90, 100,50 S130,10, 150,50 S190,90, 200,50" stroke="rgba(43,45,66,0.03)" stroke-width="0.5" fill="none" /%3E%3C/svg%3E');
    background-size: auto, 200px 100px;
    background-repeat: no-repeat, repeat;
}

/* -----------------------------------------------------------------------
   2. Solution section — Animated SVG pulse wave background
   Continuous line-draw animation behind the solution text
   ----------------------------------------------------------------------- */
.section--pulse-wave {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.section--pulse-wave > .container {
    position: relative;
    z-index: 2;
}

.section--pulse-wave .tech-pulse-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section--pulse-wave .tech-pulse-bg path {
    stroke: var(--color-primary);
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: pulse-draw-a 10s ease-in-out infinite;
}

@keyframes pulse-draw-a {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0.06;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.1;
    }
    100% {
        stroke-dashoffset: -1000;
        opacity: 0.06;
    }
}

/* -----------------------------------------------------------------------
   3. Data panel — Dark monospace metrics display (like index4.html)
   Used in the Problem Agitation section for statistics
   ----------------------------------------------------------------------- */
.data-panel--inline {
    background-color: var(--color-primary);
    color: var(--color-clean-slate);
    padding: var(--space-32);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
    margin-top: var(--space-40);
}

.data-panel--inline .data-display {
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-8);
}

.data-panel--inline .data-label {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-small);
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.8;
    letter-spacing: 0.02em;
    line-height: var(--leading-normal);
}

.data-panel--inline .data-item {
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .data-panel--inline {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }
}

/* -----------------------------------------------------------------------
   4. Enhanced card hover — 5px lift (matching index4.html)
   Stronger interactive feel on benefit cards
   ----------------------------------------------------------------------- */
.grid-3 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
