:root {
    --primary: #00f0ff;
    --secondary: #bc13fe;
    --accent: #00ff9d;
    --bg-dark: #02040a;
    --bg-mid: #090d1f;
    --text: #e0f7ff;
    --dim: rgba(0, 240, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Noto Sans SC', 'Orbitron', sans-serif;
}

.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-mid) 0%, var(--bg-dark) 70%);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.03) 100%),
        linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom center;
    opacity: 0.6;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 240, 255, 0.03) 2px,
        rgba(0, 240, 255, 0.03) 4px
    );
    animation: scan 8s linear infinite;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

.hero {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 0.5rem 1.2rem;
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(4px);
    text-shadow: 0 0 10px var(--primary);
    animation: pulse-border 3s ease-in-out infinite;
}

.title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    position: relative;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 40px rgba(0, 240, 255, 0.5),
        0 0 80px rgba(188, 19, 254, 0.4);
    animation: text-flicker 4s infinite alternate;
}

.title::before,
.title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.title::before {
    color: var(--primary);
    transform: translate(-3px, -2px);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-1 3s infinite linear alternate-reverse;
}

.title::after {
    color: var(--secondary);
    transform: translate(3px, 2px);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-2 2.5s infinite linear alternate-reverse;
}

.tagline {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: rgba(224, 247, 255, 0.85);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tagline-prefix {
    color: var(--accent);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    animation: blink 2s step-end infinite;
}

.decorators {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.decorator-line {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

.decorator-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--primary);
    animation: rotate-dot 4s linear infinite;
}

.corner-mark {
    position: fixed;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--dim);
    z-index: 5;
    padding: 1rem;
}

.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 8px rgba(0, 240, 255, 0.1); }
    50% { border-color: rgba(0, 240, 255, 0.8); box-shadow: 0 0 18px rgba(0, 240, 255, 0.25); }
}

@keyframes text-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.85; }
}

@keyframes glitch-1 {
    0% { transform: translate(-3px, -2px); }
    20% { transform: translate(-6px, 1px); }
    40% { transform: translate(-2px, -3px); }
    60% { transform: translate(-5px, 0px); }
    80% { transform: translate(-1px, -2px); }
    100% { transform: translate(-4px, 1px); }
}

@keyframes glitch-2 {
    0% { transform: translate(3px, 2px); }
    20% { transform: translate(5px, -1px); }
    40% { transform: translate(1px, 3px); }
    60% { transform: translate(4px, 0px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(6px, 1px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes rotate-dot {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .badge { font-size: 0.65rem; letter-spacing: 0.2em; }
    .tagline { letter-spacing: 0.15em; }
    .corner-mark { font-size: 0.6rem; }
    .decorator-line { width: 40px; }
}
