:root {
    --mouse-x: 50%;
    --mouse-y: 50px;
    --glitch-color1: rgba(255, 0, 0, 0.15);
    --glitch-color2: rgba(0, 255, 255, 0.15);
}

* {
    cursor: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes noise {
    0%, 100% { transform: translateX(0) }
    10% { transform: translateX(-1px) }
    20% { transform: translateX(1px) }
    30% { transform: translateX(-2px) }
    40% { transform: translateX(2px) }
    50% { transform: translateX(-1px) }
    60% { transform: translateX(1px) }
    70% { transform: translateX(0) }
    80% { transform: translateX(-1px) }
    90% { transform: translateX(1px) }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes backgroundNoise {
    0%, 100% { background-position: 0 0; }
    10% { background-position: -5% -5%; }
    20% { background-position: -10% 5%; }
    30% { background-position: 5% -10%; }
    40% { background-position: -5% 15%; }
    50% { background-position: -10% 5%; }
    60% { background-position: 15% 0; }
    70% { background-position: 0 10%; }
    80% { background-position: -15% -5%; }
    90% { background-position: 10% 5%; }
}

.glitch-container {
    position: relative;
    display: inline-block;
}

h1 .glitch-text {
    position: relative;
    font-weight: normal;
    text-shadow: 
        0.03em 0 0 rgba(255, 0, 0, 0.3),
        -0.02em 0 0 rgba(0, 255, 255, 0.3),
        0 0 3px rgba(255, 255, 255, 0.1),
        3px 3px 0 rgba(51, 51, 51, 0.8);
    animation: noise 12s steps(1) infinite;
    transition: text-shadow 0.3s ease;
}

h1 .glitch-text:hover {
    text-shadow: 
        0.05em 0 0 rgba(255, 0, 0, 0.4),
        -0.04em 0 0 rgba(0, 255, 255, 0.4),
        0 0 10px rgba(255, 255, 255, 0.3),
        4px 4px 0 rgba(68, 68, 68, 0.4);
}

h1 .glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    filter: blur(0.7px);
    animation: noise 12s steps(1) infinite reverse;
}

body {
    background-color: #000;
    color: #919191;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            rgba(255, 0, 0, 0.03) 1px,
            rgba(0, 255, 255, 0.03) 2px,
            transparent 3px
        ),
        repeating-linear-gradient(
            to right,
            transparent 0px,
            rgba(255, 0, 0, 0.03) 1px,
            rgba(0, 255, 255, 0.03) 2px,
            transparent 3px
        );
    opacity: 0.4;
    animation: backgroundNoise 8s steps(1) infinite;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        circle 12vmax at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    z-index: -1;
    transition: all 0.15s ease;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.75;
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

.pixel-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: transparent;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: pixelFall 1.5s ease-out forwards;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(255, 255, 255, 0.05);
}

.pixel-trail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@keyframes pixelFall {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 40px)) scale(0.5);
    }
}

#root::after {
    content: '0x';
    font-family: 'VT323', monospace;
    color: white;
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    animation: cursorBlink 1s infinite;
    left: var(--mouse-x);
    top: var(--mouse-y);
    transform: translate(-50%, -50%);
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

.content {
    width: 100%;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    height: 100dvh;
    padding: 2rem 0;
    box-sizing: border-box;
}

.header {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link {
    font-size: 1.25rem;
    color: #919191;
    text-decoration: none;
    transition: color 0.3s;
}

.link:not(.locked):hover {
    color: #ffffff;
}

.footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px solid #919191;
    border-radius: 0.25rem;
    color: #919191;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #666666;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #919191;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #919191;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffffff;
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.5;
}

@media (max-width: 640px) {
    :root {
        --glitch-color1: rgba(255, 0, 0, 0.1);
        --glitch-color2: rgba(0, 255, 255, 0.1);
    }

    .min-h-screen {
        min-height: 100vh;
        min-height: 100dvh;
        position: fixed;
        width: 100%;
        overflow: hidden;
    }

    .text-4xl {
        font-size: 1.875rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .space-y-8 > * + * {
        margin-top: 1.5rem;
    }

    .space-y-6 > * + * {
        margin-top: 1.25rem;
    }

    .p-4 {
        padding: 0.75rem;
    }

    input[type="email"] {
        font-size: 1rem;
        padding: 0.625rem;
    }

    button {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .space-x-6 > * + * {
        margin-left: 1.25rem;
    }

    svg {
        width: 20px;
        height: 20px;
    }
}

@media (hover: none) {
    * {
        cursor: auto !important;
    }

    #root::after {
        display: none;
    }

    .pixel-trail {
        display: none;
    }

    body::after {
        display: none;
    }

    .link-text::before,
    .link-text::after {
        display: none;
    }

    button:hover {
        transform: none;
        box-shadow: 
            inset 0 1px rgba(255, 255, 255, 0.05),
            inset 0 -1px rgba(0, 0, 0, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }

    a:hover {
        color: #919191;
    }
}

@media (pointer: coarse) {
    button {
        min-height: 44px;
    }

    input[type="email"] {
        min-height: 44px;
    }

    .space-x-6 > * + * {
        margin-left: 2rem;
    }

    a {
        padding: 0.5rem;
    }
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.w-full {
    width: 100%;
}

.max-w-sm {
    max-width: 24rem;
}

input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px solid #919191;
    border-radius: 0.25rem;
    color: #919191;
    font-size: 1.125rem;
}

input[type="email"]::placeholder {
    color: #666666;
}

input[type="email"]:focus {
    outline: none;
    border-color: #919191;
}

button {
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(145, 145, 145, 0.05);
    border: 1px solid #919191;
    color: #919191;
    border-radius: 0.25rem;
    font-family: 'VT323', monospace;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 
        inset 0 1px rgba(255, 255, 255, 0.05),
        inset 0 -1px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(
        to bottom,
        rgba(145, 145, 145, 0.08),
        rgba(145, 145, 145, 0.03)
    );
}

button:hover {
    background-color: rgba(145, 145, 145, 0.1);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(
        to bottom,
        rgba(145, 145, 145, 0.1),
        rgba(145, 145, 145, 0.05)
    );
}

button:active {
    transform: translateY(1px);
    box-shadow: 
        inset 0 1px rgba(0, 0, 0, 0.2),
        inset 0 -1px rgba(255, 255, 255, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(
        to bottom,
        rgba(145, 145, 145, 0.03),
        rgba(145, 145, 145, 0.08)
    );
}

a {
    text-decoration: none;
    color: #919191;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
}

.link-text {
    position: relative;
    display: inline-block;
}

.link-text::before,
.link-text::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.link-text::before {
    content: '>>';
    right: 100%;
    margin-right: 10px;
}

.link-text::after {
    content: '<<';
    left: 100%;
    margin-left: 10px;
}

a:hover .link-text::before,
a:hover .link-text::after {
    opacity: 1;
}

.link-text.locked {
    opacity: 0.5;
}

.cursor-not-allowed {
    cursor: none;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-custom-gray {
    color: #919191;
}

.text-gray-600 {
    color: #666666;
}

.opacity-50 {
    opacity: 0.5;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.pixel-font {
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-duration: 0.3s;
}