/* arcadia-pricing.css */
/* Assumes your site already defines the provided :root variables.
   If not, paste your :root block above this file. */

.apxPricing__section {
    position: relative;
    isolation: isolate;
    /* intentionally NOT styling html/body/main */
}

.apxPricing__wrap {
    max-width: var(--max);
    margin-inline: auto;
    padding: clamp(18px, 3vw, 34px);
}

.apxPricing__gridVeil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .85;
    background:
        /* soft corner glow (static) */
        radial-gradient(1000px 520px at 18% 6%, rgba(42, 169, 255, .14), transparent 58%),
        radial-gradient(900px 560px at 82% 18%, rgba(255, 216, 77, .08), transparent 60%),
        /* subtle grid */
        linear-gradient(transparent 0 96%, rgba(234, 242, 255, .055) 96% 100%),
        linear-gradient(90deg, transparent 0 96%, rgba(234, 242, 255, .045) 96% 100%);
    background-size: auto, auto, 44px 44px, 44px 44px;
    mask-image: radial-gradient(closest-side at 50% 10%, rgba(0, 0, 0, 1), rgba(0, 0, 0, .36) 55%, rgba(0, 0, 0, 0) 82%);
}

.apxPricing__header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: clamp(10px, 2vw, 18px) 0 clamp(14px, 2.5vw, 22px);
}

.apxPricing__kicker {
    font-family: Oxanium, Inter, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    color: rgba(118, 215, 255, .92);
    margin: 0 0 10px 0;
}

.apxPricing__title {
    margin: 0;
    font-family: "Oxanium", sans-serif;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.06;
    font-size: clamp(22px, 3.2vw, 40px);
    text-shadow: 0 0 22px rgba(42, 169, 255, .10);
}

.apxPricing__desc {
    margin: 0;
    max-width: 78ch;
    color: var(--muted);
    font-size: clamp(13px, 1.25vw, 16px);
    line-height: 1.55;
}

.apxPricing__stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(14px, 2.2vw, 18px);
    padding: clamp(10px, 2vw, 18px) 0 clamp(24px, 3.5vw, 44px);
}

/* ======= Cards ======= */
.apxPanelCard {
    position: relative;
    overflow: clip;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 16, 32, .66), rgba(10, 16, 32, .82));
    border: 1px solid rgba(140, 200, 255, .16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    isolation: isolate;

    transform: translateY(18px);
    opacity: 0;
    transition: transform .8s var(--ease), opacity .8s var(--ease);
}

.apxPanelCard.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.apxPanelCard::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 240px at 18% -10%, rgba(42, 169, 255, .18), transparent 55%),
        radial-gradient(700px 260px at 78% 0%, rgba(255, 216, 77, .10), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 25%);
    opacity: .9;
    z-index: -2;
}

.apxPanelCard::after {
    content: "";
    position: absolute;
    inset: -30% -20%;
    background:
        repeating-linear-gradient(90deg,
            rgba(42, 169, 255, .00) 0 16px,
            rgba(42, 169, 255, .085) 16px 17px,
            rgba(255, 216, 77, .00) 17px 34px),
        repeating-linear-gradient(180deg,
            rgba(234, 242, 255, .00) 0 18px,
            rgba(234, 242, 255, .05) 18px 19px);
    transform: rotate(12deg) translateY(-10%);
    opacity: .22;
    mix-blend-mode: screen;
    animation: apxCircuitShimmer 6.2s linear infinite;
    z-index: -1;
    filter: blur(.2px);
}

@keyframes apxCircuitShimmer {
    0% {
        transform: rotate(12deg) translate3d(-4%, -10%, 0);
    }

    50% {
        transform: rotate(12deg) translate3d(4%, 2%, 0);
    }

    100% {
        transform: rotate(12deg) translate3d(-4%, -10%, 0);
    }
}

.apxPanelCard__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(140, 200, 255, .14);
}

.apxPanelCard__title {
    margin: 0;
    font-family: "Oxanium", sans-serif;
    font-size: clamp(18px, 2.1vw, 24px);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
}

.apxPanelCard__tag {
    margin: 0;
    font-family: "Oxanium", sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    color: rgba(234, 242, 255, .76);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(7, 11, 20, .35);
    border: 1px solid rgba(140, 200, 255, .14);
}

.apxPanelCard__tagDot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(42, 169, 255, .14), 0 0 18px rgba(42, 169, 255, .22);
}

.apxPanelCard__tagDot--yellow {
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 216, 77, .14), 0 0 18px rgba(255, 216, 77, .18);
}

.apxPanelCard__grid {
    display: grid;
    grid-template-columns: 1.25fr .85fr;
    gap: 0;
}

.apxPanelCard__col {
    padding: 16px 18px 18px;
    min-height: 100%;
}

.apxPanelCard__col--pricing {
    border-left: 1px dashed rgba(140, 200, 255, .18);
    background: linear-gradient(180deg, rgba(7, 11, 20, .08), rgba(7, 11, 20, .22));
}

.apxPanelCard__colTitle {
    margin: 0 0 10px;
    font-family: "Oxanium", sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(234, 242, 255, .76);
}

/* services */
.apxServiceRail {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.apxServiceRail__item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(140, 200, 255, .10);
    background: rgba(7, 11, 20, .22);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
    position: relative;
    overflow: hidden;
}

.apxServiceRail__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(42, 169, 255, .14), transparent);
    transform: translateX(-120%);
    transition: transform .6s var(--ease);
    opacity: .7;
    pointer-events: none;
}

.apxServiceRail__item:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 169, 255, .28);
    background: rgba(7, 11, 20, .30);
}

.apxServiceRail__item:hover::after {
    transform: translateX(120%);
}

.apxServiceRail__pix {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(42, 169, 255, 1), rgba(42, 169, 255, .35));
    box-shadow: 0 0 0 3px rgba(42, 169, 255, .12), 0 0 22px rgba(42, 169, 255, .20);
}

.apxServiceRail__item:nth-child(3n) .apxServiceRail__pix {
    background: linear-gradient(180deg, rgba(255, 216, 77, 1), rgba(255, 216, 77, .35));
    box-shadow: 0 0 0 3px rgba(255, 216, 77, .12), 0 0 22px rgba(255, 216, 77, .18);
}

.apxServiceRail__name {
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--text);
}

.apxServiceRail__meta {
    display: block;
    margin-top: 4px;
    color: rgba(234, 242, 255, .70);
    font-size: 13px;
    line-height: 1.35;
}

/* pricing */
.apxPriceGrid {
    display: grid;
    gap: 10px;
}

.apxPriceGrid__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(140, 200, 255, .10);
    background: rgba(7, 11, 20, .18);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
    position: relative;
    overflow: hidden;
}

.apxPriceGrid__row::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(240px 80px at 20% 0%, rgba(42, 169, 255, .22), transparent 60%),
        radial-gradient(220px 90px at 110% 30%, rgba(255, 216, 77, .14), transparent 60%);
    opacity: 0;
    transition: opacity .25s var(--ease);
    pointer-events: none;
}

.apxPriceGrid__row:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 200, 255, .22);
    background: rgba(7, 11, 20, .24);
}

.apxPriceGrid__row:hover::before {
    opacity: 1;
}

.apxPriceGrid__label {
    font-family: "Oxanium", sans-serif;
    letter-spacing: .05em;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(234, 242, 255, .82);
}

.apxPriceGrid__hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(234, 242, 255, .68);
    text-transform: none;
    letter-spacing: 0;
    font-family: "Spline Sans", sans-serif;
}

.apxPriceGrid__price {
    font-family: "Oxanium", sans-serif;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(140, 200, 255, .16);
    background: rgba(10, 16, 32, .44);
    box-shadow: 0 0 0 3px rgba(42, 169, 255, .10);
    white-space: nowrap;
    color: var(--text);
}

.apxPriceGrid__row:nth-child(2n) .apxPriceGrid__price {
    box-shadow: 0 0 0 3px rgba(255, 216, 77, .08);
    border-color: rgba(255, 216, 77, .18);
}

/* footer */
.apxPanelCard__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(140, 200, 255, .12);
}

.apxPanelCard__note {
    margin: 0;
    color: rgba(234, 242, 255, .66);
    font-size: 13px;
    line-height: 1.45;
    max-width: 70ch;
}

.apxPanelCard__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(140, 200, 255, .18);
    background: linear-gradient(180deg, rgba(42, 169, 255, .14), rgba(7, 11, 20, .22));
    color: var(--text);
    text-decoration: none;
    font-family: "Oxanium", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.apxPanelCard__cta:focus-visible {
    outline: 3px solid rgba(42, 169, 255, .45);
    outline-offset: 3px;
}

.apxPanelCard__cta:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 169, 255, .30);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.apxPanelCard__cta:active {
    transform: translateY(0px) scale(.99);
}

.apxPanelCard__ctaIcon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 10px rgba(42, 169, 255, .18));
}

/* ======= Mobile responsiveness ======= */
@media (max-width: 860px) {
    .apxPanelCard__head {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .apxPanelCard__grid {
        grid-template-columns: 1fr;
    }

    .apxPanelCard__col--pricing {
        border-left: none;
        border-top: 1px dashed rgba(140, 200, 255, .18);
    }
}

@media (max-width: 420px) {
    .apxPanelCard__head {
        padding: 16px 14px 10px;
    }

    .apxPanelCard__col {
        padding: 14px 14px 16px;
    }

    .apxPanelCard__foot {
        padding: 12px 14px 14px;
    }

    .apxPriceGrid__row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .apxPriceGrid__price {
        justify-self: center !important;
    }

}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .apxPanelCard::after {
        animation: none !important;
    }

    .apxPanelCard {
        transition: none !important;
        opacity: 1;
        transform: none;
    }

    .apxServiceRail__item,
    .apxPriceGrid__row,
    .apxPanelCard__cta {
        transition: none !important;
    }

}