:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --bg-bar: #fffcf8;
  --surface: #ffffff;
  --surface-hover: #f3eee8;
  --line: #e4ddd4;
  --line-strong: #d6cdc2;
  --text: #1c1916;
  --muted: #6b645c;
  --soft: #3f3a34;
  --accent: #3b6ef5;
  --glow: #7a63e0;
  --glow-soft: #cbbef7;
  --shadow: 0 16px 40px rgba(90, 70, 40, 0.08);
  --top: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(920px 540px at 50% 12%, #fff 0%, transparent 56%),
    radial-gradient(640px 380px at 86% 0%, #dcecff 0%, transparent 54%),
    radial-gradient(560px 320px at 8% 6%, #ffe8d6 0%, transparent 50%),
    radial-gradient(480px 280px at 70% 80%, #efe6ff 0%, transparent 48%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 "Pretendard Variable", sans-serif;
}

.top {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg-bar) 78%, transparent);
  backdrop-filter: blur(16px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 40px));
  height: var(--top);
  margin: 0 auto;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
}

.nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
}

.gate {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: calc(100vh - var(--top));
  padding: 40px 24px 56px;
  text-align: center;
}

.gate > *:not(.field) {
  position: relative;
  z-index: 2;
}

.panel {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 88px;
  scroll-margin-top: calc(var(--top) + 16px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legend {
  display: flex;
  gap: 6px;
  margin: 0;
}

.to-tiers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.to-tiers svg {
  animation: bob 1.6s ease-in-out infinite;
}

.to-tiers:hover {
  color: var(--soft);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 820px) {
  .top-inner,
  .panel {
    width: calc(100% - 32px);
  }

  .gate {
    min-height: min(88vh, 760px);
    padding: 28px 16px 40px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
