/* =========================================================
   LiveFitFlow
   HERO SECTION
   ========================================================= */

.lff-hero {
    width: 100%;
    padding: 24px 0;
    background: #ffffff;
    overflow: hidden;
}

.lff-hero__inner {
    position: relative;

    width: min(calc(100% - 40px), 1180px);
    min-height: 440px;

    margin-inline: auto;
    padding: 42px 48px;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 20px;

    box-sizing: border-box;

    background: #f4f9f6;
    border: 1px solid #e2eee7;
    border-radius: 22px;

    overflow: hidden;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.lff-hero__content {
    position: relative;
    z-index: 5;

    min-width: 0;
    padding: 10px 10px 10px 0;
}

.lff-hero__eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #16845f;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: 0.06em;
}

.lff-hero__title {
    max-width: 570px;

    margin: 0;

    color: #17201d;

    font-size: clamp(46px, 5vw, 66px);
    line-height: 0.98;
    font-weight: 800;

    letter-spacing: -3px;
}

.lff-hero__title span {
    display: block;
    color: #16845f;
}

.lff-hero__description {
    max-width: 500px;

    margin: 18px 0 0;

    color: #59645e;

    font-size: 15px;
    line-height: 1.6;
}

.lff-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 23px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.lff-hero__button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 17px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.lff-hero__button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.lff-hero__button--primary {
    background: #16845f;
    border: 1px solid #16845f;
    color: #ffffff;
}

.lff-hero__button--primary:hover {
    background: #116d4e;
    border-color: #116d4e;
    color: #ffffff;
}

.lff-hero__button--primary span {
    font-size: 17px;
}

.lff-hero__button--secondary {
    background: #ffffff;
    border: 1px solid #cbd8d0;
    color: #202925;
}

.lff-hero__button--secondary:hover {
    border-color: #16845f;
    color: #16845f;
    background: #ffffff;
}


/* =========================================================
   RIGHT HEALTH VISUAL
   ========================================================= */

.lff-health-visual {
    position: relative;

    width: 100%;
    height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}


/* =========================================================
   Soft Glow
   ========================================================= */

.lff-health-glow {
    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background: rgba(22, 132, 95, 0.10);

    filter: blur(5px);

    animation: lff-glow-pulse 4s ease-in-out infinite;
}

@keyframes lff-glow-pulse {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}


/* =========================================================
   Orbit Rings
   ========================================================= */

.lff-health-orbit {
    position: absolute;

    border: 1px solid rgba(22, 132, 95, 0.16);

    border-radius: 50%;
}

.lff-health-orbit--one {
    width: 370px;
    height: 370px;

    animation: lff-orbit-one 16s linear infinite;
}

.lff-health-orbit--two {
    width: 285px;
    height: 285px;

    border-style: dashed;

    animation: lff-orbit-two 12s linear infinite reverse;
}

@keyframes lff-orbit-one {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes lff-orbit-two {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   Main Health Card
   ========================================================= */

.lff-health-card {
    position: relative;
    z-index: 3;

    width: min(100%, 390px);

    box-sizing: border-box;

    padding: 23px 24px 20px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid #dce7df;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(20, 55, 32, 0.12),
        0 5px 18px rgba(20, 55, 32, 0.06);

    animation: lff-card-float 5s ease-in-out infinite;
}

@keyframes lff-card-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* =========================================================
   Card Header
   ========================================================= */

.lff-health-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lff-health-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #e6f4ed;
}

.lff-health-icon::before {
    content: "♥";

    color: #16845f;

    font-size: 21px;
    line-height: 1;

    animation: lff-heartbeat 1.4s ease-in-out infinite;
}

@keyframes lff-heartbeat {

    0%,
    35%,
    65%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }
}

.lff-health-card__label {
    display: block;

    margin-bottom: 3px;

    color: #718078;

    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.lff-health-card__top strong {
    display: block;

    color: #18201b;

    font-size: 17px;
    line-height: 1.25;
}


/* =========================================================
   ECG
   ========================================================= */

.lff-ecg {
    height: 105px;

    margin: 18px -5px 10px;

    overflow: hidden;

    border-radius: 10px;

    background:
        linear-gradient(
            rgba(22, 132, 95, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(22, 132, 95, 0.045) 1px,
            transparent 1px
        );

    background-size: 25px 25px;
}

.lff-ecg svg {
    width: 100%;
    height: 100%;
}

.lff-ecg__base {
    fill: none;

    stroke: #16845f;
    stroke-width: 3;

    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 650;
    stroke-dashoffset: 650;

    animation: lff-ecg-line 3s linear infinite;
}

@keyframes lff-ecg-line {

    0% {
        stroke-dashoffset: 650;
    }

    70% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -650;
    }
}


/* =========================================================
   Stats
   ========================================================= */

.lff-health-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.lff-health-card__stats > div {
    padding: 11px 12px;

    border-radius: 9px;

    background: #f3f8f5;
}

.lff-health-card__stats span {
    display: block;

    margin-bottom: 3px;

    color: #7a837d;

    font-size: 9px;
    font-weight: 600;
}

.lff-health-card__stats strong {
    color: #16845f;

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   Floating Cards
   ========================================================= */

.lff-floating-card {
    position: absolute;
    z-index: 4;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 13px;

    background: #ffffff;

    border: 1px solid #dce6df;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(20, 55, 32, 0.10);

    animation: lff-floating 4s ease-in-out infinite;
}

.lff-floating-card--top {
    top: 42px;
    right: 8px;
}

.lff-floating-card--bottom {
    bottom: 38px;
    left: 8px;

    animation-delay: -2s;
}

@keyframes lff-floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.lff-floating-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #e6f4ed;

    color: #16845f;

    font-size: 15px;
    font-weight: 800;
}

.lff-floating-card small {
    display: block;

    margin-bottom: 2px;

    color: #8a938d;

    font-size: 7px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 0.06em;
}

.lff-floating-card strong {
    color: #202620;

    font-size: 11px;
    line-height: 1.2;
}


/* =========================================================
   Pulse Ring
   ========================================================= */

.lff-pulse-ring {
    position: absolute;
    z-index: 2;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: #16845f;
}

.lff-pulse-ring::before,
.lff-pulse-ring::after {
    content: "";

    position: absolute;

    inset: -5px;

    border: 1px solid rgba(22, 132, 95, 0.35);

    border-radius: 50%;

    animation: lff-pulse 2.5s ease-out infinite;
}

.lff-pulse-ring::after {
    animation-delay: 1.25s;
}

@keyframes lff-pulse {

    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .lff-hero {
        padding: 18px 0;
    }

    .lff-hero__inner {
        width: min(calc(100% - 28px), 780px);

        min-height: 410px;

        padding: 32px 30px;

        grid-template-columns: 1fr 1fr;
        gap: 10px;

        border-radius: 20px;
    }

    .lff-hero__content {
        padding-right: 5px;
    }

    .lff-hero__title {
        font-size: clamp(40px, 6vw, 56px);
        letter-spacing: -2.4px;
    }

    .lff-hero__description {
        font-size: 14px;
    }

    .lff-health-visual {
        height: 350px;
    }

    .lff-health-card {
        width: min(100%, 335px);
    }

    .lff-health-orbit--one {
        width: 330px;
        height: 330px;
    }

    .lff-health-orbit--two {
        width: 260px;
        height: 260px;
    }

    .lff-floating-card--top {
        right: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .lff-hero {
        padding: 12px 0;
    }

    .lff-hero__inner {
        width: calc(100% - 20px);

        min-height: 0;
        height: auto;

        padding: 28px 20px 24px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 0;

        border-radius: 16px;
    }

    .lff-hero__content {
        width: 100%;

        padding: 0;

        box-sizing: border-box;
    }

    .lff-hero__eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .lff-hero__title {
        max-width: 100%;

        font-size: clamp(38px, 10.5vw, 50px);
        line-height: 0.98;

        letter-spacing: -2px;
    }

    .lff-hero__description {
        max-width: 100%;

        margin-top: 13px;

        font-size: 13px;
        line-height: 1.5;
    }

    .lff-hero__actions {
        gap: 8px;
        margin-top: 17px;
    }

    .lff-hero__button {
        min-height: 40px;

        padding-inline: 14px;

        font-size: 12px;
    }

    .lff-health-visual {
        flex: 0 0 315px;

        width: 100%;
        height: 315px;

        margin-top: 3px;
    }

    .lff-health-card {
        width: min(88%, 345px);

        padding: 16px 17px 14px;

        border-radius: 15px;
    }

    .lff-health-card__top {
        gap: 9px;
    }

    .lff-health-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;

        border-radius: 9px;
    }

    .lff-health-icon::before {
        font-size: 18px;
    }

    .lff-health-card__label {
        font-size: 8px;
    }

    .lff-health-card__top strong {
        font-size: 14px;
    }

    .lff-ecg {
        height: 75px;

        margin: 11px -3px 8px;
    }

    .lff-health-card__stats > div {
        padding: 8px 9px;
    }

    .lff-health-card__stats span {
        font-size: 8px;
    }

    .lff-health-card__stats strong {
        font-size: 11px;
    }

    .lff-health-orbit--one {
        width: 285px;
        height: 285px;
    }

    .lff-health-orbit--two {
        width: 225px;
        height: 225px;
    }

    .lff-health-glow {
        width: 235px;
        height: 235px;
    }

    .lff-floating-card {
        padding: 8px 10px;
        gap: 7px;
    }

    .lff-floating-icon {
        width: 23px;
        height: 23px;
        flex-basis: 23px;

        font-size: 12px;
    }

    .lff-floating-card small {
        font-size: 6px;
    }

    .lff-floating-card strong {
        font-size: 9px;
    }

    .lff-floating-card--top {
        top: 18px;
        right: 0;
    }

    .lff-floating-card--bottom {
        bottom: 18px;
        left: 0;
    }

    .lff-pulse-ring {
        width: 11px;
        height: 11px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .lff-hero {
        padding: 10px 0;
    }

    .lff-hero__inner {
        width: calc(100% - 16px);

        padding: 23px 16px 20px;

        border-radius: 14px;
    }

    .lff-hero__title {
        font-size: 36px;
    }

    .lff-hero__description {
        font-size: 12.5px;
    }

    .lff-hero__actions {
        margin-top: 14px;
    }

    .lff-health-visual {
        flex-basis: 285px;
        height: 285px;
    }

    .lff-health-card {
        width: 86%;
        padding: 13px;
    }

    .lff-ecg {
        height: 65px;
    }

    .lff-health-orbit--one {
        width: 260px;
        height: 260px;
    }

    .lff-health-orbit--two {
        width: 205px;
        height: 205px;
    }

    .lff-health-glow {
        width: 210px;
        height: 210px;
    }
}


/* =========================================================
   HARD OVERFLOW PROTECTION
   ========================================================= */

.lff-hero,
.lff-hero__inner,
.lff-health-visual {
    max-width: 100%;
}

.lff-hero *,
.lff-hero *::before,
.lff-hero *::after {
    box-sizing: border-box;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lff-health-card,
    .lff-floating-card,
    .lff-health-glow,
    .lff-health-orbit,
    .lff-ecg__base,
    .lff-health-icon::before,
    .lff-pulse-ring::before,
    .lff-pulse-ring::after {
        animation: none;
    }
}