/* ==================== ROOT & VARIABLES ==================== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1419;
    --bg-tertiary: #161b22;
    
    --accent-primary: #00ffaa;
    --accent-secondary: #00ddff;
    --accent-tertiary: #7700ff;
    
    --text-primary: #e6e6e6;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    
    --border-color: #30363d;
    --border-glow: rgba(0, 255, 170, 0.3);
    
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==================== BLOCKCHAIN BACKGROUND ==================== */
.blockchain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    background: 
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px) 0 0,
        linear-gradient(180deg, var(--border-color) 1px, transparent 1px) 0 0;
    background-size: 60px 60px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* ==================== PARTICLES ==================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0;
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(calc(var(--drift) * 20px));
    }
}

/* ==================== CONTAINER ==================== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==================== HEADER ==================== */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    perspective: 1000px;
}

/* 3D Rotating Block */
.logo-block {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateBlock 10s infinite linear;
}

.block-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 2px solid var(--accent-primary);
    opacity: 0.8;
}

.block-face.front  { transform: translateZ(30px); }
.block-face.back   { transform: rotateY(180deg) translateZ(30px); }
.block-face.right  { transform: rotateY(90deg) translateZ(30px); }
.block-face.left   { transform: rotateY(-90deg) translateZ(30px); }
.block-face.top    { transform: rotateX(90deg) translateZ(30px); }
.block-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes rotateBlock {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glitch {
    position: relative;
    color: var(--accent-primary);
    animation: glitchText 5s infinite;
}

.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(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-tertiary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate;
}

@keyframes glitchText {
    0%, 90%, 100% {
        text-shadow: 0 0 20px var(--accent-primary);
    }
    95% {
        text-shadow: 0 0 40px var(--accent-primary), 0 0 80px var(--accent-secondary);
    }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 120px, 0); }
    40% { clip: rect(50px, 9999px, 70px, 0); }
    60% { clip: rect(20px, 9999px, 90px, 0); }
    80% { clip: rect(60px, 9999px, 100px, 0); }
    100% { clip: rect(30px, 9999px, 50px, 0); }
}

.separator {
    color: var(--accent-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 36px;
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    margin-bottom: 60px;
}

.search-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(0, 255, 170, 0.1);
    transition: all 0.3s ease;
}

.search-container:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 60px rgba(0, 255, 170, 0.2);
}

.search-label {
    font-size: 12px;
    color: var(--accent-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 2px;
}

.label-icon {
    color: var(--accent-secondary);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

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

.search-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
    background: var(--bg-secondary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 8px;
    padding: 18px 40px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn:hover::before {
    width: 300px;
    height: 300px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.btn-text, .btn-arrow {
    position: relative;
    z-index: 1;
}

/* ==================== QUICK ACCESS ==================== */
.quick-access {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.quick-icon {
    color: var(--accent-secondary);
    font-weight: 700;
}

/* ==================== INFO CARDS ==================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-icon {
    color: var(--accent-primary);
    font-size: 20px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.card-content {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.card-example {
    display: block;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--accent-secondary);
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.stat-label {
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
}

.stat-value.connected {
    color: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
}

.stat-value.active {
    color: var(--accent-secondary);
}

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

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeIn 0.8s ease-out backwards;
}

.header {
    animation-delay: 0.1s;
}

.search-section {
    animation-delay: 0.2s;
}

.stats-bar {
    animation-delay: 0.3s;
}

.footer {
    animation-delay: 0.4s;
}
