body {
    --pointer-x: 0px;
    --pointer-y: 0px;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 16%, rgba(31, 64, 115, .11), transparent 28%),
        radial-gradient(circle at 88% 42%, rgba(20, 42, 82, .08), transparent 32%),
        var(--bg);
}

.motion-background {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.motion-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: .28;
    filter: blur(2px);
    will-change: transform;
}

.motion-orb-one {
    top: 7%;
    right: -110px;
    width: 310px;
    height: 310px;
    background: radial-gradient(circle at 35% 35%, rgba(55, 91, 148, .48), rgba(20, 42, 82, .04) 68%);
    animation: orb-one 14s ease-in-out infinite alternate;
}

.motion-orb-two {
    top: 47%;
    left: -135px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at 58% 40%, rgba(80, 111, 158, .38), rgba(20, 42, 82, .02) 70%);
    animation: orb-two 18s ease-in-out infinite alternate;
}

.motion-orb-three {
    right: 18%;
    bottom: -160px;
    width: 330px;
    height: 330px;
    background: radial-gradient(circle, rgba(27, 53, 98, .24), transparent 69%);
    animation: orb-three 16s ease-in-out infinite alternate;
}

.motion-line {
    position: absolute;
    width: 1px;
    height: 320px;
    background: linear-gradient(transparent, rgba(20, 42, 82, .18), transparent);
    transform: rotate(38deg);
    opacity: .45;
}

.motion-line-one { top: 14%; left: 13%; animation: line-drift 10s ease-in-out infinite alternate; }
.motion-line-two { right: 8%; bottom: 20%; animation: line-drift 13s ease-in-out -4s infinite alternate-reverse; }

.topbar {
    animation: topbar-enter .8s cubic-bezier(.2, .8, .2, 1) both;
}

.brand-mark {
    position: relative;
    box-shadow: 0 7px 18px rgba(20, 42, 82, .18);
    animation: logo-float 4.5s ease-in-out 1s infinite;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -35% auto -35% -70%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
    transform: skewX(-18deg);
    animation: logo-shine 5.5s ease-in-out 1.4s infinite;
}

.brand-mark img { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark img { transform: scale(1.09) rotate(-4deg); }

.brand strong,
.brand small {
    animation: copy-enter .65s cubic-bezier(.2, .8, .2, 1) both;
}

.brand small { animation-delay: .12s; }

.quiet-button {
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, background .35s;
}

.quiet-button::before {
    content: "";
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    background: rgba(20, 42, 82, .1);
    transition: inset .35s;
}

.quiet-button:hover {
    transform: translateY(-3px) rotate(-4deg);
    background: #f8faff;
    box-shadow: 0 9px 22px rgba(20, 42, 82, .13);
}

.quiet-button:hover::before { inset: -15%; }
.quiet-button svg { position: relative; z-index: 1; transition: transform .35s; }
.quiet-button:hover svg { transform: scale(1.12) rotate(9deg); }

.intro .verified {
    animation: intro-up .65s .16s cubic-bezier(.2, .8, .2, 1) both;
}

.verified i {
    position: relative;
    animation: verified-pulse 2.4s ease-out infinite;
}

.intro h1 span {
    display: block;
    animation: title-enter .9s cubic-bezier(.16, 1, .3, 1) both;
}

.intro h1 span:first-child { animation-delay: .25s; }
.intro h1 span:last-child { animation-delay: .38s; }
.intro p { animation: intro-up .72s .55s cubic-bezier(.2, .8, .2, 1) both; }

.link-group {
    opacity: 0;
    transform: translateY(34px) scale(.985);
    transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}

.link-group.is-visible {
    opacity: 1;
    transform: none;
}

.link-group h2 {
    transform: translateX(14px);
    opacity: 0;
    transition: transform .55s .08s ease, opacity .55s .08s;
}

.link-group.is-visible h2 { transform: none; opacity: 1; }

.simple-links {
    transition: box-shadow .45s, border-color .45s;
}

.link-group.is-visible .simple-links {
    animation: list-breathe 4.8s calc(var(--group-index, 0) * .35s + 1.2s) ease-in-out infinite;
}

.simple-links > a {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(26px);
    transition:
        opacity .55s calc(var(--item-index, 0) * 80ms + 110ms),
        transform .55s calc(var(--item-index, 0) * 80ms + 110ms) cubic-bezier(.2, .8, .2, 1),
        background .3s,
        box-shadow .35s;
    transform-style: preserve-3d;
    will-change: transform;
}

.link-group.is-visible .simple-links > a {
    opacity: 1;
    transform: none;
}

.simple-links > a::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -90%;
    bottom: -90%;
    left: -35%;
    width: 22%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
    transform: skewX(-20deg) translateX(-250%);
    transition: transform .75s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.simple-links > a:hover::before { transform: skewX(-20deg) translateX(680%); }

.simple-links > a:hover {
    z-index: 2;
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 14px 30px rgba(20, 42, 82, .12);
}

.simple-links > a.is-tilting {
    z-index: 3;
    transform: perspective(850px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px) scale(1.01);
}

.simple-links > a > * { position: relative; z-index: 1; }

.link-icon {
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, background .4s;
}

.simple-links > a:hover .link-icon {
    transform: translateY(-2px) scale(1.09) rotate(-5deg);
    background: #dce6f2;
    box-shadow: 0 8px 18px rgba(20, 42, 82, .16);
}

.link-icon svg,
.link-icon img {
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.simple-links > a:hover .link-icon svg,
.simple-links > a:hover .link-icon img { transform: scale(1.08) rotate(5deg); }

.link-copy strong,
.link-copy small { transition: transform .35s, color .35s; }
.simple-links > a:hover .link-copy strong { transform: translateX(-3px); }
.simple-links > a:hover .link-copy small { transform: translateX(-2px); }

.link-end { transition: color .3s; }
.link-end > svg { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.simple-links > a:hover .link-end > svg { transform: translateX(-5px); }

.link-style-featured::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: radial-gradient(circle at calc(20% + var(--pointer-x)) calc(25% + var(--pointer-y)), rgba(255, 255, 255, .14), transparent 36%);
    opacity: .85;
    pointer-events: none;
    transition: opacity .35s;
}

.link-style-featured:hover::after { opacity: 1; }
.link-style-featured:hover .link-icon { background: rgba(255, 255, 255, .2) !important; }

.share-card,
.simple-footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}

.share-card.is-visible,
.simple-footer.is-visible { opacity: 1; transform: none; }

.share-card {
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: "";
    position: absolute;
    inset: -80% -15%;
    background: conic-gradient(from 90deg, transparent, rgba(255, 255, 255, .1), transparent 28%);
    animation: share-glow 8s linear infinite;
    pointer-events: none;
}

.share-card > * { position: relative; z-index: 1; }
.share-card strong { animation: soft-float 4s ease-in-out infinite; }

.share-card button {
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}

.share-card button::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: inherit;
    animation: button-pulse 2.5s ease-out infinite;
    pointer-events: none;
}

.share-card button:hover {
    transform: translateY(-3px) scale(1.035);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.simple-footer span:first-child { animation: footer-drift 5s ease-in-out infinite; }

.qr-dialog[open] { animation: dialog-in .42s cubic-bezier(.16, 1, .3, 1) both; }
.qr-dialog[open]::backdrop { animation: backdrop-in .35s ease both; }
.qr-frame { animation: qr-float 4s ease-in-out infinite; transition: box-shadow .35s, transform .35s; }
.qr-frame:hover { box-shadow: 0 14px 35px rgba(20, 42, 82, .14); }
.dialog-head button,
.copy-address { transition: transform .3s, background .3s, box-shadow .3s; }
.dialog-head button:hover { transform: rotate(9deg) scale(1.06); }
.copy-address:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 42, 82, .1); }
.toast.show { animation: toast-pop .45s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes topbar-enter {
    from { opacity: 0; transform: translateY(-22px); }
    to { opacity: 1; transform: none; }
}

@keyframes copy-enter {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes intro-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes title-enter {
    from { opacity: 0; transform: translateY(35px) scale(.96); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes logo-shine {
    0%, 64% { left: -70%; }
    82%, 100% { left: 135%; }
}

@keyframes verified-pulse {
    0% { box-shadow: 0 0 0 4px #e5f1ea, 0 0 0 4px rgba(51, 135, 92, .25); }
    65%, 100% { box-shadow: 0 0 0 4px #e5f1ea, 0 0 0 13px rgba(51, 135, 92, 0); }
}

@keyframes list-breathe {
    0%, 100% { box-shadow: 0 5px 20px rgba(20, 42, 82, .035); }
    50% { box-shadow: 0 9px 28px rgba(20, 42, 82, .085); }
}

@keyframes share-glow { to { transform: rotate(360deg); } }
@keyframes soft-float { 50% { transform: translateY(-2px); } }

@keyframes button-pulse {
    0% { opacity: .5; transform: scale(1); }
    75%, 100% { opacity: 0; transform: scale(1.18, 1.5); }
}

@keyframes footer-drift { 50% { transform: translateX(-4px); } }

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(24px) scale(.93); }
    to { opacity: 1; transform: none; }
}

@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes qr-float {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(20, 42, 82, .04); }
    50% { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(20, 42, 82, .12); }
}

@keyframes toast-pop {
    0% { opacity: 0; transform: translate(-50%, 18px) scale(.88); }
    65% { transform: translate(-50%, -3px) scale(1.03); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes orb-one {
    from { transform: translate(var(--pointer-x), var(--pointer-y)) scale(1); }
    to { transform: translate(calc(var(--pointer-x) - 45px), calc(var(--pointer-y) + 75px)) scale(1.18); }
}

@keyframes orb-two {
    from { transform: translate(var(--pointer-x), var(--pointer-y)) scale(.92); }
    to { transform: translate(var(--pointer-x), var(--pointer-y)) translate(75px, -60px) scale(1.12); }
}

@keyframes orb-three {
    from { transform: translate(var(--pointer-x), var(--pointer-y)); }
    to { transform: translate(var(--pointer-x), var(--pointer-y)) translate(-55px, -45px) scale(1.16); }
}

@keyframes line-drift {
    from { transform: rotate(38deg) translateY(-35px); opacity: .18; }
    to { transform: rotate(38deg) translateY(50px); opacity: .55; }
}

@media (max-width: 560px) {
    .intro { padding-bottom: 45px; }
    .motion-orb { opacity: .2; }
    .simple-links > a:hover { transform: translateY(-2px); }
    .share-card strong { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .link-group,
    .link-group h2,
    .simple-links > a,
    .share-card,
    .simple-footer {
        opacity: 1 !important;
        transform: none !important;
    }

    .topbar,
    .brand-mark,
    .brand strong,
    .brand small,
    .intro .verified,
    .intro h1 span,
    .intro p {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    .motion-background { display: none; }
}
