/* =============================================================
   VKARD Pro Section Widget
   Scoped recreation of the React lamp + beams section.
   ============================================================= */

@property --vkpro-gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --vkpro-gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --vkpro-gradient-percent {
    syntax: "<percentage>";
    initial-value: 5%;
    inherits: false;
}

@property --vkpro-gradient-shine {
    syntax: "<color>";
    initial-value: white;
    inherits: false;
}

.vkpro,
.vkpro * {
    box-sizing: border-box;
}

.vkpro {
    --vkpro-bg: #01013c;
    --vkpro-accent: #03a9f4;
    position: relative;
    z-index: 0;
    display: flex;
    width: 100%;
    min-height: 700px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: var(--vkpro-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.vkpro__lamp {
    position: relative;
    isolation: isolate;
    z-index: 0;
    display: flex;
    width: 100%;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    transform: scaleY(1.25);
}

.vkpro__cone {
    position: absolute;
    inset: auto;
    width: 30rem;
    max-width: 85vw;
    height: 14rem;
    color: #fff;
    overflow: visible;
    animation: vkpro-cone-enter 0.8s 0.3s ease-in-out both;
}

.vkpro__cone--left {
    right: 50%;
    background-image: conic-gradient(from 70deg at center top, var(--vkpro-accent), transparent, transparent);
}

.vkpro__cone--right {
    left: 50%;
    background-image: conic-gradient(from 290deg at center top, transparent, transparent, var(--vkpro-accent));
}

.vkpro__cone span,
.vkpro__cone i {
    position: absolute;
    bottom: 0;
    z-index: 20;
    display: block;
    background: var(--vkpro-bg);
}

.vkpro__cone span {
    width: 100%;
    height: 10rem;
    mask-image: linear-gradient(to top, white, transparent);
    -webkit-mask-image: linear-gradient(to top, white, transparent);
}

.vkpro__cone--left span {
    left: 0;
}

.vkpro__cone--right span {
    right: 0;
}

.vkpro__cone i {
    width: 10rem;
    height: 100%;
}

.vkpro__cone--left i {
    left: 0;
    mask-image: linear-gradient(to right, white, transparent);
    -webkit-mask-image: linear-gradient(to right, white, transparent);
}

.vkpro__cone--right i {
    right: 0;
    mask-image: linear-gradient(to left, white, transparent);
    -webkit-mask-image: linear-gradient(to left, white, transparent);
}

.vkpro__wash {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 12rem;
    transform: translateY(3rem) scaleX(1.5);
    background: var(--vkpro-bg);
    filter: blur(32px);
}

.vkpro__blur {
    position: absolute;
    top: 50%;
    z-index: 50;
    width: 100%;
    height: 12rem;
    background: transparent;
    opacity: 0.1;
    backdrop-filter: blur(12px);
}

.vkpro__orb {
    position: absolute;
    inset: auto;
    z-index: 50;
    width: 28rem;
    max-width: 80vw;
    height: 9rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--vkpro-accent);
    opacity: 0.5;
    filter: blur(48px);
}

.vkpro__core {
    position: absolute;
    inset: auto;
    z-index: 30;
    width: 16rem;
    height: 9rem;
    transform: translateY(-6rem);
    border-radius: 999px;
    background: var(--vkpro-accent);
    filter: blur(32px);
    animation: vkpro-core-enter 0.8s 0.3s ease-in-out both;
}

.vkpro__line {
    position: absolute;
    inset: auto;
    z-index: 50;
    width: 30rem;
    max-width: 85vw;
    height: 2px;
    transform: translateY(-7rem);
    background: var(--vkpro-accent);
    animation: vkpro-line-enter 0.8s 0.3s ease-in-out both;
}

.vkpro__cap {
    position: absolute;
    inset: auto;
    z-index: 40;
    width: 100%;
    height: 11rem;
    transform: translateY(-12.5rem);
    background: var(--vkpro-bg);
}

.vkpro__beams {
    position: absolute;
    inset: 0;
    z-index: 45;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vkpro__beams svg {
    width: 100%;
    height: 100%;
}

.vkpro__content {
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-240px);
}

.vkpro__content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    text-align: center;
    animation: vkpro-content-enter 0.8s 0.3s ease-in-out both;
}

.vkpro__badge {
    display: inline-block;
    margin: 0 0 32px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--vkpro-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    backdrop-filter: blur(8px);
}

.vkpro__logo-wrap {
    width: 450px;
    max-width: min(450px, calc(100vw - 48px));
    margin: 0 0 24px;
}

.vkpro__logo {
    --vkpro-logo-glow: 0.3;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(3, 169, 244, var(--vkpro-logo-glow)));
    mask-image: linear-gradient(to bottom, white 40%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-mask-image: linear-gradient(to bottom, white 40%, rgba(255, 255, 255, 0.5) 100%);
}

.vkpro__subtitle {
    max-width: 576px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.vkpro__button {
    --vkpro-button-bg: #03a9f4;
    --vkpro-button-subtle: #0292d4;
    --vkpro-button-highlight: #4fc3f7;
    --vkpro-button-highlight-subtle: #81d4fa;
    --vkpro-gradient-percent: 5%;
    --vkpro-gradient-angle-offset: 0deg;
    --vkpro-gradient-shine: #ffffff;
    isolation: isolate;
    position: relative;
    display: inline-flex;
    overflow: hidden;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 1px solid transparent;
    border-radius: 360px;
    color: #fff;
    background:
        linear-gradient(var(--vkpro-button-bg), var(--vkpro-button-bg)) padding-box,
        conic-gradient(
            from calc(var(--vkpro-gradient-angle) - var(--vkpro-gradient-angle-offset)),
            transparent,
            var(--vkpro-button-highlight) var(--vkpro-gradient-percent),
            var(--vkpro-gradient-shine) calc(var(--vkpro-gradient-percent) * 2),
            var(--vkpro-button-highlight) calc(var(--vkpro-gradient-percent) * 3),
            transparent calc(var(--vkpro-gradient-percent) * 4)
        ) border-box;
    box-shadow: inset 0 0 0 1px var(--vkpro-button-subtle);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    outline-offset: 4px;
    text-decoration: none;
    transition: --vkpro-gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1),
        --vkpro-gradient-percent 800ms cubic-bezier(0.25, 1, 0.5, 1),
        --vkpro-gradient-shine 800ms cubic-bezier(0.25, 1, 0.5, 1);
    animation: vkpro-gradient-angle 3s linear infinite;
}

.vkpro__button:hover,
.vkpro__button:focus-visible {
    --vkpro-gradient-percent: 20%;
    --vkpro-gradient-angle-offset: 95deg;
    --vkpro-gradient-shine: var(--vkpro-button-highlight-subtle);
    color: #fff;
    text-decoration: none;
}

.vkpro__button:active {
    transform: translateY(1px);
}

.vkpro__button::before,
.vkpro__button::after,
.vkpro__button-content::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    z-index: -1;
    translate: -50% -50%;
}

.vkpro__button::before {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: inherit;
    background: radial-gradient(circle at 2px 2px, white 0.5px, transparent 0) padding-box;
    background-repeat: space;
    background-size: 4px 4px;
    opacity: 0.4;
    mask-image: conic-gradient(from calc(var(--vkpro-gradient-angle) + 45deg), black, transparent 10% 90%, black);
    -webkit-mask-image: conic-gradient(from calc(var(--vkpro-gradient-angle) + 45deg), black, transparent 10% 90%, black);
}

.vkpro__button::after {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--vkpro-button-highlight), transparent);
    opacity: 0.6;
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    animation: vkpro-shimmer 7.5s linear infinite paused;
}

.vkpro__button:hover::after,
.vkpro__button:focus-visible::after {
    animation-play-state: running;
}

.vkpro__button-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.vkpro__button-content::before {
    width: calc(100% + 1rem);
    height: calc(100% + 1rem);
    box-shadow: inset 0 -1ex 2rem 4px var(--vkpro-button-highlight);
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1);
    animation: vkpro-breathe 4.5s linear infinite;
}

.vkpro__button:hover .vkpro__button-content::before,
.vkpro__button:focus-visible .vkpro__button-content::before {
    opacity: 1;
}

.vkpro__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.vkpro__button-icon svg,
.vkpro__button-icon i {
    width: 1em;
    height: 1em;
    color: currentColor;
    fill: currentColor;
}

@keyframes vkpro-content-enter {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vkpro-cone-enter {
    from {
        opacity: 0.5;
        width: 15rem;
    }
    to {
        opacity: 1;
        width: 30rem;
    }
}

@keyframes vkpro-core-enter {
    from {
        width: 8rem;
    }
    to {
        width: 16rem;
    }
}

@keyframes vkpro-line-enter {
    from {
        width: 15rem;
    }
    to {
        width: 30rem;
    }
}

@keyframes vkpro-gradient-angle {
    to {
        --vkpro-gradient-angle: 360deg;
    }
}

@keyframes vkpro-shimmer {
    to {
        rotate: 360deg;
    }
}

@keyframes vkpro-breathe {
    50% {
        scale: 1.2;
    }
}

@media (max-width: 767px) {
    .vkpro {
        min-height: 600px;
    }

    .vkpro__content {
        transform: translateY(-210px);
    }

    .vkpro__logo-wrap {
        width: 320px;
    }

    .vkpro__subtitle {
        font-size: 18px;
    }

    .vkpro__button {
        max-width: 100%;
        padding: 15px 24px;
    }

    .vkpro__button-content {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vkpro__cone,
    .vkpro__core,
    .vkpro__line,
    .vkpro__content-inner,
    .vkpro__button,
    .vkpro__button::after,
    .vkpro__button-content::before {
        animation: none !important;
        transition: none !important;
    }

    .vkpro__beams {
        display: none;
    }
}
