p.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
    max-width: 320px;
    margin: 3rem auto;
}

.lang-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.lang-tab {
    padding: 0.5rem 1.1rem;
    border-radius: 6px 6px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    background: rgba(0, 0, 0, 0.2);

    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
    font-weight: 500;
}

.lang-tab:hover {
    background: var(--glass);
    color: var(--text-main);
}

.lang-tab.active {
    background: var(--card-bg);
    color: var(--text-main);
    border-bottom-color: var(--card-bg);
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 0 6px 6px 6px;
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.view-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.view-tab {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    background: transparent;
    transition: all 0.15s;
    font-family: 'JetBrains Mono', monospace;
}

.view-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.view-tab.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.content {
    display: none;
}

.content.active {
    display: block;
}

pre {
    padding: 1.2rem 1.4rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    overflow-x: auto;
    color: #cdd6f4;
    margin: 0;
}



.kw {
    color: #cba6f7;
}

.fn {
    color: #89b4fa;
}

.str {
    color: #a6e3a1;
}

.cm {
    color: #6c7086;
    font-style: italic;
}

.num {
    color: #fab387;
}

.tag {
    color: #f38ba8;
}

.attr {
    color: #89b4fa;
}

.output-box {
    padding: 1.2rem 1.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.5);
}

.out-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.out-line {
    color: #a6e3a1;
}

.out-line.dim {
    color: var(--text-muted);
    opacity: 0.7;
}

.out-line.info {
    color: #89b4fa;
}

.out-line.err {
    color: #f38ba8;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 0.9em;
    background: #a6e3a1;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.snippet {
    display: none;
}

.snippet.active {
    display: block;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .lang-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}