:root {
    --bg: #08090b;
    --panel: #111318;
    --panel-border: #262b38;
    --green: #2ee6a6;
    --green-dim: rgba(46, 230, 166, 0.35);
    --text: #d7dbe0;
    --text-dim: #61666f;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;
    z-index: 0;

    background: radial-gradient(ellipse at center, rgba(46, 230, 166, 0.06) 0%, rgba(8, 9, 11, 0) 55%);

    pointer-events: none;
}

.terminal {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 560px;

    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(46, 230, 166, 0.04),
        0 0 40px rgba(46, 230, 166, 0.03);

    overflow: hidden;

    animation: enter 500ms cubic-bezier(.22, 1, .36, 1) both;
}

.terminal__chrome {
    display: flex;
    gap: 7px;

    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--panel-border);
}

.terminal__chrome span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
}

.terminal__body {
    position: relative;

    padding: 28px 30px 34px;

    font-size: 14.5px;
    line-height: 1.85;
    letter-spacing: -0.01em;
}

.terminal__body::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%);
    background-size: 100% 4px;

    pointer-events: none;
    mix-blend-mode: overlay;
}

.line {
    margin: 0;

    opacity: 0;
    transform: translateY(4px);

    animation: typeIn 420ms ease-out both;
}

.line--1 { animation-delay: 80ms; }
.line--2 { animation-delay: 240ms; margin-bottom: 20px; color: #fff; font-weight: 500; }
.line--3 { animation-delay: 420ms; }
.line--4 { animation-delay: 580ms; margin-bottom: 20px; }
.line--5 { animation-delay: 740ms; }
.line--6 { animation-delay: 900ms; }
.line--7 { animation-delay: 1060ms; margin-bottom: 4px; }
.line--8 { animation-delay: 1220ms; }

.prompt {
    color: var(--green);
    margin-right: 2px;
}

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

.dot {
    position: relative;

    display: inline-block;

    width: 8px;
    height: 8px;

    margin-right: 9px;

    border-radius: 50%;
    background: var(--green);
}

.dot::after {
    content: "";

    position: absolute;
    inset: -5px;

    border-radius: 50%;
    background: var(--green-dim);

    animation: breathe 2.6s ease-in-out infinite;
}

.status-text {
    color: var(--green);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cursor {
    display: inline-block;

    width: 7px;
    height: 15px;
    margin-left: 1px;
    transform: translateY(2px);

    background: var(--green);

    animation: blink 1s step-end infinite;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

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

    50.01%, 100% {
        opacity: 0;
    }
}

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

    .terminal__body {
        padding: 22px 20px 26px;
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terminal,
    .line,
    .dot::after,
    .cursor {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
