:root {
    --glitch-bg: #0a0a0a;
    --glitch-text: #ffffff;
    --glitch-primary: #ff003c;
    --glitch-secondary: #00f0ff;
    --glitch-accent: #fcee0a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--glitch-bg); color: var(--glitch-text);
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* Glitch Effect */
.glitch-wrapper { position: relative; display: inline-block;}
.glitch-text {
    position: relative; font-weight: bold; text-transform: uppercase;
    text-shadow: 2px 0 var(--glitch-primary), -2px 0 var(--glitch-secondary);
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-text::before {
    left: 2px; text-shadow: -2px 0 var(--glitch-primary);
    clip: rect(24px, 550px, 90px, 0); animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -2px 0 var(--glitch-secondary);
    clip: rect(85px, 550px, 140px, 0); animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(50px, 9999px, 20px, 0); }
    40% { clip: rect(30px, 9999px, 100px, 0); }
    60% { clip: rect(80px, 9999px, 40px, 0); }
    80% { clip: rect(20px, 9999px, 60px, 0); }
    100% { clip: rect(90px, 9999px, 10px, 0); }
}

.container { max-width: 1100px; margin: 0 auto; padding: 20px;}

/* Header */
.header-glitch {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 50px;
}
.brand-glitch { font-size: 28px; letter-spacing: 2px;}
.nav-glitch { display: flex; gap: 30px; }
.nav-glitch a {
    position: relative; padding: 5px 10px; font-weight: bold;
    transition: all 0.3s;
}
.nav-glitch a::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--glitch-secondary); transition: width 0.3s;
}
.nav-glitch a:hover::before, .nav-glitch a.active::before { width: 100%; }
.nav-glitch a:hover, .nav-glitch a.active { color: var(--glitch-secondary); text-shadow: 0 0 5px var(--glitch-secondary);}

/* Hero */
.hero-sec { text-align: center; margin-bottom: 80px; padding: 50px 0; position: relative;}
.hero-sec h1 { font-size: 56px; margin-bottom: 20px; letter-spacing: 4px;}
.hero-sec p { font-size: 18px; margin-bottom: 40px; color: #aaa;}
.btn-g {
    display: inline-block; padding: 15px 40px; font-size: 16px; font-weight: bold;
    background: var(--glitch-primary); color: #fff; text-transform: uppercase;
    border: none; cursor: pointer; position: relative; z-index: 1; margin: 0 10px;
    box-shadow: 4px 4px 0 var(--glitch-secondary); transition: all 0.1s;
}
.btn-g:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--glitch-secondary);}
.btn-g-alt {
    display: inline-block; padding: 13px 38px; font-size: 16px; font-weight: bold;
    background: transparent; color: var(--glitch-secondary); text-transform: uppercase;
    border: 2px solid var(--glitch-secondary); cursor: pointer; margin: 0 10px;
    box-shadow: 4px 4px 0 var(--glitch-primary); transition: all 0.1s;
}
.btn-g-alt:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--glitch-primary);}

/* Stats */
.stats-g {
    display: flex; justify-content: space-between; margin-bottom: 80px;
    border: 1px solid rgba(255,255,255,0.2); padding: 30px; background: rgba(255,255,255,0.02);
}
.sg-item { text-align: center; width: 25%; position: relative;}
.sg-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 10%; height: 80%; width: 1px; background: rgba(255,255,255,0.2);
}
.sg-val { font-size: 36px; font-weight: bold; color: var(--glitch-accent); margin-bottom: 5px;}
.sg-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px;}

/* Grid */
.grid-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px;}
.card-g {
    background: rgba(255,255,255,0.05); padding: 40px 30px; border: 1px solid rgba(255,255,255,0.1);
    position: relative; overflow: hidden; transition: all 0.3s;
}
.card-g:hover { border-color: var(--glitch-secondary); background: rgba(0, 240, 255, 0.05);}
.card-g::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
.card-g:hover::before { left: 200%; }
.cg-icon { font-size: 40px; margin-bottom: 20px; color: var(--glitch-primary);}
.card-g h3 { font-size: 20px; margin-bottom: 15px; text-transform: uppercase;}
.card-g p { font-size: 14px; color: #bbb; line-height: 1.6;}

/* Nodes */
.nodes-g { margin-bottom: 80px;}
.nodes-g h2 { font-size: 32px; margin-bottom: 30px; text-align: center; text-transform: uppercase;}
.nl-g { display: flex; flex-direction: column; gap: 10px;}
.ni-g {
    display: flex; justify-content: space-between; padding: 15px 20px;
    background: rgba(255,255,255,0.05); border-left: 3px solid var(--glitch-accent);
}
.ni-g span:last-child { color: var(--glitch-secondary); font-weight: bold;}

/* FAQ */
.faq-g { margin-bottom: 80px;}
.faq-g h2 { font-size: 32px; margin-bottom: 30px; text-align: center; text-transform: uppercase;}
.fq-box { margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); padding: 20px;}
.fq-q { font-size: 18px; font-weight: bold; color: var(--glitch-primary); margin-bottom: 10px;}
.fq-a { font-size: 14px; color: #ccc; line-height: 1.6;}

footer { text-align: center; padding: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: #666;}

@media (max-width: 900px) {
    .header-glitch { flex-direction: column; gap: 20px; }
    .hero-sec h1 { font-size: 36px; }
    .stats-g { flex-direction: column; gap: 30px; }
    .sg-item { width: 100%; }
    .sg-item:not(:last-child)::after { display: none; }
    .grid-g { grid-template-columns: 1fr; }
    .btn-g, .btn-g-alt { display: block; margin: 15px auto; width: 80%;}
}