:root {
    --ink: #07120d;
    --ink-soft: #0c1c14;
    --paper: #f4f0e6;
    --paper-muted: rgba(244, 240, 230, 0.62);
    --gold: #d3b16d;
    --gold-light: #f0dcae;
    --green: #176044;
    --line: rgba(240, 220, 174, 0.19);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--ink);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--paper);
    background:
        radial-gradient(circle at 12% 100%, rgba(23, 96, 68, 0.44), transparent 36rem),
        radial-gradient(circle at 95% 8%, rgba(211, 177, 109, 0.13), transparent 28rem),
        var(--ink);
    font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -18vw;
    right: -15vw;
    width: 52vw;
    height: 52vw;
    min-width: 460px;
    min-height: 460px;
    border: 1px solid rgba(211, 177, 109, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 72px));
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 48px;
}

.topbar {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--paper);
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: 0.25em;
}

.brand-mark {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    flex: 0 0 auto;
    background: transparent;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.home-link:hover {
    border-color: rgba(240, 220, 174, 0.52);
    background: rgba(255, 255, 255, 0.07);
}

.level-layout {
    display: block;
    min-height: auto;
    padding: clamp(40px, 5vw, 70px) 0 68px;
}

.level-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: end;
    gap: 44px;
    padding-bottom: 38px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    grid-column: 1 / -1;
    margin: 0 0 -16px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.27em;
}

.level-intro h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.intro-copy {
    max-width: 370px;
    margin: 0;
    padding-bottom: 6px;
    color: var(--paper-muted);
    font-size: 16px;
    line-height: 1.65;
}

.level-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.level-option {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 132px;
    grid-template-columns: 152px minmax(0, 1fr) 108px;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 23px;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.level-option--ready {
    border-color: rgba(240, 220, 174, 0.38);
    background:
        radial-gradient(circle at 88% 10%, rgba(240, 220, 174, 0.15), transparent 15rem),
        linear-gradient(135deg, #174d38, #0f3225);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.level-option--ready::after {
    content: "+  −";
    position: absolute;
    right: 105px;
    bottom: -29px;
    color: rgba(255, 255, 255, 0.055);
    font-family: Georgia, serif;
    font-size: 104px;
    letter-spacing: -0.16em;
}

.level-option--ready:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 220, 174, 0.7);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4);
}

.level-option--available {
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.level-option--available:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 220, 174, 0.46);
    background: rgba(23, 96, 68, 0.22);
}

.level-option--soon {
    color: rgba(244, 240, 230, 0.48);
    background: rgba(255, 255, 255, 0.025);
    cursor: default;
}

.level-number {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.level-number--basic {
    font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.level-number--intermediate {
    font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.level-divider {
    grid-column: 1 / -1;
    margin: 24px 0 4px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.level-option--soon .level-number {
    color: rgba(244, 240, 230, 0.2);
}

.level-name {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.level-name small {
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.level-option--soon .level-name small {
    color: rgba(244, 240, 230, 0.35);
}

.level-name > span {
    color: var(--paper-muted);
    font-size: 14px;
    line-height: 1.45;
}

.level-option--soon .level-name > span {
    color: rgba(244, 240, 230, 0.28);
}

.level-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 18px;
    border-radius: 12px;
    color: #122017;
    background: linear-gradient(135deg, #f0dcae, #cda861);
    font-size: 13px;
    font-weight: 900;
}

.level-cta b {
    font-size: 18px;
    font-weight: 400;
}

.level-state {
    color: rgba(244, 240, 230, 0.2);
    font-size: 28px;
}

.level-option--ready:focus-visible,
.home-link:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(240, 220, 174, 0.5);
    outline-offset: 4px;
}

@media (max-width: 1180px) {
    .level-list {
        grid-template-columns: 1fr;
    }

    .level-option {
        grid-template-columns: 180px minmax(0, 1fr) 126px;
        gap: 26px;
        padding-inline: 28px;
    }
}

@media (max-width: 760px) {
    .level-intro {
        grid-template-columns: 1fr;
        gap: 17px;
        padding-bottom: 30px;
    }

    .eyebrow {
        grid-column: auto;
        margin-bottom: 0;
    }

    .intro-copy {
        padding-bottom: 0;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 32px, 1320px);
        padding-bottom: 28px;
    }

    .topbar {
        min-height: 88px;
    }

    .brand {
        gap: 10px;
        font-size: 12px;
    }

    .brand-mark {
        width: 64px;
        height: 64px;
    }

    .brand img {
        width: 100%;
        height: 100%;
    }

    .home-link {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .home-link span:last-child {
        display: none;
    }

    .level-layout {
        min-height: auto;
        padding: 36px 0;
    }

    .eyebrow {
        margin-bottom: 0;
    }

    .level-intro h1 {
        max-width: 360px;
        font-size: clamp(40px, 12vw, 56px);
        line-height: 1;
    }

    .intro-copy {
        font-size: 14px;
    }

    .level-list {
        margin-top: 24px;
    }

    .level-option {
        min-height: 126px;
        grid-template-columns: 92px 1fr;
        gap: 16px;
        padding: 22px 20px;
        border-radius: 19px;
    }

    .level-number {
        font-size: 20px;
    }

    .level-number--basic {
        font-size: 16px;
    }

    .level-number--intermediate {
        font-size: 13px;
        line-height: 1.25;
        white-space: normal;
    }

    .level-divider {
        margin-top: 18px;
    }

    .level-cta,
    .level-state {
        grid-column: 2;
        justify-self: start;
    }

    .level-cta {
        min-height: 40px;
        margin-top: 2px;
        padding: 0 14px;
    }

    .level-option--ready::after {
        right: -10px;
        bottom: -14px;
        font-size: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
