
:root {
    --bg: #100d15;
    --surface: #191420;
    --surface-light: #211a2b;
    --border: #34283f;
    --purple: #a77bd0;
    --purple-light: #d0b1ed;
    --text: #f0eaf5;
    --muted: #a79aae;
    --green: #8ed3a8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgb(16 13 21 / 48%), rgb(16 13 21 / 48%)),
        url("index-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

a:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 4px;
}

.page-width {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.section-block {
    padding-top: 82px;
    padding-bottom: 82px;
}

.section-label {
    color: var(--purple-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* NAVIGATION */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #100d15ed;
    border-bottom: 1px solid #34283f;
    backdrop-filter: blur(12px);
}

.navbar {
    width: min(1200px, calc(100% - 48px));
    min-height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.6px;
    white-space: nowrap;
}

.logo-mark {
    width: 35px;
    height: 35px;
    display: block;
    border: 1px solid #594269;
    border-radius: 9px;
    background: #2a2035;
    object-fit: cover;
}

.logo-period {
    color: var(--purple-light);
}

.nav-links {
    flex: 1;
    min-width: 0;
}

.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.nav-discord:hover {
    background: var(--surface-light);
    border-color: #6a4d7f;
}

.nav-discord span {
    color: var(--purple-light);
}

/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: #8056a1;
    border-color: #9c72bd;
    color: white;
}

.button-primary:hover {
    background: #956bb6;
}

.button-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--surface-light);
    border-color: #60476f;
}

.button span {
    font-size: 15px;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    padding-top: 75px;
    padding-bottom: 75px;
}

.hero-content {
    padding: 5px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px #8ed3a84a;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(45px, 5.7vw, 70px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -3.4px;
}

.hero h1 span {
    color: var(--purple-light);
}

.hero-description {
    max-width: 475px;
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 700;
}

.hero-subtext {
    max-width: 450px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 27px;
    color: var(--muted);
    font-size: 10px;
}

.hero-note span {
    color: var(--purple-light);
    font-size: 15px;
}

/* WELCOME ARTWORK */

.hero-art {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    isolation: isolate;
    border: 1px solid #483553;
    border-radius: 12px;
    background: #15101c;
}

.hero-art-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-art::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(16 13 21 / 24%), transparent 38%, rgb(16 13 21 / 42%));
    content: "";
}

.art-label {
    position: absolute;
    z-index: 1;
    top: 19px;
    left: 20px;
    color: #efe0ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 1px 5px #100d15;
}

.art-caption {
    position: absolute;
    z-index: 1;
    bottom: 31px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
    color: #c6aed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px #100d15;
}

.caption-line {
    width: 22px;
    height: 1px;
    background: #6e537f;
}

.art-coordinate {
    position: absolute;
    z-index: 1;
    right: 17px;
    bottom: 12px;
    color: #786583;
    font-size: 8px;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 5px #100d15;
}

/* INTRO STRIP */

.intro-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgb(23 18 29 / 84%);
}

.intro-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
}

.intro-symbol {
    color: var(--purple-light);
    font-size: 23px;
}

.intro-inner p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.intro-inner p strong {
    margin-right: 7px;
    color: var(--text);
}

.intro-inner > a {
    flex-shrink: 0;
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 800;
}

.intro-inner > a span {
    margin-left: 5px;
}

/* ABOUT */

.about-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 75px;
    margin-top: 25px;
}

.about-heading h2 {
    margin: 0;
    font-size: clamp(35px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.heading-decoration {
    width: 60px;
    height: 3px;
    margin-top: 24px;
    border-radius: 3px;
    background: var(--purple);
}

.about-copy p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
}

.about-copy .about-lead {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 800;
}

.text-link:hover {
    color: white;
}

/* COMMUNITY SPACES */

.spaces-section {
    background: rgb(21 17 27 / 84%);
    border-top: 1px solid #2d2236;
    border-bottom: 1px solid #2d2236;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 14px 0 28px;
}

.section-heading h2 {
    margin: 0 0 7px;
    font-size: clamp(29px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.space-card {
    position: relative;
    min-width: 0;
    min-height: 290px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgb(25 20 32 / 88%);
    transition: transform 0.2s, border-color 0.2s;
}

.space-card:hover {
    transform: translateY(-3px);
    border-color: #5b456d;
}

.discord-card {
    background: linear-gradient(145deg, rgb(33 26 44 / 88%), rgb(25 20 32 / 88%) 70%);
}

.minecraft-card {
    background: linear-gradient(145deg, rgb(32 39 30 / 88%), rgb(25 26 25 / 88%) 75%);
    border-color: #354032;
}

.vrchat-card {
    background: linear-gradient(145deg, rgb(32 27 45 / 88%), rgb(25 20 32 / 88%) 75%);
}

.space-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.space-icon {
    width: 41px;
    height: 41px;
    display: block;
    border-radius: 9px;
    object-fit: contain;
}

.discord-icon {
    background: #392747;
}

.minecraft-icon {
    background: #34442e;
    border: 1px solid #506248;
}

.vrchat-icon {
    background: #302544;
}

.space-tag {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.space-card h3 {
    position: relative;
    z-index: 1;
    margin: 24px 0 8px;
    font-size: 21px;
    letter-spacing: -0.5px;
}

.space-card > p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
}

.space-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 800;
}

.minecraft-card .space-link {
    color: #c5e0a9;
}

.space-link:hover {
    color: white;
}

.card-decoration {
    position: absolute;
    right: 13px;
    bottom: 32px;
    font-size: 56px;
    font-weight: 900;
    opacity: 0.055;
    pointer-events: none;
}

.minecraft-decoration {
    font-size: 80px;
    right: 3px;
    bottom: 35px;
}

/* REALM SECTION */

.realm-section {
    padding-top: 82px;
    padding-bottom: 82px;
}

.realm-panel {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    min-height: 355px;
    border: 1px solid #3c4935;
    border-radius: 12px;
    background: rgb(25 29 25 / 88%);
}

.realm-content {
    align-self: center;
    padding: 40px;
}

.realm-content h2 {
    margin: 15px 0;
    font-size: clamp(30px, 3.8vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.8px;
}

.realm-content > p {
    color: #b1b8aa;
    font-size: 13px;
    line-height: 1.9;
}

.realm-content .realm-small {
    margin-top: 18px;
    margin-bottom: 22px;
    color: #8e9b86;
    font-size: 11px;
}

.realm-content .section-label {
    color: #b5d29a;
}

.realm-visual {
    position: relative;
    min-height: 355px;
    overflow: hidden;
    background: #16092c;
}

.realm-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realm-caption {
    position: absolute;
    bottom: 15px;
    right: 16px;
    color: #d5dfc6;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

/* INCLUSIVITY */

.belong-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 75px;
    margin-top: 20px;
}

.belong-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.5vw, 50px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.belong-copy > p {
    max-width: 460px;
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.welcome-list {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgb(25 20 32 / 88%);
}

.welcome-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}

.welcome-item:last-child {
    border-bottom: 0;
}

.welcome-check {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #a77bd01c;
    color: var(--purple-light);
    font-size: 17px;
}

.welcome-item h3 {
    margin: 0 0 3px;
    font-size: 13px;
}

.welcome-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

/* FINAL INVITATION */

.final-invite {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 50% 100%, rgb(64 40 79 / 88%) 0%, transparent 65%),
        rgb(23 17 30 / 84%);
}

.final-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding-top: 55px;
    padding-bottom: 55px;
    text-align: center;
}

.final-content {
    position: relative;
    z-index: 2;
}

.final-content h2 {
    margin: 13px 0 10px;
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.2;
    letter-spacing: -1.7px;
}

.final-content p {
    margin: 0 0 23px;
    color: var(--muted);
    font-size: 14px;
}

.final-decoration,
.final-heart {
    position: absolute;
    color: #a77bd0;
    opacity: 0.35;
    pointer-events: none;
}

.final-decoration {
    top: 45px;
    left: 12%;
    font-size: 65px;
}

.final-heart {
    right: 13%;
    bottom: 40px;
    font-size: 70px;
}

/* FOOTER */

.site-footer {
    background: rgb(12 10 16 / 88%);
}

.footer-inner {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #28202f;
}

.footer-logo {
    font-size: 15px;
}

.footer-logo .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.footer-inner > p {
    color: var(--muted);
    font-size: 11px;
}

.back-top {
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    padding-bottom: 17px;
    color: #84778e;
    font-size: 10px;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .hero {
        gap: 30px;
    }

    .hero-art {
        min-height: 310px;
    }

    .about-layout,
    .belong-layout {
        gap: 35px;
    }

    .space-card {
        padding: 17px;
    }

    .space-tag {
        font-size: 7px;
    }

    .realm-content {
        padding: 28px;
    }
}

@media (max-width: 650px) {
    .page-width,
    .navbar {
        width: calc(100% - 34px);
    }

    .section-block {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .navbar {
        min-height: 64px;
        gap: 12px;
    }

    .logo {
        gap: 7px;
        font-size: 16px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .nav-discord {
        padding: 7px 9px;
        gap: 5px;
        font-size: 10px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 45px;
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(46px, 12vw, 61px);
        letter-spacing: -2.7px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-art {
        min-height: 300px;
    }

    .intro-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .intro-inner p {
        flex-basis: calc(100% - 40px);
    }

    .intro-inner > a {
        margin-left: 34px;
    }

    .about-layout,
    .belong-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-heading h2 {
        font-size: 39px;
    }

    .about-copy .about-lead {
        font-size: 17px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .space-card {
        min-height: 245px;
        padding: 21px;
    }

    .space-card h3 {
        margin-top: 20px;
    }

    .space-tag {
        font-size: 9px;
    }

    .realm-section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .realm-panel {
        grid-template-columns: 1fr;
    }

    .realm-content {
        padding: 27px 23px 30px;
    }

    .realm-content h2 {
        font-size: 35px;
    }

    .realm-visual {
        min-height: 270px;
    }

    .belong-copy h2 {
        font-size: 40px;
    }

    .welcome-list {
        padding-inline: 18px;
    }

    .final-inner {
        min-height: 270px;
    }

    .final-decoration {
        left: 0;
        font-size: 42px;
    }

    .final-heart {
        right: 0;
        font-size: 48px;
    }

    .footer-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 22px;
        padding-bottom: 22px;
        text-align: center;
        gap: 12px 20px;
    }

    .footer-inner > p {
        width: 100%;
        margin: 0;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .nav-discord {
        font-size: 9px;
        padding: 7px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-note {
        line-height: 1.9;
    }

    .art-label {
        left: 13px;
    }
}

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

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