/* DBOT Combined - Updated with all 8 changes */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --purple: #8B5CF6;
    --purple-dim: #6d28d9;
    --purple-glow: rgba(139, 92, 246, 0.4);
    --purple-light: #A78BFA;
    --cyan: #06b6d4;
    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.4);
    --red: #ef4444;
    --yellow: #eab308;
    --gold: #BA9F33;
    --text-primary: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #334155;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Space Grotesk', sans-serif;
    --glow-purple: 0 0 20px var(--purple-glow);
    --glow-green: 0 0 20px var(--green-glow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    perspective: 1000px;
}

/* Scanlines */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1000;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
    opacity: 0.3;
}

/* CHANGE 7 & 8: Matrix Rain - faster load, more streams, more 0s/1s */
.matrix-rain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.matrix-rain.active {
    opacity: 1;
}

.matrix-column {
    position: absolute; top: -100%;
    font-family: var(--font-mono); font-size: 12px; line-height: 1.2;
    color: var(--purple); opacity: 0.2;
    writing-mode: vertical-rl; text-orientation: upright;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 8px var(--purple);
}

@keyframes matrix-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200vh); }
}

/* Terminal */
.terminal {
    max-width: 900px; margin: 0 auto; min-height: 100vh;
    display: flex; flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--text-dim);
    box-shadow: 0 0 60px rgba(139,92,246,0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.terminal:hover {
    box-shadow: 0 0 80px rgba(139,92,246,0.15);
}

/* Header */
.terminal-header {
    display: flex; align-items: center; padding: 0.5rem 1rem;
    background: var(--bg-tertiary); border-bottom: 1px solid var(--text-dim);
    gap: 1rem;
}

.terminal-controls { display: flex; gap: 0.5rem; }
.control { width: 12px; height: 12px; border-radius: 50%; transition: transform 0.2s; }
.control:hover { transform: scale(1.2); }
.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27c93f; }
.terminal-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); flex: 1; }

/* CHANGE 4: Green status with pulsing green dot */
.terminal-status { 
    display: flex; align-items: center; gap: 0.5rem; 
    font-family: var(--font-mono); font-size: 0.7rem; 
}

.terminal-status .status-dot { 
    width: 6px; height: 6px; border-radius: 50%; 
    background: var(--purple);
    animation: pulse-purple 2s ease-in-out infinite;
}

.terminal-status.online .status-dot {
    background: var(--green);
    animation: pulse-green 2s ease-in-out infinite;
}

.terminal-status.online #status-text {
    color: var(--green);
}

@keyframes pulse-purple { 
    0%,100%{opacity:1;box-shadow:var(--glow-purple)} 
    50%{opacity:0.5;box-shadow:none} 
}

@keyframes pulse-green { 
    0%,100%{opacity:1;box-shadow:var(--glow-green)} 
    50%{opacity:0.5;box-shadow:none} 
}

/* Body */
.terminal-body { flex: 1; padding: 2rem; overflow-x: hidden; }

/* Boot Sequence */
.boot-sequence { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.boot-line { margin-bottom: 0.5rem; }
.boot-line .muted { color: var(--green); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Main Content */
.main-content { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* Text Logo */
.text-logo {
    text-align: center; margin-bottom: 0.5rem;
    font-family: var(--font-mono); font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700; letter-spacing: 0.3em;
}

.logo-text {
    color: var(--purple);
    text-shadow: 0 0 30px var(--purple-glow), 0 0 60px var(--purple-glow);
    animation: logoGlow 3s ease-in-out infinite;
    display: inline-block; transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 40px var(--purple-glow), 0 0 80px var(--purple-glow);
}

.logo-text:nth-child(1) { animation-delay: 0s; }
.logo-text:nth-child(2) { animation-delay: 0.1s; }
.logo-text:nth-child(3) { animation-delay: 0.2s; }
.logo-text:nth-child(4) { animation-delay: 0.3s; }

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 30px var(--purple-glow); }
    50% { text-shadow: 0 0 50px var(--purple-glow), 0 0 80px var(--purple-glow); }
}

/* Tagline */
.tagline {
    text-align: center;
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Hero Title */
.hero-title {
    font-family: var(--font-mono); font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700; text-align: center; margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    display: block; color: var(--purple);
    text-shadow: var(--glow-purple); margin-top: 0.5rem;
}

/* Glitch Effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: var(--bg-secondary);
}
.glitch::before {
    left: 2px; text-shadow: -2px 0 var(--red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: -2px 0 var(--cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(14px, 9999px, 127px, 0) }
    20% { clip: rect(66px, 9999px, 86px, 0) }
    40% { clip: rect(81px, 9999px, 137px, 0) }
    60% { clip: rect(21px, 9999px, 4px, 0) }
    80% { clip: rect(104px, 9999px, 67px, 0) }
    100% { clip: rect(122px, 9999px, 86px, 0) }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0) }
    20% { clip: rect(3px, 9999px, 67px, 0) }
    40% { clip: rect(88px, 9999px, 14px, 0) }
    60% { clip: rect(12px, 9999px, 6px, 0) }
    80% { clip: rect(51px, 9999px, 95px, 0) }
    100% { clip: rect(4px, 9999px, 130px, 0) }
}

/* Badges Wrapper */
.badges-wrapper { text-align: center; margin-bottom: 1.5rem; }

/* CHANGE 2: Chain Badge - now purple */
.chain-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; 
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--purple); 
    margin-bottom: 1rem;
    font-family: var(--font-mono); font-size: 0.7rem; 
    color: var(--purple);
    text-transform: uppercase; letter-spacing: 0.1em;
}

.token-warning {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0.5rem;
    padding: 1rem 1.5rem; background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--red); margin-bottom: 1rem;
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
    color: var(--red); text-transform: uppercase; letter-spacing: 0.05em;
    animation: warningPulse 2s ease-in-out infinite;
}

.token-warning i { font-size: 1rem; }
@keyframes warningPulse { 0%,100%{opacity:1} 50%{opacity:0.7} }

.coming-soon-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 2rem; background: var(--purple); border: none;
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
    color: var(--bg-primary); text-transform: uppercase; letter-spacing: 0.15em;
    animation: badgeGlow 2s ease-in-out infinite;
}

.coming-soon-badge .badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--bg-primary); animation: blink 1s step-end infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px var(--purple-glow); }
    50% { box-shadow: 0 0 40px var(--purple-glow); }
}

/* CHANGE 1: Manifesto Box with typewriter */
.manifesto-box {
    background: var(--bg-primary); border: 1px solid var(--purple-dim);
    margin-bottom: 2rem; font-family: var(--font-mono);
    transform-style: preserve-3d; transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.manifesto-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.box-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--purple-dim);
    border-bottom: 1px solid var(--purple);
    font-size: 0.75rem; color: var(--text-primary); letter-spacing: 0.1em;
}

.box-header i { color: var(--text-primary); }

.box-content { 
    padding: 1.5rem; 
    background: var(--bg-tertiary);
    min-height: 150px;
}

.manifesto-line {
    font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.manifesto-line.visible {
    opacity: 1;
    transform: translateX(0);
}

/* CHANGE 5: $DBOT line white and bold */
.manifesto-line.accent {
    color: var(--text-primary); 
    font-weight: 700; 
    margin-top: 1rem;
}

/* About Section */
.about-section {
    background: var(--bg-tertiary); border: 1px solid var(--text-dim);
    padding: 2rem; margin-bottom: 2rem;
    transform-style: preserve-3d; transition: transform 0.3s ease;
}

.about-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.section-header {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--purple); margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.section-header i { font-size: 1.2rem; }

.about-text {
    font-family: var(--font-sans); font-size: 1rem;
    color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6;
}

.features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; perspective: 1000px;
}

.feature {
    padding: 1.25rem; background: var(--bg-secondary); 
    border: 1px solid var(--text-dim);
    border-radius: 4px; text-align: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.feature:hover {
    transform: translateY(-5px) rotateX(3deg);
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.feature-icon {
    font-size: 1.5rem; color: var(--purple); font-weight: bold;
    font-family: var(--font-mono);
}

.feature h3 {
    margin: 0.75rem 0 0.5rem; font-size: 0.9rem;
    font-family: var(--font-sans);
}

.feature p {
    color: var(--text-muted); font-size: 0.8rem;
    font-family: var(--font-sans);
}

/* Shape Section */
.shape-section {
    background: var(--bg-tertiary); border: 1px solid var(--text-dim);
    padding: 2rem; margin-bottom: 2rem;
    transform-style: preserve-3d; transition: transform 0.3s ease;
}

.shape-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.shape-intro {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-muted); margin-bottom: 1.5rem;
}

/* CHANGE 3: Vote Cards use same hover as features */
.vote-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin-bottom: 1.5rem; perspective: 1000px;
}

.card.feature-style {
    padding: 1.25rem; background: var(--bg-secondary);
    border: 1px solid var(--text-dim);
    border-radius: 4px; text-align: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card.feature-style:hover {
    transform: translateY(-5px) rotateX(3deg);
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.card.feature-style .card-icon {
    font-size: 2rem; color: var(--purple); 
    display: block; margin-bottom: 0.75rem;
}

.card.feature-style h3 {
    font-family: var(--font-mono); font-size: 0.75rem;
    letter-spacing: 0.1em; margin-bottom: 0.5rem; color: var(--purple);
}

.card.feature-style p {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--text-muted); line-height: 1.6;
}

/* Status Grid */
.status-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-bottom: 2rem; perspective: 1000px;
}

.status-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1rem; background: var(--bg-tertiary); border: 1px solid var(--text-dim);
    text-align: center; transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.status-item:hover {
    transform: translateY(-5px) rotateX(3deg);
    border-color: var(--purple-dim);
}

.status-item i { font-size: 1.5rem; color: var(--purple); }
.status-item .label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; }
.status-item .value { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-primary); }
.status-item .value.active { color: var(--green); }
.status-item .value.pending { color: var(--yellow); }

/* CTA Section */
.cta-section { text-align: center; margin-bottom: 2rem; }

.cta-prompt {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-muted); margin-bottom: 1rem; letter-spacing: 0.1em;
}

.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 1.5rem; font-family: var(--font-mono); font-size: 0.85rem;
    font-weight: 500; text-decoration: none; background: transparent;
    border: 1px solid var(--purple); color: var(--purple);
    transition: all 0.3s ease; min-width: 160px;
}

.cta-btn:hover {
    background: var(--purple); color: var(--bg-primary);
    box-shadow: var(--glow-purple); transform: translateY(-3px);
}

.cta-btn.primary {
    background: var(--purple); color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cta-btn.primary:hover {
    background: var(--purple-light);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.cta-btn.telegram {
    border-color: #0088cc; color: #0088cc;
}

.cta-btn.telegram:hover {
    background: #0088cc; color: white;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

.cta-btn.secondary { border-color: var(--text-dim); color: var(--text-muted); }
.cta-btn.secondary:hover { background: var(--text-dim); color: var(--text-primary); }

/* Command Line */
.command-line {
    font-family: var(--font-mono); font-size: 0.9rem;
    color: var(--text-muted); text-align: center;
}

.prompt-symbol { color: var(--purple); margin-right: 0.5rem; }

.cursor {
    display: inline-block; width: 8px; height: 1em;
    background: var(--purple); animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* Footer */
.terminal-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; background: var(--bg-tertiary);
    border-top: 1px solid var(--text-dim);
    font-family: var(--font-mono); font-size: 0.65rem;
}

.footer-left, .footer-right { display: flex; gap: 1rem; }
.footer-center { text-align: center; }

.footer-item {
    display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted);
}

.footer-item i { font-size: 0.8rem; color: var(--green); }

/* Responsive */
@media (max-width: 768px) {
    .terminal-body { padding: 1rem; }
    .terminal-header { flex-wrap: wrap; }
    .terminal-footer { flex-direction: column; gap: 0.5rem; }
    .footer-left, .footer-center, .footer-right { justify-content: center; }
    .status-grid { grid-template-columns: repeat(2, 1fr); }
    .features, .vote-cards { grid-template-columns: 1fr; }
    .cta-btn { width: 100%; }
    .token-warning { font-size: 0.5rem; }
}
