@font-face {
    font-family: 'NexonMaplestory';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/MaplestoryOTFBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.08);
    --accent-strong: rgba(129, 140, 248, 0.13);
    --border-subtle: rgba(148, 163, 184, 0.35);
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --danger: #ef4444;
    --radius-xl: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

html,
body {
    font-family: 'NexonMaplestory', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f9fafb 0, #e5e7eb 60%, #f9fafb 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    white-space: pre-line;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(249, 250, 251, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo-mark::after {
    content: "?";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 19px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.6);
    opacity: 0.96;
}

.logo-image-main {
    height: 14px;
}

.logo-text-sub {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.16em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.nav-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.nav-links a:hover {
    color: #111827;
    background: rgba(243, 244, 246, 0.9);
    border-color: rgba(148, 163, 184, 0.7);
    transform: translateY(-1px);
}

.nav-cta {
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, #4f46e5, #6366f1, #a855f7);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.35),
    0 0 0 1px rgba(129, 140, 248, 0.6);
    transition: transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.nav-cta span {
    font-size: 16px;
}

.nav-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.45),
    0 0 0 1px rgba(129, 140, 248, 0.8);
}

.nav-cta:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35),
    0 0 0 1px rgba(129, 140, 248, 0.8);
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: inherit;
    background: inherit;
    left: 0;
}

.nav-toggle span::before {
    top: -5px;
}

.nav-toggle span::after {
    top: 5px;
}

main {
    flex: 1;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.section-heading {
    align-items: baseline;
    margin-bottom: 18px;
    gap: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111827;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 360px;
}

/* Footer */

footer {
    border-top: 1px solid rgba(209, 213, 219, 0.9);
    background: #f9fafb;
    padding: 16px 20px 18px;
    margin-top: 16px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.footer-links a:hover {
    color: #111827;
}

.footer-contact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-contact a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
}

/* Responsive - Common */

@media (max-width: 720px) {
    .nav {
        padding-inline: 16px;
    }

    .nav-links {
        position: absolute;
        inset-inline: 12px;
        top: 54px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(209, 213, 219, 0.95);
        flex-direction: column;
        padding: 10px 12px;
        display: none;
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
    }

    .nav-links.show {
        display: flex;
    }

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

    .nav-toggle {
        display: inline-flex;
    }

    .section {
        padding-inline: 16px;
    }
}
