:root {
    color-scheme: dark;
    --ink: #f2eee5;
    --muted: #b5b4b2;
    --deep: #080d14;
    --navy: #0d1520;
    --panel: #111c29;
    --panel-soft: #152230;
    --line: rgba(214, 176, 98, 0.24);
    --gold: #d6b062;
    --gold-bright: #f0cc7c;
    --blue: #79b7d8;
    --focus: #9ad9ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --shell: 74rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 20rem;
    background: var(--deep);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 8% 10%, rgba(121, 183, 216, 0.08), transparent 28rem),
        radial-gradient(circle at 92% 24%, rgba(214, 176, 98, 0.07), transparent 30rem),
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: auto, auto, 4rem 4rem, 4rem 4rem;
    content: "";
    pointer-events: none;
}

a {
    color: var(--gold-bright);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #ffe0a0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.22rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 1.35rem;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.15rem, 5vw, 3.7rem);
}

h3 {
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.shell {
    width: min(calc(100% - 2.5rem), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    transform: translateY(-160%);
    border: 1px solid var(--gold);
    border-radius: 0.25rem;
    background: var(--deep);
    color: var(--ink);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 13, 20, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.wordmark strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.wordmark-mark {
    display: grid;
    width: 2.25rem;
    aspect-ratio: 1;
    place-items: center;
    transform: rotate(45deg);
    border: 1px solid var(--gold);
    color: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.wordmark-mark::before {
    color: var(--gold-bright);
    content: "L";
    transform: rotate(-45deg);
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem 1.5rem;
}

nav a {
    color: var(--muted);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero::after {
    position: absolute;
    top: -11rem;
    right: -12rem;
    width: 42rem;
    aspect-ratio: 1;
    border: 1px solid rgba(214, 176, 98, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 6rem rgba(214, 176, 98, 0.018), 0 0 0 12rem rgba(214, 176, 98, 0.012);
    content: "";
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.7fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.hero-copy {
    max-width: 50rem;
}

.hero-lede {
    max-width: 47rem;
    margin-bottom: 2.25rem;
    color: #ccc9c3;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.eyebrow,
.panel-kicker {
    margin-bottom: 0.9rem;
    color: var(--gold-bright);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0.2rem;
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: 160ms ease;
}

.button-primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #171108;
}

.button-primary:hover {
    border-color: var(--gold-bright);
    background: var(--gold-bright);
    color: #171108;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: rgba(214, 176, 98, 0.55);
    background: rgba(214, 176, 98, 0.05);
    color: var(--gold-bright);
}

.button-secondary:hover {
    border-color: var(--gold-bright);
    background: rgba(214, 176, 98, 0.11);
    color: #ffe0a0;
}

.hero-panel {
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-top: 0.22rem solid var(--gold);
    background: linear-gradient(150deg, rgba(21, 34, 48, 0.94), rgba(10, 17, 25, 0.94));
    box-shadow: var(--shadow);
}

.hero-panel p:not(.panel-kicker, .large-stat, .panel-title) {
    color: var(--muted);
}

.large-stat {
    margin-bottom: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.5rem, 9vw, 7rem);
    line-height: 1;
}

.panel-title {
    margin-bottom: 1rem;
    color: var(--blue);
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(121, 183, 216, 0.3);
    border-radius: 999px;
    background: rgba(121, 183, 216, 0.08);
    color: #addcf5;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1.4;
    text-transform: uppercase;
}

.status-active::before {
    width: 0.43rem;
    height: 0.43rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #73c995;
    box-shadow: 0 0 0.75rem #73c995;
    content: "";
}

.section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-compact {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-alt {
    border-block: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 21, 32, 0.72);
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 3.2rem;
}

.section-heading > p:last-child,
.section-heading-split > p {
    color: var(--muted);
}

.section-heading-split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    align-items: end;
    gap: 3rem;
}

.section-heading-split h2 {
    margin-bottom: 0;
}

.callout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    padding: clamp(1.75rem, 5vw, 3.25rem);
    border: 1px solid var(--line);
    background: linear-gradient(110deg, rgba(214, 176, 98, 0.09), rgba(121, 183, 216, 0.04));
}

.callout h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.callout > p {
    margin-bottom: 0;
    color: #d0cdc7;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.track-card {
    position: relative;
    overflow: hidden;
    min-height: 27rem;
    padding: clamp(1.7rem, 4vw, 2.7rem);
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(21, 34, 48, 0.92), rgba(10, 17, 25, 0.92));
}

.track-card::after {
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 14rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    content: "";
}

.track-card-gold {
    border-top: 0.22rem solid var(--gold);
}

.track-card-blue {
    border-top: 0.22rem solid var(--blue);
}

.card-number {
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.track-card h3 {
    max-width: 28rem;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.track-card > p:not(.card-number) {
    max-width: 35rem;
    color: var(--muted);
}

.check-list {
    display: grid;
    margin: 1.7rem 0 0;
    padding: 0;
    gap: 0.65rem;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.45rem;
}

.check-list li::before {
    position: absolute;
    left: 0;
    color: var(--gold-bright);
    content: "◆";
    font-size: 0.62rem;
}

.track-card-blue .check-list li::before {
    color: var(--blue);
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.plugin-card {
    display: flex;
    min-height: 21rem;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 28, 41, 0.9);
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.plugin-card:hover {
    border-color: rgba(214, 176, 98, 0.42);
    background: rgba(21, 34, 48, 0.98);
    transform: translateY(-0.18rem);
}

.plugin-icon {
    display: grid;
    width: 3.1rem;
    aspect-ratio: 1;
    margin-bottom: 1.5rem;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--gold-bright);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.plugin-card-head {
    margin-bottom: 0.9rem;
}

.plugin-card-head h3 {
    margin-bottom: 0.7rem;
}

.plugin-card > p {
    color: var(--muted);
    font-size: 0.93rem;
}

.plugin-actions {
    display: flex;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plugin-actions a {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.legacy-dependency {
    display: grid;
    margin-top: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    border: 1px dashed rgba(214, 176, 98, 0.38);
    background: rgba(214, 176, 98, 0.035);
}

.legacy-dependency h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.legacy-dependency p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.status-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
    align-items: start;
    gap: clamp(3rem, 9vw, 8rem);
}

.status-layout .section-heading {
    margin-bottom: 0;
}

.timeline {
    position: relative;
    display: grid;
    margin: 0;
    padding: 0;
    gap: 2rem;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 0.38rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.13);
    content: "";
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 0.8rem 1fr;
    gap: 1.3rem;
}

.timeline li > span {
    z-index: 1;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.42rem;
    border: 0.18rem solid var(--deep);
    border-radius: 50%;
    background: #56606d;
    box-shadow: 0 0 0 1px #56606d;
}

.timeline li.timeline-complete > span {
    background: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.timeline li.timeline-active > span {
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), 0 0 1rem rgba(121, 183, 216, 0.5);
}

.timeline strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.timeline p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.community {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(120deg, rgba(214, 176, 98, 0.05), rgba(121, 183, 216, 0.07));
}

.community-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.community-copy p:not(.eyebrow) {
    max-width: 36rem;
    margin-bottom: 2rem;
    color: var(--muted);
}

.discord-frame {
    overflow: hidden;
    height: min(31rem, 70vh);
    min-height: 25rem;
    border: 1px solid var(--line);
    background: var(--navy);
    box-shadow: var(--shadow);
}

.discord-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #070b11;
    color: #8f9398;
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-inner p {
    margin: 0;
}

.footer-inner strong {
    color: #c9c4ba;
}

.error-page {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
}

.error-main {
    display: grid;
    width: min(calc(100% - 2.5rem), 52rem);
    margin-inline: auto;
    place-items: center;
    padding: 5rem 0;
}

.error-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(2rem, 7vw, 5rem);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(21, 34, 48, 0.94), rgba(10, 17, 25, 0.96));
    box-shadow: var(--shadow);
}

.error-code {
    position: absolute;
    top: -2rem;
    right: -1rem;
    margin: 0;
    color: rgba(214, 176, 98, 0.055);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: 700;
    line-height: 1;
}

.error-card h1 {
    position: relative;
    max-width: 42rem;
    font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.error-card > p:not(.eyebrow, .error-code) {
    position: relative;
    max-width: 38rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 1.1rem;
}

@media (max-width: 62rem) {
    .hero-grid,
    .status-layout,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 36rem;
    }

    .plugin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading-split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .discord-frame {
        height: 31rem;
    }
}

@media (max-width: 45rem) {
    .header-inner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-block: 1.15rem;
    }

    nav {
        justify-content: flex-start;
    }

    .callout,
    .track-grid,
    .legacy-dependency {
        grid-template-columns: 1fr;
    }

    .track-card {
        min-height: 0;
    }

    .legacy-dependency .button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 34rem) {
    .shell,
    .error-main {
        width: min(calc(100% - 1.5rem), var(--shell));
    }

    .plugin-grid {
        grid-template-columns: 1fr;
    }

    .plugin-card {
        min-height: 18rem;
    }

    .button-row .button {
        width: 100%;
    }

    .discord-frame {
        min-height: 28rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
