/* =============================================================
   VKARD How It Works V2
   Scoped recreation of src/components/how-it-works.tsx.
   ============================================================= */

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

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

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

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

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

.vkhiw2 {
    --vkhiw2-start: #01013c;
    --vkhiw2-mid: #020258;
    --vkhiw2-end: #01013c;
    position: relative;
    overflow: hidden;
    padding: 96px 24px;
    background-color: #1a1a36;
    color: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.vkhiw2__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--vkhiw2-start) 0%, var(--vkhiw2-mid) 50%, var(--vkhiw2-end) 100%);
    pointer-events: none;
}

.vkhiw2__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
}

.vkhiw2__header {
    margin: 0 0 64px;
    text-align: center;
}

.vkhiw2__eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 16px;
    border-radius: 999px;
    color: #7dd3fc;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    backdrop-filter: blur(8px);
}

.vkhiw2__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.vkhiw2__subtitle {
    max-width: 672px;
    margin: 0 auto;
    color: rgba(186, 230, 253, 0.7);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

.vkhiw2__grid {
    --vkhiw2-columns: 4;
    display: grid;
    grid-template-columns: repeat(var(--vkhiw2-columns), minmax(0, 1fr));
    gap: 16px;
}

.vkhiw2__card {
    --radius: var(--vkhiw2-radius, 12);
    --border: 3;
    --size: 230;
    --outer: 0;
    --backdrop: var(--vkhiw2-card-backdrop, rgba(153, 153, 153, 0.12));
    --backup-border: var(--backdrop);
    --inner-edge-opacity: 0.09;
    --border-spot-opacity: 0.68;
    --border-light-opacity: 0.44;
    --border-size: calc(var(--border, 2) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base, 220) + (var(--xp, 0) * var(--spread, 200)));
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: var(--border-size) solid var(--backup-border);
    border-radius: calc(var(--radius) * 1px);
    background-color: var(--backdrop);
    background-image: none;
    box-shadow: none;
    touch-action: none;
    transition: border-color 0.2s ease;
}

.vkhiw2__card:hover,
.vkhiw2__card:focus-within {
    --outer: 0.32;
    --inner-edge-opacity: 0.12;
    --border-spot-opacity: 0.88;
    --border-light-opacity: 0.58;
}

.vkhiw2__card::before,
.vkhiw2__card::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    padding: var(--border-size);
    border-radius: inherit;
    background-attachment: fixed;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    opacity: 1;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.vkhiw2__card::before {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 50% / var(--border-spot-opacity)),
        transparent 100%
    );
    filter: brightness(1.42);
}

.vkhiw2__card::after {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
        hsl(0 100% 100% / var(--border-light-opacity)),
        transparent 100%
    );
}

.vkhiw2__glow-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.82) calc(var(--spotlight-size) * 0.82) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 68% / var(--inner-edge-opacity)),
        transparent 68%
    );
    background-attachment: fixed;
    background-position: 50% 50%;
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    pointer-events: none;
}

.vkhiw2__glow-layer::before {
    content: none;
}

.vkhiw2__card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    min-height: 298px;
    flex-direction: column;
    padding: 24px;
}

.vkhiw2__icon-box {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    border-radius: 8px;
    background: rgba(3, 169, 244, 0.2);
}

.vkhiw2__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: #03a9f4;
    line-height: 0;
}

.vkhiw2__icon i,
.vkhiw2__icon svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    fill: currentColor;
}

.vkhiw2__step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.vkhiw2__step-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(3, 169, 244, 0.1);
    color: #03a9f4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.vkhiw2__card-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.vkhiw2__card-desc {
    margin: 0;
    color: rgba(186, 230, 253, 0.6);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.625;
}

.vkhiw2__cta {
    margin-top: 48px;
    text-align: center;
}

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

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

.vkhiw2__cta-button:active {
    transform: translateY(1px);
}

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

.vkhiw2__cta-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(--vkhiw2-gradient-angle) + 45deg), black, transparent 10% 90%, black);
    -webkit-mask-image: conic-gradient(from calc(var(--vkhiw2-gradient-angle) + 45deg), black, transparent 10% 90%, black);
}

.vkhiw2__cta-button::after {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--vkhiw2-cta-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: vkhiw2-shimmer 7.5s linear infinite paused;
}

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

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

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

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

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

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

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

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

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

@media (max-width: 1024px) {
    .vkhiw2__grid {
        --vkhiw2-columns: 2;
    }
}

@media (max-width: 767px) {
    .vkhiw2 {
        padding: 72px 24px;
    }

    .vkhiw2__header {
        margin-bottom: 48px;
    }

    .vkhiw2__title {
        font-size: 30px;
    }

    .vkhiw2__grid {
        --vkhiw2-columns: 1;
    }

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

@media (prefers-reduced-motion: reduce) {
    .vkhiw2__cta-button,
    .vkhiw2__cta-button::after,
    .vkhiw2__cta-content::before {
        animation: none !important;
        transition: none !important;
    }
}
