:root {
    --pink: #e23d80;
    --magenta: #c92a82;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --dark: #0a0a0f;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Michroma', sans-serif;
    transition: filter 0.05s ease;
}
body.flash-bg {
    animation: bgPulse 0.25s ease-out;
}
@keyframes bgPulse {
    from { filter: brightness(1.15); }
    to { filter: brightness(1); }
}
.background {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 0;
}
.background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(226, 61, 128, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
}
#lightningCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
#particlesCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.logo-wrapper {
    position: relative;
    display: inline-block;
    width: min(90vw, 550px);
    aspect-ratio: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    animation: logoReveal 0.8s ease-out 0.1s forwards;
    overflow: hidden;
}
@keyframes logoReveal {
    to { opacity: 1; transform: scale(1); }
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    opacity: 0.8;
    animation: logoGlitch 2.5s infinite;
    transition: filter 0.05s ease;
}
@keyframes logoGlitch {
    0%, 100% { transform: translate(0,0); }
    1% { transform: translate(-1px,1px); }
    2% { transform: translate(1px,-1px); }
    3% { transform: translate(0,0); }
}
.logo-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff008c, #b346ff, #00aaff);
    mix-blend-mode: screen;
    opacity: 0.2;
    animation: pulseGradient 6s infinite linear;
    pointer-events: none;
    -webkit-mask-image: var(--logo-mask);
    mask-image: var(--logo-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
@keyframes pulseGradient {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}
.logo-img.flash {
    filter: brightness(1.6) drop-shadow(0 0 12px #ff66ff);
}
.logo-img.split {
    animation: splitShake 0.15s ease-out;
}
@keyframes splitShake {
    0% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}
.logo-img.shock {
    animation: shock 0.12s ease-out;
}
@keyframes shock {
    0% { transform: scale(1.01) skewX(-1deg); }
    50% { transform: scale(0.99) skewX(1deg); }
    100% { transform: scale(1); }
}
.flash-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.6), rgba(180, 150, 255, 0.25) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.03s;
}
.flash-overlay.active { opacity: 1; }
.tagline {
    font-size: clamp(0.5rem, 1.6vw, 0.7rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.3s forwards;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.social-links {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.5s forwards;
}
.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.02);
}
.social-link:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, var(--magenta), var(--purple), var(--blue));
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.35);
}
.social-link svg { width: 22px; height: 22px; transition: transform 0.3s ease; }
.social-link:hover svg { transform: scale(1.1); }
