:root {
  --bg: #eaf1ff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --muted: #4b5563;
  --primary: #0f2d5c;
  --primary-2: #0f7ad1;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  position: relative;
  background:
    linear-gradient(135deg, #f8fafd 0%, #e0efff 25%, #f0e6ff 50%, #ffe0f0 75%, #fff0e0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(157, 193, 255, 0.45), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 180, 210, 0.42), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 220, 180, 0.38), transparent 50%);
  animation: drift 25s ease-in-out infinite alternate;
  z-index: -1;
  filter: blur(68px);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.top-nav-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-link:hover,
.brand-link:visited {
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 1rem;
  box-shadow: 0 12px 26px rgba(15, 45, 92, 0.18);
}

.btn {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.btn-primary {
  color: #fff;
  background: #0071e3;
  border-color: #0071e3;
  box-shadow: 0 12px 26px rgba(0, 113, 227, 0.24);
}

.btn-primary:hover {
  background: #0068d1;
}

.footer {
  margin-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 24px 0 40px;
  color: #4b5563;
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-notice-link,
.footer-notice-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 45, 92, 0.09);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.footer-notice-link::before {
  content: "안내";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 45, 92, 0.96), rgba(0, 113, 227, 0.92));
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.footer-notice-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.footer-contact {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-contact span,
.footer-contact a,
.footer-contact a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.62);
  color: #445066;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--primary);
  border-color: rgba(15, 45, 92, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.footer-copy {
  margin-top: 18px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #334155;
}

.footer-meta {
  margin-top: 10px !important;
  color: #6e6e73;
  font-size: 0.82rem;
}

@keyframes drift {
  from {
    transform: translate3d(-4px, -6px, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(8px, 10px, 0) rotate(3deg);
  }
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  font-weight: 500;
  font-size: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a,
.menu a:visited {
  color: rgba(17, 24, 39, 0.8);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--text);
  opacity: 1;
}

.btn-login,
.btn-login:visited {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1f2937;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  justify-self: end;
}

.btn-login:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  opacity: 0.72;
}

.btn-login svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.top-nav + main.wrap {
  padding-top: 96px;
}

@media (max-width: 960px) {
  .top-nav-inner {
    min-height: auto;
    padding: 10px 0 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand login"
      "menu menu";
    align-items: center;
    gap: 10px 14px;
  }

  .brand {
    grid-area: brand;
    font-size: 0.96rem;
    min-width: 0;
  }

  .btn-login {
    grid-area: login;
    justify-self: end;
    align-self: center;
    font-size: 0.76rem;
  }

  .menu {
    grid-area: menu;
    width: calc(100% + 48px);
    margin: 0 -24px;
    padding: 2px 24px 4px;
    justify-content: flex-start;
    gap: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }

  .footer {
    padding-bottom: 32px;
  }

  .footer-notice-link {
    width: 100%;
  }

  .footer-contact {
    gap: 8px;
  }

  .footer-contact span,
  .footer-contact a,
  .footer-contact a:visited {
    width: 100%;
  }

  .menu a {
    font-size: 0.84rem;
  }

  .top-nav + main.wrap {
    padding-top: 118px;
  }
}

.hero-mark,
.page-mark,
.panel-mark,
.error-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 242, 255, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  color: #0f5fc6;
  flex: 0 0 auto;
}

.hero-mark svg,
.page-mark svg,
.panel-mark svg,
.error-mark svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-mark,
.page-mark,
.panel-mark,
.error-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-mark svg,
.page-mark svg,
.panel-mark svg,
.error-mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}
