.open-source-page {
    min-height: 100vh;
    background-color: rgb(5, 5, 5);
}

.open-source-content {
    min-height: calc(100vh - 10rem);
    padding: clamp(4rem, 10vh, 7rem) 2rem 4rem;
    box-sizing: border-box;
    color: white;
    font-family: "Geist", sans-serif;
    text-align: center;
}

.open-source-title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 10px rgb(255 255 255 / 28%), 0 0 30px rgb(255 255 255 / 10%);
}

.open-source-subtitle {
    margin: 0.9rem auto 0;
    max-width: 44rem;
    color: rgb(255 255 255 / 68%);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.6;
    text-shadow:
        0 0 5px rgb(255 255 255 / 38%),
        0 0 14px rgb(255 255 255 / 18%);
}

.package-list {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    margin-top: 4rem;
    text-align: left;
}

.package-card {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1.25rem;
    background: rgb(210 210 210 / 8%);
    box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.package-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}

.package-heading h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 750;
    text-shadow: 0 0 8px rgb(255 255 255 / 20%);
}

.version-badge {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 999px;
    background: rgb(255 255 255 / 7%);
    color: rgb(255 255 255 / 62%);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.8rem;
}

.package-description {
    max-width: 50rem;
    margin: 1.75rem 0 0;
    color: rgb(255 255 255 / 74%);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.7;
}

.package-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.package-tags li {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.07);
    color: rgb(255 255 255 / 82%);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.package-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.package-links {
    display: flex;
    gap: 0.75rem;
}

.package-links a {
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.65rem;
    background: rgb(255 255 255 / 5%);
    color: white;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.package-links a:hover,
.package-links a:focus-visible {
    border-color: rgba(212, 175, 55, 0.68);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}

.install-command {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 0.65rem;
    background: rgb(0 0 0 / 35%);
}

.install-command code {
    overflow-x: auto;
    padding: 0.75rem 0.9rem;
    color: rgb(255 255 255 / 76%);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(0.72rem, 1.15vw, 0.88rem);
    white-space: nowrap;
}

.copy-command {
    align-self: stretch;
    display: grid;
    flex: 0 0 2.8rem;
    place-items: center;
    border: 0;
    border-left: 1px solid rgb(255 255 255 / 12%);
    background: rgb(255 255 255 / 5%);
    color: white;
    cursor: pointer;
}

.copy-command:hover,
.copy-command:focus-visible {
    background: rgba(212, 175, 55, 0.12);
}

.copy-command:focus-visible {
    outline: 2px solid #dda33a;
    outline-offset: -2px;
}

.copy-command.is-copied {
    border-left-color: rgb(80 220 135 / 36%);
    background: rgb(80 220 135 / 14%);
    color: #76efa4;
    box-shadow: inset 0 0 12px rgb(80 220 135 / 12%);
}

.copy-command.is-copied span {
    font-size: 1.15rem;
    font-weight: 800;
    text-shadow: 0 0 8px rgb(80 220 135 / 70%);
}

.package-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 9%);
    color: rgb(255 255 255 / 45%);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.meta-divider {
    color: #dda33a;
}

@media (max-width: 760px) {
    .open-source-content {
        padding-inline: 1rem;
    }

    .package-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .install-command {
        width: 100%;
    }
}
