.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    background: var(--grad-bg);
    z-index: -10;
}

.bg-noise {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.7 0 0 0 0 0.85 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
    opacity: 0.05;
    mix-blend-mode: overlay;
    z-index: -8;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 200, 224, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 200, 224, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.80) 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.80) 0%, transparent 80%);
    z-index: -7;
    animation: gridDrift 28s linear infinite;
    will-change: background-position;
}

@keyframes gridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

.bg-particles {
    z-index: -9;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.bg-particles span {
    position: absolute;
    bottom: -20px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #ffd6e6;
    box-shadow: 0 0 4px rgba(255, 214, 230, 0.45);
    animation: floatUp linear infinite;
    will-change: transform, opacity;
}

@keyframes floatUp {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    50%  { transform: translate3d(20px, -55vh, 0); opacity: 0.9; }
    92%  { opacity: 0.9; }
    100% { transform: translate3d(-10px, -110vh, 0); opacity: 0; }
}

.bg-cursor {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%),
        rgba(255, 200, 224, 0.05) 0%,
        rgba(255, 175, 211, 0.025) 40%,
        transparent 78%);
    z-index: -6;
    filter: blur(24px);
    transition: background 0.25s linear;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #ffd6e6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 6px rgba(255, 200, 224, 0.75),
        0 0 12px rgba(255, 175, 211, 0.35);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, transparent 58%, rgba(255, 200, 224, 0.22) 72%, transparent 95%);
    transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s var(--ease);
}

.cursor-ring.hover {
    width: 42px;
    height: 42px;
    background: radial-gradient(circle, transparent 56%, rgba(255, 175, 211, 0.28) 74%, transparent 95%);
}

.cursor-dot.hover {
    width: 8px;
    height: 8px;
    background: #ffafd3;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes scrollChevron {
    0% { opacity: 0; transform: rotate(45deg) translate(-8px, -8px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(8px, 8px); }
}

@keyframes brandWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes loaderLine {
    0% { transform: translateX(-100%) scaleX(0.4); }
    50% { transform: translateX(0) scaleX(1); }
    100% { transform: translateX(100%) scaleX(0.4); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll span, .loader-mark, .loader-line span, .bg-grid, .bg-particles span {
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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