/* =========================================================
   MILLERTECH BUTTON SYSTEM
========================================================= */

.btn{
    --pointer-x:50%;
    --pointer-y:50%;

    position:relative;
    isolation:isolate;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:54px;
    padding:15px 29px;
    overflow:hidden;

    border:1px solid rgba(57,196,255,.32);
    border-radius:999px;

    background:
        linear-gradient(
            135deg,
            #39c4ff 0%,
            #2f8fff 55%,
            #266ee8 100%
        );

    color:#ffffff;
    font-family:"Inter",sans-serif;
    font-size:15px;
    font-weight:700;
    line-height:1.2;
    text-align:center;
    text-decoration:none;

    cursor:pointer;

    box-shadow:
        0 16px 36px rgba(47,143,255,.25),
        inset 0 1px 0 rgba(255,255,255,.22);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease,
        color .3s ease;
}

.btn::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;

    background:
        radial-gradient(
            circle 150px at var(--pointer-x) var(--pointer-y),
            rgba(255,255,255,.30),
            transparent 62%
        );

    opacity:0;
    transition:opacity .3s ease;
}

.btn::after{
    content:"";
    position:absolute;
    top:-120%;
    left:-45%;
    z-index:-1;

    width:34%;
    height:340%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.32),
            transparent
        );

    transform:rotate(24deg);
    transition:left .75s ease;
}

.btn:hover{
    transform:translateY(-4px);

    border-color:rgba(142,231,255,.75);

    box-shadow:
        0 23px 50px rgba(47,143,255,.34),
        0 0 28px rgba(57,196,255,.16),
        inset 0 1px 0 rgba(255,255,255,.26);
}

.btn:hover::before{
    opacity:1;
}

.btn:hover::after{
    left:120%;
}

.btn:active{
    transform:translateY(-1px) scale(.99);

    box-shadow:
        0 12px 28px rgba(47,143,255,.25),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.btn:focus-visible{
    outline:3px solid rgba(142,231,255,.55);
    outline-offset:4px;
}

.btn span{
    position:relative;
    z-index:1;
    transition:transform .3s ease;
}

.btn:hover span{
    transform:translateX(4px);
}


/* =========================================================
   OUTLINE BUTTON
========================================================= */

.btn-outline{
    border-color:rgba(255,255,255,.14);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        );

    color:#ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05);
}

.btn-outline::before{
    background:
        radial-gradient(
            circle 150px at var(--pointer-x) var(--pointer-y),
            rgba(57,196,255,.18),
            transparent 64%
        );
}

.btn-outline:hover{
    border-color:rgba(57,196,255,.55);

    background:
        linear-gradient(
            145deg,
            rgba(57,196,255,.13),
            rgba(47,128,255,.06)
        );

    color:#8ee7ff;

    box-shadow:
        0 18px 42px rgba(0,0,0,.22),
        0 0 25px rgba(57,196,255,.10),
        inset 0 1px 0 rgba(255,255,255,.06);
}


/* =========================================================
   SIZE VARIANTS
========================================================= */

.btn-small{
    min-height:44px;
    padding:11px 21px;
    font-size:13px;
}

.btn-large{
    min-height:60px;
    padding:18px 35px;
    font-size:16px;
}

.btn-full{
    width:100%;
}


/* =========================================================
   BUTTON GROUPS
========================================================= */

.hero-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
}

.centered .hero-actions{
    justify-content:center;
}


/* =========================================================
   TEXT LINK
========================================================= */

.text-link{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;

    color:#ffffff;
    font-size:15px;
    font-weight:700;
    text-decoration:none;

    transition:
        color .3s ease,
        transform .3s ease;
}

.text-link::after{
    content:"";
    position:absolute;
    right:0;
    bottom:-5px;
    left:0;

    height:1px;

    background:
        linear-gradient(
            90deg,
            #39c4ff,
            transparent
        );

    transform:scaleX(0);
    transform-origin:left;
    transition:transform .3s ease;
}

.text-link:hover{
    color:#39c4ff;
    transform:translateX(4px);
}

.text-link:hover::after{
    transform:scaleX(1);
}


/* =========================================================
   DISABLED STATE
========================================================= */

.btn:disabled,
.btn[aria-disabled="true"]{
    opacity:.5;
    pointer-events:none;
    cursor:not-allowed;
    transform:none;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:700px){

    .hero-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .hero-actions .btn{
        width:100%;
    }

    .btn-large{
        min-height:56px;
        padding:16px 24px;
        font-size:15px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

    .btn,
    .btn span,
    .btn::before,
    .btn::after,
    .text-link,
    .text-link::after{
        transition:none;
    }

    .btn:hover,
    .btn:active,
    .text-link:hover{
        transform:none;
    }

}