/* CYBER WARFARE SYSTEM v2.0 - 賽博龐克風格 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --cyber-cyan: #00ffff;
    --cyber-magenta: #ff00ff;
    --neon-red: #ff0040;
    --neon-blue: #0080ff;
    --dark-bg: #0a0a0f;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

/* 網格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
}

.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stars {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//8/AwMDAwMDAQAkBgMBvR7jugAAAABJRU5ErkJggg==') repeat;
    animation: stars 50s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 標題區域 */
.header {
    text-align: center;
    padding: 80px 20px 60px;
}

.cyber-logo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--cyber-cyan);
    border-radius: 50%;
    animation: ring-rotate 10s linear infinite;
}

.logo-ring:nth-child(1) {
    width: 180px;
    height: 180px;
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 20px var(--cyber-cyan);
}

.logo-ring:nth-child(2) {
    width: 140px;
    height: 140px;
    border-color: var(--cyber-magenta);
    box-shadow: 0 0 20px var(--cyber-magenta);
    animation-duration: 8s;
    animation-direction: reverse;
}

.logo-ring:nth-child(3) {
    width: 100px;
    height: 100px;
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red);
    animation-duration: 6s;
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cyber-logo .skull-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    animation: skull-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--cyber-cyan));
}

@keyframes skull-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 0 10px var(--cyber-cyan),
        0 0 20px var(--cyber-cyan),
        2px 2px 0 var(--neon-red),
        -2px -2px 0 var(--neon-blue);
    animation: glitch 3s infinite;
    letter-spacing: 0.15em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyber-cyan), 2px 2px var(--neon-red);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px var(--cyber-cyan), 2px 2px 0 var(--neon-red), -2px -2px 0 var(--neon-blue); }
    50% { text-shadow: 0 0 10px var(--cyber-magenta), -2px 2px 0 var(--neon-red), 2px -2px 0 var(--neon-blue); }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    100% { clip: rect(70px, 9999px, 110px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    100% { clip: rect(58px, 9999px, 82px, 0); }
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--cyber-cyan);
    margin-top: 20px;
    letter-spacing: 0.3em;
    text-shadow: 0 0 10px var(--cyber-cyan);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 49%, 100% { opacity: 1; }
    50%, 99% { opacity: 0.3; }
}

/* 警告橫幅 */
.warning-banner {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 64, 0.3) 50%, transparent 100%);
    border-top: 2px solid var(--neon-red);
    border-bottom: 2px solid var(--neon-red);
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

.warning-line {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.warning-icon {
    font-size: 1.8rem;
    margin: 0 15px;
    animation: warning-shake 0.5s infinite;
    filter: drop-shadow(0 0 5px var(--neon-red));
}

@keyframes warning-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.warning-text {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px var(--neon-red);
}

/* 功能區域 */
.features {
    margin: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cyber-cyan);
    text-shadow: 0 0 20px var(--cyber-cyan);
}

.fire, .bolt {
    display: inline-block;
    animation: icon-bounce 1.5s infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    border: 2px solid var(--cyber-cyan);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.4);
    border-color: var(--cyber-magenta);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--cyber-cyan));
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px var(--cyber-cyan);
}

.feature-card p {
    color: #ccc;
    line-height: 1.8;
}

/* 統計數據 */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 80px 0;
    padding: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    border: 2px solid var(--cyber-cyan);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

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

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--cyber-cyan);
    text-shadow: 0 0 20px var(--cyber-cyan), 0 0 40px var(--cyber-cyan);
}

.stat-label {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 15px;
}

/* 技術規格 */
.tech-specs {
    margin: 80px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.spec-item {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    border: 2px solid var(--cyber-cyan);
    border-left: 5px solid var(--cyber-cyan);
    border-radius: 5px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.3);
}

.spec-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: var(--cyber-cyan);
}

.spec-value {
    color: #fff;
}

/* CTA 區域 */
.cta-section {
    margin: 100px 0;
}

.cyber-frame {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, rgba(255, 0, 255, 0.03) 100%);
    border: 3px solid var(--cyber-cyan);
    border-radius: 20px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--cyber-cyan);
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 20px;
}

.corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 20px;
}

.corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 20px;
}

.corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 20px;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--cyber-cyan);
    text-shadow: 0 0 20px var(--cyber-cyan);
    letter-spacing: 0.2em;
}

.bracket {
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red);
    animation: bracket-pulse 1.5s ease-in-out infinite;
}

@keyframes bracket-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cta-description {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 50px;
    line-height: 2;
}

.cyber-text {
    font-family: 'Courier New', monospace;
    color: var(--cyber-cyan);
    text-shadow: 0 0 5px var(--cyber-cyan);
}

.access-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--cyber-cyan);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.panel-header {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 1.5rem;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    margin-bottom: 30px;
    letter-spacing: 0.3em;
    animation: access-blink 2s infinite;
}

@keyframes access-blink {
    0%, 49%, 100% { opacity: 1; }
    50%, 99% { opacity: 0.5; }
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px 60px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: button-shine 3s linear infinite;
}

@keyframes button-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 60px rgba(0, 255, 255, 0.7);
    background: linear-gradient(90deg, var(--cyber-magenta), var(--cyber-cyan));
}

.button-icon {
    font-size: 2rem;
    animation: icon-pulse 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.button-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.2em;
}

.invite-code {
    margin-top: 30px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--cyber-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.code-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyber-cyan);
    font-weight: bold;
    text-shadow: 0 0 10px var(--cyber-cyan);
    letter-spacing: 0.2em;
}

.code-value {
    font-family: 'Courier New', monospace;
    color: #fff;
    font-size: 1.3rem;
    background: rgba(0, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid var(--cyber-cyan);
}

.copy-btn {
    font-family: 'Orbitron', sans-serif;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.copy-btn:hover {
    background: var(--cyber-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--cyber-cyan);
}

/* 免責聲明 */
.disclaimer {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.05) 0%, rgba(255, 102, 0, 0.05) 100%);
    border: 2px solid var(--neon-red);
    border-radius: 15px;
    padding: 40px;
    margin: 80px 0;
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.2);
}

.disclaimer h3 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--neon-red);
    text-shadow: 0 0 15px var(--neon-red);
}

.disclaimer p {
    color: #ccc;
    line-height: 2;
    margin-bottom: 20px;
}

/* 頁腳 */
.footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 2px solid var(--cyber-cyan);
    margin-top: 80px;
    position: relative;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-cyan), transparent);
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px var(--cyber-cyan);
    letter-spacing: 0.3em;
}

.footer-version {
    font-family: 'Courier New', monospace;
    color: #666;
    margin: 15px 0;
    letter-spacing: 0.1em;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: var(--cyber-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

.footer-links a:hover {
    text-shadow: 0 0 10px var(--cyber-cyan);
}

.link-bracket {
    color: var(--neon-red);
}

.separator {
    margin: 0 20px;
    color: #666;
}

.footer-scan {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    margin-top: 30px;
    animation: scan-text 2s infinite;
}

@keyframes scan-text {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.scan-line {
    display: inline-block;
    width: 50px;
    height: 2px;
    background: #00ff00;
    animation: scan-line-move 1s linear infinite;
}

@keyframes scan-line-move {
    0% { width: 0; }
    100% { width: 50px; }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .glitch { font-size: 2.5rem; }
    .subtitle { font-size: 0.9rem; }
    .cyber-logo { width: 150px; height: 150px; }
    .logo-ring:nth-child(1) { width: 140px; height: 140px; }
    .logo-ring:nth-child(2) { width: 100px; height: 100px; }
    .logo-ring:nth-child(3) { width: 70px; height: 70px; }
    .section-title { font-size: 2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats { flex-direction: column; gap: 30px; }
    .stat-number { font-size: 3rem; }
    .cta-title { font-size: 2rem; }
    .cyber-frame { padding: 40px 30px; }
    .cta-button { padding: 20px 40px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .glitch { font-size: 2rem; }
    .warning-text { font-size: 1rem; }
    .cyber-frame { padding: 30px 20px; }
    .invite-code { flex-direction: column; }
}
