:root {
    --bg: #030303;
    --neon-purple: #9945FF;
    --neon-green: #14F195;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #888888;
    --font-header: 'Syncopate', sans-serif;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains+Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: crosshair; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

/* Background Effects */
.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(153, 69, 255, 0.05);
    z-index: 100; pointer-events: none;
    animation: scan 8s linear infinite;
}

.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15; pointer-events: none; z-index: 99;
}

.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.glow-sphere {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -2; opacity: 0.3;
}
.sphere-1 { width: 500px; height: 500px; background: var(--neon-purple); top: -200px; left: -100px; }
.sphere-2 { width: 400px; height: 400px; background: var(--neon-green); bottom: -100px; right: -100px; }

.container {
    max-width: 900px; width: 100%; padding: 4rem 2rem; z-index: 10;
}

/* Header & Status */
.status-bar {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    font-size: 0.9rem; font-weight: 900; letter-spacing: 0.2em; color: var(--text-dim);
    margin-bottom: 3rem;
}

.pulse-dot {
    width: 10px; height: 10px; background: var(--neon-green); border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green); animation: pulse 2s infinite;
}

.hero-section { text-align: center; margin-bottom: 3rem; }

.cycle-tag {
    display: inline-block; padding: 0.8rem 1.5rem; border: 1px solid var(--neon-green);
    color: var(--neon-green); font-size: 1rem; font-weight: 800; border-radius: 4px;
    margin-bottom: 1.5rem; letter-spacing: 0.3em;
}

.main-title {
    font-family: var(--font-header); font-size: clamp(3rem, 10vw, 6rem); line-height: 0.9;
    letter-spacing: -0.05em; margin-bottom: 1.5rem; text-transform: uppercase;
}

.glitch-text { position: relative; color: var(--text); }
.glitch-text::after {
    content: attr(data-text); position: absolute; left: 2px; text-shadow: -2px 0 var(--neon-purple);
    top: 0; color: var(--text); background: var(--bg); overflow: hidden; clip: rect(0, 900px, 0, 0);
    animation: glitch 3s infinite linear alternate-reverse;
}

/* System Pipeline */
.system-pipeline {
    padding: 2.5rem; margin-bottom: 3rem; border: 1px solid var(--glass-border); text-align: center;
}

.pipeline-header {
    font-size: 0.9rem; font-weight: 900; letter-spacing: 0.3em; color: var(--neon-purple);
    margin-bottom: 2.5rem;
}

.pipeline-steps {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.step {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem;
    opacity: 0.3; transition: all 0.5s ease;
}

.step.active {
    opacity: 1; animation: blink 1.5s infinite;
}

.step-icon {
    width: 45px; height: 45px; border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-header); font-size: 1rem; border-radius: 50%;
}

.step.active .step-icon {
    border-color: var(--neon-green); color: var(--neon-green);
    box-shadow: 0 0 15px rgba(20, 241, 149, 0.3);
}

.step-label {
    font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em;
}

.pipeline-arrow {
    color: var(--text-dim); font-size: 1.2rem; font-weight: 900;
}

/* AI Blueprint Section */
.token-preview {
    padding: 2.5rem; 
    margin-bottom: 3rem; 
    border: 1px solid var(--glass-border);
    min-height: 480px; /* Фиксированная минимальная высота для предотвращения прыжков */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.narrative-box {
    min-height: 120px; /* Запас под текст описания */
    display: flex;
    flex-direction: column;
}

.narrative-text { 
    font-size: 1.1rem; 
    color: var(--text-dim); 
    line-height: 1.6; 
    margin-top: 0.5rem;
    min-height: 80px; /* Гарантируем место под 3-4 строки текста */
}

.blueprint-header {
    display: flex; justify-content: space-between; margin-bottom: 2rem;
}

.blueprint-header .label {
    font-size: 1rem; font-weight: 900; letter-spacing: 0.3em; color: var(--neon-purple);
}

.gen-code {
    font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-dim);
}

.preview-layout {
    display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: center;
}

.token-art {
    width: 220px; height: 220px; position: relative; border: 1px solid var(--glass-border);
}

.token-image {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    filter: saturate(1.5) contrast(1.1); opacity: 0.8;
}

.token-specs { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }

.spec-row { display: flex; gap: 1.5rem; align-items: baseline; }

.spec-label { font-size: 0.9rem; font-weight: 900; color: var(--text-dim); letter-spacing: 0.1em; width: 100px; }

.spec-value { font-family: var(--font-header); font-size: 1.6rem; color: #fff; }

.ai-logic-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 900; color: var(--neon-green);
    background: rgba(20, 241, 149, 0.1); padding: 8px 15px; border-radius: 4px;
    letter-spacing: 0.1em; margin-bottom: 1rem;
}

.narrative-text { font-size: 1.1rem; color: var(--text-dim); line-height: 1.6; margin-top: 0.5rem; }

.ai-info-footer {
    font-size: 0.85rem; color: var(--text-dim); line-height: 1.5;
    margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border);
    font-style: italic;
}

/* Mechanics Grid */
.mechanics-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem;
}

.glass-card {
    background: var(--glass); border: 1px solid var(--glass-border); padding: 2rem;
    border-radius: 12px; backdrop-filter: blur(10px); transition: all 0.3s ease;
}

.glass-card:hover { border-color: var(--neon-purple); transform: translateY(-5px); }

.card-num { font-family: var(--font-header); font-size: 1.1rem; color: var(--neon-green); margin-bottom: 1rem; opacity: 0.5; }

.info-card h3 { font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; color: var(--text); }

.info-card p { font-size: 1rem; color: var(--text-dim); line-height: 1.5; }

/* Mission Control */
.progress-box { max-width: 700px; margin: 0 auto 3rem; width: 100%; }

.progress-labels { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }

.label-main { font-size: 1rem; font-weight: 900; letter-spacing: 0.2em; color: var(--neon-purple); }

.label-percent { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; }

.cyber-progress {
    height: 16px; background: rgba(255, 255, 255, 0.05); border-radius: 2px;
    position: relative; overflow: hidden; border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--neon-purple), var(--neon-green));
    width: 0%; transition: width 2s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-footer { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.9rem; color: var(--text-dim); font-family: var(--font-mono); }

/* Terminal Card */
.terminal-card {
    background: #0a0a0a; border: 1px solid var(--glass-border); border-radius: 8px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); max-width: 700px; margin: 0 auto;
}

.terminal-header { background: #1a1a1a; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.5rem; }

.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.term-title { font-size: 0.9rem; font-weight: 800; color: var(--text-dim); margin-left: 1.5rem; letter-spacing: 0.1em; }

.terminal-body { padding: 3rem; }

.term-instruction { font-size: 1.1rem; font-weight: 800; color: var(--neon-green); margin-bottom: 2rem; letter-spacing: 0.1em; text-align: center; }

.address-box {
    display: flex; align-items: center; justify-content: space-between;
    background: #000; border: 1px solid #222; padding: 1.5rem; border-radius: 4px; margin-bottom: 2rem;
}

#wallet-address { font-family: var(--font-mono); font-size: 1.1rem; color: #fff; word-break: break-all; }

.fee-note { font-size: 0.9rem; color: var(--text-dim); margin-top: 1.5rem; opacity: 0.7; text-align: center; }

.status-msg {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--neon-green);
    margin-top: 1rem; opacity: 0; transition: opacity 0.3s; text-align: center;
}
.status-msg.show { opacity: 1; }

.icon-btn {
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    transition: all 0.2s; padding: 5px; display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--neon-green); transform: scale(1.1); }

/* Footer */
.footer { text-align: center; margin-top: 4rem; }

.cyber-timer { font-family: var(--font-header); font-size: 2.5rem; letter-spacing: 0.1em; color: #fff; margin-bottom: 1.5rem; }

.social-dock { display: flex; justify-content: center; gap: 3rem; }

.dock-link { color: var(--text-dim); text-decoration: none; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.2em; transition: color 0.2s; }
.dock-link:hover { color: var(--neon-green); }

/* Animations */
@keyframes scan { from { top: -10%; } to { top: 110%; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes glitch {
    0% { clip: rect(44px, 900px, 56px, 0); } 20% { clip: rect(12px, 900px, 34px, 0); }
    40% { clip: rect(67px, 900px, 89px, 0); } 60% { clip: rect(23px, 900px, 45px, 0); }
    80% { clip: rect(54px, 900px, 76px, 0); } 100% { clip: rect(81px, 900px, 93px, 0); }
}

@media (max-width: 768px) {
    .pipeline-steps { flex-direction: column; }
    .pipeline-arrow { transform: rotate(90deg); }
    .preview-layout { grid-template-columns: 1fr; }
    .mechanics-grid { grid-template-columns: 1fr; }
}
