* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100dvw;
    overflow: hidden;
    position: relative;
    background-color: rgb(24, 24, 24);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.background {
    position: fixed;
    inset: 0;
    background-color: rgb(24, 24, 24);
    background-image: url("../media/background-stars.jpg");
    background-image: image-set(
        url("../media/background-stars.avif") type("image/avif"),
        url("../media/background-stars.jpg") type("image/jpeg")
    );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.back svg {
    transform: scale(1.4);
}

.back:hover {
    transform: scale(1.1);
}

.content-container {
    position: relative;
    z-index: 2;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.top-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 900px;
    margin-top: clamp(0.5rem, 2vh, 2rem);
    padding: 0 1rem;
    flex-shrink: 0;
}

.logo {
    width: clamp(250px, 40vw, 500px);
    height: auto;
    margin-top: 5vh;
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.quote-container {
    position: relative;
    border: none;
    max-width: min(720px, 86vw);
    padding: clamp(1rem, 3vh, 2rem);
    margin-top: 0;
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
    text-align: center;
}

.quote-container::before,
.quote-container::after {
    position: absolute;
    content: "";
    width: 2em;
    height: 1em;
}

.quote-container::before {
    left: 0;
    top: 0;
    border-left: 0.15em solid #ffffff;
    border-top: 0.15em solid #ffffff;
}

.quote-container::after {
    right: 0;
    bottom: 0;
    border-right: 0.15em solid #ffffff;
    border-bottom: 0.15em solid #ffffff;
}

.quote {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.9rem, 1.9vw, 1.15rem);
    line-height: 1.6;
    transform: scale(1.03);
    margin: 0;
    font-style: italic;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.cta-buttons {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.cta-stack {
    flex-direction: column;
    max-width: 500px;
    width: 100%;
}

.cta-stack .btn {
    width: 100%;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.8rem, 2vh, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bottom-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.6rem, 1.8vh, 1.2rem);
    width: 100%;
    max-width: 900px;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    padding: 0 1rem;
    flex-shrink: 0;
}

.credit-line {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    text-align: center;
    margin: 0;
    animation: glowOnLoad 3s ease-in-out;
}

@keyframes glowOnLoad {
    0% {
        filter: brightness(70%);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        filter: brightness(200%);
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.4);
    }
    100% {
        filter: brightness(75%);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

.quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.link-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: clamp(0.75rem, 1.8vh, 1.1rem) clamp(1.1rem, 3vw, 1.5rem);
    min-width: clamp(92px, 20vw, 125px);
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.link-btn:nth-child(1):hover {
    color: #4dabf7;
}

.link-btn:nth-child(2):hover {
    color: #51cf66;
}

.link-btn:nth-child(3):hover {
    color: #ff6b6b;
}

.link-btn svg {
    opacity: 0.9;
    height: clamp(20px, 3vh, 24px);
    width: clamp(20px, 3vh, 24px);
}

.link-btn span {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 500;
}

@media (max-width: 768px) {
    .background {
        background-image: url("../media/background-stars-mobile.jpg");
        background-image: image-set(
            url("../media/background-stars.avif") type("image/avif"),
            url("../media/background-stars-mobile.jpg") type("image/jpeg")
        );
    }

    .quote-container {
        padding: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .cta-stack {
        max-width: 440px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        width: clamp(240px, 80vw, 440px);
    }

    .quote-container {
        padding: 1rem;
    }

    .credit-line {
        font-size: clamp(0.9rem, 3vw, 1.05rem);
    }

    .quick-links {
        gap: 0.5rem;
    }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .top-group {
        margin-top: 0.4rem;
    }

    .logo {
        width: clamp(180px, 30vw, 280px);
        margin-top: 1vh;
        margin-bottom: 0.3rem;
    }

    .quote-container {
        padding: 0.7rem 1rem;
        margin-bottom: 0.5rem;
    }

    .quote {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .cta-stack {
        flex-direction: column;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .bottom-group {
        margin-bottom: 0.6rem;
        gap: 0.5rem;
    }

    .credit-line {
        font-size: 0.85rem;
    }

    .link-btn {
        padding: 0.5rem 0.9rem;
        flex-direction: row;
        min-width: auto;
        gap: 0.35rem;
    }
}
