: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);
    --border: rgba(255, 255, 255, 0.14);
    --nav-bg: rgba(10, 14, 28, 0.35);
    --glass-strong: rgba(255, 255, 255, 0.18);
    --hover: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --focus: rgba(139, 125, 255, 0.85);
}

body.light {
    --bg-main: linear-gradient(135deg, #dff6ff 0%, #fef7b9 100%);
    --text-main: #10243a;
    --text-sub: #4c647a;
    --glass: rgba(255, 255, 255, 0.45);
    --border: rgba(16, 36, 58, 0.10);
    --nav-bg: rgba(255, 255, 255, 0.32);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --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: 0.8s;
    overflow-x: hidden;
}

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

body::before {
    top: -100px;
    left: -100px;
    background: rgba(122, 91, 255, 0.2);
}

body::after {
    bottom: -100px;
    right: -100px;
    background: rgba(90, 178, 255, 0.2);
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
}

body.light .stars {
    opacity: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    animation: fall linear infinite;
}

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

.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.logo-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-pill {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
    padding: 8px 14px;
    font-size: 13px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-pill:hover {
    transform: translateY(-1px);
}

.nav-pill:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.nav-contact--current {
    background: var(--glass-strong);
    font-weight: 600;
}

.btn,
.theme-toggle,
.lang-toggle {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
    padding: 10px 16px;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: inherit;
}

.btn-outline:hover {
    background: var(--glass);
}

.lang-wrap {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: none;
    min-width: 160px;
    z-index: 20;
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    padding: 10px 14px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
}

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

h1 {
    font-size: clamp(40px, 12vw, 90px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.tagline {
    font-size: 24px;
    margin-top: 10px;
}

.sub {
    margin-top: 12px;
    color: var(--text-sub);
}

.actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

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