:root {
    --bg: #fcfbf8;
    --bg-shadow: rgba(255, 255, 255, 0.75);
    --ink: #132043;
    --ink-strong: #101938;
    --accent-start: #5a50ff;
    --accent-end: #7455ff;
    --success: #10b552;
    --pill-border: rgba(111, 91, 255, 0.16);
    --pill-bg: rgba(242, 240, 255, 0.94);
    --button-bg: #131c43;
    --button-shadow: rgba(19, 28, 67, 0.22);
    --surface: rgba(255, 255, 255, 0.56);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Fira Code", monospace;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 251, 248, 0.92));
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -10%;
    background:
        repeating-linear-gradient(
            132deg,
            rgba(113, 104, 255, 0.055) 0 24px,
            rgba(255, 255, 255, 0) 24px 62px
        );
    filter: blur(10px);
    opacity: 0.95;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 40%, var(--bg-shadow), transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.58), transparent 28%),
        radial-gradient(circle at 80% 78%, rgba(255, 255, 255, 0.48), transparent 22%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.shell {
    width: min(100%, 86rem);
    margin: 0 auto;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.stack--tight {
    gap: 0;
}

.hero {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: clamp(1.75rem, 6vh, 4.5rem);
    padding-left: clamp(0rem, 0.5vw, 0.35rem);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.45rem 0.72rem;
    border: 1px solid var(--pill-border);
    border-radius: 0.55rem;
    background: var(--pill-bg);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.42);
}

.eyebrow {
    font-size: clamp(0.58rem, 0.7vw, 0.82rem);
    letter-spacing: 0.02em;
    color: #5d55ff;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: var(--ink-strong);
    text-rendering: geometricPrecision;
}

.hero-title__line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.5em;
}

.hero-title__line--secondary {
    gap: 0;
    font-size: 0.82em;
    line-height: 0.98;
}

.hero-title__base,
.hero-title__accent {
    display: inline-block;
}

.hero-title__secondary-text,
.hero-title__cursor {
    display: inline-block;
}

.accent-text {
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.terminal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em 0.7em;
    margin: 0;
    font-style: normal;
    font-size: clamp(0.95rem, 1.2vw, 1.35rem);
    line-height: 1.25;
}

.terminal-row__prompt,
.terminal-row__label {
    color: var(--ink);
}

.terminal-row__link {
    color: var(--success);
    transition: opacity 160ms ease, transform 160ms ease;
}

.terminal-row__link:hover,
.terminal-row__link:focus-visible {
    opacity: 0.82;
}

.hero-actions {
    padding-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    font-size: clamp(0.95rem, 1.15vw, 1.2rem);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:focus-visible,
.button:hover {
    transform: translateY(-2px);
}

.button--terminal {
    color: #f6f8ff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
        var(--button-bg);
    box-shadow:
        0 12px 20px -16px var(--button-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 820px) {
    .page {
        padding-inline: 1rem;
    }

    .hero {
        padding-top: 1.5rem;
    }

    .pill {
        min-height: 1.6rem;
        padding-inline: 0.65rem;
    }

    .button {
        min-height: 2.7rem;
        width: min(100%, 15rem);
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hero-title {
        line-height: 1;
    }

    .hero-title__line--secondary {
        font-size: 0.8em;
    }

    .terminal-row {
        gap: 0.35rem 0.55rem;
    }

    .button {
        width: 100%;
    }
}
