@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900");

:root { color-scheme: dark; }

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

body {
    margin: 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #121214;
    color: #d4d4d8;
    font-family: "Inter", system-ui, sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(255, 255, 255, 0.25);
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
}

body::before {
    inset: -20px;
    background: url("background.webp") center / cover no-repeat;
    filter: blur(20px);
    transform: scale(1.05);
    z-index: -2;
}

body::after {
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.65) 100%),
        rgba(10, 10, 11, 0.5);
    z-index: -1;
}

main {
    flex: 1;
    padding: 40px 20px 6vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    width: clamp(150px, 15vw + 65px, 256px);
    height: auto;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.14)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    50% { transform: translateY(-8px); }
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2.2rem, 1.2rem + 3.25vw, 5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

#text p {
    margin: 0 0 30px;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

#text p span {
    background: linear-gradient(90deg, #ffffff, #b4b4bd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-shadow: none;
}

#links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
}

#links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 10px 18px;
    border: 4px solid #3f3f46;
    border-radius: 10px;
    background-color: #1c1c20;
    color: #e4e4e7;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#links a.discord-link {
    border-color: #e4e4e7;
}

#links a:hover {
    background-color: #2a2a30;
    border-color: #71717a;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

#links a.discord-link:hover {
    border-color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.22);
}

#links a:active {
    transform: scale(0.98);
}

#links a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

footer {
    padding: 0 20px 24px;
    color: #a1a1aa;
    font-size: 0.8rem;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

footer p {
    margin: 0;
}

footer p + p {
    margin-top: 2px;
    color: #8b8b94;
}

.legal #content {
    width: 100%;
    max-width: 720px;
    align-items: stretch;
}

.legal h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 1rem + 3vw, 3.5rem);
    text-align: left;
}

.back-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 20px;
    color: #a1a1aa;
    font-size: 0.9rem;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ffffff;
}

.back-link:focus-visible,
.doc a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    border-radius: 4px;
}

.doc {
    padding: clamp(20px, 4vw, 36px);
    background: rgba(20, 20, 23, 0.82);
    border: 1px solid #3f3f46;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    line-height: 1.7;
    text-align: left;
}

.doc p {
    margin: 0 0 1em;
}

.doc .lead {
    color: #ffffff;
}

.doc ul {
    display: grid;
    gap: 14px;
    margin: 0 0 1.5em;
    padding: 0;
    list-style: none;
}

.doc li {
    position: relative;
    padding-left: 1.5em;
}

.doc li::before {
    content: "";
    position: absolute;
    left: 0.2em;
    top: calc(0.85em - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #71717a;
}

.doc .contact {
    margin: 0;
    padding-top: 1.25em;
    border-top: 1px solid #3f3f46;
    color: #a1a1aa;
}

.doc a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #71717a;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.doc a:hover {
    text-decoration-color: #ffffff;
}

@media (max-width: 500px) {
    #text {
        margin-bottom: 20px;
    }

    #links {
        gap: 15px;
    }

    #links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #logo {
        animation: none;
    }

    #links a {
        transition: none;
    }
}