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

:root {
    --bg: #0b1020;
    --panel: rgba(15, 23, 42, 0.72);
    --line: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #22c55e;
    --accent-strong: #38bdf8;
}

body {
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.16), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.14), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 24px;
}

#container {
    width: min(900px, 100%);
    animation: pageEnter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#text {
    padding: 48px 28px 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

h1 {
    text-align: center;
    font-family: monospace;
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    line-height: 1;
    letter-spacing: 0;
    animation: softRise 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

h3 {
    margin-top: 18px;
    text-align: center;
    font-family: monospace;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    animation: softRise 900ms 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#terminal {
    font-size: clamp(1.35rem, 3vw, 2rem);
    color: #bbf7d0;
    background: #020617;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.34),
        0 12px 28px rgba(34, 197, 94, 0.18);
    height: clamp(48px, 8vw, 64px);
    width: clamp(48px, 8vw, 64px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: bold;
    border-radius: 8px;
    animation: terminalEnter 800ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both,
        terminalGlow 2.8s 1.1s ease-in-out infinite;
}

#pages {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    animation: softRise 900ms 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#pages a {
    color: var(--text);
    text-decoration: none;
    font-family: monospace;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

#pages a:hover {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.08);
    transform: translateY(-3px);
}

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

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

@keyframes softRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes terminalEnter {
    from {
        opacity: 0;
        transform: translateX(-18px) rotate(-4deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes terminalGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.34),
            0 12px 28px rgba(34, 197, 94, 0.18);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(56, 189, 248, 0.42),
            0 16px 34px rgba(56, 189, 248, 0.22);
    }
}

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

    #text {
        padding: 34px 18px 26px;
    }
}
