/* "What links do you get?" bento section */
.lf :where(h2, h3, p) {
    margin: 0;
}

.lf__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 760px;
    margin-bottom: 40px;
}

.lf__eyebrow {
    display: inline-flex;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: var(--green-20);
    color: var(--black);
}

.lf__title {
    margin-bottom: 16px;
}

.lf__lead {
    color: #4a4a5e;
}

/* ---------- Grid ---------- */
.lf__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.lf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #E6E8EF;
    border-radius: 28px;
    background: var(--white);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

@media (hover: hover) {
    .lf-card:hover {
        transform: translateY(-4px);
        border-color: rgba(102, 102, 255, 0.28);
        box-shadow: 0 24px 48px -28px rgba(40, 40, 140, 0.35);
    }

    .lf-card:hover .lf-card__ico {
        transform: rotate(-6deg) scale(1.06);
    }
}

.lf-card--hero {
    grid-column: span 2;
    grid-row: span 2;
    gap: 26px;
    background:
        radial-gradient(120% 90% at 100% 100%, rgba(0, 211, 122, 0.12), transparent 60%),
        radial-gradient(80% 70% at 0% 0%, rgba(102, 102, 255, 0.08), transparent 60%),
        var(--white);
}

.lf-card--stat {
    grid-column: span 2;
    color: var(--white);
    border-color: rgba(180, 180, 255, 0.16);
    background: var(--surface-indigo);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -34px rgba(22, 22, 58, 0.65);
}

.lf-card--stat .lf-card__text {
    color: rgba(255, 255, 255, 0.8);
}

.lf-card__top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.lf-card__top > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lf-card__ico {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lf-card__ico svg {
    width: 32px;
    height: 32px;
}

.lf-card__ico--green { color: #00B86B; background: rgba(0, 211, 122, 0.14); }
.lf-card__ico--blue { color: var(--blue); background: rgba(102, 102, 255, 0.12); }
.lf-card__ico--purple { color: #A347D1; background: rgba(204, 102, 255, 0.14); }
.lf-card__ico--orange { color: #D9772B; background: rgba(244, 162, 97, 0.16); }
.lf-card__ico--light { color: var(--white); background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); }

.lf-card__title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.lf-card--sm .lf-card__title {
    margin-top: 6px;
    font-size: 19px;
}

.lf-card__text {
    color: #5A5F70;
    font-size: 16px;
    line-height: 1.5;
}

/* ---------- Forum post mockup ---------- */
.lf-post {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 18px;
    border: 1px solid #E6E8EF;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px -30px rgba(11, 11, 31, 0.35);
}

.lf-post__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    font-size: 12px;
    color: #8A8FA0;
}

.lf-post__forum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #00995A;
}

.lf-post__forum::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00D37A;
}

.lf-post__topic {
    padding-bottom: 12px;
    border-bottom: 1px solid #EEF0F5;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.lf-post__msg {
    display: flex;
    gap: 12px;
}

.lf-post__ava {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6666FF, #9A8CFF);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.lf-post__ava--b {
    background: linear-gradient(135deg, #F4A261, #E76F51);
}

.lf-post__body {
    flex: 1;
    min-width: 0;
}

.lf-post__user {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}

.lf-post__user small {
    font-size: 12px;
    color: #8A8FA0;
}

.lf-post__body p {
    font-size: 15px;
    line-height: 1.6;
    color: #3A3E4C;
}

.lf-post__link {
    position: relative;
    padding: 1px 4px;
    border-radius: 6px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: rgba(102, 102, 255, 0.1);
    animation: lfGlow 2.8s ease-in-out infinite;
}

@keyframes lfGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 102, 255, 0); }
    50% { box-shadow: 0 0 0 4px rgba(102, 102, 255, 0.16); }
}

.lf-post__tag {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transform: translateX(-50%);
    pointer-events: none;
}

.lf-post__tag::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 5px solid transparent;
    border-top-color: var(--black);
    transform: translateX(-50%);
}

.lf-post__msg--ghost {
    opacity: 0.55;
}

.lf-post__msg--ghost .lf-post__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.lf-post__msg--ghost i {
    display: block;
    height: 8px;
    border-radius: 6px;
    background: #E6E8EF;
}

.lf-post__msg--ghost i:first-child { width: 80%; }
.lf-post__msg--ghost i:last-child { width: 55%; }

/* ---------- Stat (dofollow) ---------- */
.lf-card--stat > .lf-card__ico {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.lf-card--stat > .lf-card__ico svg {
    width: 26px;
    height: 26px;
}

.lf-stat {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 56px;
}

.lf-stat > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lf-stat__ring {
    position: relative;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 112px;
    height: 112px;
}

.lf-stat__ring svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.lf-stat__ring circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 10;
}

.lf-stat__ring .lf-stat__arc {
    stroke: #5EEBB0;
    stroke-linecap: round;
    stroke-dasharray: 0 100;
    transition: stroke-dasharray 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lf.is-in .lf-stat__arc {
    stroke-dasharray: var(--p) 100;
}

.lf-stat__ring b {
    position: relative;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lf-stat__ring small {
    font-size: 18px;
    color: #5EEBB0;
}

.lf-stat__note {
    margin-top: auto !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- CTA bar ---------- */
.lf-cta {
    grid-column: span 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: flex-start;
    gap: 18px 20px;
    background:
        radial-gradient(90% 120% at 100% 100%, rgba(0, 211, 122, 0.14), transparent 60%),
        var(--dark-grey, #F6F7F9);
    color: var(--black);
    text-decoration: none;
}

.lf-cta__sheet {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 52px;
    height: 52px;
    padding: 9px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #E3F7EC;
}

.lf-cta__sheet i {
    border-radius: 2px;
    background: #34A853;
    opacity: 0.35;
}

.lf-cta__sheet i:nth-child(-n+3) { opacity: 1; }

.lf-cta__txt {
    display: flex;
    flex: 1 1 calc(100% - 80px);
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lf-cta__txt b {
    font-size: 18px;
    font-weight: 600;
}

.lf-cta__txt small {
    font-size: 15px;
    color: #5A5F70;
}

.lf-cta__btn {
    display: inline-flex;
    box-sizing: border-box;
    margin-left: 72px;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 14px;
    background: var(--green);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.25s, box-shadow 0.25s;
}

.lf-cta__btn svg {
    transition: transform 0.25s;
}

@media (hover: hover) {
    .lf-cta:hover {
        border-color: rgba(0, 211, 122, 0.45);
    }

    .lf-cta:hover .lf-cta__btn {
        box-shadow: 0 12px 24px -12px rgba(0, 170, 100, 0.7);
    }

    .lf-cta:hover .lf-cta__btn svg {
        transform: translate(2px, -2px);
    }
}

/* ---------- Reveal ---------- */
.lf--anim:not(.is-in) .lf-card {
    opacity: 0;
    transform: translateY(18px);
}

.lf:not(.lf--anim) .lf-stat__arc {
    stroke-dasharray: var(--p) 100;
}

.lf.is-in .lf-card {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.lf.is-in .lf-card:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.lf.is-in .lf-card:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.lf.is-in .lf-card:nth-child(4) { transition-delay: 0.22s, 0.22s, 0s, 0s; }
.lf.is-in .lf-card:nth-child(5) { transition-delay: 0.28s, 0.28s, 0s, 0s; }
.lf.is-in .lf-card:nth-child(6) { transition-delay: 0.34s, 0.34s, 0s, 0s; }
.lf.is-in .lf-card:nth-child(7) { transition-delay: 0.4s, 0.4s, 0s, 0s; }

@media (hover: hover) {
    .lf.is-in .lf-card:hover {
        transform: translateY(-4px);
        transition-delay: 0s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lf--anim:not(.is-in) .lf-card,
    .lf.is-in .lf-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lf-post__link {
        animation: none;
    }

    .lf .lf-stat__arc {
        stroke-dasharray: var(--p) 100;
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .lf__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lf-card--hero,
    .lf-card--stat {
        grid-column: span 2;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .lf__head {
        margin-bottom: 28px;
    }

    .lf__grid {
        gap: 14px;
    }

    .lf-card {
        padding: 22px;
        border-radius: 24px;
    }

    .lf-card__title {
        font-size: 20px;
    }

    .lf-cta__btn {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
}

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

    .lf-card--hero,
    .lf-card--stat,
    .lf-cta {
        grid-column: auto;
    }

    .lf-card__top {
        flex-direction: column;
        gap: 14px;
    }

    .lf-card__ico {
        width: 54px;
        height: 54px;
    }

    .lf-post {
        padding: 14px;
    }

    .lf-post__meta {
        display: none;
    }

    .lf-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-right: 0;
    }

    .lf-stat__ring {
        width: 96px;
        height: 96px;
    }

    .lf-card--stat > .lf-card__ico {
        top: 22px;
        right: 22px;
    }

    .lf-card--sm {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        row-gap: 4px;
        align-items: center;
    }

    .lf-card--sm .lf-card__ico {
        grid-row: span 2;
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .lf-card--sm .lf-card__ico svg {
        width: 28px;
        height: 28px;
    }

    .lf-card--sm .lf-card__title {
        margin: 0;
        font-size: 18px;
    }

    .lf-card--sm .lf-card__text {
        font-size: 15px;
    }
}
