/* ========================================
   Terminal Consulting — Styles
   ======================================== */

:root {
    --bg: #0a0a0a;
    --green: #00ff41;
    --green-dim: #00cc33;
    --green-dark: #00801f;
    --white: #e0e0e0;
    --gray: #555;
    --font: 'JetBrains Mono', 'Courier New', monospace;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body */
body {
    background: var(--bg);
    color: var(--green);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.4;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scanline overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* Terminal container */
.terminal {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 120px;
}

/* Lines */
.line {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 1.4em;
    opacity: 0;
    transition: opacity 0.05s;
}

.line.visible {
    opacity: 1;
}

.line.blank {
    height: 0.8em;
    min-height: 0;
}

/* Prompt */
.prompt {
    color: var(--green);
    font-weight: 700;
    user-select: none;
}

/* Commands */
.command {
    color: var(--white);
}

/* Output */
.output {
    color: var(--green-dim);
}

/* Tagline */
.tagline {
    color: var(--green);
    font-weight: 700;
}

/* Links */
.link {
    color: var(--green-dim);
    text-decoration: none;
    transition: color 0.15s;
    display: inline;
}

.link:hover {
    color: var(--green);
    text-decoration: underline;
}

/* Blinking cursor */
.cursor {
    color: var(--green);
    animation: blink 1s step-end infinite;
    opacity: 0;
}

.cursor.active {
    opacity: 1;
}

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

/* Typing cursor — shown at end of currently typing line */
.typing-cursor::after {
    content: '▋';
    color: var(--green);
    animation: blink 0.6s step-end infinite;
}

/* Hidden input — captures keystrokes, invisible */
#hidden-input {
    position: fixed;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Interactive input line — matches .line styling */
.input-line {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 1.4em;
}

/* All lines and input lines share same base */
.line,
.input-line {
    padding-left: 0;
    margin-left: 0;
}

.input-text {
    color: var(--white);
}

/* Request flow prompt */
.flow-prompt {
    color: var(--gray);
}

.flow-input {
    color: var(--white);
}

/* Status messages */
.success {
    color: var(--green);
    font-weight: 700;
}

.error {
    color: #ff5555;
}

.dim {
    color: var(--gray);
}

/* Selection */
::selection {
    background: var(--green);
    color: var(--bg);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .terminal {
        padding: 40px 16px 80px;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 12px;
    }
}
