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

:root {
    --ink: #f2f4f7;
    --silver: #aeb2b9;
    --dim: #62666e;
    --line: rgba(255, 255, 255, 0.2);
    --line-strong: rgba(255, 255, 255, 0.6);
    --accent: #8fe6ff;
}

html,
body {
    min-height: 100%;
    background: #020203;
    color: var(--ink);
    font-family: 'Chakra Petch', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.94) 100%);
    pointer-events: none;
}

.nf {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    overflow: hidden;
}

.rings {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 160vmax;
    height: 160vmax;
    translate: -50% -50%;
    pointer-events: none;
    background: repeating-radial-gradient(circle at center, transparent 0 24px, rgba(255, 255, 255, 0.08) 24px 25px);
    -webkit-mask: radial-gradient(circle at center, transparent 0 14vmin, #000 20vmin, transparent 60vmin);
    mask: radial-gradient(circle at center, transparent 0 14vmin, #000 20vmin, transparent 60vmin);
    animation: spin 90s linear infinite;
}

.code {
    position: relative;
    font-size: 0.7rem;
    letter-spacing: 0.6em;
    margin-right: -0.6em;
    text-transform: uppercase;
    color: var(--dim);
}

h1 {
    position: relative;
    display: flex;
    font-size: clamp(6rem, 28vw, 15rem);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.62);
    animation: glitch 5s infinite steps(1);
}

h1 span {
    display: inline-block;
    opacity: 0;
    animation: letterIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

h1 span:nth-child(1) { animation-delay: 0.1s; }
h1 span:nth-child(2) { animation-delay: 0.2s; }
h1 span:nth-child(3) { animation-delay: 0.3s; }

.line {
    position: relative;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.45em;
    margin-right: -0.45em;
    text-transform: uppercase;
    color: #fff;
}

.sub {
    position: relative;
    max-width: 26rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--silver);
}

.flat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 36px;
    margin: 2.2rem 0;
}

.flat i {
    display: block;
    width: 3px;
    height: 2px;
    background: rgba(255, 255, 255, 0.55);
    animation: noSignal 2.4s ease-in-out infinite;
}

.flat i:nth-child(3n) { animation-delay: -0.4s; }
.flat i:nth-child(3n + 1) { animation-delay: -0.9s; }
.flat i:nth-child(5n) { animation-delay: -1.6s; }

.back {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17rem;
    padding: 1.05rem 3rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: rgba(2, 2, 3, 0.9);
    border: 1px solid var(--line-strong);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.back .t {
    margin-right: -0.3em;
}

.back .a {
    position: absolute;
    left: 1.1rem;
    transition: transform 0.35s ease;
}

.back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: -1;
}

.back:hover,
.back:focus-visible {
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    outline: none;
}

.back:hover::before,
.back:focus-visible::before {
    transform: scaleX(1);
}

.back:hover .a,
.back:focus-visible .a {
    transform: translateX(-3px);
}

@keyframes spin {
    to { rotate: 360deg; }
}

@keyframes letterIn {
    from { opacity: 0; transform: translateY(40px) scale(0.6) rotateX(70deg); filter: blur(10px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes glitch {
    0%, 92%, 100% { transform: none; text-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
    93% { transform: translateX(-5px) skewX(-6deg); text-shadow: 3px 0 var(--accent), -3px 0 rgba(255, 255, 255, 0.6); }
    95% { transform: translateX(6px) skewX(5deg); text-shadow: -3px 0 var(--accent), 3px 0 rgba(255, 255, 255, 0.6); }
    97% { transform: translateX(-2px); text-shadow: 2px 0 var(--accent); }
}

@keyframes noSignal {
    0%, 100% { height: 2px; opacity: 0.5; }
    50% { height: 9px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rings, h1, .flat i { animation: none; }
    h1 span { animation: none; opacity: 1; }
}
