/**
 * CardLab — neon glass 3D cards (inspired by codepen.io/Kan3an/pen/YPpyVWd)
 */

.hpb-cardlab {
    --hpb-cardlab-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hpb-cardlab-bounce: cubic-bezier(0.4, 2.08, 0.55, 1);
}

/* ─── Grid ─── */

.hpb-cardlab-grid .hpb-grid__inner,
.hpb-cardlab-grid .hpb-preset-grid__inner {
    gap: clamp(14px, 2.4vw, 22px);
}

.hpb-cardlab-grid .hpb-grid__item,
.hpb-cardlab-grid .hpb-preset-grid__item {
    perspective: 1000px;
    perspective-origin: 50% 50%;
    filter: drop-shadow(0 22px 40px rgba(0, 40, 30, 0.32));
}

.hpb-cardlab-grid .hpb-preset-carousel__card {
    position: relative;
    min-height: 280px;
    overflow: visible;
    border: none !important;
    border-radius: 32px;
    background: var(--hpb-cl-grad, linear-gradient(135deg, #00ffd6 0%, #08e260 100%));
    transform-style: preserve-3d;
    transition:
        transform 0.55s var(--hpb-cardlab-ease),
        box-shadow 0.55s ease;
    box-shadow:
        rgba(5, 71, 17, 0) 40px 50px 25px -40px,
        rgba(5, 71, 17, 0.22) 0 22px 28px -6px;
}

.hpb-cardlab-grid .hpb-grid__item:hover .hpb-preset-carousel__card,
.hpb-cardlab-grid .hpb-preset-grid__item:hover .hpb-preset-carousel__card {
    transform: rotate3d(1, 1, 0, 22deg);
    box-shadow:
        rgba(5, 71, 17, 0.38) 24px 42px 26px -34px,
        rgba(0, 255, 214, 0.14) 0 0 56px -8px,
        rgba(5, 71, 17, 0.12) 0 22px 32px 0;
}

.hpb-cardlab-grid .hpb-preset-carousel__card::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 0;
    border-radius: 26px;
    border-top-right-radius: 58%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    transform: translate3d(0, 0, 18px);
    transition: opacity 0.45s ease;
}

.hpb-cardlab-grid .hpb-preset-carousel__card-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    box-sizing: border-box;
}

.hpb-cardlab-grid .hpb-preset-carousel__image-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hpb-cardlab-grid .hpb-preset-carousel__image-wrap::after {
    content: "";
    position: absolute;
    top: -18px;
    inset-inline-end: -12px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--hpb-cl-orbit, rgba(0, 249, 203, 0.22));
    filter: blur(1px);
    pointer-events: none;
    z-index: 0;
}

.hpb-cardlab-grid .hpb-preset-carousel__image {
    position: relative;
    z-index: 1;
    transition: transform 0.5s var(--hpb-cardlab-ease);
}

.hpb-cardlab-grid .hpb-grid__item:hover .hpb-preset-carousel__image,
.hpb-cardlab-grid .hpb-preset-grid__item:hover .hpb-preset-carousel__image {
    transform: scale(1.04);
}

.hpb-cardlab-grid .hpb-preset-carousel__body {
    position: relative;
    z-index: 2;
    padding: 0 4px 4px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hpb-cardlab-grid .hpb-preset-carousel__title {
    color: var(--hpb-cl-title, #00894d) !important;
    font-weight: 800 !important;
}

.hpb-cardlab-grid .hpb-preset-carousel__caption {
    color: var(--hpb-cl-body, rgba(0, 137, 78, 0.82)) !important;
}

.hpb-cardlab-grid .hpb-preset-carousel__cta {
    align-self: flex-start;
    margin-top: auto;
    background: var(--hpb-cl-cta, #00c37b) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        transform 0.35s var(--hpb-cardlab-bounce),
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.hpb-cardlab-grid .hpb-preset-carousel__cta:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    filter: brightness(1.06);
}

.hpb-cardlab-grid .hpb-preset-carousel__badge {
    z-index: 3;
    backdrop-filter: blur(6px);
}

/* Color themes (6 variants, cycle) */

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+1),
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+1) {
    --hpb-cl-grad: linear-gradient(135deg, #00ffd6 0%, #08e260 100%);
    --hpb-cl-title: #00894d;
    --hpb-cl-body: rgba(0, 137, 78, 0.82);
    --hpb-cl-cta: #00c37b;
    --hpb-cl-orbit: rgba(0, 249, 203, 0.22);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+2),
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+2) {
    --hpb-cl-grad: linear-gradient(145deg, #a855f7 0%, #6366f1 40%, #ec4899 100%);
    --hpb-cl-title: #3b0764;
    --hpb-cl-body: rgba(59, 7, 100, 0.85);
    --hpb-cl-cta: #7c3aed;
    --hpb-cl-orbit: rgba(216, 180, 254, 0.35);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+3),
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+3) {
    --hpb-cl-grad: linear-gradient(135deg, #fbbf24 0%, #f97316 45%, #dc2626 100%);
    --hpb-cl-title: #7c2d12;
    --hpb-cl-body: rgba(124, 45, 18, 0.88);
    --hpb-cl-cta: #c2410c;
    --hpb-cl-orbit: rgba(254, 243, 199, 0.4);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+4),
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+4) {
    --hpb-cl-grad: linear-gradient(155deg, #22d3ee 0%, #0284c7 50%, #1e3a8a 100%);
    --hpb-cl-title: #0c4a6e;
    --hpb-cl-body: rgba(12, 74, 110, 0.88);
    --hpb-cl-cta: #0369a1;
    --hpb-cl-orbit: rgba(125, 211, 252, 0.35);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+5),
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+5) {
    --hpb-cl-grad: conic-gradient(from 200deg at 65% 35%, #22d3ee, #818cf8, #f472b6, #facc15, #22d3ee);
    --hpb-cl-title: #0f172a;
    --hpb-cl-body: rgba(15, 23, 42, 0.88);
    --hpb-cl-cta: #4338ca;
    --hpb-cl-orbit: rgba(255, 255, 255, 0.35);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+6),
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+6) {
    --hpb-cl-grad: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --hpb-cl-title: #5eead4;
    --hpb-cl-body: rgba(203, 213, 225, 0.82);
    --hpb-cl-cta: #c084fc;
    --hpb-cl-orbit: rgba(167, 139, 250, 0.25);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+6) .hpb-preset-carousel__card::before,
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+6) .hpb-preset-carousel__card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.55) 100%);
    border-color: rgba(148, 163, 184, 0.25);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+3) .hpb-preset-carousel__card,
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+3) .hpb-preset-carousel__card {
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.hpb-cardlab-grid .hpb-grid__item:nth-child(6n+4) .hpb-preset-carousel__card,
.hpb-cardlab-grid .hpb-preset-grid__item:nth-child(6n+4) .hpb-preset-carousel__card {
    border-radius: 40px;
}

/* ─── CTA ─── */

.hpb-cardlab-cta {
    position: relative;
    overflow: hidden;
}

.hpb-cardlab-cta::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 214, 0.16), transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(192, 132, 252, 0.14), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.hpb-cardlab-cta .hpb-preset-cta__inner,
.hpb-cardlab-cta .hpb-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 40px) !important;
    border-radius: 28px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 27, 75, 0.58) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.12),
        0 28px 60px rgba(0, 0, 0, 0.45);
    transform-style: preserve-3d;
    transition:
        transform 0.55s var(--hpb-cardlab-ease),
        box-shadow 0.55s ease,
        border-color 0.35s ease;
}

.hpb-cardlab-cta:hover .hpb-preset-cta__inner,
.hpb-cardlab-cta:hover .hpb-cta__inner {
    transform: rotate3d(0.4, 1, 0, 6deg) translateY(-4px);
    border-color: rgba(0, 255, 214, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 255, 214, 0.18),
        0 0 56px -8px rgba(0, 255, 214, 0.22),
        0 32px 64px rgba(0, 0, 0, 0.5);
}

.hpb-cardlab-cta .hpb-preset-cta__headline,
.hpb-cardlab-cta .hpb-cta__headline {
    text-shadow: 0 0 24px rgba(94, 234, 212, 0.25);
}

.hpb-cardlab-cta .hpb-preset-cta__button,
.hpb-cardlab-cta .hpb-cta__button,
.hpb-cardlab-cta .hpb-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #00ffd6 0%, #08e260 100%) !important;
    color: #042f2e !important;
    border: none !important;
    box-shadow: 0 10px 28px rgba(0, 255, 214, 0.22);
    transition:
        transform 0.35s var(--hpb-cardlab-bounce),
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.hpb-cardlab-cta .hpb-preset-cta__button:hover,
.hpb-cardlab-cta .hpb-cta__button:hover,
.hpb-cardlab-cta .hpb-cta__btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 36px rgba(0, 255, 214, 0.38);
    filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .hpb-cardlab-grid .hpb-preset-carousel__card,
    .hpb-cardlab-grid .hpb-preset-carousel__image,
    .hpb-cardlab-grid .hpb-preset-carousel__cta,
    .hpb-cardlab-cta .hpb-preset-cta__inner,
    .hpb-cardlab-cta .hpb-cta__inner,
    .hpb-cardlab-cta .hpb-preset-cta__button,
    .hpb-cardlab-cta .hpb-cta__button,
    .hpb-cl-depth-card,
    .hpb-cl-depth-stage,
    .hpb-cl-depth-circle {
        transition: none !important;
    }

    .hpb-cardlab-grid .hpb-grid__item:hover .hpb-preset-carousel__card,
    .hpb-cardlab-grid .hpb-preset-grid__item:hover .hpb-preset-carousel__card,
    .hpb-cardlab-cta:hover .hpb-preset-cta__inner,
    .hpb-cardlab-cta:hover .hpb-cta__inner,
    .hpb-cl-depth-parent:hover .hpb-cl-depth-stage,
    .hpb-cl-depth-parent:hover .hpb-cl-depth-circle:nth-child(n),
    .hpb-cl-depth-parent:hover .hpb-cl-depth-glass,
    .hpb-cl-depth-parent:hover .hpb-cl-depth-content {
        transform: none;
    }
}

/* ─── Depth cards (CodePen Kan3an YPpyVWd) ─── */

.hpb-cl-depth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 22px);
    align-items: stretch;
    overflow: visible;
}

.hpb-cl-depth-parent {
    --hpb-cl-glass-edge: rgba(255, 255, 255, 0.85);
    width: 100%;
    min-height: 300px;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    overflow: visible;
}

.hpb-cl-depth-stage {
    position: relative;
    height: 100%;
    min-height: 300px;
    transform-style: preserve-3d;
    transform: none;
    transition: transform 0.55s var(--hpb-cardlab-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-stage {
    transform: rotate3d(1, 1, 0, 28deg);
}

.hpb-cl-depth-card {
    position: relative;
    height: 100%;
    min-height: 300px;
    border-radius: 36px;
    background: var(--hpb-cl-grad, linear-gradient(135deg, #00ffd6 0%, #08e260 100%));
    transform-style: preserve-3d;
    overflow: visible;
    box-shadow:
        rgba(5, 71, 17, 0) 40px 50px 25px -40px,
        rgba(5, 71, 17, 0.28) 0 25px 25px -5px;
    transition: box-shadow 0.55s ease;
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-card {
    box-shadow:
        rgba(5, 71, 17, 0.45) 28px 48px 28px -38px,
        rgba(0, 255, 214, 0.12) 0 0 60px -10px,
        rgba(5, 71, 17, 0.15) 0 25px 35px 0;
}

.hpb-cl-depth-glass {
    transform-style: preserve-3d;
    position: absolute;
    inset: 8px;
    border-radius: 32px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.82) 100%);
    transform: translate3d(0, 0, 0);
    border-inline-start: 1px solid var(--hpb-cl-glass-edge);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    transition: transform 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-glass {
    transform: translate3d(0, 0, 25px);
}

.hpb-cl-depth-logo {
    position: absolute;
    z-index: 5;
    top: 2px;
    inset-inline-end: -18px;
    inset-inline-start: auto;
    left: 10px;
    right: auto;
    width: 190px;
    height: 190px;
    transform-style: preserve-3d;
    pointer-events: none;
}

.hpb-cl-depth-circle {
    display: block;
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    inset-inline-end: 0;
    background: var(--hpb-cl-orbit, rgba(0, 249, 203, 0.22));
    box-shadow: rgba(100, 100, 111, 0.25) -10px 10px 24px 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.5s ease-in-out;
}

.hpb-cl-depth-circle:nth-child(1) {
    width: 170px;
    transform: translate3d(0, 0, 0);
    top: 8px;
    inset-inline-end: 8px;
}

.hpb-cl-depth-circle:nth-child(2) {
    width: 140px;
    transform: translate3d(0, 0, 0);
    top: 10px;
    inset-inline-end: 10px;
    backdrop-filter: blur(4px);
    transition-delay: 0.05s;
}

.hpb-cl-depth-circle:nth-child(3) {
    width: 110px;
    transform: translate3d(0, 0, 0);
    top: 17px;
    inset-inline-end: 17px;
    transition-delay: 0.1s;
}

.hpb-cl-depth-circle:nth-child(4) {
    width: 80px;
    transform: translate3d(0, 0, 0);
    top: 23px;
    inset-inline-end: 23px;
    transition-delay: 0.15s;
}

.hpb-cl-depth-circle--icon {
    width: 50px;
    transform: translate3d(0, 0, 0);
    top: 30px;
    inset-inline-end: 30px;
    display: grid;
    place-content: center;
    transition-delay: 0.2s;
}

.hpb-cl-depth-circle--icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.hpb-cl-depth-circle--icon path {
    fill: currentColor;
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-circle:nth-child(1) {
    transform: translate3d(0, 0, 20px);
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-circle:nth-child(2) {
    transform: translate3d(0, 0, 60px);
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-circle:nth-child(3) {
    transform: translate3d(0, 0, 80px);
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-circle:nth-child(4) {
    transform: translate3d(0, 0, 100px);
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-circle--icon {
    transform: translate3d(0, 0, 120px);
}

.hpb-cl-depth-content {
    box-sizing: border-box;
    max-width: 100%;
    padding: 30px 30px 0 210px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.5s ease-in-out;
    position: relative;
    z-index: 3;
}

.hpb-cl-depth-parent:hover .hpb-cl-depth-content {
    transform: translate3d(0, 0, 26px);
}

.hpb-cl-depth-title {
    display: block;
    color: var(--hpb-cl-title, #00894d);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.hpb-cl-depth-text {
    display: block;
    margin-top: 0.85rem;
    color: var(--hpb-cl-body, rgba(0, 137, 78, 0.82));
    font-size: 0.9rem;
    line-height: 1.65;
    font-weight: 600;
}

/* Themes */
.hpb-cl-depth-parent--mint {
    --hpb-cl-grad: linear-gradient(135deg, rgb(0, 255, 214) 0%, rgb(8, 226, 96) 100%);
    --hpb-cl-title: #00894d;
    --hpb-cl-body: rgba(0, 137, 78, 0.82);
    --hpb-cl-orbit: rgba(0, 249, 203, 0.22);
}

.hpb-cl-depth-parent--violet {
    --hpb-cl-grad: linear-gradient(145deg, #a855f7 0%, #6366f1 40%, #ec4899 100%);
    --hpb-cl-title: #3b0764;
    --hpb-cl-body: rgba(59, 7, 100, 0.85);
    --hpb-cl-orbit: rgba(216, 180, 254, 0.35);
}

.hpb-cl-depth-parent--violet-cut {
    --hpb-cl-grad: linear-gradient(145deg, #a855f7 0%, #6366f1 40%, #ec4899 100%);
    --hpb-cl-title: #3b0764;
    --hpb-cl-body: rgba(59, 7, 100, 0.85);
    --hpb-cl-orbit: rgba(216, 180, 254, 0.35);
}

.hpb-cl-depth-parent--violet-cut .hpb-cl-depth-card {
    border-radius: 36px;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.hpb-cl-depth-parent--violet-cut .hpb-cl-depth-glass {
    border-radius: 32px !important;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.hpb-cl-depth-parent--solar {
    --hpb-cl-grad: linear-gradient(135deg, #fbbf24 0%, #f97316 45%, #dc2626 100%);
    --hpb-cl-title: #7c2d12;
    --hpb-cl-body: rgba(124, 45, 18, 0.88);
    --hpb-cl-orbit: rgba(254, 243, 199, 0.4);
}

.hpb-cl-depth-parent--ocean {
    --hpb-cl-grad: linear-gradient(155deg, #22d3ee 0%, #0284c7 50%, #1e3a8a 100%);
    --hpb-cl-title: #0c4a6e;
    --hpb-cl-body: rgba(12, 74, 110, 0.88);
    --hpb-cl-orbit: rgba(125, 211, 252, 0.35);
}

@media (max-width: 599px) {
    .hpb-cl-depth-grid {
        grid-template-columns: 1fr;
    }

    .hpb-cl-depth-parent {
        max-width: 400px;
        margin-inline: auto;
    }
}

