/* =========================
   KGOO GROUP
   赛博开机 · 终极版
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', monospace;
    color: #00ffea;
}

/* =========================
   Loader
   ========================= */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.loader-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 234, 0.04),
        rgba(0, 255, 234, 0.04) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanMove 1s linear infinite;
}

@keyframes scanMove {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

/* =========================
   命令行 Terminal
   ========================= */
.terminal {
    position: absolute;
    top: 40px;
    left: 60px;
    font-family: 'MiSans', monospace;
    font-size: 14px;
    color: #00ff00;
    line-height: 1.8;
    z-index: 2;
}

.terminal p::after {
    content: "_";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =========================
   Glitch Logo (KGOO.NET)
   ========================= */
.loader-text {
    display: flex;
    gap: 10px;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 64px;
    letter-spacing: 10px;
    color: #fff;
    z-index: 2;
}

.loader-text span:nth-child(5) {
    margin-left: 4px;
    margin-right: -4px;
}

.loader-text span {
    opacity: 0;
    animation: glitchPop 0.4s forwards;
}

.loader-text span:nth-child(1)  { animation-delay: 0.8s; }
.loader-text span:nth-child(2)  { animation-delay: 1.0s; }
.loader-text span:nth-child(3)  { animation-delay: 1.2s; }
.loader-text span:nth-child(4)  { animation-delay: 1.4s; }
.loader-text span:nth-child(5)  { animation-delay: 1.55s; }
.loader-text span:nth-child(6)  { animation-delay: 1.7s; }
.loader-text span:nth-child(7)  { animation-delay: 1.85s; }
.loader-text span:nth-child(8)  { animation-delay: 2.0s; }

@keyframes glitchPop {
    0% {
        opacity: 0;
        transform: translate(0);
        text-shadow: none;
    }
    20% {
        transform: translate(-4px, 2px);
        text-shadow: 2px 0 red, -2px 0 cyan;
    }
    40% {
        transform: translate(4px, -2px);
        text-shadow: -2px 0 red, 2px 0 cyan;
    }
    60% {
        transform: translate(-2px, 1px);
    }
    100% {
        opacity: 1;
        transform: translate(0);
        text-shadow:
            0 0 5px #fff,
            0 0 15px #ff00ff,
            0 0 30px #ff00ff;
    }
}

/* 隐藏 Loader */
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

/* =========================
   主页面
   ========================= */
.viewport {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.main-header {
    text-align: center;
}

.main-header h1 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 56px;
    letter-spacing: 14px;
    color: #ffffff;
    text-shadow:
        0 0 3px #fff,
        0 0 6px #ff00ff,
        0 0 12px #ff00ff,
        0 0 20px #ff00ff;
}

.subtitle {
    margin-top: 10px;
    font-family: 'MiSans', sans-serif;
    font-weight: 400;
    color: #00ffea;
    text-shadow: 0 0 10px #00ffea;
}

.brand-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.brand-card {
    position: relative;
    border-radius: 16px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-card:not(.active) {
    filter: brightness(0.4) saturate(0.3);
}

.brand-card.active {
    border-color: #ff00ff;
    box-shadow:
        0 0 10px #ff00ff,
        0 0 30px #ff00ff,
        inset 0 0 20px rgba(255, 0, 255, 0.2);
    animation: neonPulse 1.2s infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 10px #ff00ff, 0 0 30px #ff00ff;
    }
    to {
        box-shadow: 0 0 20px #00ffea, 0 0 50px #00ffea;
    }
}

.content h2,
.tagline,
.content ul,
.content li {
    font-family: 'MiSans', sans-serif;
}

.content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #00ffea;
    text-shadow: 0 0 8px #00ffea;
}

.tagline {
    margin: 10px 0 20px;
    font-weight: 500;
    color: #ff00ff;
    text-shadow: 0 0 6px #ff00ff;
}

.content ul {
    list-style: none;
    color: #00ffea;
    line-height: 1.9;
    font-weight: 400;
}

.main-footer {
    text-align: center;
    font-family: 'MiSans', sans-serif;
    font-size: 13px;
    color: #555;
    margin-top: 20px;
}