:root {
    --primary: #8b5cf6;
    --secondary: #06b6d4;
    --accent: #f5d06f;
    --button-radius: 999px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #05050b;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: color-mix(in srgb, var(--primary) 60%, white 15%);
    color: #fff;
}

.font-heading {
    font-family: var(--heading-font), Inter, ui-sans-serif, system-ui, sans-serif;
}

.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
    backdrop-filter: blur(22px);
}

.soft-glow {
    box-shadow: 0 0 42px color-mix(in srgb, var(--primary) 36%, transparent);
}

.gradient-text {
    background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--secondary) 70%, white 20%), color-mix(in srgb, var(--accent) 80%, white 10%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.premium-button {
    border-radius: var(--button-radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.premium-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.14);
    box-shadow: 0 28px 70px color-mix(in srgb, var(--secondary) 30%, transparent);
}

.ghost-button {
    border-radius: var(--button-radius);
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.ghost-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .11);
}

.mesh-bg {
    position: relative;
    isolation: isolate;
}

.mesh-bg::before,
.mesh-bg::after {
    content: "";
    position: absolute;
    inset: auto;
    z-index: -1;
    width: min(48rem, 75vw);
    height: min(48rem, 75vw);
    filter: blur(56px);
    opacity: .42;
    pointer-events: none;
    border-radius: 999px;
}

.mesh-bg::before {
    top: -12rem;
    left: -10rem;
    background: radial-gradient(circle, var(--primary), transparent 65%);
}

.mesh-bg::after {
    right: -14rem;
    bottom: 12%;
    background: radial-gradient(circle, var(--secondary), transparent 64%);
}

.grid-lines {
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 78%, transparent);
}

.card-lift {
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.card-lift:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .09);
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 90;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fff;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .48);
    transition: width .18s ease, height .18s ease, border-color .18s ease;
}

.is-hovering .cursor-ring {
    width: 54px;
    height: 54px;
    border-color: color-mix(in srgb, var(--secondary) 80%, white 10%);
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: #05050b;
    transition: opacity .55s ease, visibility .55s ease;
}

.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-mark {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: velvetPulse 1.2s ease-in-out infinite alternate;
}

@keyframes velvetPulse {
    from { transform: scale(.92) rotate(-4deg); filter: brightness(.9); }
    to { transform: scale(1.04) rotate(4deg); filter: brightness(1.16); }
}

@media (max-width: 768px) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}
