:root {
    --bg: #0b0d18;
    --card: #171b30;
    --card-2: #222345;
    --text: #f7f4ff;
    --muted: #bdb6d7;
    --accent: #ef95c9;
    --accent-2: #9b85ff;
    --good: #1e8f57;
    --bad: #a43a4c;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 520px at 85% -10%, #4d3c7a, transparent),
        radial-gradient(900px 500px at -10% 20%, #2b2e61, transparent),
        var(--bg);
    min-height: 100vh;
}

.container {
    width: min(1060px, 92%);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    border-bottom: 1px solid #413a68;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.brand {
    text-decoration: none;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
}

.hero {
    padding: 4rem 0 2rem;
}

.hero-tag {
    color: var(--accent);
    margin: 0;
    font-weight: 700;
}

.hero h1 {
    margin: 0.4rem 0;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.1px;
}

.hero p {
    color: var(--muted);
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.section {
    padding: 1.2rem 0 3rem;
}

.section.narrow {
    max-width: 720px;
    margin-inline: auto;
}

.section.narrow .section-head {
    text-align: center;
}

.section-head h1,
.section-head h2 {
    margin-bottom: 0.4rem;
}

.section-head p {
    margin-top: 0;
    color: var(--muted);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.server-card,
.card {
    background: linear-gradient(160deg, var(--card), var(--card-2));
    border: 1px solid #4e4680;
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.server-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.server-card h3 {
    margin-top: 0.3rem;
}

.server-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #5b4e8f;
    margin-bottom: 0.75rem;
    background: #13172f;
}

.server-card:hover {
    transform: translateY(-2px);
    border-color: #675aa3;
    transition: transform 140ms ease, border-color 140ms ease;
}

.server-card p,
.server-card li {
    color: var(--muted);
}

.showcase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.showcase-detail {
    min-height: 100%;
    padding: 1.35rem 1.35rem 1.2rem 2.6rem;
}

.showcase-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.showcase-detail h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: clamp(1.75rem, 3.7vw, 2.7rem);
}

.showcase-detail p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 56ch;
}

.detail-image-wrap {
    margin-bottom: 0.9rem;
}

.showcase-detail-image {
    height: 220px;
    margin-bottom: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.detail-list li {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
}

.showcase-list {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

/* Nudge the right-side list down so the active/middle item sits closer to visual center */
.showcase-list {
    padding-top: 2.8rem;
}

@media (max-width: 860px) {
    .showcase-list {
        padding-top: 0;
    }
}

.showcase-item {
    appearance: none;
    border: 1px solid #4e4680;
    background: linear-gradient(160deg, #1b2038, #23264a);
    color: var(--text);
    font: inherit;
    text-align: left;
    border-radius: 14px;
    padding: 0.9rem 0.95rem 0.9rem 1rem;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 0.85rem;
    row-gap: 0;
    align-items: center;
    position: relative;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.showcase-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #8a6bc8, #6e5ea8);
}

.showcase-item:hover,
.showcase-item:focus-visible {
    border-color: #7a67bc;
    transform: translateX(-2px);
}

.showcase-item.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent), 0 12px 24px rgba(0, 0, 0, 0.16);
}

.showcase-item.is-active::before {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.showcase-item-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.server-card ul {
    margin: 0;
    padding-left: 1rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #3d3269;
    color: #f5e8ff;
    border: 1px solid #605098;
}

.btn {
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    background: linear-gradient(180deg, #ef95c9, #d66aa8);
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.btn-ghost {
    background: transparent;
    border-color: #5d4b93;
}

/* Primary / secondary utility styles for buttons */
.btn-primary {
    background: #ef95c9;
    border-color: rgba(255,255,255,0.06);
    color: #fff;
    box-shadow: 0 8px 24px rgba(239,149,201,0.12);
}

.btn-secondary {
    background: linear-gradient(180deg, #6e5ea8, #5b4e8f);
    border-color: rgba(0,0,0,0.12);
    color: #fff;
}

.form {
    display: grid;
    gap: 0.55rem;
}

label {
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1px solid #574682;
    background: #13172f;
    color: var(--text);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.flash-stack {
    position: fixed;
    top: 4.7rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
    width: fit-content;
    max-width: min(90vw, 42rem);
}

.flash {
    border-radius: 0;
    padding: 0.1rem 0;
    font-size: 0.9rem;
    position: relative;
    overflow: visible;
    width: fit-content;
    max-width: 90%;
    pointer-events: auto;
    text-align: center;
    color: #ff6bb5;
    background: transparent;
    border: 0;
}

.flash::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, currentColor 0%, currentColor 100%);
    animation: disappear 7s linear forwards;
}

@keyframes disappear {
    from {
        transform: scaleX(1);
        transform-origin: left;
    }

    to {
        transform: scaleX(0);
        transform-origin: left;
    }
}
