:root {
    --bg-core: #050505;
    --bg-panel: #0a0a0a;
    --bg-surface: #000000;
    --border-dim: #222222;
    --border-std: #333333;
    --border-bright: #555555;
    --border-accent: #ea0000;
    --chassis-slate: #555555;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-danger: #ea0000;
    --text-terminal: #00ff41;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    background-color: var(--bg-core);
    color: var(--text-primary);
    font-family: var(--font-mono);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.terminal-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(#141414 1px, transparent 1px),
        linear-gradient(90deg, #141414 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.terminal-card {
    position: relative;
    z-index: 1;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-std);
    width: 100%;
    max-width: 580px;
    padding: 40px;
    text-align: center;
}

.terminal-card::before,
.terminal-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.terminal-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--border-accent);
    border-left: 2px solid var(--border-accent);
}

.terminal-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--border-accent);
    border-right: 2px solid var(--border-accent);
}

.terminal-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.ascii-tag {
    color: var(--border-accent);
    font-weight: 700;
}

.logo-box {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.ascii-art {
    color: var(--border-accent);
    font-weight: 700;
}

h1 {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.technical-message {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dim);
    padding: 18px 20px;
    text-align: left;
    margin-bottom: 28px;
}

.code-line {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    word-break: break-word;
}

.code-line.sub {
    color: var(--text-secondary);
}

.prompt {
    color: var(--border-accent);
    font-weight: 700;
    margin-right: 6px;
}

.ascii-divider {
    font-size: 0.75rem;
    color: var(--chassis-slate);
    letter-spacing: 0.08em;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 24px;
    user-select: none;
}

footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer span {
    display: inline-block;
}

.sep {
    color: var(--chassis-slate);
}

@media (max-width: 480px) {
    .terminal-card {
        padding: 28px 18px;
    }

    .logo-box {
        width: 110px;
        height: 110px;
        margin-bottom: 24px;
    }

    .technical-message {
        padding: 14px;
    }

    .code-line {
        font-size: 0.75rem;
    }

    footer {
        font-size: 0.65rem;
        gap: 6px;
    }
}