@font-face {
    font-family: 'NeoDunggeunmoPro';
    src: url('../fonts/NeoDunggeunmoPro-Regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    --color-background: #060818;
    --color-background-alt: #0b0f2b;
    --color-primary: #7c5bff;
    --color-accent: #46ffe2;
    --color-text: #f5f7ff;
    --color-text-muted: rgba(245, 247, 255, 0.75);
    --shadow-glow: 0 0 40px rgba(124, 91, 255, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'NeoDunggeunmoPro', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% -10%, rgba(124, 91, 255, 0.2), transparent 60%),
        radial-gradient(circle at 90% 30%, rgba(70, 255, 226, 0.15), transparent 60%),
        url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

body.loaded::before {
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(6, 8, 24, 0), rgba(6, 8, 24, 0.75));
    z-index: -1;
}

.header-bar,
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-family: 'NeoDunggeunmoPro', sans-serif;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: var(--color-text-muted);

    width: 100%;
}

.header-bar__link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-bar__link:hover,
.header-bar__link:focus {
    color: var(--color-text);
}

.header-bar__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.landing {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
}

.landing__glow {
    position: absolute;
    inset: auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 91, 255, 0.35), rgba(124, 91, 255, 0));
    filter: blur(40px);
    animation: pulseGlow 6s ease-in-out infinite;
    z-index: -1;
}

.landing__frame {
    position: relative;
    max-width: 540px;
    width: 100%;
    padding: 3rem 2.5rem 2.75rem;
    background: linear-gradient(135deg, rgba(11, 15, 43, 0.95), rgba(24, 17, 61, 0.95));
    border-radius: 24px;
    border: 3px solid rgba(124, 91, 255, 0.65);
    box-shadow:
        0 0 0 6px rgba(124, 91, 255, 0.15),
        0 35px 70px rgba(6, 8, 24, 0.65),
        inset 0 0 0 2px rgba(70, 255, 226, 0.2);
    text-align: center;
    backdrop-filter: blur(12px);
}

.landing__frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    border: 1px dashed rgba(70, 255, 226, 0.35);
    pointer-events: none;
}

.landing__badge {
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: rgba(70, 255, 226, 0.12);
    border: 1px solid rgba(70, 255, 226, 0.35);
    color: var(--color-accent);
    font-family: 'NeoDunggeunmoPro', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.landing__title {
    font-family: 'NeoDunggeunmoPro', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4rem);
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    text-shadow: 0 8px 25px rgba(124, 91, 255, 0.45), 0 0 12px rgba(70, 255, 226, 0.35);
}

.landing__subtitle {
    margin: 0 0 2.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.start-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3.4rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 91, 255, 0.95), rgba(70, 255, 226, 0.95));
    color: #0b0f2b;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'NeoDunggeunmoPro', sans-serif;
    font-size: 1rem;
    box-shadow: 0 25px 40px rgba(124, 91, 255, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-button::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 14px;
    border: 2px solid rgba(70, 255, 226, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.start-button:hover,
.start-button:focus {
    transform: translateY(-4px);
    box-shadow: 0 35px 65px rgba(124, 91, 255, 0.55);
}

.start-button:hover::after,
.start-button:focus::after {
    opacity: 1;
}

.start-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(70, 255, 226, 0.65);
}

.start-button__label {
    position: relative;
    z-index: 1;
}

.landing__hint {
    margin-top: 2.25rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'NeoDunggeunmoPro', sans-serif;
}

.footer-bar {
    font-size: 0.85rem;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10001;
    background: transparent;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0 0 10px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.footer-bar.loaded {
    opacity: 1;
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.85;
    }
}

@media (max-width: 600px) {
    .landing {
        padding: 3rem 1.25rem 2.5rem;
    }

    .landing__frame {
        padding: 2.5rem 1.75rem 2.25rem;
    }

    .start-button {
        width: 100%;
    }
}

