:root {
    --bg-app: #2b2d31;
    --bg-header: #232428;
    --bg-elevated: #313338;
    --bg-card: #383a40;
    --bg-card-hover: #404249;
    --border-subtle: #3f4147;

    --blurple: #5865f2;
    --blurple-hover: #4752c4;
    --success: #23a55a;
    --success-hover: #1c8a4b;
    --warning: #f0b232;

    --text-primary: #f2f3f5;
    --text-muted: #949ba4;
    --text-faint: #6d6f78;

    --radius: 10px;
    --max-width: 960px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: #949cf7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / nav */

header.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}

nav.site-nav {
    display: flex;
    gap: 4px;
}

nav.site-nav a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

nav.site-nav a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
}

nav.site-nav a.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

/* Hero */

.hero {
    background: radial-gradient(circle at 20% 0%, #3a3fae 0%, transparent 55%), var(--bg-app);
    padding: 72px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.hero img.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 12px;
}

.hero p.lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--success);
    color: #fff;
}

.btn-primary:hover {
    background: var(--success-hover);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-disabled,
.btn-disabled:hover {
    background: var(--bg-elevated);
    color: var(--text-faint);
    cursor: not-allowed;
}

.btn small {
    font-weight: 400;
    opacity: 0.85;
}

/* Sections */

main {
    padding: 56px 0;
}

section + section {
    margin-top: 56px;
}

h2 {
    font-size: 1.6rem;
    margin: 0 0 24px;
}

h2 .sub {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 6px;
}

/* Feature grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Requirements */

.req-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.req-list li {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-muted);
}

.req-list strong {
    color: var(--text-primary);
}

/* Release cards */

.release-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
}

.release-card + .release-card {
    margin-top: 16px;
}

.release-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.release-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.release-date {
    color: var(--text-faint);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    background: var(--blurple);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.release-notes {
    margin: 0 0 18px;
    padding-left: 20px;
    color: var(--text-muted);
}

.release-notes li {
    margin-bottom: 4px;
}

.release-downloads {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Footer */

footer.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 28px 0;
    color: var(--text-faint);
    font-size: 0.88rem;
}

footer.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

footer.site-footer a {
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
