:root {
    --mantle: #181825;
    --base: #1e1e2e;
    --surface0: #313244;
    --surface1: #45475a;
    --text: #cdd6f4;
    --subtext: #a6adc8;
    --blue: #89b4fa;
    --mauve: #cba6f7;
    --pink: #f5c2e7;
    --green: #a6e3a1;
    --radius: 18px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 48px 20px;
    background:
        radial-gradient(
            600px 400px at 30% 12%,
            rgba(137, 180, 250, 0.07),
            transparent 70%
        ),
        radial-gradient(
            600px 400px at 80% 90%,
            rgba(203, 166, 247, 0.06),
            transparent 70%
        ),
        var(--mantle);
    color: var(--text);
    font-family:
        "Cascadia Code", Consolas, "JetBrains Mono", "SF Mono", Menlo, monospace;
    -webkit-font-smoothing: antialiased;
}

main {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.window {
    background: var(--base);
    border: 1px solid var(--surface0);
    border-radius: var(--radius);
    overflow: hidden;
}

.titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface0);
    background: var(--mantle);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-pink {
    background: var(--pink);
}
.dot-blue {
    background: var(--blue);
}
.dot-green {
    background: var(--green);
}

.title {
    margin-left: auto;
    font-size: 12px;
    color: var(--subtext);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 32px 48px;
    gap: 18px;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow:
        0 0 0 1px var(--surface0),
        0 16px 40px rgba(0, 0, 0, 0.45);
}

h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tagline {
    max-width: 480px;
    color: var(--subtext);
    font-size: 15px;
    line-height: 1.65;
}

.prompt {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.prompt .chevron {
    color: var(--pink);
    font-weight: 700;
}

.prompt.result .result-text {
    color: var(--blue);
}

.cursor {
    width: 9px;
    height: 16px;
    background: var(--pink);
    border-radius: 2px;
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.btn {
    margin-top: 10px;
    padding: 13px 30px;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--blue), var(--mauve));
    color: var(--base);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.link {
    color: var(--subtext);
    font-size: 12px;
    text-decoration: none;
}

.link:hover {
    color: var(--blue);
}

.panes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pane {
    background: var(--base);
    border: 1px solid var(--surface0);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s ease;
}

.pane:hover {
    border-color: var(--surface1);
}

.pane-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.pane h2 {
    font-size: 15px;
    font-weight: 700;
}

.pane p {
    color: var(--subtext);
    font-size: 12px;
    line-height: 1.5;
}

footer {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--subtext);
    font-size: 12px;
}

footer a {
    color: var(--subtext);
    text-decoration: none;
}

footer a:hover {
    color: var(--blue);
}

@media (max-width: 640px) {
    .panes {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 40px 20px 36px;
    }

    footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
