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

:root {
    --primary: #00ff41;
    --secondary: #0066ff;
    --dark: #0a0e27;
    --darker: #050812;
    --error: #ff0055;
    --warning: #ffaa00;
    --success: #00ff88;
    --text: #e0e0e0;
    --text-dim: #888;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    z-index: -1;
    opacity: 0.3;
}

.matrix-bg::before {
    content: "01001110 01001111 01001111 01000010";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary);
    font-size: 12px;
    line-height: 20px;
    overflow: hidden;
    opacity: 0.1;
    animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

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

/* Navbar */
.navbar {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.bracket {
    color: var(--secondary);
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.btn-buy {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-buy:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: 30px;
}

.glitch {
    font-size: 72px;
    font-weight: bold;
    color: var(--primary);
    position: relative;
    text-transform: uppercase;
    animation: glitch-pulse 3s ease-in-out infinite;
}

@keyframes glitch-pulse {
    0%, 100% { text-shadow: 0 0 20px var(--primary); }
    50% { text-shadow: 0 0 40px var(--primary), 0 0 60px var(--primary); }
}

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

.glitch::before {
    animation: glitch-1 2.5s infinite;
    color: var(--error);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Typing Code */
.typing-container {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.typing-text {
    font-size: 18px;
    line-height: 1.8;
    display: block;
    text-align: left;
}

.keyword {
    color: #ff79c6;
}

.variable {
    color: #8be9fd;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.tagline {
    font-size: 20px;
    color: var(--text-dim);
    margin: 30px 0;
    font-style: italic;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Contract Address Display */
.contract-display {
    margin-top: 30px;
    padding: 20px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--primary);
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contract-label {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contract-address {
    font-size: 16px;
    color: var(--primary);
    font-weight: bold;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 20px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-dim);
}

/* Sections */
.section {
    padding: 100px 20px;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary);
}

.comment {
    color: var(--text-dim);
    font-style: italic;
}

/* Code Block */
.code-block {
    background: rgba(10, 14, 39, 0.9);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 60px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 12px;
}

.code-block pre {
    padding: 30px;
    overflow-x: auto;
    line-height: 1.6;
}

.code-block code {
    font-size: 14px;
}

.class-name {
    color: #8be9fd;
    font-weight: bold;
}

.number {
    color: #bd93f9;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

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

/* Memes Section */
.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.meme-card {
    transition: transform 0.3s;
}

.meme-card:hover {
    transform: scale(1.05);
}

.terminal {
    background: rgba(10, 14, 39, 0.9);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.terminal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.prompt {
    color: var(--primary);
}

.error {
    color: var(--error);
}

.success {
    color: var(--success);
}

.thinking {
    color: var(--warning);
    font-style: italic;
    margin-top: 10px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    min-width: 200px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.2);
}

.social-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.social-name {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.social-desc {
    color: var(--text-dim);
    font-size: 14px;
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.9);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding: 40px 20px;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-dim);
    margin-bottom: 15px;
    font-size: 14px;
}

.copyright {
    color: var(--text-dim);
    font-size: 12px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--dark);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 48px;
    }
    
    .typing-text {
        font-size: 14px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .meme-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Animation delays for stats */
.stat-item:nth-child(1) { animation: fadeInUp 0.6s ease 0.2s both; }
.stat-item:nth-child(2) { animation: fadeInUp 0.6s ease 0.4s both; }
.stat-item:nth-child(3) { animation: fadeInUp 0.6s ease 0.6s both; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
