/* --- Global Styles & Page Layout --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace; /* Monospace for consistency */
    background: #0a0a0f; /* Darker background */
    color: #e0e0e0; /* Light grey base text */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    box-sizing: border-box;
}

header, section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(20, 20, 30, 0.5); /* Semi-transparent dark sections */
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.1);
}

header {
    text-align: center;
    border-bottom: 2px solid #00ffcc; /* Accent border */
}

.coin-icon {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite; /* Subtle float */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: #00ffcc; /* Neon cyan */
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
    margin: 0 0 10px 0;
}

.tagline {
    font-size: 1.1rem;
    color: #aaa;
    font-style: italic;
}

h2 {
    font-family: 'Press Start 2P', cursive;
    color: #ffcc00; /* Gold headings */
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

h3 { /* Keep h3 for subsections if needed */
     font-family: 'Press Start 2P', cursive;
     color: #00ffcc;
     font-size: 1.1rem;
}

/* --- Countdown Timer --- */
.countdown {
    text-align: center;
}
#timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}
.time-block {
    background: #1a1a2a;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #444;
    min-width: 60px;
}
.time-block span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #00ffcc;
}
.time-block p {
    margin: 0;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

/* --- Terminal Section Layout --- */
.terminal-section {
    display: flex;
    gap: 20px;
    background: none; /* Remove background from the section itself */
    border: none;
    box-shadow: none;
    padding: 0;
}

.terminal-container {
    flex: 1; /* Each terminal takes half the space */
    background: #000;
    border: 1px solid; /* Border color set below */
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column; /* Stack title, output, input */
    height: 500px; /* Fixed height */
    overflow: hidden; /* Hide overflow, output area will scroll */
    position: relative; /* For potential absolute elements later */
}

/* Specific Terminal Borders */
.terminal-left { border-color: #00ff00; } /* Green border left */
.terminal-right { border-color: #ff00ff; } /* Magenta border right */

.terminal-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid; /* Separator line */
    text-align: center;
    flex-shrink: 0; /* Prevent title from shrinking */
}
.terminal-left .terminal-title { color: #00ff00; border-color: #00ff00;}
.terminal-right .terminal-title { color: #ff00ff; border-color: #ff00ff;}


/* Terminal Output Area */
.terminal-output {
    flex-grow: 1; /* Take available space */
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-y: auto; /* Enable vertical scrolling */
    word-wrap: break-word;
    white-space: pre-wrap; /* Preserve whitespace and wrap */
    margin-bottom: 10px; /* Space before input line */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #555 #000; /* Firefox scrollbar */
}
/* Webkit Scrollbar */
.terminal-output::-webkit-scrollbar { width: 8px; }
.terminal-output::-webkit-scrollbar-track { background: #000; }
.terminal-output::-webkit-scrollbar-thumb { background-color: #555; border-radius: 4px; border: 1px solid #000; }

/* Input Line (Left Terminal) */
.input-line {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
    border-top: 1px dashed #333; /* Separator */
    padding-top: 5px;
}
.prompt {
    color: #00ff00; /* Green prompt */
    margin-right: 8px;
    font-weight: bold;
}
#input {
    flex-grow: 1;
    background: transparent;
    color: #00ff00; /* Green input text */
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Roboto Mono', monospace;
    /* Blinking cursor */
    border-right: 0.15em solid #00ff00;
    animation: blink-caret .75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff00; }
}
#input:disabled { /* Style when disabled (e.g., on exit) */
    color: #555;
    border-right-color: transparent;
    animation: none;
}

/* --- Log Message Styling --- */

/* Left Terminal (User Interaction & AI Core) */
#output .user-command { color: #ffffff; font-weight: bold; } /* White Bold for User */
#output .system-response { color: #00ff00; } /* Green for standard AI response */
#output .system-info { color: #00ccff; } /* Cyan for info messages */
#output .error-response { color: #ff4444; font-weight: bold;} /* Red for errors */
#output .code-snippet { color: #c0c0ff; background: #1a1a2a; padding: 2px 4px; border-radius: 3px; display: block; margin: 2px 0; } /* Code style */
#output .file-op { color: #ffff99; } /* Yellow for file ops */
#output .contract-info { color: #cc99ff; } /* Purple for contract info */

/* Right Terminal (AGI Subsystems) */
#agi-output p { margin: 2px 0; } /* Tighter spacing for high volume */
#agi-output .agi-core { color: #ff00ff; } /* Magenta for Core Process */
#agi-output .agi-resource { color: #ffa500; } /* Orange for Resource Monitoring */
#agi-output .agi-network { color: #00ccff; } /* Cyan for Network/Blockchain */
#agi-output .agi-meme { color: #ffff00; font-style: italic;} /* Yellow Italic for Meme Analysis */
#agi-output .agi-learning { color: #99ff99; } /* Light Green for Learning/Optimizing */
#agi-output .agi-security { color: #ff6666; } /* Light Red for Security */
#agi-output .agi-anomaly { color: #ff0000; font-weight: bold; text-shadow: 0 0 5px #ff0000; animation: pulse_red 1s infinite; } /* Pulsing Red for Anomalies */
#agi-output .agi-warning { color: #ffd700; } /* Gold for warnings */

@keyframes pulse_red {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}


/* --- Other Sections (Presale, Info, Social) --- */
.presale {
    text-align: center;
}
.btn {
    display: inline-block;
    background-color: #00ffcc;
    color: #0a0a0f;
    padding: 12px 25px;
    font-family: 'Press Start 2P', cursive;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #ffcc00;
    color: #000;
    box-shadow: 0 0 15px #ffcc00;
}

.info {
    background: rgba(30, 10, 30, 0.6); /* Different tint */
    border-color: #ff00ff;
}

.social {
    text-align: center;
}
.social-links {
    margin-top: 15px;
}
.social-links a {
    margin: 0 15px;
    display: inline-block;
}
.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}
.social-links img:hover {
    transform: scale(1.2);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .terminal-section {
        flex-direction: column; /* Stack terminals vertically */
    }
    .terminal-container {
        height: 400px; /* Adjust height for smaller screens */
        margin-bottom: 20px;
    }
    .logo { font-size: 2rem; }
}

@media (max-width: 600px) {
    .container { margin: 10px; padding: 10px; }
    header, section { padding: 15px; }
    .logo { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    .btn { font-size: 0.9rem; padding: 10px 20px; }
    .time-block span { font-size: 1.5rem; }
    .time-block p { font-size: 0.7rem; }
    .social-links img { width: 30px; height: 30px; }
    .terminal-container { height: 350px; }
    .terminal-output { font-size: 0.8rem; }
    #input { font-size: 0.85rem; }
}