/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: #ffffff;
    color: #cc0000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    border: 4px solid #cc0000;
    background: 
        linear-gradient(45deg, transparent 2px, #cc0000 2px, #cc0000 4px, transparent 4px),
        linear-gradient(-45deg, transparent 2px, #cc0000 2px, #cc0000 4px, transparent 4px);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #ffffff;
    z-index: -1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pixel-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-char {
    font-size: 32px;
    color: #cc0000;
    text-shadow: 2px 2px 0px #ffffff, -2px -2px 0px #ffffff, 2px -2px 0px #ffffff, -2px 2px 0px #ffffff;
    animation: pixelGlow 2s infinite alternate;
}

.logo-text {
    font-size: 24px;
    color: #cc0000;
    margin-left: 10px;
}

.validator-title {
    font-size: 20px;
    color: #cc0000;
}

.solana-badge {
    background: #cc0000;
    color: #ffffff;
    padding: 10px 15px;
    font-size: 10px;
    border: 2px solid #cc0000;
    position: relative;
}

.solana-badge::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid #ffffff;
}

/* Animation */
@keyframes pixelGlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Pixel border component */
.pixel-border {
    border: 4px solid #cc0000;
    padding: 20px;
    background: #ffffff;
    position: relative;
}

.pixel-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: 
        repeating-linear-gradient(
            0deg,
            #cc0000 0px,
            #cc0000 2px,
            #ffffff 2px,
            #ffffff 4px
        );
    z-index: -1;
}

/* Section titles */
.section-title {
    font-size: 16px;
    color: #cc0000;
    margin-bottom: 20px;
    text-align: center;
}

/* Hero section */
.hero-section {
    text-align: center;
}

.vision-text {
    font-size: 12px;
    line-height: 1.8;
    color: #cc0000;
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: 3px solid #cc0000;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #cc0000;
}

.stat-card.commission {
    background: 
        radial-gradient(circle at 25% 25%, #cc0000 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #cc0000 2px, transparent 2px);
    background-size: 20px 20px;
}

.stat-card.mev {
    background: 
        linear-gradient(45deg, #ffffff 25%, transparent 25%),
        linear-gradient(-45deg, #ffffff 25%, transparent 25%);
    background-size: 10px 10px;
}

.stat-card.location {
    background: 
        repeating-linear-gradient(
            90deg,
            #ffffff 0px,
            #ffffff 8px,
            #cc0000 8px,
            #cc0000 9px,
            #ffffff 9px,
            #ffffff 18px
        );
}

.stat-card.uptime {
    background: 
        conic-gradient(from 0deg, #cc0000 10deg, #ffffff 10deg, #ffffff 20deg, #cc0000 20deg);
    background-size: 20px 20px;
}

.stat-header {
    font-size: 10px;
    color: #cc0000;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 18px;
    color: #cc0000;
    font-weight: bold;
}

/* Validator info */
.validator-info {
    margin: 20px 0;
}

/* Security section */
.security-section {
    margin: 20px 0;
}

.security-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-text {
    font-size: 10px;
    line-height: 1.8;
    color: #cc0000;
    text-align: left;
}

.key-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.key-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            #cc0000 2px,
            #cc0000 3px
        );
}

.key-label {
    font-size: 10px;
    color: #cc0000;
    font-weight: bold;
}

.key-value {
    font-size: 8px;
    color: #cc0000;
    word-break: break-all;
    font-family: monospace;
    background: #ffffff;
    padding: 5px;
    border: 1px solid #cc0000;
}

/* CTA section */
.cta-section {
    text-align: center;
    margin: 40px 0;
}

.pixel-button-container {
    display: inline-block;
}

.pixel-button {
    background: #cc0000;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.pixel-button:hover {
    background: #ffffff;
    color: #cc0000;
    border: 2px solid #cc0000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #cc0000;
}

.pixel-button:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #cc0000;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 20px;
    border-top: 4px solid #cc0000;
    background: 
        repeating-linear-gradient(
            0deg,
            #ffffff 0px,
            #ffffff 8px,
            #cc0000 8px,
            #cc0000 9px
        );
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    font-size: 8px;
    color: #cc0000;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-link {
    font-size: 8px;
    color: #cc0000;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    background: #cc0000;
    padding: 2px 4px;
}

.footer-separator {
    font-size: 8px;
    color: #cc0000;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .key-item {
        padding: 8px;
    }
    
    .key-value {
        font-size: 7px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-char {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .validator-title {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .vision-text {
        font-size: 10px;
    }
    
    .pixel-button {
        font-size: 10px;
        padding: 12px 24px;
    }
}