body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;

    font-family: Arial, sans-serif;

    color: #ffffff;
    text-align: center;

    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
}

/* Background */

#background {
    position: fixed;
    inset: 0;

    background: url("background.png") no-repeat center center;
    background-size: cover;

    z-index: -1;

    transition: background-position 0.1s ease-out;
}

/* Overlay */

.overlay {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px 20px;

    background: linear-gradient(
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.40)
    );
}

/* Rune logo */

.runes {
    color: #d4af37;

    font-size: 2rem;
    letter-spacing: 0.35rem;

    margin-bottom: 20px;

    animation: runeGlow 8s ease-in-out infinite;
}

@keyframes runeGlow {

    0%,
    100% {
        opacity: 0.8;

        text-shadow:
            0 0 8px rgba(212, 175, 55, 0.25);
    }

    50% {
        opacity: 1;

        text-shadow:
            0 0 12px rgba(212, 175, 55, 0.8),
            0 0 24px rgba(212, 175, 55, 0.5);
    }
}

/* Fade-in animation */

.fade-in {
    opacity: 0;

    animation: fadeIn 1.2s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

.delay-4 {
    animation-delay: 1.2s;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */

h1 {
    margin: 0;

    font-size: 4rem;
    font-weight: 600;

    color: #e8c56d;
}

h2 {
    font-size: 1.4rem;
    font-weight: 300;

    margin-bottom: 30px;
}

.section {
    max-width: 700px;

    margin: 20px auto 40px auto;

    line-height: 1.7;
    font-size: 1.1rem;
}

/* Featured app card */

.card {
    max-width: 600px;

    margin: 0 auto;

    padding: 30px;

    background: rgba(0, 0, 0, 0.35);

    border: 1px solid rgba(212, 175, 55, 0.25);

    border-radius: 16px;

    backdrop-filter: blur(8px);
}

.card h3 {
    margin-top: 0;

    color: #e8c56d;
}

/* Button */

.cta {
    display: inline-block;

    margin-top: 15px;

    padding: 14px 28px;

    background: #d4af37;

    color: #111111;

    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    transition: all 0.3s ease;
}

.cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.4);
}

/* Footer */

footer {
    margin-top: 60px;

    font-size: 0.9rem;

    opacity: 0.8;
}

/* Tablet */

@media (max-width: 1024px) {

    h1 {
        font-size: 3.2rem;
    }

    .section {
        max-width: 90%;
    }
}

/* Mobile */

@media (max-width: 768px) {

    #background {
        background-position: 22% left center;
        background-size: cover;
        background-attachment: scroll;
    }

    .overlay {
        padding: 30px 20px;
    }

    .runes {
        font-size: 1.2rem;
        letter-spacing: 0.15rem;

        margin-bottom: 12px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1rem;

        margin-bottom: 20px;
    }

    .section {
        font-size: 0.95rem;
        line-height: 1.5;

        margin-bottom: 25px;
    }

    .card {
        margin-top: 25px;

        padding: 20px;

        border-radius: 12px;
    }

    .cta {
        display: block;

        width: 100%;
        max-width: 280px;

        margin: 15px auto 0 auto;

        box-sizing: border-box;
    }

    footer {
        margin-top: 40px;
    }
}

/* Small phones */

@media (max-width: 430px) {

    #background {
        background-position: 15% center;
    }

    h1 {
        font-size: 1.9rem;
    }

    .runes {
        font-size: 1rem;
    }

    h2 {
        font-size: 0.95rem;
    }
}
