:root {
    --bg: #050505;
    --grid: #111111;
    --red-dark: #b30000;
    --red: #ff0000;
    --orange: #ff6600;
    --yellow: #ffff00;
    --white: #ffffff;
    --text-main: #e0e0e0;
    --text-dim: #888888;
    
    --font-display: 'Press Start 2P', monospace;
    --font-mono: 'JetBrains Mono', monospace;
    
    --border-thick: 4px solid var(--red);
    --border-thin: 2px solid var(--red-dark);
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-mono);
    -webkit-font-smoothing: none; 
    overflow-x: hidden;
    background-image: 
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 20px 20px;
}

::selection {
    background: var(--yellow);
    color: var(--bg);
}


body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}


h1, h2, h3, .pixel-text {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.2;
}

.label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.sys-text {
    color: var(--yellow);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: var(--border-thick);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.nav-logo {
    color: var(--yellow);
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 var(--red);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo::before {
    content: '>';
    color: var(--red);
    animation: blink 1s step-end infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--yellow);
}


.btn {
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    box-shadow: 4px 4px 0 var(--red-dark);
    transition: all 0.1s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--yellow);
    color: var(--bg);
    box-shadow: 4px 4px 0 var(--orange);
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 var(--orange);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    box-shadow: 4px 4px 0 var(--red-dark);
}

.btn-outline:hover {
    background: var(--yellow);
    color: var(--bg);
}


header.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-thick);
}

#fireCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 0;
    image-rendering: pixelated; 
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(5, 5, 5, 0.7);
    padding: 3rem;
    border: var(--border-thick);
    box-shadow: 10px 10px 0 rgba(255,0,0,0.2);
    backdrop-filter: blur(2px);
}

.hero-title {
    font-size: 6rem;
    color: var(--white);
    text-shadow: 
        4px 4px 0 var(--red),
        8px 8px 0 var(--orange),
        12px 12px 0 var(--yellow);
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--yellow);
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
}

.contract-box {
    display: inline-flex;
    align-items: center;
    background: #000;
    border: var(--border-thin);
    padding: 0.5rem 1rem;
    gap: 1rem;
    margin-top: 2rem;
}

.contract-box code {
    color: var(--text-dim);
    font-size: 0.8rem;
}


.marquee-container {
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    padding: 0.75rem 0;
    overflow: hidden;
    border-bottom: var(--border-thick);
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    border-bottom: 2px solid var(--red-dark);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 3px 3px 0 var(--red);
}

.section-meta {
    font-size: 0.7rem;
    color: var(--yellow);
    padding-bottom: 0.5rem;
}


.tkn-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.panel {
    background: #000;
    border: var(--border-thin);
    padding: 2rem;
    position: relative;
    box-shadow: 6px 6px 0 var(--red-dark);
}


.panel::before, .panel::after {
    content: '';
    position: absolute;
    background: var(--bg);
    width: 8px;
    height: 8px;
}
.panel::before { top: -2px; left: -2px; border-right: var(--border-thin); border-bottom: var(--border-thin); }
.panel::after { bottom: -2px; right: -2px; border-left: var(--border-thin); border-top: var(--border-thin); }

.panel.col-4 { grid-column: span 4; }
.panel.col-8 { grid-column: span 8; }
.panel.col-12 { grid-column: span 12; }

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--yellow);
    margin-top: 1rem;
    word-break: break-all;
}

.stat-bar {
    height: 20px;
    background: var(--grid);
    border: 2px solid var(--red-dark);
    margin-top: 1.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--red),
        var(--red) 10px,
        var(--orange) 10px,
        var(--orange) 20px
    );
    width: 100%;
}


.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    position: relative;
    padding-bottom: 4rem;
}

.step::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 50px;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(to bottom, var(--red) 0, var(--red) 10px, transparent 10px, transparent 20px);
    z-index: -1;
}

.step:last-child::before {
    display: none;
}

.step-num {
    width: 100px;
    height: 100px;
    background: var(--bg);
    border: var(--border-thick);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--yellow);
    box-shadow: 4px 4px 0 var(--red-dark);
}

.step-content {
    background: rgba(0,0,0,0.8);
    border: 2px solid var(--text-dim);
    padding: 2rem;
}

.step-content h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-content p {
    line-height: 1.6;
    color: var(--text-dim);
}


footer {
    border-top: var(--border-thick);
    padding: 4rem 2rem;
    text-align: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-link {
    font-family: var(--font-display);
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--yellow);
    text-shadow: 2px 2px 0 var(--red);
}

.footer-bottom {
    margin-top: 4rem;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}


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


.decor-bracket {
    color: var(--red-dark);
}


@media (max-width: 1024px) {
    .tkn-grid { display: flex; flex-direction: column; }
    .hero-title { font-size: 4rem; }
}
