/* Cyber Sparrow landing — Claude Code terminal aesthetic */

:root {
    --bg: #0a0a0f;
    --bg-deep: #050508;
    --fg: #c9c9d4;
    --fg-dim: #7a7a88;
    --accent-cyan: #5ccfe6;
    --accent-green: #4ade80;
    --accent-orange: #f0a36b;
    --accent-red: #f07272;
    --prompt: #7a8ca0;
    --border: #1f1f2a;
    --cursor: #5ccfe6;
    --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", "Menlo", "Consolas", monospace;
}

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

html, body {
    height: 100%;
    background: var(--bg-deep);
}

body {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px;
    min-height: 100vh;
}

.terminal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 880px;
    width: 100%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

/* Top bar with window dots */
.topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #14141a;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--fg-dim);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

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

.title {
    margin-left: 10px;
    letter-spacing: 0.02em;
}

/* Controls */
.toggles {
    position: absolute;
    top: 10px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.toggle {
    font: inherit;
    font-size: 11px;
    background: transparent;
    color: var(--fg-dim);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    transition: color 120ms, border-color 120ms, background 120ms;
}

.toggle:hover, .toggle:focus-visible {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    outline: none;
    background: rgba(92, 207, 230, 0.06);
}

.toggle[aria-pressed="true"] {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

/* Terminal screen */
.screen {
    padding: 28px 28px 40px;
    min-height: 500px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Content blocks (spec sections) */
.block {
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shell prompt line */
.prompt {
    color: var(--prompt);
}

.prompt::before {
    content: "$ ";
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Stdout / output text */
.stdout {
    color: var(--fg);
    display: block;
    margin-top: 4px;
    margin-left: 16px;
}

/* Highlighted tokens */
.ok { color: var(--accent-green); }
.warn { color: var(--accent-orange); }
.err { color: var(--accent-red); }
.info { color: var(--accent-cyan); }
.muted { color: var(--fg-dim); }

/* Typing cursor */
.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--cursor);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

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

/* Severity table */
.sev-table {
    margin-left: 16px;
    margin-top: 6px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    column-gap: 16px;
    row-gap: 3px;
}

.sev-crit { color: var(--accent-red); }
.sev-high { color: var(--accent-orange); }
.sev-med { color: var(--accent-cyan); }
.sev-low { color: var(--accent-green); }
.sev-info { color: var(--fg-dim); }

/* Checklist */
.checklist {
    margin-left: 16px;
    list-style: none;
}

.checklist li::before {
    content: "[ ] ";
    color: var(--fg-dim);
    font-family: var(--font-mono);
}

/* Contact form block */
.form-block {
    margin-top: 24px;
    margin-bottom: 8px;
}

.form-box {
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    padding: 14px 18px;
    margin-left: 16px;
    margin-top: 8px;
    max-width: 520px;
    background: rgba(92, 207, 230, 0.03);
}

.form-box label {
    display: block;
    color: var(--fg-dim);
    font-size: 13px;
    margin-bottom: 2px;
}

.form-box input, .form-box textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px dashed var(--border);
    color: var(--fg);
    font: inherit;
    width: 100%;
    padding: 4px 0;
    margin-bottom: 12px;
    outline: none;
}

.form-box input:focus, .form-box textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.form-box textarea {
    resize: vertical;
    min-height: 50px;
}

.submit-btn {
    display: inline-block;
    font: inherit;
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 120ms;
}

.submit-btn:hover, .submit-btn:focus-visible {
    background: rgba(74, 222, 128, 0.1);
    outline: none;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 8px;
    margin-left: 16px;
    color: var(--accent-green);
    min-height: 1.2em;
}

.form-status.error { color: var(--accent-red); }

/* Telegram button (replaces form MVP) */
.tg-btn {
    display: inline-block;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    background: rgba(92, 207, 230, 0.08);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    margin: 12px 0 8px 16px;
    transition: background 120ms, transform 120ms;
}

.tg-btn:hover, .tg-btn:focus-visible {
    background: rgba(92, 207, 230, 0.18);
    transform: translateY(-1px);
    outline: none;
}

/* Company info / reqisites footer block */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    margin-left: 16px;
    font-size: 13px;
    color: var(--fg-dim);
    border-top: 1px dashed var(--border);
    padding-top: 10px;
}

/* noscript fallback */
.noscript {
    padding: 24px;
    color: var(--fg);
}

.noscript pre {
    font-family: var(--font-mono);
    white-space: pre-wrap;
    margin-top: 12px;
}

/* Mobile */
@media (max-width: 640px) {
    body {
        padding: 8px 4px;
    }
    .screen {
        padding: 18px 14px 28px;
        font-size: 13px;
    }
    .toggles {
        position: static;
        justify-content: flex-end;
        padding: 8px 14px 0;
    }
    .sev-table {
        grid-template-columns: auto auto;
        margin-left: 8px;
    }
    .sev-table span:nth-child(3n) {
        grid-column: 1 / -1;
        color: var(--fg-dim);
        margin-bottom: 4px;
    }
    .form-box {
        margin-left: 8px;
    }
}

/* Reduced motion — disable typing, show immediately */
@media (prefers-reduced-motion: reduce) {
    .block {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cursor {
        animation: none;
        opacity: 0;
    }
}
