/*
 * 200 OK adaptation of 0xnihilism's bottom-lit Uiverse button.
 * Source: https://uiverse.io/0xnihilism/fresh-cobra-9
 * Copyright (c) 2026 0xnihilism (0xNihilist)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
.cta-button,
.btn.cta-button,
.ghost.cta-button,
.lead-submit__button.cta-button,
.navcta.cta-button {
    --cta-light: #7cffcc;
    --cta-stroke: #a7ffda;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 27px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .055);
    color: #f4fff8;
    box-shadow: none;
    font: 600 .95rem/1.2 var(--font-display);
    letter-spacing: .005em;
    text-decoration: none;
    text-align: center;
    clip-path: none;
    white-space: nowrap;
    cursor: pointer;
    filter: none;
    transition: transform .18s ease;
}

.cta-button__glow,
.cta-button__stroke {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.cta-button__glow { z-index: 0; }
.cta-button__stroke { z-index: 1; }

.cta-button__glow::before,
.cta-button__glow::after,
.cta-button__stroke::before,
.cta-button__stroke::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 1s ease-in-out;
}
.cta-button__glow::before {
    background: radial-gradient(15% 50% at 50% 100%, var(--cta-light), transparent);
    filter: blur(15px);
    opacity: 1;
}
.cta-button__glow::after {
    background: radial-gradient(60% 50% at 50% 100%, var(--cta-light), transparent);
    filter: blur(18px);
    opacity: 0;
}
.cta-button__stroke::before {
    background: radial-gradient(11% 50% at 50% 100%, var(--cta-stroke), transparent);
    opacity: 1;
}
.cta-button__stroke::after {
    background: radial-gradient(60% 50% at 50% 100%, var(--cta-stroke), transparent);
    opacity: 0;
}
.cta-button__fill {
    position: absolute;
    z-index: 2;
    inset: 1px;
    border-radius: 8px;
    background: #070b09;
    pointer-events: none;
}
.cta-button__label { position: relative; z-index: 3; }

.cta-button:is(:hover, :focus-visible) .cta-button__glow::before,
.cta-button:is(:hover, :focus-visible) .cta-button__stroke::before { opacity: 0; }
.cta-button:is(:hover, :focus-visible) .cta-button__glow::after,
.cta-button:is(:hover, :focus-visible) .cta-button__stroke::after { opacity: 1; }

.cta-button:hover,
.btn.cta-button:hover,
.ghost.cta-button:hover,
.lead-submit__button.cta-button:hover,
.navcta.cta-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .055);
    color: #fff;
    filter: none;
    box-shadow: none;
}
.cta-button:active,
.btn.cta-button:active,
.ghost.cta-button:active,
.lead-submit__button.cta-button:active,
.navcta.cta-button:active { transform: scale(.975); }

.cta-button:focus-visible { outline: 3px solid #dbffec; outline-offset: 5px; }
.cta-button:disabled { opacity: .55; cursor: wait; transform: none; }

.cta-button--secondary {
    --cta-light: #48dba7;
    --cta-stroke: #7ce9bb;
}

.navcta.cta-button--nav {
    min-height: 46px;
    padding: 10px 18px;
    font-size: .78rem;
}

@media (min-width: 1800px) {
    .hero-grid,
    .section-head,
    .work-grid,
    .service-layout,
    .process-grid,
    .motion-sticky,
    .lead-section,
    footer {
        max-width: 2048px;
    }

    .motion-nav { max-width: 2048px; margin-inline: auto; }
    .hero-content { max-width: min(980px, 50%); }
    .hero-particles {
        right: max(42px, calc((100vw - 2048px) / 2));
        width: min(48vw, 1020px);
        height: min(72dvh, 720px);
    }
    .hero-field-controls { right: max(42px, calc((100vw - 2048px) / 2)); }
}

@media (max-width: 560px) {
    .hero-actions .cta-button,
    .motion-copy .cta-button { width: 100%; }
    .cta-button,
    .btn.cta-button,
    .ghost.cta-button,
    .lead-submit__button.cta-button {
        max-width: 100%;
        white-space: normal;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-button,
    .cta-button__glow::before,
    .cta-button__glow::after,
    .cta-button__stroke::before,
    .cta-button__stroke::after { transition: none; }
    .cta-button:hover,
    .cta-button:active { transform: none; }
}
