:root {
    --bg-main: radial-gradient(circle at 20% 20%, #18203f 0%, #070b18 45%, #020305 100%);
    --text-main: #ffffff;
    --text-sub: #c7d2e3;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.14);
    --nav-bg: rgba(10, 14, 28, 0.35);
    --hover: rgba(255, 255, 255, 0.10);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    --focus: rgba(139, 125, 255, 0.9);
}

body.light {
    --bg-main: linear-gradient(135deg, #dff6ff 0%, #fef7b9 100%);
    --text-main: #10243a;
    --text-sub: #4c647a;
    --glass: rgba(255, 255, 255, 0.42);
    --glass-strong: rgba(255, 255, 255, 0.62);
    --border: rgba(16, 36, 58, 0.10);
    --nav-bg: rgba(255, 255, 255, 0.32);
    --hover: rgba(16, 36, 58, 0.07);
    --shadow: 0 12px 28px rgba(111, 145, 179, 0.14);
    --focus: rgba(16, 36, 58, 0.65);
}

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

body {
    font-family: "Pretendard", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    transition: background 0.8s ease, color 0.35s ease;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(100px);
    z-index: -2;
    pointer-events: none;
}

body::before {
    top: -120px;
    left: -110px;
    background: rgba(122, 91, 255, 0.18);
}

body::after {
    bottom: -120px;
    right: -110px;
    background: rgba(90, 178, 255, 0.18);
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

body.light .stars {
    opacity: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: white;
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.35);
    animation: fall linear infinite;
}

@keyframes fall {
    from { transform: translateY(-10vh); opacity: 0; }
    10% { opacity: 1; }
    to { transform: translateY(110vh); opacity: 0; }
}

.nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 36px);
    max-width: 1240px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 1000;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-pill,
.nav-btn,
.theme-toggle,
.lang-toggle {
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-main);
    border-radius: 999px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.28s ease, transform 0.18s ease, border-color 0.28s ease, color 0.28s ease;
    box-shadow: var(--shadow);
    font: inherit;
}

.logo-pill {
    padding: 0 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-btn,
.theme-toggle,
.lang-toggle {
    padding: 0 16px;
    cursor: pointer;
}

.nav-btn {
    font-size: 14px;
    color: var(--text-sub);
}

.nav-btn.active {
    color: var(--text-main);
    background: var(--glass-strong);
}

.logo-pill:hover,
.nav-btn:hover,
.theme-toggle:hover,
.lang-toggle:hover {
    transform: translateY(-2px);
    background: var(--hover);
    color: var(--text-main);
}

.theme-toggle {
    min-width: 136px;
    gap: 8px;
}

.lang-wrap {
    position: relative;
}

.lang-toggle {
    min-width: 54px;
    font-size: 20px;
}

.lang-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    min-width: 180px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--glass-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateY(-10px) scaleY(0.2);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.lang-dropdown.open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.lang-option {
    padding: 13px 15px;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.22s ease;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font: inherit;
}

.lang-option:hover,
.lang-option:focus-visible {
    background: var(--hover);
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 118px 20px 60px;
}

.inner {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

.top-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-sub);
    font-size: 13px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-sub);
    font-size: 16px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto 24px;
}

.achievements {
    margin-top: 18px;
}

.achievements-title {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-sub);
    margin-bottom: 24px;
}

.trophy-case {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 880px;
    margin: 8px auto 0;
    text-align: left;
}

.trophy {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px 14px;
    align-items: center;
    min-height: 112px;
    padding: 16px 18px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.trophy__cup {
    width: 64px;
    height: 76px;
    justify-self: center;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}

.trophy__name {
    margin: 0;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 700;
    line-height: 1.45;
}

.logo-pill:focus-visible,
.nav-btn:focus-visible,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible,
.lang-option:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .nav {
        top: 12px;
        width: calc(100% - 20px);
        border-radius: 28px;
        padding: 12px;
        align-items: flex-start;
    }

    .nav-right {
        justify-content: flex-end;
    }

    .main {
        padding-top: 108px;
    }

    .trophy-case {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        min-width: 120px;
    }
}
